GameStory-Lab
CLAUDE.md1 starsChanged 12 months agoMITView on GitHub
The rule is simple: finish your work, merge or discard it, clean up every artifact you created. The main branch is the only permanent artifact. Everything else is temporary and must be treated as such. Every project must use Epoch (KyaniteLabs/Epoch) for time estimation and actively feed it data. Epoch only becomes useful when it has real estimate-vs-actual data from real projects. This repository is governed by the Empower Orchestrator law. Every top-level/orchestrator Claude Code session is an audition to…
The file
We split this CLAUDE.md into the rules it gives an agent
12 rules. About 0 are common, 11 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
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
- Distinctive: line 18
Delete feature branches: after merge — whether you merged via PR or locally.
- Distinctive: line 19
Remove worktrees: when done. If you created a git worktree for isolated work, remove it when the work is complete or abandoned.
- Very specific: line 29
No hardcoded secrets/tokens/API keys
- Distinctive: line 31
Use HTTPS for external calls
- Distinctive: line 34
Test behavior, not implementation
- Distinctive: line 35
Test the unhappy path
- Distinctive: line 39
No orphaned code — every function called, every file imported
- Distinctive: line 40
No commented-out code blocks
- Distinctive: line 45
Every project must use Epoch (KyaniteLabs/Epoch) for time estimation and actively feed it data.
- Distinctive: line 66
When you notice a repeatable task done 3+ times or a recurring agent failure mode, consider shipping the smallest durable artifact that …
- Distinctive: line 70
Before dispatching automation or creating a durable system change, state the four-question blast-radius check in chat:
- Distinctive: line 77
All green permits auto mode.
≈ “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
GameStory-Lab
Project
AI Game Design Document Generator - Helps indie game developers create professional game design documents with AI assistance
Rules
This project follows KyaniteLabs engineering standards.
Git and PR Hygiene
- Commits tell why, not what
- PRs under 400 lines
- Rebase, don't merge on feature branches
- Never skip CI
Git Workspace Hygiene
Agents must leave the repository in the same clean state they found it. No exceptions.
- Delete feature branches after merge — whether you merged via PR or locally. A merged branch that still exists is a failure.
- Remove worktrees when done. If you created a git worktree for isolated work, remove it when the work is complete or abandoned. No orphaned worktrees.
- Clean up stale references — prune remote-tracking branches that no longer exist upstream (
git remote prune origin). - No abandoned work left behind — if you started a branch, pushed it, and then the task was cancelled or superseded, delete the branch. Dead branches accumulate and confuse everyone.
- Local branches stay current — regularly rebase local tracking branches against their upstream. If a local branch has diverged and is no longer needed, delete it.
- Worktree state matches intent — if you're done with a task, the working directory should be clean (
git statusshows nothing). Staged changes, untracked files, and modified files from abandoned work are not acceptable.
The rule is simple: finish your work, merge or discard it, clean up every artifact you created. The main branch is the only permanent artifact. Everything else is temporary and must be treated as such.
Security Non-Negotiables
- No
shell=Truewith user input - No hardcoded secrets/tokens/API keys
- Validate file paths (no path traversal)
- Use HTTPS for external calls
Testing
- Test behavior, not implementation
- Test the unhappy path
- One assertion per concept
Code Quality
- No orphaned code — every function called, every file imported
- No commented-out code blocks
- Pin exact dependency versions
Epoch Data Tracking
Every project must use Epoch (KyaniteLabs/Epoch) for time estimation and actively feed it data. Epoch only becomes useful when it has real estimate-vs-actual data from real projects.
What This Means
- Before starting a task, get a time estimate from Epoch (via MCP, REST API at
localhost:3099, or CLI) - After completing a task, record the actual time spent using
record_actualorPOST /v1/feedback/record-actual - Include context — task type, complexity, tools used, anything that helps the model learn
- Batch submissions are fine — use
batch_record_actualsfor multiple estimates at once
Integration
- MCP: add
@puenteworks/epochto your project's.mcp.json - REST API:
epoch serve --port 3099 - CLI:
npx @puenteworks/epoch pert-estimate ...
Why This Is Non-Negotiable
Epoch's accuracy improves with data. Without estimate-vs-actual feedback from real projects, it's just a calculator with uncalibrated assumptions. Every project that uses Epoch and reports back makes every other project's estimates better. This is a collective intelligence system — it only works if everyone contributes.
<!-- EMPOWER_ORCHESTRATOR:START -->Empower the Orchestrator
This repository is governed by the Empower Orchestrator law. Every top-level/orchestrator Claude Code session is an audition to improve the system, not only finish the current task.
When you notice a repeatable task done 3+ times or a recurring agent failure mode, consider shipping the smallest durable artifact that prevents the repetition: a tool, skill, slash command, hook, guardrail, memory entry, test, verifier, or doctrine doc.
This applies to top-level/orchestrator sessions. Background workers execute their assigned slice and do not independently widen scope.
Before dispatching automation or creating a durable system change, state the four-question blast-radius check in chat:
- Scale: one file/workspace/all sessions?
- Severity: minor friction/broken workflow/data loss or leaked content?
- Reversibility: single revert/manual cleanup/surgery?
- Predictability: bounded failure mode/guessing/unknown?
All green permits auto mode. Any yellow requires inline human approval. Any red means do not dispatch; do the work inline or escalate.
Worker discipline: isolated worktree/sandbox, one artifact equals one commit/change unit, verify before commit, register through the target tool's native discovery surface, and never write outside the assigned scope.
Success line: “I noticed X, found a better way. The system just got an upgrade.”
Full recipe: docs/agent-law/empower-orchestrator.md.
<!-- EMPOWER_ORCHESTRATOR:END -->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.

