Guides codebase exploration and documentation using AGENTS.md and .context/CONTEXT.md files. Covers principles for writing hierarchical summaries and progressive disclosure.
How this skill is triggered — by the user, by Claude, or both
Slash command
/creative-writing-skills:qi-layerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Load `/knowledge-layers` for where each layer lives and what it holds.
Load /knowledge-layers for where each layer lives and what it holds.
Load /llm-writing if it isn't already loaded.
This skill is about how to write and maintain the code-local pair:
AGENTS.md and .context/CONTEXT.md.
.context/CONTEXT.md for depth.Read AGENTS.md before opening code files.
Ask: what must someone understand before working here? That's what AGENTS.md captures.
Keep AGENTS.md 50–200 lines. Include only what has substance:
.context/ for depth, to related areasAn agent that only reads AGENTS.md should be able to work correctly here. An agent that also reads .context/ should be able to change things safely.
Reference depth, co-located with the code it describes. Where an agent goes when it needs contracts, architecture, or rationale in detail.
Sections (use only those with substance):
The .context/ directory is extensible: additional files alongside
CONTEXT.md for specialized concerns.
Apply the every-session test: root AGENTS.md loads on every session. If knowledge is only relevant when working in a specific domain, it belongs in that domain's AGENTS.md or .context/, not root.
Apply the think-vs-lookup test: if removing a piece of text would cause an agent to make a wrong decision, it belongs. If it would just mean the agent has to look it up, it belongs in .context/ instead.
Specific failure modes:
.context/ directories with contracts between themKeep knowledge layers current as you work. When your changes shift the mental model, contracts, or decisions: update AGENTS.md, .context/, and KB in the same pass, not as a deferred follow-up.
npx claudepluginhub haowjy/creative-writing-skills --plugin creative-writing-skillsGenerates hierarchical AGENTS.md files for every directory, enabling AI agents to navigate and understand codebase structure, relationships, and conventions.
Scaffolds AGENTS.md, ARCHITECTURE.md, and docs/ structure to make codebases legible to AI agents. Analyzes structure with bash recon, generates progressive disclosure docs, audits existing artifacts for coherence.
Generates or updates standardized AGENTS.md contributor guides for AI agents. Supports single-repo and monorepo structures, with dynamic character limits based on LOC. Use when setting up a new repo, onboarding agents, or refreshing after meaningful changes.