DM // R1.0 · BUILD TUTORIAL WORKBENCH
ENV / SKEWBUILD TUTORIAL
On this page (6)
Overview

ENV / SKEW Build Tutorial: From Sketch to Eurorack Module & Companion Site

End-to-end human-in-the-loop workflow turning the Hagiwo Sketch into the 6 HP Eurorack ENV / SKEW module, mated 3U panel, and 25-route Companion Site.

MODULE6 HP × 3U · 2× TL074H
CURRICULUM9 Stages + OPT + 2 APP
EVIDENCE16 Traces · Trail @ 8ad81d0
6 HP · 30 × 128.5 mm

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.

Matte Black + ENIG Front Panel
Main PCB Front (F.Cu Controls)
Main PCB Rear (B.Cu 50-SMD PCBA)

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 --> S8

Prerequisites

ToolPurposeNotes
KiCad 10.0+Schematic/PCB CAD, bundled pcbnew Python API, and kicad-cliInstalled at /Applications/KiCad/KiCad.app on macOS
uvFast Python environment and package managerPin .venv to Python 3.12–3.14 for prebuilt skidl / h5py wheels
Cairo (pycairo) & PillowMulti-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 9Powers 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–9Used by /setup-matt-pocock-skills, /wayfinder, /to-tickets, and /implement-spec
ruffPython linter and formatterKeeps SKiDL, schematic, PCB, panel, artwork, and checklist-image scripts clean
vectorcraft-cli (Optional)Scriptable vector graphics engine for Stage 6 front-panel artworkNeeded only for custom Matte Black + ENIG Gold SVG artwork
InteractiveHtmlBom (v2.11+)KiCad PCB Editor plugin for Stage 7 THT assembly mapGenerates bom/ibom.html filtered to Manual THT

Controls, I/O & Test Points Summary

