agentleFS
dgeniodgenio/agent-kernel/.claude/CLAUDE.md

agent-kernel

CLAUDE.md2 starsChanged 3 months agoApache-2.0View on GitHub

Read AGENTS.md before making any changes. It is the canonical source of truth for all shared rules, conventions, and documentation pointers. - Read AGENTS.md and the relevant docs/agent-context/ file for the topic before proposing changes. - Check existing code patterns in the target area. Do not infer repo-wide conventions from a single file. - When path-specific conventions exist (see Code conventions in AGENTS.md), follow them exactly. - Preserve invariants. Consult docs/agent-context/invariants.md before any change that touches security, tokens, policy, or…

The file

Show its rules and text

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

18 rules. About 0 are common, 11 are distinctive, and 7 are 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.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read AGENTS.md before making any changes.

    line 3
  2. Very specific:

    Read AGENTS.md and the relevant docs/agent-context/ file for the topic before proposing changes.

    line 8
  3. Distinctive:

    Check existing code patterns in the target area.

    line 10
  4. Distinctive:

    When path-specific conventions exist (see Code conventions in AGENTS.md), follow them exactly.

    line 12
  5. Distinctive:

    Use only the conventions documented in AGENTS.md.

    line 19
  6. Very specific:

    Use make ci as the single validation command.

    line 20
  7. Distinctive:

    Do not "clean up" or "simplify" code unless the change was requested.

    line 21
  8. Very specific:

    Run make ci and confirm it passes.

    line 26
  9. Distinctive:

    If a public API, workflow, invariant, or convention changed, update the relevant canonical doc in the same changeset.

    line 27
  10. Distinctive:

    Verify that every changed docstring matches the final implementation.

    line 29
  11. Distinctive:

    Check for dead code: unused parameters, fixtures, or helpers.

    line 30
  12. Distinctive:

    When docs contradict code or each other:

    line 34
  13. Distinctive:

    When a mistake or unexpected pattern is discovered during work:

    line 43
  14. Very specific:

    If yes, identify the canonical home using the workflow in docs/agent-context/lessons-learned.md.

    line 45
  15. Distinctive:

    Treat candidate lessons as provisional.

    line 47
  16. Very specific:

    Update canonical shared docs (AGENTS.md, docs/agent-context/) first.

    line 52
  17. Very specific:

    Update tool-specific files (this file, .github/copilot-instructions.md) second.

    line 53
  18. Very specific:

    If a Claude-specific rule becomes shared and durable, promote it into canonical docs and remove it from .claude/.

    line 55

≈ “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 Instructions — agent-kernel

Read AGENTS.md before making any changes. It is the canonical source of truth for all shared rules, conventions, and documentation pointers.

Explore before acting

  • Read AGENTS.md and the relevant docs/agent-context/ file for the topic before proposing changes.
  • Check existing code patterns in the target area. Do not infer repo-wide conventions from a single file.
  • When path-specific conventions exist (see Code conventions in AGENTS.md), follow them exactly.

Implement safely

  • Preserve invariants. Consult docs/agent-context/invariants.md before any change that touches security, tokens, policy, or the firewall.
  • Use only the conventions documented in AGENTS.md. Do not invent new ones.
  • Use make ci as the single validation command. Do not guess alternatives.
  • Do not "clean up" or "simplify" code unless the change was requested. Hidden constraints may exist.

Validate before completing

  • Run make ci and confirm it passes.
  • If a public API, workflow, invariant, or convention changed, update the relevant canonical doc in the same changeset.
  • Verify that every changed docstring matches the final implementation.
  • Check for dead code: unused parameters, fixtures, or helpers.

Handle contradictions

When docs contradict code or each other:

  1. Code is authoritative over docs.
  2. Canonical shared docs (AGENTS.md, docs/agent-context/) are authoritative over tool-specific files.
  3. Surface the contradiction explicitly. Do not silently pick one side.
  4. Fix stale docs in the same changeset when possible.

Capture lessons

When a mistake or unexpected pattern is discovered during work:

  1. Determine if it generalizes — would it recur in a similar task?
  2. If yes, identify the canonical home using the workflow in docs/agent-context/lessons-learned.md.
  3. Treat candidate lessons as provisional. Do not promote a fresh observation into durable guidance from a single incident.

Update order

  1. Update canonical shared docs (AGENTS.md, docs/agent-context/) first.
  2. Update tool-specific files (this file, .github/copilot-instructions.md) second.
  3. If a Claude-specific rule becomes shared and durable, promote it into canonical docs and remove it from .claude/.

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.