kicad-tools: Command for Claude Code

.claude/commands/kct/manufacturing-readiness.md

manufacturing-readiness is a command for Claude Code from rjwalters/kicad-tools. It costs 59 tokens per session (2,840 once invoked), scanned A, original, MIT.

A release checklist for a routed KiCad circuit board, which is a digital design for a physical circuit board. It runs the project's checks, an independent design-rule check, and creates the manufacturing files and manifest needed for fabrication.

In plain words
What is it for?
Preparing a routed .kicad_pcb board for fabrication, verifying its design rules, running the required native tools, and exporting a manufacturing bundle.
Why use it?
It prevents a board from being approved for manufacturing after only one check or after a required gate was skipped.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths.

This is rjwalters/kicad-tools's own configuration. It tells Claude Code how to work on kicad-tools itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything kicad-tools configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rjwalters/kicad-tools. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rjwalters/kicad-tools/main/.claude/commands/kct/manufacturing-readiness.md
Clone the repo
git clone --depth 1 https://github.com/rjwalters/kicad-tools

Made for: Claude Code.

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 manufacturing-readiness

README.md
[![agentmods](https://agentmods.dev/badge/commands/rjwalters/kicad-tools/manufacturing-readiness/github.svg)](https://agentmods.dev/commands/rjwalters/kicad-tools/manufacturing-readiness)
Your own site
<a href="https://agentmods.dev/commands/rjwalters/kicad-tools/manufacturing-readiness"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/manufacturing-readiness/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 manufacturing-readiness

Your own site · 80×15
<a href="https://agentmods.dev/commands/rjwalters/kicad-tools/manufacturing-readiness"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/manufacturing-readiness.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,840 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.00059 $0.02840
Opus 5 $0.00030 $0.01420
Sonnet 5 $0.00012 $0.00568
Haiku 4.5 $0.00006 $0.00284

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

Security

Grade A, and why

manufacturing-readiness 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 10d 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.

.claude/commands/kct/manufacturing-readiness.md · 143 lines

How it starts

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

Manufacturing readiness

Sign off a routed .kicad_pcb for fabrication. This skill codifies the sign-off ritual: kct check at the board's fab tier, the mandatory independent cross-gate kicad-cli pcb drc --refill-zones, and a kct export manufacturing bundle — then confirms a manifest.json was produced. A clean kct check alone is not sign-off.

The kct namespace. This skill lives in .claude/commands/kct/ — the kicad-tools-native, harness-agnostic agent-tool namespace, invoked as /kct:manufacturing-readiness. It runs from inside a consumer repo that depends on kicad-tools as a uv dependency (kct ... is on PATH via the venv). It does not assume the current directory is the kicad-tools repo, and it hardcodes no board path, no fab-tier list, and no CI-workflow context.

Prerequisite

The native router/DRC backend must be built in the active checkout before this skill is meaningful (Epic #4054 convention #1). Run once per checkout / worktree:

uv run kct build-native --check   # expect: "C++ backend: available"
# if "not installed":
uv run kct build-native

uv sync does not build the native extension. A fresh checkout or git worktree needs this step explicitly.

Model selection

suggestedModel: sonnet. This is a deterministic checklist-execution task — run three gates in order, read their exit codes and reports, and refuse sign-off on any failure. It does not require frontier judgment. Model resolves through the harness's normal precedence chain (explicit dispatch param → harness role config → this doc's frontmatter suggestedModel → session default).

Arguments

Arguments: $ARGUMENTS

$ARGUMENTS is <board-path> [--mfr <tier>] [--output <dir>].

Token Meaning
<board-path> Required. Path to the routed *.kicad_pcb to sign off (or a board directory containing one). Everything the skill operates on is derived from this token — never from a hardcoded board directory. The user supplies it.
--mfr <tier> The fabrication tier to check and export against. Optional; if omitted, discover it (see "Resolving the fab tier" below) rather than assuming a default.
--output <dir> Where the export bundle is written. Optional; defaults to <pcb-dir>/manufacturing/ (the kct export default).

Read the full file on GitHub · 143 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. 10d ago First seen · 143 lines · 59 tokens per session scan A 1c748b034141

Subscribe to this mod's changes

manufacturing-readiness is a command published in the GitHub repository rjwalters/kicad-tools (56 stars, last pushed today), licensed MIT. It adds 59 tokens to every session and 2,840 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.