agentic-builder-forge
CLAUDE.md4 starsChanged 4 months agoApache-2.0View on GitHub
The standing rules above (imported from AGENTS.md) are the operating contract. Under Claude Code they are not advisory: they are enforced by the deterministic hooks in .claude/hooks/, wired via .claude/settings.json. A PreToolUse hook returning deny blocks the tool call even under --dangerously-skip-permissions — that is what makes the floor a floor, not a suggestion. This repository is infrastructure — a build harness — not a documentation or knowledge vault. The canonical completion gate is tests/run-all.sh: it discovers every test:* script…
- Deletes or force-pushes
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- clarifySkill
- decomposeSkill
- spec-authoringSkill
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 0 are distinctive, and 3 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.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
If you keep a sibling knowledge repo (e.g.
- Very specific: line 31
When a Stop gate blocks, the reason it prints is your next unit of work.
- Very specific: line 44
Run bash .forge/scripts/init.sh, then bash .forge/scripts/doctor.sh --post-init.
≈ “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
CLAUDE.md — agentic-builder-forge
@AGENTS.md
The standing rules above (imported from AGENTS.md) are the operating contract. Under Claude Code
they are not advisory: they are enforced by the deterministic hooks in .claude/hooks/, wired via
.claude/settings.json. A PreToolUse hook returning deny blocks the tool call even under
--dangerously-skip-permissions — that is what makes the floor a floor, not a suggestion. This
repository is infrastructure — a build harness — not a documentation or knowledge vault.
- The harness contract is
SPEC.md. - How to run a task and the done-condition are in
README.md; the operating guide is indocs/. - If you keep a sibling knowledge repo (e.g.
../my-vault), it is read-only to the Forge.
The enforcement floor (Claude Code hooks)
| Hook | Event | What it enforces |
pre-tool-use-deny.sh | PreToolUse | Hard deny for destructive command shapes: rm -rf outside the sandbox, force-push, push/commit to {{DEFAULT_BRANCH}}, --no-verify, secret-shaped literals, raw writes into .beads/**, and writes to the enforcement files themselves. |
post-tool-use-format.sh | PostToolUse | Auto-formats and lints every Write/Edit, using the commands in harness/targets.config. |
stop-gate-tests.sh | Stop | Blocks ending a build turn while tests/run-all.sh is red; the failure is fed back into the loop. |
stop-gate-intake.sh | Stop | Blocks ending an intake session before the spec has passed the clarify loop and been human-ratified. |
pre-tool-use-clarify-gate.sh | PreToolUse | Enforces the intake clarify/restate budgets (harness/intake.config) before spec writes. |
session-start-witness.sh | SessionStart | Self-mints the floor's integrity baseline at session start (no committed hash); tampering after that point is detected. |
The canonical completion gate is tests/run-all.sh: it discovers every test:* script in
package.json, reports PASS / SKIP(75) / FAIL, and fails closed.
Stop-gate behavior
When a Stop gate blocks, the reason it prints is your next unit of work. Fix the red tests
(or complete the intake step) and finish again. Never try to end the session by editing
.claude/hooks/** or .claude/settings.json, weakening a gate, or blanking a test:* script —
the deny hook blocks writes to the enforcement files, and gutting a check to go green is the
cardinal failure. If a gate seems genuinely wrong, stop and show the human.
Customization checklist
harness/targets.config— build/test/lint/format commands per target type (typescriptdefault;pythonandstaticexamples).harness/reviewers.config— review backends (ollama|claude-fresh|codex); shipped model names are examples.harness/repos.config— copy fromharness/repos.config.example(gitignored target-repo map).- Run
bash .forge/scripts/init.sh, thenbash .forge/scripts/doctor.sh --post-init.
Full reference: docs/configuration.md.
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.

