update-and-commit

A command that documents changes, formats code, and commits them to the kicad-sch-api project. A commit is a saved set of code changes in version control.

In plain words
What is it for?
Use it after implementing features, API methods, or tools to update README examples, changelogs, relevant examples, and developer notes before creating a commit.
Why use it?
It helps prevent user-facing features and public programming interfaces from being committed without updated documentation or consistently formatted code.

Command for Claude Code

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.

agentmods
npx agentmods add commands/circuit-synth/kicad-sch-api/update-and-commit
Clone the repo
git clone --depth 1 https://github.com/circuit-synth/kicad-sch-api

Made for: Claude Code.

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,486 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.01486
Opus 5 $0.00000 $0.00743
Sonnet 5 $0.00000 $0.00297
Haiku 4.5 $0.00000 $0.00149

Measured 2d ago against content hash b54fa55841b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

update-and-commit 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 2d 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/update-and-commit.md · 201 lines

How it starts

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

Update and Commit Command - kicad-sch-api

Usage

/update-and-commit "Brief description of changes"

Description

Comprehensive workflow for documenting progress, updating documentation, and committing changes to kicad-sch-api with professional quality standards.

Process

1. Update Documentation (REQUIRED for Features)

IMPORTANT: Always update documentation BEFORE committing new features

  • IF new user-facing features: Update README.md with examples
  • IF new API methods: Add to Advanced Features section in README.md
  • IF version increment needed: Update CHANGELOG.md with new version entry
  • IF new MCP tools: Update tool documentation
  • ALWAYS document new public methods with code examples
  • NO documentation changes needed for internal fixes or refactoring
# Documentation update checklist for new features:
# 1. Add examples to README.md "Basic Usage" or "Advanced Features" sections
# 2. Create CHANGELOG.md entry with version bump (patch/minor/major)
# 3. Update any relevant example files in examples/
# 4. Ensure CLAUDE.md reflects new functionality if developer-relevant

2. Format Code Before Committing

IMPORTANT: Always format code before committing

# Format Python code
uv run black kicad_sch_api/ tests/ --quiet
uv run isort kicad_sch_api/ tests/ --quiet

# Format TypeScript (MCP server)
cd mcp-server && npm run format --silent 2>/dev/null || echo "TypeScript formatting skipped"
cd ..

# Format configuration files
prettier --write "*.{json,yml,yaml}" --ignore-path .gitignore 2>/dev/null || echo "Config formatting skipped"

3. Quality Checks Before Committing

IMPORTANT: Run basic quality checks

# Syntax validation
find kicad_sch_api/ tests/ -name "*.py" -exec python -m py_compile {} \; 2>/dev/null || echo "⚠️ Syntax errors found"

# Quick test run
uv run pytest tests/test_component_management.py tests/test_sexpr_parsing.py -q || echo "⚠️ Core tests failing"

# Import validation
uv run python -c "import kicad_sch_api; print('✅ Import successful')" || echo "⚠️ Import failed"

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

Subscribe to this mod's changes

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