cw/skills/qi-layer/SKILL.md
Use when exploring or changing the codebase: read AGENTS.md first, use .context/CONTEXT.md for detail, keep intent docs succinct.
npx skillsauth add haowjy/creative-writing-skills qi-layerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
tools
Use when orienting in an unfamiliar area — fans out exploration across structure, knowledge, and history, then synthesizes one orientation map.
development
Load when building a static HTML artifact — single page or multi-page site — to make structured information explorable through layout and navigation.
testing
User-invoked pause before reporting to check intent vs literal completion, surface adjacent wins, and route knowledge capture.
data-ai
Use when validating markdown links or Mermaid diagrams.