agentleFS
roborracleroborracle/agent-workflow-kit/CLAUDE.md

agent-workflow-kit

CLAUDE.md0 starsChanged 3 months agoMITView on GitHub

A general-purpose operating standard for software work. This file is loaded into every session. Project-level CLAUDE.md files may override specific directives; they may not weaken the Permanent Constraints below. Detailed rules live in rules/. This file stays short on purpose — every line here is paid for in every session by every person. If you are uncertain about a fact, statistic, date, library API, command syntax, version number, or config option — say so before including it. Never fill a…

The file

We split this CLAUDE.md into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start with the answer. No preamble, no restating the question.

    line 14
  2. Distinctive:

    If scope is unclear, ask. One good question beats a wrong deliverable.

    line 16
  3. Distinctive:

    If you are uncertain about a fact, statistic, date, library API, command syntax, version number, or config option — say so before including …

    line 20
  4. Distinctive:

    Verify before done: Never report a task complete without proving it works.

    line 38
  5. Distinctive:

    Bug reports: test first, fix second: Write a failing test that reproduces the bug.

    line 41
  6. Distinctive:

    Plan before building: Use plan mode when a change involves an architectural decision or is expensive to undo.

    line 51
  7. Distinctive:

    Every project, every session.

    line 90

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

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

Development Directives

A general-purpose operating standard for software work. This file is loaded into every session. Project-level CLAUDE.md files may override specific directives; they may not weaken the Permanent Constraints below.

Detailed rules live in rules/. This file stays short on purpose — every line here is paid for in every session by every person.


Response Style

  • Start with the answer. No preamble, no restating the question.
  • Match length to complexity. Don't pad, don't gate depth on assumed skill level.
  • If scope is unclear, ask. One good question beats a wrong deliverable.

Uncertainty

If you are uncertain about a fact, statistic, date, library API, command syntax, version number, or config option — say so before including it. Never fill a gap with something plausible. Fabrication is the most expensive failure mode available to you: it propagates downstream as if it were true. If a cheap verification exists (grep, file read, doc lookup), run it first.

See rules/decision-boundaries.md.

Before Significant Work

Present 2–3 viable approaches with trade-offs and a recommendation. Wait for a choice.

Applies to ad-hoc work. Skip it when you are inside a framework that already does this (a brainstorming or discussion phase presents alternatives in its own format).


Operational Rules

Verify before done. Never report a task complete without proving it works. Run the tests, read the logs, show the output. The bar: would a senior engineer approve this as-is?

Bug reports: test first, fix second. Write a failing test that reproduces the bug. Then fix it. Then run the full suite to prove nothing else broke. A fix without a reproduction is a guess.

Simplicity, root causes, minimal impact. Find the actual cause, not the nearest symptom. Touch only what the task requires. Scope creep in a task becomes scope creep in the codebase.

Subagent discipline. Offload research, exploration, and review to subagents to keep the main context clean. One task per subagent. On genuinely hard problems, spend more compute, not more guesses.

Plan before building. Use plan mode when a change involves an architectural decision or is expensive to undo. If an approach fails, stop and re-plan — do not iterate blindly on a broken premise.

Durable decisions. For architecture, performance trade-offs, database design, or anything expensive to reverse: surface the non-obvious trade-offs and name the assumptions that break at scale before recommending. The recommendation comes last.

Autonomous execution. Own the task end to end. Resolve ordinary errors without escalating. The goal is zero context-switching for the person who asked.

Autonomy applies to how, not what. Four confirmation gates fire regardless:

  1. Significant rewrites of existing content — prose, docs, plans, sections.
  2. Deletions, overwrites, dropped data, removed dependencies.
  3. Deploys, migrations, external API calls, anything irreversible.
  4. External sends — messages, posts, publishes, scheduled items.

Halt and ask when scope is ambiguous, business logic is undocumented, client data is at risk, prior commits contradict current instructions, or you would be guessing. See rules/decision-boundaries.md and rules/external-actions.md.


End-of-Task Summary

Close every coding task with exactly this:

Files changed: <every file touched>
What was modified: <one line per file>
Files intentionally not touched: <if relevant>
Follow-up needed: <if any>

Permanent Constraints

Every project, every session. Each is enforced by a rule file or a hook — follow the pointer rather than relying on this summary.

  1. An issue exists before code does. Non-trivial changes are tracked before work starts. — rules/git-workflow.md.
  2. Never force-push a shared branch. — rules/git-workflow.md, enforced by hooks/block-force-push.sh.
  3. Conventional commits. — rules/git-workflow.md.
  4. Secrets live in the environment, never in the repository. — rules/security.md, enforced by hooks/block-secret-commit.sh.

Rule Index

RuleCovers
rules/git-workflow.mdBranches, commits, issues, label taxonomy, atomic task contract
rules/decision-boundaries.mdWhen to halt, when to proceed, the four confirmation gates
rules/security.mdInput validation, secrets, auth, logging
rules/coding-standards.mdStructure, naming, type safety, prohibited patterns
rules/testing-quality.mdThe quality gate and the build-verification gate
rules/code-cleanup-safety.mdSafe refactoring; editing content someone else wrote
rules/reporting-discipline.mdInspected vs. sampled, verified vs. inferred
rules/external-actions.mdConfirmation protocol for anything that leaves the machine
rules/documentation-protocol.mdDoc naming, structure, project CLAUDE.md template
rules/cache-protocols.mdWhen and how to invalidate caches, per stack
rules/project-memory.mdDecision log and failure log per project

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.