claude-mechanisms-tools
CLAUDE.md1 starsChanged 7 months agoMITView on GitHub
This repo packages three Claude Code tools that implement mechanisms from claude-mechanisms. Tools live in skills/ (markdown skills) and hooks/ (PreToolUse Python hooks). Every tool entry in tools.yaml has a mechanism_ids: array. Every entry must resolve in claude-mechanisms/mechanisms.yaml. When adding a new tool, update both repos' manifests in the same atomic ship. Drift between the two manifests is detectable by repo-pair-drift-gate.py in the private myOS repo (v0.1.1 will add a cross_manifest_id_match strategy; v0.1 verifies manually at PR review). Semantic Versioning.…
In this repository4 other files it gives its agents.
- checkSkill
- error-auditSkill
- plan-archiveSkill
- press1-checkSkill
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Update tools.yaml entry if the mechanism_ids change
- Very specific: line 26
Update CHANGELOG.md under ## [Unreleased]
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 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
claude-mechanisms-tools — AI session context
This repo packages three Claude Code tools that implement mechanisms from claude-mechanisms. Tools live in skills/ (markdown skills) and hooks/ (PreToolUse Python hooks).
Where things live
skills/check/—/checksession-close auditskills/press1-check/—/press1-checkBash permission audithooks/worktree-edit-gate.py— PreToolUse hook for Edit/Write/MultiEdit/NotebookEdithooks/install-hook.sh— idempotent JSON merge into~/.claude/settings.jsontools.yaml— manifest withmechanism_ids:cross-linkstests/— Python unittest suite for the hook
Cross-link discipline
Every tool entry in tools.yaml has a mechanism_ids: array. Every entry must resolve in claude-mechanisms/mechanisms.yaml. When adding a new tool, update both repos' manifests in the same atomic ship. Drift between the two manifests is detectable by repo-pair-drift-gate.py in the private myOS repo (v0.1.1 will add a cross_manifest_id_match strategy; v0.1 verifies manually at PR review).
Versioning
Semantic Versioning. Each release gets a vN.M.P tag and a GitHub Release with body sourced from CHANGELOG.md. One release per "theme" (Session Hygiene, Git Workflow, Planning Audit, Content Pipeline). One LinkedIn post per release.
When changing tools
- Edit the tool file
- Update
tools.yamlentry if the mechanism_ids change - Update CHANGELOG.md under
## [Unreleased] - Tests pass:
python3 -m unittest tests.test_worktree_edit_gate -v
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.

