agentleFS
christophecapelchristophecapel/claude-mechanisms-tools/CLAUDE.md

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.…

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
  1. Very specific:

    Update tools.yaml entry if the mechanism_ids change

    line 25
  2. Very specific:

    Update CHANGELOG.md under ## [Unreleased]

    line 26

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

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/ — /check session-close audit
  • skills/press1-check/ — /press1-check Bash permission audit
  • hooks/worktree-edit-gate.py — PreToolUse hook for Edit/Write/MultiEdit/NotebookEdit
  • hooks/install-hook.sh — idempotent JSON merge into ~/.claude/settings.json
  • tools.yaml — manifest with mechanism_ids: cross-links
  • tests/ — 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.yaml entry if the mechanism_ids change
  • Update CHANGELOG.md under ## [Unreleased]
  • Tests pass: python3 -m unittest tests.test_worktree_edit_gate -v

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.