hashgraph-online/awesome-codex-plugins / plugins/aklofas/kicad-happy/skills/kicad
kicad
VerifiedAnalyze KiCad projects and PDF schematics: schematics, PCB layouts, Gerbers, footprints, symbols, netlists, and design rules. Reviews designs for bugs, traces nets, cross-references schematic to PCB, extracts BOM data, checks DRC/ERC, DFM, power trees, and regulator circuits. Every finding carries a confidence label and evidence source with trust_summary rollup. Analyzes PDF schematics from dev boards, reference designs, eval kits, and datasheets. Supports KiCad 5–10. Use whenever the user mentions .kicad_sch, .kicad_pcb, .kicad_pro, PCB design review, schematic analysis, PDF schematics, reference designs, Gerber files, DRC/ERC, netlist issues, BOM extraction, signal tracing, power budget, DFM, or wants to understand, debug, compare, or review any hardware design. Also for "check my board", "review before fab", "what's wrong with my schematic", "is this ready to order", "check my power supply", "verify this circuit", OSHWA certification readiness, or any electronics/PCB design question.
review/scripts/validate_review.py
View on GitHub"""Standalone CLI to validate a review_annotations.json file.
Exit codes:
0 — valid
1 — schema invalid
2 — I/O / argument error
JSON output format (with --json):
{"valid": bool, "errors": [<str>, ...], "review_path": "..."}
"""
from __future__ import annotations
import argparse
import json
import sys
from pathlib import Path
SCHEMA_PATH = (Path(__file__).resolve().parents[1] / "schemas"
/ "review_annotations.schema.json")
def main():
p = argparse.ArgumentParser(description="Validate review_annotations.json against schema.")
p.add_argument("--review", required=True, type=Path)
p.add_argument("--json", dest="emit_json", action="store_true")
args = p.parse_args()
try:
review = json.loads(args.review.read_text(encoding="utf-8"))
except FileNotFoundError:
msg = f"review file not found: {args.review}"
if args.emit_json:
print(json.dumps({"valid": False, "errors": [msg],
"review_path": str(args.review)}))
else:
print(msg, file=sys.stderr)
return 2
except (json.JSONDecodeError, RecursionError) as e:
msg = f"review JSON malformed: {e}"
if args.emit_json:
print(json.dumps({"valid": False, "errors": [msg],
"review_path": str(args.review)}))
else:
print(msg, file=sys.stderr)
return 2
# Stdlib-only mini-validator. Matches jsonschema's
# iter_errors() surface for backward-compat with the prior consumer.
from _mini_jsonschema import iter_errors
schema = json.loads(SCHEMA_PATH.read_text(encoding="utf-8"))
errors = sorted(iter_errors(review, schema),
key=lambda e: list(e.path))
error_msgs = [f"{'/'.join(str(p) for p in e.path)}: {e.message}" for e in errors]
if args.emit_json:
print(json.dumps({
"valid": len(errors) == 0,
"errors": error_msgs,
"review_path": str(args.review),
}, indent=2))
else:
if errors:
for msg in error_msgs:
print(f" {msg}", file=sys.stderr)
else:
print(f"valid: {args.review}")
return 0 if not errors else 1
if __name__ == "__main__":
for _stream in (sys.stdout, sys.stderr): # UTF-8 on a cp1252 pipe (Windows)
if hasattr(_stream, "reconfigure"):
_kw = {"newline": "\n"}
if (getattr(_stream, "encoding", "") or "").lower().replace("-", "") != "utf8":
_kw.update(encoding="utf-8", errors="backslashreplace")
_stream.reconfigure(**_kw)
sys.exit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |