Load the agent guide via CLAUDE.md and lazy-load its runbooks - #33
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claude Code reads
CLAUDE.md, notAGENTS.md— so this repo's agent guide was never actually reaching a session. This adds a rootCLAUDE.mdthat 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.mdnaming the exact skill file, so a tool that only readsAGENTS.mdcan 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