Skip to content

Load the agent guide via CLAUDE.md and lazy-load its runbooks - #33

Merged
mmacy merged 1 commit into
mainfrom
lazy-load-agent-guides
Jul 26, 2026
Merged

Load the agent guide via CLAUDE.md and lazy-load its runbooks#33
mmacy merged 1 commit into
mainfrom
lazy-load-agent-guides

Conversation

@mmacy

@mmacy mmacy commented Jul 26, 2026

Copy link
Copy Markdown
Owner

Claude Code reads CLAUDE.md, not AGENTS.md — so this repo's agent guide was never actually reaching a session. This adds a root CLAUDE.md that imports it (@AGENTS.md), then moves the task-specific sections into .claude/skills/ so they load on invocation instead of sitting in context every session.

Each migrated section keeps a one-line stub in AGENTS.md naming the exact skill file, so a tool that only reads AGENTS.md can still follow the pointer — nothing is hidden, it just is not preloaded. Load-bearing rules (the ones that must fire unprompted) stayed in the stub or were never moved at all.

No content was lost; migrated sections were relocated verbatim. Reviewed by diffing every distinctive phrase from each moved block against the new files.

https://claude.ai/code/session_012jzfBee7CQ43JBTwVihSjS

Claude Code reads CLAUDE.md, not AGENTS.md, so this repo's agent guide was
never actually reaching a session. Add a root CLAUDE.md that imports it with
@AGENTS.md.

That alone would put the whole guide in context on every session, so the two
sections that only matter during a specific task move to skills, which load on
invocation instead:

- .claude/skills/phase-loop/ — planning, implementing, the rubber-duck loop
- .claude/skills/release/    — the release runbook

Each section keeps a one-line stub in AGENTS.md naming the skill file, so a
tool that only reads AGENTS.md can still follow the pointer. The golden-file
trap stays in the stub verbatim — regenerating a golden for a version bump is
a defect by definition, and phase 8's plan put it in the runbook precisely
because it is the "fix" a contributor reaches for unprompted.

Everything else stays always-loaded: determinism, layering, events, commands,
schema discipline, frozen data, greenfield discipline, and the OGL/MIT split.

No content was lost; the sections were relocated verbatim.

Claude-Session: https://claude.ai/code/session_012jzfBee7CQ43JBTwVihSjS
@mmacy
mmacy merged commit 4c55cff into main Jul 26, 2026
5 checks passed
@mmacy
mmacy deleted the lazy-load-agent-guides branch July 26, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant