KiCad .kicad_pro project; optional when one .kicad_pro is in CWD
Options
Flag
Description
-o, --outputOUTPUT
Output directory (default: ./output/megamaid)
--dedupeDEDUPE
Dedupe policy for internal extraction. Choices: name, fingerprint.
--no-embed-models
Do not copy board-level embedded model payloads into extracted footprints
--no-embed-external-models
Do not embed resolvable external STEP/STP model references into extracted footprints
--all-embedded-models
Scan the full project and write every embedded STEP/STP payload to models/
--include-asset-scan
Include full project asset/model scan in library_extraction.json
--validate-kicad-cli
Validate generated libraries with kicad-cli; project-lib apply mode also runs a before/after schematic ERC library-hygiene gate
--kicad-cliKICAD_CLI
Explicit 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:
symbols/ and footprints.pretty/ — cleaned symbols and footprints (mode internal, with embedded STEP models preserved by default).
Turning a project's parts into metadata-preserving local libraries
Flag Semantics & Validation
--dedupe {name,fingerprint}:
name(default) deduplicates extracted symbols/footprints by name.
fingerprint deduplicates by geometric/structural content fingerprint.
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/.
--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.