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/envelopes/thermal.py
View on GitHub"""Thermal analyzer output envelope."""
from __future__ import annotations
import os
import sys
from dataclasses import dataclass, field
from typing import Optional
# Make shared primitives importable when this module is loaded from
# tests, from the analyzer, or via generator tooling.
_HERE = os.path.dirname(os.path.abspath(__file__))
_PARENT = os.path.dirname(_HERE)
if _PARENT not in sys.path:
sys.path.insert(0, _PARENT)
from analyzer_envelope import ( # noqa: E402
TrustSummary, Finding, Assessment, BySeverity, InputsBlock, CompatBlock, Diagnostic,
)
@dataclass
class ThermalHottest:
ref: str = field(metadata={
"description": "Reference designator of the hottest analyzed component."})
tj_estimated_c: float = field(metadata={
"description": "Estimated junction temperature (°C) of the hottest component."})
@dataclass
class ThermalSummary:
total_findings: int = field(metadata={"description": "Count of findings[]."})
components_assessed: int = field(metadata={
"description": "Number of components for which thermal estimation ran."})
active: int = field(metadata={
"description": "Non-suppressed findings count."})
suppressed: int = field(metadata={
"description": "Findings suppressed by project config."})
by_severity: BySeverity = field(metadata={
"description": "Breakdown by severity bucket."})
thermal_score: Optional[float] = field(metadata={
"description": "Composite thermal risk score, 0-100. None when no "
"components were assessable (see skipped_reason) — a "
"100/100 default in that case would falsely suggest a "
"clean thermal pass."})
total_board_dissipation_w: float = field(metadata={
"description": "Sum of estimated dissipation (W) across all analyzed components."})
components_analyzed: int = field(metadata={
"description": "Number of components that received a full thermal assessment "
"(may differ from components_assessed if some were filtered)."})
components_above_85c: int = field(metadata={
"description": "Count of components with estimated Tj above 85 °C."})
components_above_tjmax: int = field(metadata={
"description": "Count of components with estimated Tj above their datasheet Tj_max."})
ambient_c: float = field(metadata={
"description": "Ambient temperature (°C) used for the thermal model."})
hottest_component: Optional[ThermalHottest] = field(default=None, metadata={
"description": "Hottest analyzed component by estimated Tj. "
"Omitted when no components were assessed."})
skipped_reason: Optional[str] = field(default=None, metadata={
"description": "Why thermal scoring was skipped (thermal_score is "
"None). Present only when no components could be "
"assessed — e.g., missing MPNs or no datasheet "
"extraction cache. F3."})
components_skipped: int = field(default=0, metadata={
"description": "Count of power components (regulators) that could "
"not be assessed and were dropped from power-"
"dissipation estimation — e.g. a switching regulator "
"whose rail has no load estimate. See top-level "
"skipped_components for the per-component detail."})
@dataclass
class ThermalSkipped:
ref: str = field(metadata={
"description": "Reference designator of the power component that "
"could not be assessed."})
value: str = field(metadata={
"description": "Component value/MPN string."})
reason: str = field(metadata={
"description": "Why the component was skipped: 'no_load_estimate' "
"(switching regulator with zero/absent "
"estimated_load_mA on its output rail), 'no_vout' "
"(no estimated output voltage), 'below_min_pdiss' "
"(a real estimate at or below the reporting threshold), "
"'no_pdiss_estimate' (LDO whose upstream "
"power_dissipation was never computed), or "
"'no_operating_current' (current-sense shunt: only "
"the sense range is known, not the load)."})
@dataclass
class ThermalMissingInfo:
default_rtheta_ja: list[str] = field(default_factory=list, metadata={
"description": "Component references that used a package-default Rθ_JA "
"because no datasheet value was available. Empty when "
"every assessed component had a datasheet-sourced "
"Rθ_JA."})
default_tj_max: list[str] = field(default_factory=list, metadata={
"description": "Component references that used a default max junction "
"temperature (typically 125 °C). Empty when every "
"assessed component had a datasheet-sourced Tj_max."})
@dataclass
class ThermalEnvelope:
"""Top-level output of analyze_thermal.py."""
analyzer_type: str = field(metadata={
"description": "Always 'thermal'.",
"const": "thermal"})
schema_version: str = field(metadata={
"description": "Schema semver. Value: '1.4.0'.",
"const": "1.4.0"})
# --- Provenance ---
inputs: InputsBlock = field(metadata={
"description": "Source JSON inputs, sha256s, run_id, plus upstream "
"artifact metadata (schematic, pcb)."})
compat: CompatBlock = field(metadata={
"description": "Schema compatibility metadata: minimum consumer "
"version + deprecated/experimental field lists."})
diagnostics: list[Diagnostic] = field(default_factory=list, kw_only=True, metadata={
"description": "Guarded failures that degraded this run (section omitted, "
"fallback model used). Empty when nothing degraded."})
summary: ThermalSummary = field(metadata={
"description": "Roll-up summary of thermal analysis."})
findings: list[Finding] = field(metadata={
"description": "All thermal findings: TS-001..005, TP-001..002."})
assessments: list[Assessment] = field(metadata={
"description": "TH-DET entries — per-component junction-temperature "
"estimates. Informational (not findings)."})
trust_summary: TrustSummary = field(metadata={
"description": "Trust posture rollup."})
elapsed_s: float = field(metadata={
"description": "Wall-clock analysis time in seconds."})
missing_info: Optional[ThermalMissingInfo] = field(default=None, metadata={
"description": "Emitted when any component used default thermal params."})
skipped_components: Optional[list[ThermalSkipped]] = field(default=None, metadata={
"description": "Power components (regulators) that could not be "
"assessed for power dissipation. Present only when "
"non-empty; see summary.components_skipped for the "
"count."})
# --- Capability pointer ---
capability_mode_ref: Optional[dict] = field(default=None, metadata={
"description": "Pointer to canonical analysis/capability_mode.json run-level "
"record. Shape: {source, run_id}."})
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 |