silicon-grade-discipline

silicon-grade-discipline is a skill for Claude Code from Midstall/claude-for-hardware. It costs 56 tokens per session (1,765 once invoked), scanned A, original, Apache-2.0.

A set of rules for writing and reviewing hardware, firmware, verification, and tooling code that may reach real silicon. It emphasizes honest failures, root-cause fixes, avoiding unnecessary complexity, and appropriate tests.

In plain words
What is it for?
Use it when writing register or initialization code, checking pin maps against datasheets, deciding between assertions and returned errors, resisting bypass flags, and choosing test coverage.
Why use it?
Hardware mistakes can require a new manufacturing run or leave a physical board unusable, so hiding failures or guessing from memory is especially costly.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-for-hardware plugin — 14 skills, 3 commands, 3 agents, 1 hook shipped together

Good fit Use it when writing register or initialization code, checking pin maps against datasheets, deciding between assertions and returned errors, resisting bypass flags, and choosing test coverage.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/midstall/claude-for-hardware/silicon-grade-discipline
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Midstall/claude-for-hardware --skill silicon-grade-discipline
Clone the repo
git clone --depth 1 https://github.com/Midstall/claude-for-hardware

Made for: Claude Code.

Or install claude-for-hardware, the plugin that ships this one along with the rest of its 14 skills, 3 commands, 3 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for silicon-grade-discipline

README.md
[![agentmods](https://agentmods.dev/badge/skills/midstall/claude-for-hardware/silicon-grade-discipline/github.svg)](https://agentmods.dev/skills/midstall/claude-for-hardware/silicon-grade-discipline)
Your own site
<a href="https://agentmods.dev/skills/midstall/claude-for-hardware/silicon-grade-discipline"><img src="https://agentmods.dev/badge/skills/midstall/claude-for-hardware/silicon-grade-discipline/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for silicon-grade-discipline

Your own site · 80×15
<a href="https://agentmods.dev/skills/midstall/claude-for-hardware/silicon-grade-discipline"><img src="https://agentmods.dev/badge/skills/midstall/claude-for-hardware/silicon-grade-discipline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,765 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00056 $0.01765
Opus 5 $0.00028 $0.00882
Sonnet 5 $0.00011 $0.00353
Haiku 4.5 $0.00006 $0.00177

Measured 12d ago against content hash e9e25711da30, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

silicon-grade-discipline scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/silicon-grade-discipline/SKILL.md · 93 lines

How it starts

The opening of the file, as written. The whole thing — 93 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Silicon-Grade Discipline

Overview

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.

When to Use

  • Writing or reviewing code that drives, verifies, or generates hardware
  • About to write register writes, an init sequence, or a pin map for a real part from memory instead of the datasheet
  • Tempted to add a flag that makes a failing check pass
  • Tempted to add recovery scaffolding for a failure mode you haven't diagnosed
  • Deciding between panic/assert and returning an error
  • Deciding how much test coverage is enough

This skill is the shared backbone; the domain skills (hdl-module-design, tapeout-precheck, differential-verification, and others) lean on it.

Failures Should Fail

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 failing check means the design or the code is wrong. Fix the thing being checked.
  • A legitimate exception is explicit, recorded, and granted by the authority that owns the rule (the foundry, the spec), with its rationale written down. It is never a flag you flipped to hit a date.
  • Trust the logs. Read what the tool actually reported. "0 errors" from a run that skipped the check is worse than a red failure, because it lies.

A Capability Is Not A CLI Flag

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.

Read the full file on GitHub · 93 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 93 lines · 56 tokens per session scan A e9e25711da30

Subscribe to this mod's changes

silicon-grade-discipline is a skill published in the GitHub repository Midstall/claude-for-hardware (20 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 56 tokens to every session and 1,765 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

lab-hardware-cad

Design custom laboratory hardware as parametric build123d models and export fabrication-ready STEP, STL, and DXF files - microfluidic chips and molds, optomechanical mounts and breadboard adapters, cuvette and microplate holders, tube racks, animal-behavior rigs, and 3D-printed instrument fixtures. Use when a research…

K-Dense-AI/scientific-agent-skills · 106 tokens

opentrons-integration

Author, review, migrate, simulate, and troubleshoot official Opentrons Python Protocol API v2 protocols for Flex and OT-2 robots. Use for robot-specific liquid handling, deck and labware setup, pipettes, modules, runtime parameters, liquid classes, and Opentrons App analysis. Use pylabrobot instead when one workflow…

K-Dense-AI/scientific-agent-skills · 79 tokens

pylabrobot

Develop and review PyLabRobot lab-automation resources, liquid-handling plans, offline simulations, and supported-device integrations. Use for PyLabRobot protocols or API questions; keep physical execution behind an explicit operator safety gate.

K-Dense-AI/scientific-agent-skills · 49 tokens

embedded-systems

Use when developing firmware for microcontrollers, implementing RTOS applications, or optimizing power consumption. Invoke for STM32, ESP32, FreeRTOS, bare-metal, power optimization, real-time systems, configure peripherals, write interrupt handlers, implement DMA transfers, debug timing issues.

Jeffallan/claude-skills · 59 tokens

offensive-wifi

Wireless / 802.11 attack methodology for red team engagements and wireless security assessments. Covers monitor-mode setup, WPA/WPA2-PSK handshake capture and PMKID attacks, WPA3 SAE downgrade and Dragonblood, WPA-Enterprise (EAP) attacks (MSCHAPv2 cracking, EAP-TLS cert theft, evil-twin RADIUS), Karma / Known Beacons…

SnailSploit/Claude-Red · 183 tokens

offensive-lorawan-sub-ghz

LoRaWAN and sub-GHz (433 / 868 / 915 MHz) attack methodology — LoRaWAN ABP/OTAA join attack, network/session key reuse, frame counter replay, downlink injection on TTN/Helium-style networks, sub-GHz protocol replay (KeeLoq garage doors, fixed-code remotes, TPMS spoofing, smart plug telemetry), HackRF / RTL-SDR /…

SnailSploit/Claude-Red · 163 tokens