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.
scripts/kicad_core/render.py
View on GitHub"""Text-rendering primitives shared by the analyzer text reports (kicad_core): the severity
normaliser, the text-report severity bucket, and small formatting fragments. Stdlib only."""
SEVERITY_ALIASES = {
# Legacy uppercase pre-v1.3 taxonomy
"CRITICAL": "error",
"HIGH": "error",
"MEDIUM": "warning",
"LOW": "info",
"INFO": "info",
# Lowercase legacy variants
"critical": "error",
"high": "error",
"medium": "warning",
"low": "info",
# v1.4 normalized vocab (pass-through)
"error": "error",
"warning": "warning",
"info": "info",
}
def summary_or_title(f):
"""A finding's one-line text: `summary`, else the pre-v3 EMC `title`."""
return f.get("summary") or f.get("title", "")
def normalize_severity(sev):
"""Map any severity string to the v1.4 normalized vocabulary.
Accepts legacy uppercase (CRITICAL/HIGH/MEDIUM/LOW/INFO) and v1.4
lowercase (error/warning/info). Returns one of {"error", "warning",
"info"}. Returns "info" for None, non-string, or unknown input.
Use this anywhere a consumer reads `finding["severity"]`: current
analyzers all emit the lowercase vocabulary, but saved outputs from
older versions and hand-written inputs may carry the uppercase one.
"""
if not isinstance(sev, str):
return "info"
return SEVERITY_ALIASES.get(
sev, SEVERITY_ALIASES.get(sev.upper(), "info"))
def severity_bucket(severity: str) -> str:
"""Text-report bucket. Differs from `normalize_severity` on `WARN` (→ warning here) and accepts `ERROR`; kept as a named adapter."""
s = (severity or '').upper()
if s in ('CRITICAL', 'HIGH', 'ERROR'):
return 'error'
if s in ('MEDIUM', 'WARNING', 'WARN'):
return 'warning'
return 'info'
def plural(n: int, noun: str) -> str:
"""'<n> <noun>' with an 's' appended unless n == 1."""
return f'{n} {noun}{"s" if n != 1 else ""}'
def finding_line(idx, severity, rule_id, summary) -> str:
"""One indented finding line: ' [idx] severity rule_id: summary'."""
return f' [{idx}] {severity} {rule_id}: {summary}'
def wrap_lines(text: str, width: int = 70, first: str = " ", cont: str = " ") -> list[str]:
"""Cut *text* into width-character chunks (no word breaking); the first gets *first*, the rest *cont*."""
return [(first if i == 0 else cont) + text[i:i + width] for i in range(0, len(text), width)]
def fmt_signed(value, digits: int = 1) -> str:
"""*value* with an explicit sign and *digits* decimals, e.g. '+1.5'."""
return f"{value:+.{digits}f}"
def fmt_g4(value) -> str:
"""*value* in general format with 4 significant digits."""
return f"{value:.4g}"
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: 321k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 321k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 321k | 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 |