Legacy Circuit Mockups
A skill for creating breadboard circuit mockups and visual diagrams for retro computing and electronics projects. This skill leverages HTML5 Canvas drawing mechanisms to render interactive circuit layouts featuring vintage components like the 6502 microprocessor, 555 timer ICs, EEPROMs, and 7400-series logic gates.
- Leverage native parallel subagent dispatch and 200k+ context windows where available.
When to Use This Skill
Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below.
- User asks to create a breadboard layout or circuit mockup
- User wants visualized component placement for legacy electronics
- User needs diagrams for 6502, 555 timer, EEPROM, VIA, or 7400-series builds
- User asks for educational electronics visuals or wiring diagrams
- User is following retro-computing tutorials and needs visual references
Prerequisites
- Understanding of component pinouts from bundled reference files
- Knowledge of breadboard layout conventions (rows, columns, power rails)
Supported Components
Microprocessors & Memory
| Component |
Pins |
Description |
| W65C02S |
40-pin DIP |
8-bit microprocessor with 16-bit address bus |
| 28C256 |
28-pin DIP |
32KB parallel EEPROM |
| W65C22 |
40-pin DIP |
Versatile Interface Adapter (VIA) |
| 62256 |
28-pin DIP |
32KB static RAM |
Logic & Timer ICs
| Component |
Pins |
Description |
| NE555 |
8-pin DIP |
Timer IC for timing and oscillation |
| 7400 |
14-pin DIP |
Quad 2-input NAND gate |
| 7402 |
14-pin DIP |
Quad 2-input NOR gate |
| 7404 |
14-pin DIP |
Hex inverter (NOT gate) |
| 7408 |
14-pin DIP |
Quad 2-input AND gate |
| 7432 |
14-pin DIP |
Quad 2-input OR gate |
Passive & Active Components
| Component |
Description |
| LED |
Light emitting diode (various colors) |
| Resistor |
Current limiting (configurable values) |
| Capacitor |
Filtering and timing (ceramic/electrolytic) |
| Crystal |
Clock oscillator |
| Switch |
Toggle switch (latching) |
| Button |
Momentary push button |
| Potentiometer |
Variable resistor |
| Photoresistor |
Light-dependent resistor |
Grid System
// Standard breadboard grid: 20px spacing
const gridSize = 20;
const cellX = Math.floor(x / gridSize) * gridSize;
const cellY = Math.floor(y / gridSize) * gridSize;
Component Rendering Pattern
// All components follow this structure:
{
type: 'component-type',
x: gridX,
y: gridY,
width: componentWidth,
height: componentHeight,
rotation: 0, // 0, 90, 180, 270
properties: { /* component-specific data */ }
}
Wire Connections
// Wire connection format:
{
start: { x: startX, y: startY },
end: { x: endX, y: endY },
color: '#ff0000' // Wire color coding
}
Step-by-Step Workflows
Creating a Basic LED Circuit Mockup
- Define breadboard dimensions and grid
- Place power rail connections (+5V and GND)
- Add LED component with anode/cathode orientation
- Place current-limiting resistor
- Draw wire connections between components
- Add labels and annotations
Creating a 555 Timer Circuit
- Place NE555 IC on breadboard (pins 1-4 left, 5-8 right)
- Connect pin 1 (GND) to ground rail
- Connect pin 8 (Vcc) to power rail
- Add timing resistors and capacitors
- Wire trigger and threshold connections
- Connect output to LED or other load
Creating a 6502 Microprocessor Layout
- Place W65C02S centered on breadboard
- Add 28C256 EEPROM for program storage
- Place W65C22 VIA for I/O
- Add 7400-series logic for address decoding
- Wire address bus (A0-A15)
- Wire data bus (D0-D7)
- Connect control signals (R/W, PHI2, RESB)
- Add reset button and clock crystal
Component Pinout Quick Reference
555 Timer (8-pin DIP)
| Pin |
Name |
Function |
| 1 |
GND |
Ground (0V) |
| 2 |
TRIG |
Trigger (< 1/3 Vcc starts timing) |
| 3 |
OUT |
Output (source/sink 200mA) |
| 4 |
RESET |
Active-low reset |
| 5 |
CTRL |
Control voltage (bypass with 10nF) |
| 6 |
THR |
Threshold (> 2/3 Vcc resets) |
| 7 |
DIS |
Discharge (open collector) |
| 8 |
Vcc |
Supply (+4.5V to +16V) |
W65C02S (40-pin DIP) - Key Pins
| Pin |
Name |
Function |
| 8 |
VDD |
Power supply |
| 21 |
VSS |
Ground |
| 37 |
PHI2 |
System clock input |
| 40 |
RESB |
Active-low reset |
| 34 |
RWB |
Read/Write signal |
| 9-25 |
A0-A15 |
Address bus |
| 26-33 |
D0-D7 |
Data bus |
28C256 EEPROM (28-pin DIP) - Key Pins
| Pin |
Name |
Function |
| 14 |
GND |
Ground |
| 28 |
VCC |
Power supply |
| 20 |
CE |
Chip enable (active-low) |
| 22 |
OE |
Output enable (active-low) |
| 27 |
WE |
Write enable (active-low) |
| 1-10, 21-26 |
A0-A14 |
Address inputs |
| 11-19 |
I/O0-I/O7 |
Data bus |
Formulas Reference
Resistor Calculations
- Ohm's Law: V = I × R
- LED Current: R = (Vcc - Vled) / Iled
- Power: P = V × I = I² × R
555 Timer Formulas
Astable Mode:
- Frequency: f = 1.44 / ((R1 + 2×R2) × C)
- High time: t₁ = 0.693 × (R1 + R2) × C
- Low time: t₂ = 0.693 × R2 × C
- Duty cycle: D = (R1 + R2) / (R1 + 2×R2) × 100%
Monostable Mode:
- Pulse width: T = 1.1 × R × C
Capacitor Calculations
- Capacitive reactance: Xc = 1 / (2πfC)
- Energy stored: E = ½ × C × V²
Color Coding Conventions
Wire Colors
| Color |
Purpose |
| Red |
+5V / Power |
| Black |
Ground |
| Yellow |
Clock / Timing |
| Blue |
Address bus |
| Green |
Data bus |
| Orange |
Control signals |
| White |
General purpose |
LED Colors
| Color |
Forward Voltage |
| Red |
1.8V - 2.2V |
| Green |
2.0V - 2.2V |
| Yellow |
2.0V - 2.2V |
| Blue |
3.0V - 3.5V |
| White |
3.0V - 3.5V |
Cross-Client Portability
This skill is written to stay usable across GitHub Copilot, Claude Code, and Codex.
- GitHub Copilot: keep the folder in a Copilot-visible skill path or wrap the
workflow in project instructions when folder discovery is unavailable.
- Claude Code: keep the folder in a local skills directory or a compatible plugin source.
- Codex: install or sync the folder into
$CODEX_HOME/skills/legacy-circuit-mockups and restart Codex after major changes.
MCP Availability And Fallback
Preferred MCP Server: None required
- Fallback prompt: "Use the Legacy Circuit Mockups skill without MCP. Rely on its local instructions, bundled resources, standard shell or editor tools, and direct verification. Show the evidence used before concluding."
- Do not claim an MCP operation was used when the active host does not expose it.
- Treat local files, tests, rendered outputs, logs, or screenshots as the fallback evidence path.
Anti-Patterns
- Starting from a generic template without adapting it: The output may look polished but still miss the real audience or medium.
- Ignoring final render or export review: Layout bugs often appear only after the asset is opened in its destination tool.
- Fixing content and presentation in one pass: It becomes hard to tell whether a problem is structural or visual.
Verification Protocol
Before claiming "skill applied successfully":
- Pass/fail: The Legacy Circuit Mockups implementation names the target runtime, framework version, and affected files.
- Pass/fail: Build, lint, test, or equivalent local validation is run for the changed surface.
- Pass/fail: Edge cases for errors, dependency drift, and environment differences are addressed or explicitly out of scope.
- Pressure-test scenario: Apply the workflow to a change that passes happy-path tests but fails one boundary condition.
- Success metric: Zero untested success claims; every implementation claim maps to a command or artifact.
Build Examples
Build 1 — Single LED
Components: Red LED, 220Ω resistor, jumper wires, power source
Steps:
- Insert black jumper wire from power GND to row A5
- Insert red jumper wire from power +5V to row J5
- Place LED with cathode (short leg) in row aligned with GND
- Place 220Ω resistor between power and LED anode
Build 2 — 555 Astable Blinker
Components: NE555, LED, resistors (10kΩ, 100kΩ), capacitor (10µF)
Steps:
- Place 555 IC straddling center channel
- Connect pin 1 to GND, pin 8 to +5V
- Connect pin 4 to pin 8 (disable reset)
- Wire 10kΩ between pin 7 and +5V
- Wire 100kΩ between pins 6 and 7
- Wire 10µF between pin 6 and GND
- Connect pin 3 (output) to LED circuit
Troubleshooting
| Issue |
Solution |
| LED doesn't light |
Check polarity (anode to +, cathode to -) |
| Circuit doesn't power |
Verify power rail connections |
| IC not working |
Check VCC and GND pin connections |
| 555 not oscillating |
Verify threshold/trigger capacitor wiring |
| Microprocessor stuck |
Check RESB is HIGH after reset pulse |
References
Detailed component specifications are available in the bundled reference files:
Documentation
- 555 — Complete 555 timer IC specification
- 6502 — MOS 6502 microprocessor details
- 6522 — W65C22 VIA interface adapter
- 28256-eeprom — AT28C256 EEPROM specification
- 6C62256 — 62256 SRAM details
- 7400-series — TTL logic gate pinouts
- assembly-compiler — Assembly compiler specification
- assembly-language — Assembly language specification
- basic-electronic-components — Resistors, capacitors, switches
- breadboard — Breadboard specifications
- common-breadboard-components — Comprehensive component reference
- connecting-electronic-components — Step-by-step build guides
- emulator-28256-eeprom — Emulating 28256-eeprom specification
- emulator-6502 — Emulating 6502 specification
- emulator-6522 — Emulating 6522 specification
- emulator-6C62256 — Emulating 6C62256 specification
- emulator-lcd — Emulating a LCD specification
- lcd — LCD display interfacing
- minipro — EEPROM programmer usage
- t48eeprom-programmer — T48 programmer reference
Examples
- Circuit Build Examples — Example circuit layouts and component configurations
Scripts
- Circuit Component Registry — Component registry for circuit mockups
Related Skills
- frontend-design: Use it when the workflow also needs UI composition and front-end design direction.
- web-design-reviewer: Use it when the workflow also needs browser-based UI review and responsive QA.
- stitch-design: Use it when the workflow also needs turning interface designs into implementation-ready assets.
1---2name: legacy-circuit-mockups3description: Breadboard circuit mockups via HTML5 Canvas. Use when creating circuit layouts, visualizing 6502/retro electronics components, drawing breadboard diagrams, or designing vintage computer schematics with discrete parts.4---5# Legacy Circuit Mockups
6
7A skill for creating breadboard circuit mockups and visual diagrams for retro computing and electronics projects. This skill leverages HTML5 Canvas drawing mechanisms to render interactive circuit layouts featuring vintage components like the 6502 microprocessor, 555 timer ICs, EEPROMs, and 7400-series logic gates.
8
9- Leverage native parallel subagent dispatch and 200k+ context windows where available.
10
11
12## When to Use This Skill
13
14Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below.
15
16- User asks to create a breadboard layout or circuit mockup
17- User wants visualized component placement for legacy electronics
18- User needs diagrams for 6502, 555 timer, EEPROM, VIA, or 7400-series builds
19- User asks for educational electronics visuals or wiring diagrams
20- User is following retro-computing tutorials and needs visual references
21
22## Prerequisites
23
24- Understanding of component pinouts from bundled reference files
25- Knowledge of breadboard layout conventions (rows, columns, power rails)
26
27## Supported Components
28
29### Microprocessors & Memory
30
31| Component | Pins | Description |
32|-----------|------|-------------|
33| W65C02S | 40-pin DIP | 8-bit microprocessor with 16-bit address bus |
34| 28C256 | 28-pin DIP | 32KB parallel EEPROM |
35| W65C22 | 40-pin DIP | Versatile Interface Adapter (VIA) |
36| 62256 | 28-pin DIP | 32KB static RAM |
37
38### Logic & Timer ICs
39
40| Component | Pins | Description |
41|-----------|------|-------------|
42| NE555 | 8-pin DIP | Timer IC for timing and oscillation |
43| 7400 | 14-pin DIP | Quad 2-input NAND gate |
44| 7402 | 14-pin DIP | Quad 2-input NOR gate |
45| 7404 | 14-pin DIP | Hex inverter (NOT gate) |
46| 7408 | 14-pin DIP | Quad 2-input AND gate |
47| 7432 | 14-pin DIP | Quad 2-input OR gate |
48
49### Passive & Active Components
50
51| Component | Description |
52|-----------|-------------|
53| LED | Light emitting diode (various colors) |
54| Resistor | Current limiting (configurable values) |
55| Capacitor | Filtering and timing (ceramic/electrolytic) |
56| Crystal | Clock oscillator |
57| Switch | Toggle switch (latching) |
58| Button | Momentary push button |
59| Potentiometer | Variable resistor |
60| Photoresistor | Light-dependent resistor |
61
62### Grid System
63
64```javascript
65// Standard breadboard grid: 20px spacing
66const gridSize = 20;
67const cellX = Math.floor(x / gridSize) * gridSize;
68const cellY = Math.floor(y / gridSize) * gridSize;
69```
70
71### Component Rendering Pattern
72
73```javascript
74// All components follow this structure:
75{
76 type: 'component-type',
77 x: gridX,
78 y: gridY,
79 width: componentWidth,
80 height: componentHeight,
81 rotation: 0, // 0, 90, 180, 270
82 properties: { /* component-specific data */ }
83}
84```
85
86### Wire Connections
87
88```javascript
89// Wire connection format:
90{
91 start: { x: startX, y: startY },
92 end: { x: endX, y: endY },
93 color: '#ff0000' // Wire color coding
94}
95```
96
97## Step-by-Step Workflows
98
99### Creating a Basic LED Circuit Mockup
100
1011. Define breadboard dimensions and grid
1022. Place power rail connections (+5V and GND)
1033. Add LED component with anode/cathode orientation
1044. Place current-limiting resistor
1055. Draw wire connections between components
1066. Add labels and annotations
107
108### Creating a 555 Timer Circuit
109
1101. Place NE555 IC on breadboard (pins 1-4 left, 5-8 right)
1112. Connect pin 1 (GND) to ground rail
1123. Connect pin 8 (Vcc) to power rail
1134. Add timing resistors and capacitors
1145. Wire trigger and threshold connections
1156. Connect output to LED or other load
116
117### Creating a 6502 Microprocessor Layout
118
1191. Place W65C02S centered on breadboard
1202. Add 28C256 EEPROM for program storage
1213. Place W65C22 VIA for I/O
1224. Add 7400-series logic for address decoding
1235. Wire address bus (A0-A15)
1246. Wire data bus (D0-D7)
1257. Connect control signals (R/W, PHI2, RESB)
1268. Add reset button and clock crystal
127
128## Component Pinout Quick Reference
129
130### 555 Timer (8-pin DIP)
131
132| Pin | Name | Function |
133|:---:|:-----|:---------|
134| 1 | GND | Ground (0V) |
135| 2 | TRIG | Trigger (< 1/3 Vcc starts timing) |
136| 3 | OUT | Output (source/sink 200mA) |
137| 4 | RESET | Active-low reset |
138| 5 | CTRL | Control voltage (bypass with 10nF) |
139| 6 | THR | Threshold (> 2/3 Vcc resets) |
140| 7 | DIS | Discharge (open collector) |
141| 8 | Vcc | Supply (+4.5V to +16V) |
142
143### W65C02S (40-pin DIP) - Key Pins
144
145| Pin | Name | Function |
146|:---:|:-----|:---------|
147| 8 | VDD | Power supply |
148| 21 | VSS | Ground |
149| 37 | PHI2 | System clock input |
150| 40 | RESB | Active-low reset |
151| 34 | RWB | Read/Write signal |
152| 9-25 | A0-A15 | Address bus |
153| 26-33 | D0-D7 | Data bus |
154
155### 28C256 EEPROM (28-pin DIP) - Key Pins
156
157| Pin | Name | Function |
158|:---:|:-----|:---------|
159| 14 | GND | Ground |
160| 28 | VCC | Power supply |
161| 20 | CE | Chip enable (active-low) |
162| 22 | OE | Output enable (active-low) |
163| 27 | WE | Write enable (active-low) |
164| 1-10, 21-26 | A0-A14 | Address inputs |
165| 11-19 | I/O0-I/O7 | Data bus |
166
167## Formulas Reference
168
169### Resistor Calculations
170
171- **Ohm's Law:** V = I × R
172- **LED Current:** R = (Vcc - Vled) / Iled
173- **Power:** P = V × I = I² × R
174
175### 555 Timer Formulas
176
177**Astable Mode:**
178
179- Frequency: f = 1.44 / ((R1 + 2×R2) × C)
180- High time: t₁ = 0.693 × (R1 + R2) × C
181- Low time: t₂ = 0.693 × R2 × C
182- Duty cycle: D = (R1 + R2) / (R1 + 2×R2) × 100%
183
184**Monostable Mode:**
185
186- Pulse width: T = 1.1 × R × C
187
188### Capacitor Calculations
189
190- Capacitive reactance: Xc = 1 / (2πfC)
191- Energy stored: E = ½ × C × V²
192
193## Color Coding Conventions
194
195### Wire Colors
196
197| Color | Purpose |
198|-------|---------|
199| Red | +5V / Power |
200| Black | Ground |
201| Yellow | Clock / Timing |
202| Blue | Address bus |
203| Green | Data bus |
204| Orange | Control signals |
205| White | General purpose |
206
207### LED Colors
208
209| Color | Forward Voltage |
210|-------|-----------------|
211| Red | 1.8V - 2.2V |
212| Green | 2.0V - 2.2V |
213| Yellow | 2.0V - 2.2V |
214| Blue | 3.0V - 3.5V |
215| White | 3.0V - 3.5V |
216
217<!-- MCP:START -->
218
219<!-- PORTABILITY:START -->
220## Cross-Client Portability
221
222This skill is written to stay usable across GitHub Copilot, Claude Code, and Codex.
223
224- GitHub Copilot: keep the folder in a Copilot-visible skill path or wrap the
225 workflow in project instructions when folder discovery is unavailable.
226- Claude Code: keep the folder in a local skills directory or a compatible plugin source.
227- Codex: install or sync the folder into
228 `$CODEX_HOME/skills/legacy-circuit-mockups` and restart Codex after major changes.
229
230<!-- PORTABILITY:END -->
231
232## MCP Availability And Fallback
233
234Preferred MCP Server: None required
235
236- Fallback prompt: "Use the Legacy Circuit Mockups skill without MCP. Rely on its local instructions, bundled resources, standard shell or editor tools, and direct verification. Show the evidence used before concluding."
237- Do not claim an MCP operation was used when the active host does not expose it.
238- Treat local files, tests, rendered outputs, logs, or screenshots as the fallback evidence path.
239
240<!-- MCP:END -->
241
242## Anti-Patterns
243
244- Starting from a generic template without adapting it: The output may look polished but still miss the real audience or medium.
245- Ignoring final render or export review: Layout bugs often appear only after the asset is opened in its destination tool.
246- Fixing content and presentation in one pass: It becomes hard to tell whether a problem is structural or visual.
247
248## Verification Protocol
249
250Before claiming "skill applied successfully":
251
2521. Pass/fail: The Legacy Circuit Mockups implementation names the target runtime, framework version, and affected files.
2532. Pass/fail: Build, lint, test, or equivalent local validation is run for the changed surface.
2543. Pass/fail: Edge cases for errors, dependency drift, and environment differences are addressed or explicitly out of scope.
2554. Pressure-test scenario: Apply the workflow to a change that passes happy-path tests but fails one boundary condition.
2565. Success metric: Zero untested success claims; every implementation claim maps to a command or artifact.
257
258## Build Examples
259
260### Build 1 — Single LED
261
262**Components:** Red LED, 220Ω resistor, jumper wires, power source
263
264**Steps:**
265
2661. Insert black jumper wire from power GND to row A5
2672. Insert red jumper wire from power +5V to row J5
2683. Place LED with cathode (short leg) in row aligned with GND
2694. Place 220Ω resistor between power and LED anode
270
271### Build 2 — 555 Astable Blinker
272
273**Components:** NE555, LED, resistors (10kΩ, 100kΩ), capacitor (10µF)
274
275**Steps:**
276
2771. Place 555 IC straddling center channel
2782. Connect pin 1 to GND, pin 8 to +5V
2793. Connect pin 4 to pin 8 (disable reset)
2804. Wire 10kΩ between pin 7 and +5V
2815. Wire 100kΩ between pins 6 and 7
2826. Wire 10µF between pin 6 and GND
2837. Connect pin 3 (output) to LED circuit
284
285## Troubleshooting
286
287| Issue | Solution |
288|-------|----------|
289| LED doesn't light | Check polarity (anode to +, cathode to -) |
290| Circuit doesn't power | Verify power rail connections |
291| IC not working | Check VCC and GND pin connections |
292| 555 not oscillating | Verify threshold/trigger capacitor wiring |
293| Microprocessor stuck | Check RESB is HIGH after reset pulse |
294
295## References
296
297Detailed component specifications are available in the bundled reference files:
298
299### Documentation
300- [555](references/555.md) — Complete 555 timer IC specification
301- [6502](references/6502.md) — MOS 6502 microprocessor details
302- [6522](references/6522.md) — W65C22 VIA interface adapter
303- [28256-eeprom](references/28256-eeprom.md) — AT28C256 EEPROM specification
304- [6C62256](references/6C62256.md) — 62256 SRAM details
305- [7400-series](references/7400-series.md) — TTL logic gate pinouts
306- [assembly-compiler](references/assembly-compiler.md) — Assembly compiler specification
307- [assembly-language](references/assembly-language.md) — Assembly language specification
308- [basic-electronic-components](references/basic-electronic-components.md) — Resistors, capacitors, switches
309- [breadboard](references/breadboard.md) — Breadboard specifications
310- [common-breadboard-components](references/common-breadboard-components.md) — Comprehensive component reference
311- [connecting-electronic-components](references/connecting-electronic-components.md) — Step-by-step build guides
312- [emulator-28256-eeprom](references/emulator-28256-eeprom.md) — Emulating 28256-eeprom specification
313- [emulator-6502](references/emulator-6502.md) — Emulating 6502 specification
314- [emulator-6522](references/emulator-6522.md) — Emulating 6522 specification
315- [emulator-6C62256](references/emulator-6C62256.md) — Emulating 6C62256 specification
316- [emulator-lcd](references/emulator-lcd.md) — Emulating a LCD specification
317- [lcd](references/lcd.md) — LCD display interfacing
318- [minipro](references/minipro.md) — EEPROM programmer usage
319- [t48eeprom-programmer](references/t48eeprom-programmer.md) — T48 programmer reference
320
321### Examples
322- [Circuit Build Examples](examples/circuit-build-examples.md) — Example circuit layouts and component configurations
323
324### Scripts
325- [Circuit Component Registry](scripts/circuit-component-registry.js) — Component registry for circuit mockups
326
327
328---
329
330## Related Skills
331
332- [frontend-design](../frontend-design/SKILL.md): Use it when the workflow also needs UI composition and front-end design direction.
333- [web-design-reviewer](../web-design-reviewer/SKILL.md): Use it when the workflow also needs browser-based UI review and responsive QA.
334- [stitch-design](../stitch-design/SKILL.md): Use it when the workflow also needs turning interface designs into implementation-ready assets.