kicad monkey v2026.11.30
On This Page (8)

kcr megamaid

Extract cleaned symbols, footprints, metadata, embedded STEP models, all decoded embedded project assets, design JSON, netlists, schematic SVGs, and PCB review SVGs into a non-destructive megamaid project dissection bundle.

CommandAliasesCategoryRuntimeConfigGuide
kcr megamaid—Projects, Libraries & AssetsPython kcrNone (CLI flags only)—

Usage

sh
kcr megamaid [-h] [-o OUTPUT] [--dedupe {name,fingerprint}]
    [--no-embed-models]
    [--no-embed-external-models]
    [--all-embedded-models] [--include-asset-scan]
    [--validate-kicad-cli] [--kicad-cli KICAD_CLI]
    [file]

Positional Arguments

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

Options

FlagDescription
-o, --output OUTPUTOutput directory (default: ./output/megamaid)
--dedupe DEDUPEDedupe policy for internal extraction. Choices: name, fingerprint.
--no-embed-modelsDo not copy board-level embedded model payloads into extracted footprints
--no-embed-external-modelsDo not embed resolvable external STEP/STP model references into extracted footprints
--all-embedded-modelsScan the full project and write every embedded STEP/STP payload to models/
--include-asset-scanInclude full project asset/model scan in library_extraction.json
--validate-kicad-cliValidate generated libraries with kicad-cli; project-lib apply mode also runs a before/after schematic ERC library-hygiene gate
--kicad-cli KICAD_CLIExplicit kicad-cli executable for --validate-kicad-cli

How It Works

kcr megamaid performs a non-destructive, complete project dissection of a .kicad_pro, writing every library, embedded asset, and design-review artifact into -o <dir> (default ./output/megamaid) without ever modifying your source KiCad files.

It combines cleaned library extraction with full embedded-asset decoding and a complete design-review bundle:

megamaid vs lib-extract vs project-lib

CommandMutates Project?Skips Power Symbols?Writes embedded_assets/ & design_review/?Best For
kcr megamaidNoNo (keeps all symbols)YesArchival dissection, forensics, and full review + asset snapshots
kcr lib-extractNoYes (drops power symbols)NoClean library ingestion pipelines (e.g. lib_cruncher)
kcr project-libOptional (--relink-sources, table updates)NoNoTurning a project's parts into metadata-preserving local libraries

Flag Semantics & Validation

  1. --dedupe {name,fingerprint}:
    • name (default) deduplicates extracted symbols/footprints by name.
    • fingerprint deduplicates by geometric/structural content fingerprint.
  2. Embedded 3D model flags:
    • By default, board-level embedded STEP payloads and resolvable external STEP/STP references are embedded into extracted footprints. Pass --no-embed-models to skip copying board-level embedded payloads, or --no-embed-external-models to skip resolving/embedding external STEP files.
    • Pass --all-embedded-models to scan the entire project and dump every embedded STEP/STP payload into models/.
  3. --validate-kicad-cli & --kicad-cli <PATH>:
    • Validates the generated symbol/footprint libraries using kicad-cli (auto-discovered unless --kicad-cli is given). If validation fails, artifacts remain on disk for inspection and kcr megamaid exits with code 1.

Quick Examples

sh
# Build a non-destructive project dissection bundle (libraries, models, SVGs, netlists)
kcr megamaid project.kicad_pro -o output/megamaid
kicad-monkey v2026.11.30·Docs updated 2026.12.01 15:43 UTC (fd9b75b)