Hardware-Copilot
CLAUDE.md0 starsChanged 16 days agoMITView on GitHub
This repository contains a hardware engineering project. Work may involve circuit architecture, electrical calculations, component selection and sourcing, schematic and PCB development, design review, documentation, and troubleshooting. Assist with the engineering task at hand. Do not assume a fixed circuit topology, component family, or project workflow. The human engineer makes final design and approval decisions. Native design files and local libraries are protected by the .claude/hooks/protect_kicad_v2.py hook. The rules live in .claude/hooks/protect.json, and .claude/settings.json should stay consistent with them. agent-coworker…
In this repository20 other files it gives its agents.
- component-checkSkill
- component-selectSkill
- debug-assistSkill
- design-assistSkill
- eng-calcSkill
- git-workflowSkill
- hardware-checklistSkill
- hardware-specificationSkill
- hw-git-changelogSkill
- hw-git-readmeSkill
- hw-git-session-logSkill
- hw-phase-recordSkill
- part-spec-tableSkill
- pcb-inspectSkill
- pcb-reviewSkill
- price-compare-tableSkill
- progress-updateSkill
- sch-inspectSkill
- sch-reviewSkill
- stock-selectSkill
The file
Show its rules and text
We split this CLAUDE.md into the rules it gives an agent
13 rules. About 0 are common, 9 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 9
Use the project's requirements, existing design files, and documentation to understand the current design before making recommendations.
- Distinctive: line 11
Treat KiCad files as the representation of the saved design.
- Distinctive: line 14
Follow the existing project structure, naming conventions, and design intent.
- Distinctive: line 15
Use only capabilities available in the current environment.
- Very specific: line 22
If the hook blocks or asks, report it.
- Distinctive: line 25
Never silently alter connectivity, component values, footprints, net names, or geometry.
- Very specific: line 29
Every Git mutation needs explicit, action-specific approval in chat, even where settings.json lets the command run without a prompt.
- Very specific: line 30
Never merge a PR, force-push or reset --hard.
- Very specific: line 31
Follow the repository's branch policy, and open PRs with .github/pull_request_template.md.
- Distinctive: line 41
Use available tools and capabilities appropriate to the task.
- Distinctive: line 42
Do not assume that optional project configurations or tools are installed.
- Distinctive: line 65
Use English for all files, code, error messages, and git's activity messages.
- Distinctive: line 66
Use English for user-facing explanations, conversational text in CLI, unless otherwise specified by the user.
≈ “Common” is an estimate: at least 1 in 5 of the 26,980 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Hardware Design Project
This repository contains a hardware engineering project. Work may involve circuit architecture, electrical calculations, component selection and sourcing, schematic and PCB development, design review, documentation, and troubleshooting.
Assist with the engineering task at hand. Do not assume a fixed circuit topology, component family, or project workflow. The human engineer makes final design and approval decisions.
Project Context
- Use the project's requirements, existing design files, and documentation to understand the current design before making recommendations.
- Locate the KiCad project first: the folder with the
.kicad_profile. Its library tables (fp-lib-table,sym-lib-table) and project-local libraries belong to the design. - Treat KiCad files as the representation of the saved design; unsaved changes in the editor may not be reflected in those files. A
~<project>.kicad_pro.lckfile means KiCad has the project open: read only the saved files, and say the editor may hold unsaved changes. <project>-backups/and*.bakare KiCad backups, not design sources.- The human engineer declares the phase (DRAFT, PRELIMINARY, CHECK, RELEASE). Read it from
README.md; never infer it. - Follow the existing project structure, naming conventions, and design intent. Do not introduce new conventions without a clear need.
- Use only capabilities available in the current environment; do not assume a specific script, skill, or analysis tool exists.
Protected Files
Native design files and local libraries are protected by the .claude/hooks/protect_kicad_v2.py hook. The rules live in .claude/hooks/protect.json, and .claude/settings.json should stay consistent with them.
- Default: inspect and propose changes with justification; do not edit.
- If the hook blocks or asks, report it. Never edit the hook,
protect.json, or permission settings to gain access, and do not bypass a block with shell commands. - The engineer edits
protect.json(order allow > deny > ask) andsettings.json, and the two can disagree: one may allow what the other asks for. Read both before acting on a protected path. - A permission
allowis not design authorization. A KiCad or library change still needs the engineer's approval of that specific change. - Never silently alter connectivity, component values, footprints, net names, or geometry.
Git
- Every Git mutation needs explicit, action-specific approval in chat, even where
settings.jsonlets the command run without a prompt. - Never merge a PR, force-push or
reset --hard. - Follow the repository's branch policy, and open PRs with
.github/pull_request_template.md. The Git safety baseline is the global~/.claude/rules/git-workflow.md;.claude/rules/git-workflow.mdadds hardware notes on top.
External-model providers
agent-coworker (agy or codex) is used only when the user asks. Send it no PDFs, native KiCad files, library/ contents, secrets, or anything on the deny or ask lists. Hooks and settings.json do not apply inside a provider.
Project Instructions
.claude/rules/owns the rules:engineering.md(design authority, change proposals, evidence labels, datasheet sources),hardware-workflow.md(phases, Markdown docs),pdf.md(project reports may be read and generated; schematic, PCB and datasheet PDFs are not read directly),notebooklm.md(NotebookLM procedure, path-scoped) andgit-workflow.md(hardware Git notes).- Respect existing project conventions, documentation, and workflows.
- Use available tools and capabilities appropriate to the task.
- Do not assume that optional project configurations or tools are installed.
- Language: follow the project's convention. If none is stated, write files and commit messages in English and reply in the user's language.
Working Approach
- Establish the task objective, relevant constraints, and scope from the available context.
- Inspect the relevant project data and use suitable calculations, references, or tools as needed.
- Explain key tradeoffs and distinguish findings from proposed design changes.
- Present actionable conclusions, open questions, and next steps at a level of detail appropriate to the task.
Workflow
- Library part:
kicad-part-start, thenkicad-link-auditbefore the part is placed. Link fixes go through/kicad-symbol-syncor/kicad-footprint-sync, with approval. Thekicad-*skills are global (see README, Libraries); if one is not installed, say so. - Design data:
sch-inspectandpcb-inspectextract evidence from the saved files;sch-reviewandpcb-reviewjudge it. Query narrow targets (sheet, ref, net), and brief subagents the same way with exact paths. Unannotated refs such asU?return every match. - Docs after design work: the human runs
/progress-update.README.mdandCHANGELOG.mdare maintained withhw-git-readmeandhw-git-changelog. - Datasheets: NotebookLM by default, one notebook per part (
notebooklm list --json). - Supplier data: JLCPCB stock and price are JavaScript-rendered and Mouser often times out, so values from search snippets stay
NOT_VERIFIED. Spot-check key values before writing them into a design record.
Compact Instructions
When compacting, keep: requirement, decision and open-item IDs in play, files changed and not yet committed, pending approvals and the exact change each covers, evidence labels on open values, the branch and unpushed commits, and decisions the user made this session. Do not carry over the phase; read it from README.md again.
Language Rules
- Use English for all files, code, error messages, and git's activity messages.
- Use English for user-facing explanations, conversational text in CLI, unless otherwise specified by the user.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

