parts: Instructions file for Claude Code

CLAUDE.md

parts CLAUDE.md is an instructions file for Claude Code from git-plm/parts. It costs 1,750 tokens per session, scanned A, original, MIT.

Repository-specific instructions for working on a KiCad parts library, where CSV files describe parts and related files provide their symbols and footprints. KiCad is software for designing electronic circuit boards.

In plain words
What is it for?
Use it when changing part data, symbols, footprints, documentation, or commands in this KiCad library repository.
Why use it?
It explains the repository's data layout, commands, and formatting rules so an agent can edit the library without rebuilding obsolete generated databases or breaking linked files.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is git-plm/parts's own configuration. It tells Claude Code how to work on parts 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 parts configures →

Reuse

Borrowing it

Nothing to install: this file belongs to git-plm/parts. 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/git-plm/parts/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/git-plm/parts

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 parts CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/git-plm/parts/claude-md/github.svg)](https://agentmods.dev/instructions/git-plm/parts/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/git-plm/parts/claude-md"><img src="https://agentmods.dev/badge/instructions/git-plm/parts/claude-md/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 parts CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/git-plm/parts/claude-md"><img src="https://agentmods.dev/badge/instructions/git-plm/parts/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,750 This file is loaded in full into every session.
When invoked 1,750 The same file — it is already loaded in full.
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.01750 $0.01750
Opus 5.5 $0.00700 $0.00700
Sonnet 5.5 $0.00350 $0.00350
Haiku 4.5 $0.00175 $0.00175

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

Security

Grade A, and why

parts CLAUDE.md 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.

CLAUDE.md · 141 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

What this repo is

A KiCad parts library that is stored as data, not code. The CSV files in database/ are the database — GitPLM reads them directly and serves them to KiCad over the HTTP libraries API:

database/g-XXX.csv  ->  gitplm http (port 7654)  ->  KiCad

There is no build step and no database to regenerate. gitplm http watches database/ and reloads on save, so a CSV edit is live in KiCad immediately — no restart, no library refresh.

The older CSV -> SQLite3 -> ODBC -> KiCad path (parts_db_create in envsetup.sh, database/#gplm.kicad_dbl, database/parts.sqlite) is obsolete and kept only for anyone who has not migrated. parts.sqlite is generated and gitignored. Do not rebuild it unless the user says they are still on that path.

The category triad

A part's three-letter category code (RES, ICS, DIO, ...) names three files at once, and keeping them aligned is the point of the scheme:

Concern Path
Data database/g-XXX.csv
Symbols symbols/g-XXX.kicad_sym
Footprints footprints/g-XXX.pretty/

Adding a category means adding a database/g-XXX.csv; gitplm http discovers it on the next reload. There is no library list to register it in.

Column sets differ per category and are not in a consistent order — always head -1 the file before writing a row. A few categories (ASY, CBL, ENC, FAN, FST) are BOM-only and have no Symbol/Footprint columns.

IPNs are CCC-NNNN-VVVV and are the database key. partnumbers.md is the full specification.

Commands

# Validate a CSV: IPN format and sort order, duplicate IPNs, whether
# Symbol/Footprint references resolve against the installed KiCad libraries,
# field padding, datasheet links, spelling drift, and whether a variation code
# agrees with the value column. Run from the repo root.
scripts/check-csv.py --new-only database/g-reg.csv

# Pass the whole database to add the checks that need every file at once:
# one spelling per manufacturer, and no MPN carried by two live parts.
scripts/check-csv.py --new-only database/g-*.csv

# Check every resistor in a KiCad schematic against g-res.csv and repoint any
# IPN that disagrees with the resistance the symbol carries. Reports by
# default; --write applies. Accepts files or directories.
scripts/update-design-ipns.py path/to/design.kicad_sch

# Serve the database to KiCad; watches database/ and reloads on save.
gitplm http

# Markdown formatting (prettier pinned by .prettier-version)
. envsetup.sh && parts_format          # write
. envsetup.sh && parts_format_check    # check only

Read the full file on GitHub · 141 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 Changed · +16 lines · +238 tokens per session 48f77d0d62c2
  2. 2mo ago First seen · 125 lines · 1,512 tokens per session scan A 23a8345f639a

Subscribe to this mod's changes

parts CLAUDE.md is an instructions file published in the GitHub repository git-plm/parts (60 stars, last pushed 3d ago), licensed MIT. It adds 1,750 tokens to every session, about $0.0070 per session on Opus 5.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

parts CLAUDE.md compared with instructions from other repositories

parts CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
parts CLAUDE.mdgit-plm/partsInstructions file603d agoMITA1,750Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot