kicad monkey v2026.11.30
On This Page (10)

kcr design

Generate a clean, agent-first KiCad design review bundle (D0 layout) from .kicad_pro or .kicad_sch files. Emits review_summary.json, bom.csv, notes.json, compilation.json, clean black-and-white schematic SVGs with SVG-space .layout.json bounding-box sidecars, and PCB artifacts (pnp.csv, board_summary.json, routing_context.json, copper-layer SVGs).

CommandAliasesCategoryRuntimeConfigGuide
kcr designkcr design-review, kcr drPCB Visualization & Design ReviewPython kcr + Native Rust k3None (CLI flags only)Rendering & Design Review: kcr design

Usage

sh
kcr design [-h] [-o OUTPUT] [--variant VARIANT]
    [--doc PCBDOC] [--include-source-docs]
    [--no-indexes] [--no-color]
    [file]

Native Rust CLI Equivalent (k3)

Implemented natively in k3 (aliases design-review, dr). Produces deterministic schematic SVGs, compiled schematic graph, enriched PCB copper SVGs, netlists, manifest (kicad_cruncher.design_review_manifest.d0), and README.

sh
k3 design [-o OUTPUT] [--variant NAME] [--doc BOARD] [--include-source-docs] [--no-indexes] [file]

Positional Arguments

ArgumentDescription
fileKiCad project or schematic file; optional when one .kicad_pro is in CWD

Options

FlagDescription
-o, --output OUTPUTOutput directory (default: ./output/design_review)
--variant VARIANTKiCad build variant name for BOM/PnP/component fitted resolution
--doc, --pcbdoc PCBDOCSelect a specific .kicad_pcb file to include in pcb/
--include-source-docsAlso export raw design JSON, netlist JSON, and .net under source_documents/
--no-indexesExclude lookup indexes from raw design JSON when --include-source-docs is set
--no-colorDisable ANSI colors and animated spinners

How It Works

kcr design (aliases kcr design-review, kcr dr) builds a self-contained, agent-first D0 design-review bundle from a KiCad project (.kicad_pro) or standalone schematic (.kicad_sch). Every artifact is written into a staging directory first and published atomically to -o <dir> (default ./output/design_review) only after every path listed in design_review_manifest.json is verified to exist inside the bundle.

Bundle Layout

PathSchema / FormatContents
README.mdMarkdownAgent-first navigation guide and quick component/net/sheet counts
design_review_manifest.jsonkicad_cruncher.design_review_manifest.d0Machine index of every written sheet, board, layer SVG, and optional source doc
design_review_report.jsonkicad_cruncher.design_review_report.a0Per-sheet render outcomes, warnings, and timings
review_summary.jsonJSONCompact LLM-first summary (components, nets, power rails, ERC hints, directives, notes, sheets, boards)
compilation.jsonJSONAuthoritative compiled schematic connectivity graph
bom.csvCSVVariant-resolved flat BOM
notes.jsonJSONConsolidated schematic text/notes with SVG bounding boxes
schematics/<Sheet>.svg + <Sheet>.layout.jsonSVG + JSONClean black-and-white schematic SVGs paired with SVG-space bounding boxes for sub-circuit cropping
pcb/CSV + JSON + SVGpnp.csv, board_summary.json, routing_context.json, manifest.json (kicad_cruncher.pcb_svg_manifest.a0), and layers/<LAYER>.svg copper-layer review plots
source_documents/ (opt-in)JSON + .netRaw design JSON, netlist JSON, and KiCad .net export when --include-source-docs is passed

Input Auto-Detection

When file is omitted, kcr design searches in strict order:

  1. A single *.kicad_pro in the current working directory.
  2. A single *.kicad_pro inside an immediate non-hidden child directory (matching acr dr repo-root convenience).

Only .kicad_pro and .kicad_sch inputs are accepted. Passing a .kicad_pcb directly fails with exit code 1 (pass the owning .kicad_pro and use --doc <board> to select a specific PCB).

Flag Interactions & Diagnostics

  1. --no-indexes requires --include-source-docs:
    • --no-indexes strips lookup index tables from the raw design JSON inside source_documents/. When --include-source-docs is not set, --no-indexes has no visible effect because source_documents/ is not emitted.
  2. Never-stop per-artifact diagnostics:
    • Boards with no Edge.Cuts outline still emit empty SVGs and record the warning "board has no outline on Edge.Cuts and nothing to plot" rather than aborting the schematic review bundle.
    • Schematic and PCB render diagnostics are captured inside design_review_report.json and design_review_manifest.json so reviewers see the complete picture in one pass.
  3. Python kcr design vs native Rust k3 design:
    • Both runtimes implement the identical D0 bundle contract, manifest schema, and CLI flags (k3 dr is typically much faster on large multi-sheet designs). See the Native Rust CLI (k3) Parity Guide.

Quick Examples

sh
# Generate a complete design review bundle from a KiCad project
kcr design project.kicad_pro -o output/design
sh
# Include KiCad source documents and index files
kcr design project.kicad_pro --include-source-docs -o output/design
sh
# Native Rust binary shorthand
k3 dr project.kicad_pro -o output/design
kicad-monkey v2026.11.30·Docs updated 2026.12.01 15:43 UTC (fd9b75b)