/jitx-skills:jitx-project-builderfrom jitx-skills
Guides Claude through a phased workflow for designing complete PCBs in JITX, from requirements to verified board. Handles tier classification, project planning, architecture docs, phase gates, and design audits.
Ships in jitx-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The complete-board workflow: requirements in, a buildable and verified board out, built by parallel sub-agents under phase gates. Run the base jitx skill's environment setup first; this skill assumes a working CLI, runtime and scripts/check.py.
STOP. Classify first. Before any architecture proposal, parts research, design prose, code, or
Skill(...)invocation other than environment probes, your first observable action must be a chat line of the form:Workflow tier:
single-task|complete-board— because<one-sentence reason>For
complete-board, the next observable action must be writingPLAN.md(andARCHITECTURE.md). Verbal architecture proposals, parts-list bullets, "here's what I'll build" prose, orWrite(...)of code beforePLAN.mdexists are explicitly invalid work for a complete-board project — they must be backed out before the workflow can continue.If you find yourself already typing "Big design — here's my proposed architecture..." or "I'll set up the skeleton and start filling in components", you have skipped Phase 0. Stop, classify, and create
PLAN.mdfirst.This callout exists because the prior failure mode was exactly this: the agent jumped from request to architecture prose to component files without classifying, never entered Phase 0, and bypassed every Pass 1–5 enforcement.
After environment setup, classify the work into one of two tiers. The tier names which output blocks are required and whether the formal Phase 0 → Phase 4 chain applies. Every tier requires a task acceptance block for each unit of work — no exceptions.
| Tier | When | Required output | Path |
|---|---|---|---|
| single-task | One subskill against one artifact: a component, a circuit, a substrate, a constraint set, a pin-assignment wrapper. No top-level assembly. | Task acceptance block in chat | Invoke the subskill directly |
| complete-board | Anything beyond a single isolated artifact — anything that produces a buildable board, no matter how few components. | Task acceptance block per task + phase exit gate blocks + Phase 3b audit + Phase 4 verification | Full Project Builder Workflow below |
If you're tempted to call something "small" or "trivial" to avoid the workflow, classify it as complete-board. The Phase 0–4 ceremony is cheap on a small board (a few extra block emissions); the cost of skipping it on a real board is shipping with required features missing. The original failure mode of this skill was exactly the "looks small, skip the workflow" escape hatch.
For tier definitions, the task acceptance block, phase exit gate blocks, the Phase 3b design audit block, and the Phase 4 verification block: read references/completion-blocks.md.
Do NOT skip the planning phase for complete-board designs. Do not start exploring libraries or writing code until PLAN.md exists.
For building complete JITX designs from requirements — multiple components, substrate, circuits, and constraints assembled into a working board. Use this when the design involves 3+ components with a substrate and interconnected circuits.
| Phase | What | Parallelism |
|---|---|---|
| 0 | Requirements analysis, decompose into tasks, create PLAN.md | Orchestrator only |
| 1 | Model substrate + all components | Fully parallel sub-agents |
| 2 | SI constraints, pin assignment, circuit wiring | Clustered parallel |
| 3 | Top-level assembly (instantiate, connect, constrain) | Single agent |
| 3b | Design-level analysis + loopback (voltage domains, bus contention, missing components, SI) | Orchestrator — loops back to fix upstream |
| 4 | Build, verify DRC + SI, iterate on failures | Single agent |
For full phase details and gate criteria: read references/project-builder-flow.md
For how to decompose requirements into tasks: read references/decomposition-guide.md
For PLAN.md format: read references/plan-template.md
For ARCHITECTURE.md format: read references/architecture-template.md
This section applies only to the complete-board tier. single-task work is exempt.
CD-1: Datasheets are read where the reading is cheap and verified where the reader is independent.
| Reader | Reads | Writes |
|---|---|---|
| Extraction sub-agent (usually the component-modeling sub-agent) | the datasheet PDF | datasheets/<MPN>.spec.md, at most 400 words, per references/datasheet-spec-template.md, citing the pages it used |
| Building sub-agents (circuit, assembly, pin-assignment, constraints) | the spec note; the PDF only to resolve an item under Open questions, then it updates the note | design code |
| Orchestrator, acceptance review | the PDF pages the note cites for the items being checked; never the note as the evidence, never the whole PDF | nothing under <ns>/ |
| Phase 3b audit agent, outside-voice reviewer | the PDF | findings only; the audit agent edits nothing |
Where a note and the datasheet disagree, the note is the defect: a fix sub-agent corrects the note, a re-audit confirms it, and only then is a fix dispatched against the code. The orchestrator sends an unresolved item back to a sub-agent rather than opening the PDF itself. "Re-examine the datasheet" in references/task-execution.md means re-examine the cited spec note for complete-board building work.
CD-2: The orchestrator does not author design code. It creates and edits only PLAN.md, ARCHITECTURE.md, and files under scripts/. A sub-agent writes every file under the project namespace <ns>/, including one-line fixes. The orchestrator reads code during acceptance review but does not write it. If spawning feels heavy for a fix, batch the fix into the next sub-agent rework cycle.
CD-3: A sub-agent returns its acceptance block and nothing else (or blocked: build prompt with the lines the build printed, task-execution Step 7). No transcript, narration, or restated file contents. It names each written file by path in the block; the orchestrator reads it from disk if needed.
The rule is the base skill's Build safety. Phase 1 sub-agents can run in parallel, each working on its own component file and its own test design. They are not running concurrent builds of the same design. Phase 2/3/4 builds are inherently sequential.
Copy scripts/grep_gates.py and scripts/check.py from the base jitx skill into the
project's scripts/ directory. A design with pours, stitching or code-placed
copper gets a realization check, which the assembly task writes per jitx-code-layout
"Verification", at <ns>/designs/check_layout_<name>.py: it submits the
design, captures it, asserts each authored pour, stitch target and code route
from the capture, and exits nonzero on a miss. Run it from the project root as
python -m <ns>.designs.check_layout_<name> while the project's runtime is running.
SI constraints need no copied script. Each design whose SI constraints are
checked gets a report script under <ns>/, at <ns>/designs/check_si_<name>.py:
the Python check in jitx-interconnect-constraints "Verification" (its body
in main() behind the __name__ guard) with that design imported, run from
the project root as
python -m <ns>.designs.check_si_<name> while the project's runtime is running.
This skill's scripts/plan_status.py is copied when PLAN.md is created as
described below. Sub-agents and the
orchestrator at every phase exit gate run the single static-check entry point
against the project's Python package (e.g. <ns>/) to enforce lint, formatting,
type, and JITX grep-gate checks:
python scripts/check.py <ns>/
Use --build <module.path.DesignClass> when the verification also requires a build. The command prints one summary line per check. Those exact lines populate the matching acceptance-block fields. The grep gates line reports hard-fail hits, which block task acceptance and gate transitions, and review-required hits, which need a disposition in the task acceptance block. Pattern set and disposition rules: references/completion-blocks.md "Grep Gate Patterns".
Sub-agent work goes through TWO quality checks before being accepted:
1. Sub-Agent Self-Validation ("Think Twice")
After initial implementation, sub-agents MUST stop and run the domain-specific checklist against the cited datasheet spec note for complete-board work or the datasheet for single-task work. This forced second pass typically catches 3-5 missed details (floating enable pins, missing thermal pads, wrong output types, forgotten decoupling). Sub-agents return a task acceptance block documenting what they checked and fixed. The block is mandatory; "build clean" is not a substitute. See references/completion-blocks.md for the template.
2. Orchestrator Acceptance Review
The orchestrator does NOT blindly trust the self-validation block. For each returned task:
python scripts/check.py <ns>/ --build <module.path.DesignClass> for critical tasks)A task without an acceptance block is in-progress, not done. Phase gates only open when ALL tasks in the phase have Verdict (acceptance): accept blocks.
For the full protocol: read references/task-execution.md
For block templates: read references/completion-blocks.md
For domain checklists: read references/domain-checklists.md, then open every linked checklist that applies. Net-class guidance lives in references/net-classes.md.
| Gate | Key Criteria |
|---|---|
| 0 → 1 | PLAN.md created with all tasks, data source audit approved, user approved plan |
| 1 → 2 | All components + substrate build individually, acceptance reviews passed; Dispatch: N, B, C recorded; for N >= 3, both B == N and C < 3 fail unless each serialized task names the dependency that forced it |
| 2 → 3 | All circuits build, constraint classes valid, provide/require interfaces consistent |
| 3 → 3b | Top-level assembles, all nets connected, power tree complete |
| 3b → 4 | Design-level analysis passed: voltage domains correct, no bus contention, no missing components, SI constraints functional. All blocking issues fixed via loopback. |
Do NOT proceed past a gate if any task has unresolved failures. Fix upstream before moving downstream.
The agent selects parts based on engineering requirements first. Data for each component comes from the user-approved data source plan (see Phase 0 data audit).
Data sources (in priority order):
.kicad_mod. A third-party footprint needs the user's per-project approval (references/parts-sourcing.md; LCSC: jitx-jlcpcb).For non-standard packages (connectors, RF modules): jitx-component-modeler reads the .kicad_mod and writes each entry into the component. NEVER hand-craft pad positions for a purchasable part. Standard packages use built-in JITX generators. All symbols use BoxSymbol. Exception: mechanical / vendor-defined footprints (Tag-Connect, pogo-pin fixtures, castellations, fiducials) where no purchasable component exists — see references/parts-sourcing.md "Mechanical / Vendor-Defined Footprints".
For details: read references/parts-sourcing.md
Standard JITX project layout — what jitx project layout init seeds, plus the conventional subdirs for larger projects:
project/
├── pyproject.toml # Project config with JITX deps
├── <namespace>/ # Flat package (NOT src/<namespace>/)
│ ├── __init__.py
│ ├── main.py # Seeded Design class; the top-level design for a single-design project
│ ├── substrate.py # Substrate definition, or the predefined-class import (add as needed)
│ ├── components/ # Custom component definitions (the scaffold seeds resistor.py)
│ │ ├── <category>/ # mcus, connectors, power, etc.
│ │ │ └── <mfr>_<mpn>.py
│ │ └── __init__.py
│ ├── circuits/ # Reusable circuit blocks (add as needed)
│ │ └── power/ # One module per rail or power group
│ ├── constraints/ # SI constraint classes, one module per protocol (add as needed)
│ └── designs/ # Additional top-level designs, when a project carries more than one
├── designs/ # Build output directory (created on first build)
├── .socket.jitx # Written by `jitx runtime start --background`
├── .jitx/logs/ # Runtime logs (written by the daemon)
└── .venv/ # Virtual environment
The orchestrator creates and maintains these in the project root. Give every fact one owner and refer to the owning document by section name instead of copying it:
scripts/plan_status.py into the project scripts/ directory. Change a task status only with python scripts/plan_status.py <task-id> <status> [--note "<short note>"]; inspect statuses with python scripts/plan_status.py --show [<task-id>]. (plan-template.md owns the status rule.) Prose edits that add tasks, gate outcomes, or modification history are unaffected.evals/cases/blocks-live-in-chat.json (opens in a new tab)evals/cases/cross-file-consistency.json (opens in a new tab)evals/cases/every-task-verifiable.json (opens in a new tab)evals/cases/no-fab-named-asks.json (opens in a new tab)evals/cases/no-rule-restatement.json (opens in a new tab)evals/cases/one-owner-per-fact.json (opens in a new tab)evals/cases/phase0-doc-economy.json (opens in a new tab)evals/cases/structural-templates.json (opens in a new tab)evals/eval-contract.yaml (opens in a new tab)evals/routing.jsonl (opens in a new tab)references/architecture-template.md (opens in a new tab)references/completion-blocks.md (opens in a new tab)references/datasheet-spec-template.md (opens in a new tab)references/decomposition-guide.md (opens in a new tab)references/domain-checklists.md (opens in a new tab)references/domains/component-modeling.md (opens in a new tab)references/domains/external-interfaces.md (opens in a new tab)references/domains/general-gotchas.md (opens in a new tab)references/domains/interface-circuits.md (opens in a new tab)references/domains/layout-constraints.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jitx-inc/jitx-skills --plugin jitx-skills13 skills in this plugin
/jitxBase skill for JITX Python PCB design: install, the jitx CLI, auth and the runtime, building designs, the viewers, exports, code quality (ruff, pyright, type annotations, check.py and grep gates), and design introspection (jitx.inspect, jitx.query, runtime submit). Use to set up JITX, start the runtime, build or find a design, open the viewer, fix a build or environment error, or find things in a design from Python. Route a whole board from requirements to jitx-project-builder, code self-review to jitx-code-review, component modeling to jitx-component-modeler, wiring and passives to jitx-circuit-builder, stackups to jitx-substrate-modeler, layout in code and realized-geometry checks to jitx-code-layout, open-layout place and route to jitx-interactive-layout, design rules, stitching, fencing and routing structures by tag to jitx-layout-constraints, SI constraints to jitx-interconnect-constraints, pin flexibility to jitx-pin-assignment, mechanical CAD to jitx-mechanical, and JLCPCB fab and parts to jitx-jlcpcb./jitx-circuit-builderUse when the user asks to "wire up", "connect", "build a circuit", create an "application circuit", declare a circuit's typed ports or bundles (Power, I2C, RGMII), compose sub-circuits into a hierarchy and connect them port to port, "place components" or sub-circuits (fixed or floating), add passives (resistors, capacitors, inductors) or decoupling, or set up power connections. Covers the Circuit class, nets and the + operator, typed ports, hierarchy, placement, and jitxlib-parts passives. Drawing a pour or copper is jitx-code-layout; pour rules are jitx-layout-constraints; provide/require pin assignment is jitx-pin-assignment./jitx-code-layoutUse when the user asks to write a fixed PCB layout in Python: place vias, and parts relative to another instance (Circuit.place), code routes through control points (RoutePoint, PairPoint, PairInsertion), Route.Sketch, Route.Config, a Route.Target taper, narrowing a route in a BGA field or a fine-pitch pad, escape or fanout geometry fixed by a stated number or pad geometry, a connector launch on its pad axis, serpentine or deskew settings on a matched section, thermal vias in an exposed pad, pours, keepouts, cutouts, Copper or OverlappableCopper (antennas, net ties), or reading the realized layout back (capture, Empty pours, 'Unable to find path'). Sorts control points between code and jitx-interactive-layout. Tag rules, escape width rules, stitching and fencing go to jitx-layout-constraints; stackups, vias and structure definitions to jitx-substrate-modeler; land-pattern mask, paste and thermal pads to jitx-component-modeler; nets and passives to jitx-circuit-builder; timing to jitx-interconnect-constraints./jitx-code-reviewSame-model self-critique pass for JITX Python code just written in this workspace. Use when the user asks to "review my JITX code", "self-critique", "check JITX conventions", "find string-hacking", "check framework-boundary issues", "audit before merge", or any equivalent. Mandatory for complete-board tier at task acceptance (folds into Think Twice); user-invoked for single-task work. Catches the architectural failure modes that grep gates and static linters miss — parallel string-keyed models, reflection-as-iteration (regardless of whether on self), owner-shaped data misplaced in design code, build-spec-then-iterate, module-import-time parallel models, and framework-boundary-bypass (the "framework does it, therefore so can I" trap). Applies an ownership test to every banned-pattern hit or proposed exception. Produces severity-tagged findings (CRITICAL / WARNING / NOTE) that fold into the task acceptance block./jitx-component-modelerCreate JITX Python component code from datasheets, KiCad footprints, vendor pin files, or user specifications. ALWAYS use this skill when user asks to "create a component", "model a part", "generate a component", "add a component", or "make a JITX component" - even without a datasheet. Also triggers on part numbers (NE555, LM1117, RP2040) and package types (SOIC, QFN, BGA, SON, SOT). Covers JITX generators for standard packages, a vendor's KiCad footprint read directly for non-standard ones, multi-unit symbols, thermal pads, pin mappings, and datasheet checks with jitx.test.TestCase. Also covers generating from a vendor's machine-readable pinout file rather than a drawing ("generate the FPGA from the pin file", "parse the package pinout file", "model this 1000-ball BGA"): parse-don't-transcribe, reconcile the ball inventory before emitting, and a committed generator with a regenerate-and-diff check. For choosing and placing an ordinary queried passive, use jitx-circuit-builder instead./jitx-interactive-layoutUse when the user asks to place components, route nets, drop vias, add pair insertions or route points, or draw pours in the open board layout from a script, so the result stays editable in the board editor: place and route a board or circuit, fan out a BGA, route DDR byte lanes, change a layout the user edited by hand, fix blocked routes, report layout issues or skew margin. Runs Python against a live design through jitx design session and jitx design exec, with the rd.layout requests (place, route, via, route_point, pair_insertion, region, modify, delete), and reads the result back through route status, rd.issues() and the bundled checks. Assumes the layout constraints are already in the design. Design rules, net classes, tags and escape-width rules in code belong to jitx-layout-constraints; decoupling modules to jitx-circuit-builder; copper, code-placed vias, code Route objects and control points in code to jitx-code-layout; topology, timing and skew constraints to jitx-interconnect-constraints.Other plugins' skills for the same job