/claude-for-hardware:silicon-grade-disciplinefrom claude-for-hardware
Enforces correctness-first discipline when writing hardware, firmware, or verification code. Covers failures-should-fail, no over-engineering, no-panic, and test coverage.
Ships in claude-for-hardware. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Software bugs ship a patch. Hardware bugs ship a respin, or a recall, or a dead board on a bench you can't reach. That asymmetry changes how you write code in this domain: correctness is not negotiable against speed, because the cost of wrong is measured in mask sets and weeks.
Core principle: A failure must be loud, a check must be honest, and a fix must address the root cause. The most dangerous output in this domain is a green checkmark over a real defect.
panic/assert and returning an errorThis skill is the shared backbone; the domain skills (hdl-module-design, tapeout-precheck, differential-verification, and others) lean on it.
Never add a knob that converts a real failure into a pass. No ERROR_ON_DRC=false, no --skip-lvs, no if (mismatch) verdict = pass, no "temporarily" commented-out assertion. Those don't fix the problem; they hide it and then ship it.
A hardware capability is declared by the design and read by the tooling, never bolted on or stripped off by a generator flag. A --no-paging switch that removes the MMU from a core which advertises Sv39 is incoherent: the core says it does virtual memory, the flag says it doesn't, and now two parts of the system disagree about what the silicon is. The same goes for a flag that disables an extension a profile requires, or one that drops a peripheral the address map still references.
hdl-module-design and soc-integration for the derive-don't-restate pattern this rests on.When code drives a real chip, a real FPGA primitive, or a real board, the datasheet is the source of truth. The JEDEC standard, the ISA manual, and the vendor user guide are datasheets too. Do not guess a register field, an opcode, or a timing parameter from memory. A guessed value configures the part wrong, and then the part reads back garbage with no error to tell you why.
Resist building preemptive save-on-failure, retry-until-it-works, or rollback scaffolding around a failure you haven't understood. That machinery hides the bug, adds surface area, and convinces you the system is robust when it is actually papering over a real defect.
Reserve panic/abort/unwrap-on-error for genuinely impossible states (an invariant the type system can't express, which if violated means memory is already corrupt). For everything that can fail in normal operation (bad input, a device that didn't respond, a parse that failed), return a typed error and let the caller decide.
Because it is.
| Thought | Reality |
|---|---|
| "I'll add a flag to skip this check for now" | That flag ships a known defect. Fix the check's subject. |
| "Let me add a save/retry in case it fails" | Diagnose first. Recovery for an undiagnosed failure hides it. |
| "I'll panic here, it shouldn't happen" | If it can happen in normal operation, return an error. |
| "0 errors printed, we're good" | Confirm the check actually ran. Trust the logs, not the absence. |
| "Top-level test passes, that's enough" | Cover each component and its failure paths. |
| "It's close enough" | For silicon, close enough is a respin. |
| "I know this chip's registers" | The datasheet knows them. Cite the table and section. |
asd-ste100 skill rewrites prose that drifts from it.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
hardware, firmware, verification, correctness, test-coverage
npx claudepluginhub lilithsemi/claude-for-hardware --plugin claude-for-hardware14 skills in this plugin
/bare-metal-bringupUse when bringing up bare-metal or kernel code on a new architecture, SoC, or board (RISC-V, ARM, x86, ESP32) and it won't boot, hangs after boot, or faults early; covers trap vectors, MMU/PMP, syscall ABI, and boot ordering/codegen-validationUse when building or debugging a compiler backend, codegen, or assembler and you need to prove the generated machine code is correct by executing it on a real CPU or a fast emulator, not just inspecting the output/differential-verificationUse when verifying a hardware DUT (a CPU core, FPGA, or netlist) against a golden reference model, building coverage-guided fuzzing, or detecting where silicon diverges from a simulator like Spike, an emulator, or SPICE/firmware-boot-chainUse when building or debugging a firmware and boot chain (RISC-V SBI, UEFI, ACPI, a bootloader handoff like Limine to an OS) or adding measured boot with a TPM, and a stage fails to hand off to the next/fpga-bringupUse when loading a bitstream onto a physical FPGA and driving or observing it over JTAG or GPIO, especially bit-banged JTAG from a host like a Raspberry Pi, or when configuration silently fails/fpga-synthesis-fitUse when synthesizing RTL to an FPGA with yosys/nextpnr (ECP5/Lattice and similar), fighting area or routing congestion, measuring Fmax, deciding why a design won't fit or route, or instantiating block RAM; covers the pre-pack vs post-pack metric trapOther plugins' skills for the same job