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/diagnostics.py
View on GitHub"""Diagnostics: guarded failures that degraded a run, recorded instead of swallowed (kicad_core).
A guard that falls back (section omitted, fallback model used) calls ``record``: one stderr line
always, plus one ``Diagnostic`` dict appended when the caller threaded a list sink. Analyzer
envelopes carry the collected list as ``diagnostics`` (``[]`` when nothing degraded).
"""
import sys
from dataclasses import asdict, dataclass, field
@dataclass
class Diagnostic:
"""One guarded failure that degraded the run."""
source: str = field(metadata={
"description": "Where the guard sits: '<module>.<function>'."})
exception: str = field(metadata={
"description": "Exception class name, e.g. 'KeyError'."})
message: str = field(metadata={
"description": "str(exception), truncated to 200 characters."})
effect: str = field(metadata={
"description": "What the run did instead, e.g. 'power_rails config not applied'."})
class OnceSink(list):
"""A sink for repeated runs: ``record()`` drops a record equal to one the sink already
holds — no stderr line, no append."""
def record(sink, source: str, exc: BaseException, effect: str) -> None:
"""Print one stderr line for *exc*; append a Diagnostic dict when *sink* is a list."""
message = str(exc)[:200]
if isinstance(sink, list):
entry = asdict(Diagnostic(source=source, exception=type(exc).__name__,
message=message, effect=effect))
if isinstance(sink, OnceSink) and entry in sink:
return
sink.append(entry)
print(f"Warning: {source}: {type(exc).__name__}: {message} — {effect}", file=sys.stderr)
def merge(*sinks) -> list:
"""Concatenate diagnostic lists in argument order; None entries are skipped."""
out: list = []
for s in sinks:
if s:
out.extend(s)
return out
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 |