eigenwise-toolshed
CLAUDE.md289 starsChanged 5 days agoMITView on GitHub
Read ARCHITECTURE.md (the contract) and SCOPE.md (the admission bar) before changing anything. They're short. Runs claude plugin validate and claude plugin test for every plugin plus the repo's structural tests. A change isn't done until that's green. Mods are early access in Claude Code, so trust the types in .claude-plugin/types/ and the validator over memory. Plain and spoken. Lead with the useful thing. No em dashes. No marketing words.
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 3
Read ARCHITECTURE.md (the contract) and SCOPE.md (the admission bar) before changing anything.
- Distinctive: line 13
No named consumers: No person, project, company or language special cases in code, tickets or docs.
≈ “Common” is an estimate: at least 1 in 5 of the 29,248 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
Toolshed: project rules
Read ARCHITECTURE.md (the contract) and SCOPE.md (the admission bar) before changing anything. They're short.
Hard rules
- No command hooks on
PreToolUse,PostToolUseorUserPromptSubmit. In-process hooks modules only. Zero processes per tool call. - Subagents never write board or proposal state. They return a result. The main session writes.
- Every gating hook has a
.catchand fails open. A broken hook of ours must never stop someone's work. - A new guard, gate or config key needs an observed v2 failure behind it. Otherwise write the note in
.out-of-scope/and move on. - Nothing may depend on a rule, memory or setting in someone's home directory. If the product needs it, it ships in the plugin or is written into the project with approval.
- Plugins stay standalone. No
dependenciesbetween them. Cooperate through files or published$.statekeys, and handle the other being absent. - No named consumers. No person, project, company or language special cases in code, tickets or docs.
Code
- Pure logic in plain
.tsfiles that take and return values.register.tsxonly wires. Keep every function's cyclomatic complexity below 6. - Names say the domain thing, never the pattern. No abbreviations.
- Comments only for a why the code can't carry.
- No
any, no bare@ts-ignore, no silentascasts.
Checking a change
node scripts/check.mjsRuns claude plugin validate and claude plugin test for every plugin plus the repo's structural tests. A change isn't done until that's green. Mods are early access in Claude Code, so trust the types in .claude-plugin/types/ and the validator over memory.
Docs
- Agent-facing text (tool descriptions, skill bodies, agent definitions, refusal strings) is the contract. It changes in the same commit as the behaviour.
- Each plugin has one prose page: its
README.md. shared/holds text used by more than one plugin. Edit it there and runnode scripts/sync-shared.mjs. Never edit the copies.
Voice
Plain and spoken. Lead with the useful thing. No em dashes. No marketing words.
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.

