The ENV / SKEW Build Tutorial walks through the complete, human-in-the-loop workflow of turning the Hagiwo Sketch (HAGIWO/ハギヲ @solder_state, Project No. 43, $4 Envelope Follower module, 2022-01-28, YouTube 0eHllqHmlZQ) into the manufacturable 6 HP Eurorack ENV / SKEW module (Envelope Follower Mode + normal-switched Asymmetric Skew Limiter Mode, 2× TL074HIDR, 30.0 × 108.0 mm main PCB), a mated 3U Matte Black + ENIG Gold FR4 front panel (30.0 × 128.5 mm), and a 25-route single-source Companion Site using Python (SKiDL), KiCad 10, VectorCraft, /wayfinder, and Astro Core.
Architecture Pipeline
flowchart TD
S0["0. Hagiwo Sketch<br/>EnvelopeFollower.webp (HAGIWO No. 43)"]
subgraph HW["Hardware Build (Stages 1–7)"]
S1["1. Hardware Agent Skills & Repo Setup<br/>9 core skills + vectorcraft-cli,<br/>Living Context Map & /agy-customizations"]
S2["2. Multi-Scale Extraction & Critique<br/>EnvelopeFollower.md & critique sweeps<br/>(KCL checks & Python phase-margin)"]
S3["3. Interactive DesignSpec & DFT Pass<br/>One-at-a-time Q&A + TP1–TP12 (DNP)<br/>→ DesignSpec.md"]
S4["4. SKiDL Capture & KiCad Schematic<br/>envelope_follower.py (80 parts, 48 nets)<br/>+ 9-section A3 .kicad_sch & PDF"]
S5["5. 6 HP Main PCB & Silkscreen Polish<br/>generate_kicad_pcb.py + silk_layout.json<br/>+ /edit-silkscreen hybrid GUI/AI loop"]
S6["6. Mated 3U Panel & VectorCraft Art<br/>eurorack-panel --blank-front + spec<br/>→ /vectorcraft-cli → KiCad SVG import"]
S7["7. Fab, Checklists, Orders & Patch Guides<br/>Gerbers/CPL, 81 visual cards, THT iBOM,<br/>Tayda order, 8 Patch Guides & ruff"]
S1 --> S2 --> S3 --> S4
S4 --> S5
S4 --> S6
S5 --> S6
S5 --> S7
S6 --> S7
end
subgraph SITE["Companion Site (Stages 8–9)"]
S8["8. Companion Site Planning (/wayfinder)<br/>mattpocock/skills, Wayfinder map, research,<br/>grilling (GLOSSARY, ADR 0001), prototypes"]
S9["9. Companion Site Delivery & Launch<br/>Astro Core (20 .md → 25 routes), 2-seam CI,<br/>/code-review, Pages OIDC & Front Door"]
S8 --> S9
end
S0 --> S1
S7 --> S8Prerequisites
| Tool | Purpose | Notes |
|---|---|---|
| KiCad 10.0+ | Schematic/PCB CAD, bundled pcbnew Python API, and kicad-cli | Installed at /Applications/KiCad/KiCad.app on macOS |
uv | Fast Python environment and package manager | Pin .venv to Python 3.12–3.14 for prebuilt skidl / h5py wheels |
Cairo (pycairo) & Pillow | Multi-scale sketch crops (Stage 2) and 81 annotated PNG Build Checklist renders (Stage 7) | Install via uv (pycairo requires the system cairo C library on macOS/Linux) |
Node.js 24 LTS (node, npx, npm) | Installs agent skills (npx skills add) in Stages 1 & 8 and builds/checks site/ in Stage 9 | Powers the isolated Astro Core build, Vitest/happy-dom, and npm run check |
GitHub CLI (gh) | Manages Wayfinder map issues, blocked_by sub-issues, research PRs, and slices in Stages 8–9 | Used by /setup-matt-pocock-skills, /wayfinder, /to-tickets, and /implement-spec |
ruff | Python linter and formatter | Keeps SKiDL, schematic, PCB, panel, artwork, and checklist-image scripts clean |
vectorcraft-cli (Optional) | Scriptable vector graphics engine for Stage 6 front-panel artwork | Needed only for custom Matte Black + ENIG Gold SVG artwork |
InteractiveHtmlBom (v2.11+) | KiCad PCB Editor plugin for Stage 7 THT assembly map | Generates bom/ibom.html filtered to Manual THT |
Controls, I/O & Test Points Summary
| Reference | Component / Value | Taper / Type | Function |
|---|---|---|---|
RV1 (GAIN) | Potentiometer (Tayda A-1855) | Audio / Log (A100K, RD901F) | Input attenuator feeding switchless ×2.00 U1A preamp () |
RV2 (ATK) | Potentiometer (Tayda A-1672) | Audio / Log (A1M, RD901F) | Fail-safe attack rheostat (0.29–289 ms FAST / 3.0 ms–3.00 s SLOW, ) |
RV3 (REL) | Potentiometer (Tayda A-1672) | Audio / Log (A1M, RD901F) | Fail-safe release rheostat (0.18–178 ms FAST / 1.84 ms–1.84 s SLOW, ) |
RV4 (OFFSET) | Potentiometer (Tayda A-8401) | Linear Center-Detent (B10K, RD901F) | RC-filtered ±4.98 V linear offset (0.00% gain modulation, CW = +OUT) |
SW1 (SMOOTH) | Sub-Mini Vertical SPDT (Tayda A-6087) | Dailywell 2MS1T1B1M2QES (2.54 mm) | UP = SMOOTH (29.0 Hz split- T-filter, −11.1 dB @ 100 Hz, 0.00% DC loss); DOWN = RAW |
SW2 (FAST / SLOW) | Sub-Mini Vertical SPDT (Tayda A-6087) | Dailywell 2MS1T1B1M2QES (2.54 mm) | UP = SLOW (C12+C13 4.4 µF C11 470 nF = 4.87 µF nominal); DOWN = FAST (470 nF) |
LED1 (OUT) | 3 mm 2-Pin Anti-Parallel Red/Green (Tayda A-1076) | Bipolar THT (In-Loop U2D) | Post-offset active -to- indicator (R33 = 2.2 kΩ, +V = Green, −V = Red, 0.00 mA idle) |
J1 (IN) | 3.5 mm Mono Jack (WQP-PJ398SM) | Switched THT (TN → GND) | AC-coupled audio input (C7 = 470 nF film, , ) |
J2 (SLEW IN) | 3.5 mm Mono Jack (WQP-PJ398SM) | Switched THT (Normaled to FWR) | Unpatched = U1C FWR via R15 (1 kΩ); patched = DC-coupled 1.00 MΩ bipolar slew input |
J3 (OUT) | 3.5 mm Mono Jack (WQP-PJ398SM) | Switched THT (TN = NC) | Non-inverted envelope/skew output via R32 (1 kΩ) |
J4 (INV_OUT) | 3.5 mm Mono Jack (WQP-PJ398SM) | Switched THT (TN = NC) | Inverted sidechain ducking output via R25 (1 kΩ) |
J_PWR (PWR) | 2×5 Shrouded IDC Header (2.54 mm) | 10-Pin Eurorack (B.Cu) | & GND entry (B5819W + 10 Ω / 47 µF RC → ±11.54 V) |
TP1–TP12 (DNP) | Ronghe RH-5001 (LCSC C5199801) | Optional THT Loops (1.0 mm drill) | Rear B.Cu probing (GND, +12V, -12V, PRE, RECT, ENV, INV, OUT, HWR, DRV, OFF, GND2) |
Stage-by-Stage Guide
- Stage 1: Hardware Agent Skills & Repo Setup — Install the
9core hardware skills (plus optionalvectorcraft-cli), set up.gitignoreandREADME.mdas a Living Context Map, learn when to author repo-local skills vs. extend/upstream existing skills with/agy-customizations, and smoke-test skill upgrades before committingskills-lock.json(deferring the39mattpocock/skillsworkflow skills until Stage 8). - Stage 2: Sketch Extraction & Circuit Critique — Extract the Hagiwo Sketch (
EnvelopeFollower.md) with multi-scale Pillow crops, KCL cross-checks, and a Python BOM↔netlist pin-completeness assertion; then audit the analog circuit (EnvelopeFollowerImprovements.md) with Tier 1–3 triage and Python Bode/Nyquist phase-margin stability sweeps. - Stage 3: Interactive DesignSpec & Test Points — Walk through
EnvelopeFollowerImprovements.mdone improvement at a time via interactive Q&A (upfront 6 HP /2× TL074H/ musical context constraints, strategic UI deferral, live vendor checks) and add12probe-safeDNPtest points (TP1–TP12) directly into a unifiedDesignSpec.md. - Stage 4: SKiDL Capture & KiCad Schematic — Hand off
DesignSpec.mdto/skidl, build a project-localDailywell 2MS1switch footprint (Eurorack_Custom.pretty), enforce a strict 3-Extended-SKU budget across50SMDs (17BOM rows,80netlist components,48nets), and drive a 9-section A3.kicad_sch+ PDF frombuild_circuit()with 4-layer netlist parity and visual crop verification. - Stage 5: 6 HP PCB,
silk_layout.json&/edit-silkscreen— Generate the30.00 × 108.00 mmmain PCB (83footprints including3fiducials) with cross-layer collision checks, BFS routing debugging, and 3D render gates; extract silkscreen coordinates into declarativesilk_layout.json(--silk-only,--sync-silk,--check-silk,--show-silk); and mint/edit-silkscreenfor hybrid KiCad GUI + AI ruler-preview polishing. - Stage 6: Mated 3U Front Panel & VectorCraft Artwork — Audit hardware switch drill mismatches (
5.2 mmsub-mini toggle vs.6.2 mmdefault), extend and upstreameurorack-panel(--blank-front,--spec-md,--drill, obstacle-awareB.SilkS), design Matte Black + ENIG Gold front artwork with/vectorcraft-cli(40 px/mmclearance audit + multi-turn visual critique), and importF.SilkS/F.Maskpolygons into KiCad viaSHAPE_POLY_SETwith(stackup ...)injection. - Stage 7: Fabrication, Visual Checklists, Orders & Patch Guides — Export upload-ready dual-board Gerbers, routed-slot Excellon drills, and bottom-side CPL (
manufacturing/), pair PCB-verified Build Checklists (01,01b,02–05) with81deterministic Cairo PNG cards, filterInteractiveHtmlBomto the18Manual THTparts (bom/ibom.html), log real-world vendor substitutions (manufacturing/orders/tayda-1000489380.{md,tsv}), author8musical Patch Guides (patches/01–08), and runruffhygiene + Living Context Map sync. - Stage 8: Planning the Companion Site with
/wayfinder— Layermattpocock/skills(10→49skills) +/setup-matt-pocock-skillsonto the hardware repo, chart a/wayfindermap from one seed Prompt Block (Map#4), run parallel AFKwayfinder:research(SSG corpus audit + HAGIWO No. 43 provenance), settleGLOSSARY.md(5archetypes) and 3-criteria ADR0001via HITLwayfinder:grilling, validate UX with throwaway HTML prototypes (c1547cb,4baa64e), and compile Spec#17. - Stage 9: Building, Reviewing & Shipping the Companion Site — Slice Spec
#17with/to-tickets+/implement-spec(PRs#29–#31), build an isolated Astro Core site (20unmodified root.mdfiles →25routes,97Static Passthroughs,3Native Web Components,211-itemlocalStoragechecklists, Pagefind⌘K), run zero-Chromium 2-seam CI (npm run check+79Vitest/happy-domtests), resolve two-axis/code-review(56b323f) + live Chrome DevTools QA (PR#32), deploy via GitHub Pages OIDC, and transitionREADME.mdinto a Repository Front Door.
Optional Exploration
- Optional: AC/DC Input Coupling Mode — How to branch off
EnvelopeFollowerImprovements.mdwhen exploring optional features, and how adding aC7AC/DC bypass switch (SW3) complements the main build’s dedicatedJ2(SLEW IN) jack by unlocking DC-coupled precision full-wave CV rectification (2×LFO frequency doubling).
Tutorial Appendix
- Netlist, BOM & Silkscreen Schedule — Complete canonical design BOM (
50B.CuSMD +18Manual THT +12DNPtest points +3fiducials =83PCB footprints), exact17-rowjlcpcb_bom.csv, all48active nets with IC pin numbers,9-section manual KiCad capture checklist, and fullsilk_layout.jsonschedule. - Engineering Sign-Off Checklist — End-to-end verification summary spanning SKiDL capture,
9-section schematic parity,silk_layout.json+/edit-silkscreen, Matte Black + ENIG panel import,bom/ibom.html,81visual Build Checklist renders, real-world order logs,8Patch Guides, and Companion Site verification & launch (8ad81d0). - GitHub Repositories & Live Companion Site — Build Tutorial source (
16Session Traces underprompts/and Apache 2.0 License), pinnedEnvelopeFollowerWithSkewLimiter(reference/@8ad81d0), and the liveENV / SKEWCompanion Site.