From claude-resources
Fixes SVG files for KiCad PCB import: splits compound paths with holes into separate paths, scales Illustrator 72 DPI exports to KiCad 96 DPI, inlines CSS styles.
npx claudepluginhub takazudo/claude-resourcesThis skill is limited to using the following tools:
Fix SVG files exported from Illustrator (or similar) for clean KiCad PCB import.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Share bugs, ideas, or general feedback.
Fix SVG files exported from Illustrator (or similar) for clean KiCad PCB import.
<path> elements.1.33350873. Fix: scale all coordinates.<defs>/<style> and CSS classes. Fix: replace with inline stroke/fill attributes.Run the bundled script:
python3 $HOME/.claude/skills/kicad-svg-fix/scripts/fix-svg-for-kicad.py INPUT.svg [OUTPUT.svg] [--scale FACTOR] [--no-scale]
INPUT-fixed.svg (same directory)1.33350873--no-scale: only split compound paths and clean styles, skip scaling--scale 1.5: use custom scale factor| Use case | Layer | Notes |
|---|---|---|
| Board outline | Edge.Cuts | Hole = actual cutout in PCB |
| Silkscreen logo | F.Silkscreen | KiCad draws strokes, not fills |
| Copper shape | F.Cu | Use filled zones instead |
If the script doesn't cover a specific case:
pip install svg2mod
svg2mod -i input.svg -o output.kicad_mod
Converts SVG directly to KiCad footprint (.kicad_mod), handles holes better than native SVG import.