kicad-tools: Command for Claude Code

.claude/commands/kct/tapeout.md

tapeout is a command for Claude Code from rjwalters/kicad-tools. It costs 0 tokens per session (5,946 once invoked), scanned A, original, MIT.

A release command for creating a complete, orderable manufacturing package from a routed KiCad circuit-board design. KiCad is software for designing electronic circuit boards.

In plain words
What is it for?
Use it to run manufacturing checks, resolve bill-of-materials part numbers, review rule warnings, and produce a package with a manifest when all gates pass.
Why use it?
It checks that the board and its delivery files are complete and identifies failures before the package is sent to a board manufacturer.

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/tapeout.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 tapeout

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/rjwalters/kicad-tools/tapeout"><img src="https://agentmods.dev/badge/commands/rjwalters/kicad-tools/tapeout.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,946 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.00000 $0.05946
Opus 5 $0.00000 $0.02973
Sonnet 5 $0.00000 $0.01189
Haiku 4.5 $0.00000 $0.00595

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

Security

Grade A, and why

tapeout 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 9d 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/tapeout.md · 227 lines

How it starts

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

Tapeout

Produce a complete, orderable manufacturing package for a routed .kicad_pcb, or refuse and exit non-zero. This skill is the deliverable-completeness counterpart to sign-off: /kct:manufacturing-readiness proves the copper is manufacturable; tapeout proves the package you are about to upload is complete and orderable.

The contract is exactly: tapeout returning 0 (with a manifest written) means "upload this output directory to the fab as-is." Anything less writes no manifest and exits non-zero, naming the gate that failed.

The kct namespace. This skill lives in .claude/commands/kct/ — the kicad-tools-native, harness-agnostic agent-tool namespace, invoked as /kct:tapeout. It runs from inside a consumer repo that depends on kicad-tools as a uv dependency (kct ... and kicad-cli ... are 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.

kicad-cli must be on PATH — it is required by both the mandatory DRC cross-gate (Gate 2, delegated) and the drawing-export gates (Gates 5–6). If kicad-cli is missing, tapeout refuses (see Refusal conditions); there is no partial-package fallback.

Model selection

suggestedModel: sonnet. Like /kct:manufacturing-readiness, this is deterministic checklist execution — run gates in order, read exit codes and reports, and refuse on any failure or unresolved BOM line. It does not require frontier judgment.

One open question worth flagging rather than silently resolving: the BOM-resolution gate (Gate 4) can involve a judgment call when the part matcher returns an ambiguous candidate (multiple plausible LCSC parts) rather than a clean hit or a clean miss. This skill treats ambiguity conservatively — an ambiguous line is an unresolved line (human selection required), never an auto-accepted guess — so sonnet remains appropriate. If a future consumer needs the skill to adjudicate ambiguous matches, that is a reason to revisit the model, and it should be raised as a follow-up rather than papered over here.

Read the full file on GitHub · 227 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. 9d ago First seen · 227 lines · 0 tokens per session scan A 36f7d900fccd

Subscribe to this mod's changes

tapeout is a command published in the GitHub repository rjwalters/kicad-tools (56 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 5,946 tokens. 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.