ReferenceComponent / ValueTaper / TypeFunction
RV1 (GAIN)100 kΩ100\text{ k}\Omega Potentiometer (Tayda A-1855)Audio / Log (A100K, RD901F)Input attenuator feeding switchless ×2.00 U1A preamp (Zin=90.9 kΩZ_{\text{in}} = 90.9\,\text{k}\Omega)
RV2 (ATK)1 MΩ1\text{ M}\Omega Potentiometer (Tayda A-1672)Audio / Log (A1M, RD901F)Fail-safe attack rheostat (0.29–289 ms FAST / 3.0 ms–3.00 s SLOW, 0→5 V0\rightarrow 5\text{ V})
RV3 (REL)1 MΩ1\text{ M}\Omega Potentiometer (Tayda A-1672)Audio / Log (A1M, RD901F)Fail-safe release rheostat (0.18–178 ms FAST / 1.84 ms–1.84 s SLOW, 5→0 V5\rightarrow 0\text{ V})
RV4 (OFFSET)10 kΩ10\text{ k}\Omega 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-RenvR_{\text{env}} 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 ∥\parallel 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 VV-to-II 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, fc=3.72 Hzf_c = 3.72\,\text{Hz}, Zin=90.9 kΩZ_{\text{in}} = 90.9\,\text{k}\Omega)
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 +(Venv+Voff)+(V_{\text{env}} + V_{\text{off}}) via R32 (1 kΩ)
J4 (INV_OUT)3.5 mm Mono Jack (WQP-PJ398SM)Switched THT (TN = NC)Inverted sidechain ducking output −(Venv+Voff)-(V_{\text{env}} + V_{\text{off}}) via R25 (1 kΩ)
J_PWR (PWR)2×5 Shrouded IDC Header (2.54 mm)10-Pin Eurorack (B.Cu)±12 V\pm 12\text{ V} & 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

  1. Stage 1: Hardware Agent Skills & Repo Setup — Install the 9 core hardware skills (plus optional vectorcraft-cli), set up .gitignore and README.md as 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 committing skills-lock.json (deferring the 39 mattpocock/skills workflow skills until Stage 8).
  2. 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.
  3. Stage 3: Interactive DesignSpec & Test Points — Walk through EnvelopeFollowerImprovements.md one improvement at a time via interactive Q&A (upfront 6 HP / 2× TL074H / musical context constraints, strategic UI deferral, live vendor checks) and add 12 probe-safe DNP test points (TP1–TP12) directly into a unified DesignSpec.md.
  4. Stage 4: SKiDL Capture & KiCad Schematic — Hand off DesignSpec.md to /skidl, build a project-local Dailywell 2MS1 switch footprint (Eurorack_Custom.pretty), enforce a strict 3-Extended-SKU budget across 50 SMDs (17 BOM rows, 80 netlist components, 48 nets), and drive a 9-section A3 .kicad_sch + PDF from build_circuit() with 4-layer netlist parity and visual crop verification.
  5. Stage 5: 6 HP PCB, silk_layout.json & /edit-silkscreen — Generate the 30.00 × 108.00 mm main PCB (83 footprints including 3 fiducials) with cross-layer collision checks, BFS routing debugging, and 3D render gates; extract silkscreen coordinates into declarative silk_layout.json (--silk-only, --sync-silk, --check-silk, --show-silk); and mint /edit-silkscreen for hybrid KiCad GUI + AI ruler-preview polishing.
  6. Stage 6: Mated 3U Front Panel & VectorCraft Artwork — Audit hardware switch drill mismatches (5.2 mm sub-mini toggle vs. 6.2 mm default), extend and upstream eurorack-panel (--blank-front, --spec-md, --drill, obstacle-aware B.SilkS), design Matte Black + ENIG Gold front artwork with /vectorcraft-cli (40 px/mm clearance audit + multi-turn visual critique), and import F.SilkS/F.Mask polygons into KiCad via SHAPE_POLY_SET with (stackup ...) injection.
  7. 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) with 81 deterministic Cairo PNG cards, filter InteractiveHtmlBom to the 18 Manual THT parts (bom/ibom.html), log real-world vendor substitutions (manufacturing/orders/tayda-1000489380.{md,tsv}), author 8 musical Patch Guides (patches/01–08), and run ruff hygiene + Living Context Map sync.
  8. Stage 8: Planning the Companion Site with /wayfinder — Layer mattpocock/skills (10 → 49 skills) + /setup-matt-pocock-skills onto the hardware repo, chart a /wayfinder map from one seed Prompt Block (Map #4), run parallel AFK wayfinder:research (SSG corpus audit + HAGIWO No. 43 provenance), settle GLOSSARY.md (5 archetypes) and 3-criteria ADR 0001 via HITL wayfinder:grilling, validate UX with throwaway HTML prototypes (c1547cb, 4baa64e), and compile Spec #17.
  9. Stage 9: Building, Reviewing & Shipping the Companion Site — Slice Spec #17 with /to-tickets + /implement-spec (PRs #29–#31), build an isolated Astro Core site (20 unmodified root .md files → 25 routes, 97 Static Passthroughs, 3 Native Web Components, 211-item localStorage checklists, Pagefind ⌘K), run zero-Chromium 2-seam CI (npm run check + 79 Vitest/happy-dom tests), resolve two-axis /code-review (56b323f) + live Chrome DevTools QA (PR #32), deploy via GitHub Pages OIDC, and transition README.md into a Repository Front Door.

Optional Exploration

  • Optional: AC/DC Input Coupling Mode — How to branch off EnvelopeFollowerImprovements.md when exploring optional features, and how adding a C7 AC/DC bypass switch (SW3) complements the main build’s dedicated J2 (SLEW IN) jack by unlocking DC-coupled precision full-wave CV rectification (2× LFO frequency doubling).

Tutorial Appendix

Type to search across all 13 ENV / SKEW Build Tutorial pages.

Figure Preview