kicad-sch-api: Command for Claude Code

.claude/commands/dev/review-implementation.md

review-implementation is a command for Claude Code from circuit-synth/kicad-sch-api. It costs 0 tokens per session (1,316 once invoked), scanned A, original, MIT.

A code-review command for kicad-sch-api, a Python library for reading and writing KiCad schematic files. It examines implementation quality, speed, interface design, error handling, tests, and preservation of the original file format.

In plain words
What is it for?
Use it to review the core library, symbol-library handling, connected-tool support, utility code, or tests, with optional focus on speed, API design, or format preservation.
Why use it?
It gives a structured review of areas that can cause hard-to-find bugs or make the library difficult to use and maintain.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is circuit-synth/kicad-sch-api's own configuration. It tells Claude Code how to work on kicad-sch-api 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-sch-api configures →

Reuse

Borrowing it

Nothing to install: this file belongs to circuit-synth/kicad-sch-api. 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/circuit-synth/kicad-sch-api/main/.claude/commands/dev/review-implementation.md
Clone the repo
git clone --depth 1 https://github.com/circuit-synth/kicad-sch-api

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 review-implementation

README.md
[![agentmods](https://agentmods.dev/badge/commands/circuit-synth/kicad-sch-api/review-implementation/github.svg)](https://agentmods.dev/commands/circuit-synth/kicad-sch-api/review-implementation)
Your own site
<a href="https://agentmods.dev/commands/circuit-synth/kicad-sch-api/review-implementation"><img src="https://agentmods.dev/badge/commands/circuit-synth/kicad-sch-api/review-implementation/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 review-implementation

Your own site · 80×15
<a href="https://agentmods.dev/commands/circuit-synth/kicad-sch-api/review-implementation"><img src="https://agentmods.dev/badge/commands/circuit-synth/kicad-sch-api/review-implementation.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 1,316 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.01316
Opus 5.5 $0.00000 $0.00526
Sonnet 5.5 $0.00000 $0.00263
Haiku 4.5 $0.00000 $0.00132

Measured 2mo ago against content hash a55e90ed0404, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

review-implementation 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 2mo 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

.claude/commands/dev/review-implementation.md · 172 lines

How it starts

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

Review Implementation Command - kicad-sch-api

Usage

/review-implementation [component]

Description

Performs comprehensive code review and analysis of kicad-sch-api implementation, focusing on professional quality, performance, and API design.

Parameters

  • component (optional): Specific component to review (core, library, mcp, utils, tests)
  • --performance: Focus on performance analysis
  • --api-design: Focus on API usability review
  • --format-preservation: Focus on format preservation validation

Review Areas

1. Core Library Review

/review-implementation core

Focuses on:

  • S-expression parsing accuracy and performance
  • Component management API design and efficiency
  • Schematic operations completeness and validation
  • Type system correctness and usability
  • Error handling comprehensiveness and clarity

Key Questions:

  • Does the API feel intuitive and pythonic?
  • Are bulk operations efficient for large schematics?
  • Is format preservation truly exact?
  • Do validation errors provide actionable feedback?

2. Library Management Review

/review-implementation library

Focuses on:

  • Symbol caching performance and accuracy
  • Library discovery robustness across platforms
  • Multi-source integration (future: DigiKey, SnapEDA)
  • Cache invalidation and persistence

Key Questions:

  • Does caching provide measurable performance improvement?
  • Is library discovery reliable across different KiCAD installations?
  • Are cache miss scenarios handled gracefully?

3. MCP Integration Review

/review-implementation mcp

Focuses on:

  • Tool completeness for AI agent workflows
  • Error handling quality for agent consumption
  • Python bridge reliability and performance
  • TypeScript integration professional standards

Key Questions:

  • Do MCP tools cover all essential schematic operations?
  • Are error messages clear enough for AI agents to understand?
  • Is the Python bridge robust against subprocess failures?

Read the full file on GitHub · 172 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. 2mo ago First seen · 172 lines · 0 tokens per session scan A a55e90ed0404

Subscribe to this mod's changes

review-implementation is a command published in the GitHub repository circuit-synth/kicad-sch-api (57 stars, last pushed 10mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,316 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.