Tempting shortcut
Every folder benefits from instructions.
Do this instead
Static or self-explanatory folders should not get new context files.
Quick Ref / Command
Marketing Kit
/ak:folder-context
Creates compact local CLAUDE.md and linked AGENTS.md files only when a subfolder has durable conventions future agents cannot infer.
Confirm target
Inspect local evidence
Run sanity gate
Propose outline
Rule 01
Local context must be compact, specific, and durable.
Rule 02
Create context only when future agents cannot infer it from nearby files.
Rule 03
User-confirmed decisions and folder evidence are the only valid sources.
Rule 04
Root instructions and project docs belong to other skills.
Core lanes from input to output, aligned with the command's real execution path.
Start
Input, scope, route
Work
Agent / skill execution
Verify
Gate, review, validation
Close
Report, handoff, artifact
Each item contrasts a tempting shortcut with the required approach.
Tempting shortcut
Every folder benefits from instructions.
Do this instead
Static or self-explanatory folders should not get new context files.
Tempting shortcut
Copy the root rules for safety.
Do this instead
Duplicating root instructions creates drift. Keep only local, durable differences.
Concrete invocations for each flag, subcommand, mode, or route available in the live workflow.
/ak:folder-context src/components/forms /ak:folder-context src/features/checkout /ak:folder-context src/i18n