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/run_id.py
View on GitHub"""Run ID generation for analyzer provenance.
Format: ``YYYYMMDDTHHMMSSZ-<6 hex>``
Example: ``20260418T123456Z-a1b2c3``
- Timestamp portion: compact ISO-8601 UTC (sortable as a string).
- Random suffix: 6 hex chars from secrets.token_hex(3), giving ~2^24 =
16M distinct IDs per second. Good enough for this workload (a single
host runs one analyzer at a time; concurrent CI jobs across hosts
still have timestamp + hash discrimination).
Deterministic overrides accepted via the ``now`` and ``rand_hex`` kwargs
so tests can pin the output without mocking the clock or the RNG.
This is the provenance ID stamped into analyzer output. The folder name of
an analysis/ run (YYYY-MM-DD_HHMM) comes from
``analysis_cache.generate_run_folder_name``.
"""
from __future__ import annotations
import re
import secrets
from datetime import datetime, timezone
_HEX_RE = re.compile(r"^[0-9a-f]{6}$")
def generate_run_id(
now: datetime | None = None,
rand_hex: str | None = None,
) -> str:
"""Return a freshly generated run ID.
Parameters
----------
now : datetime, optional
Override the wall-clock timestamp. Defaults to ``datetime.now(UTC)``.
rand_hex : str, optional
Override the random suffix (must be exactly 6 lowercase hex chars).
Defaults to ``secrets.token_hex(3)``.
"""
if now is None:
now = datetime.now(timezone.utc)
timestamp = now.strftime("%Y%m%dT%H%M%SZ")
if rand_hex is None:
rand_hex = secrets.token_hex(3)
elif not _HEX_RE.match(rand_hex):
raise ValueError(
f"rand_hex must be exactly 6 hex chars (got {rand_hex!r})"
)
return f"{timestamp}-{rand_hex}"
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 |