CLAUDE-scope.md.tmpl
1.8 KB64 lines
---type: claude-instructionsscope: [SUBDIRECTORY-NAME]tags:- claude- meta- scopedcreated: [YYYY-MM-DD]updated: [YYYY-MM-DD]aliases:- [SUBDIRECTORY] Instructions---<!--CLAUDE-[scope].md: Subdirectory-scoped Claude instructions.Generate one of these ONLY when:- The subdirectory has operational rules distinct from root CLAUDE.md- Granular instructions would clutter root CLAUDE.md- A specific data type or workflow lives in this folderWhen this file exists, root CLAUDE.md MUST log it under "Subdirectoryreference files" with a wikilink and one-line trigger condition.Scope: Everything in this file applies ONLY to work happening in or withfiles inside [SUBDIRECTORY-NAME]/. Root CLAUDE.md still applies toeverything else.--># [SUBDIRECTORY-NAME]: Scoped Claude Instructions## ScopeThese instructions apply ONLY when working with files in `[SUBDIRECTORY-NAME]/`. For everything else, see [[CLAUDE]] at the vault root.## Why this file exists[2-3 sentences. What's special about this subdirectory that warrants its own scoped instructions. If this isn't clear, the file probably shouldn't exist.]## Operational rules in this scope<!-- Rules that ADD TO or OVERRIDE root CLAUDE.md when working in this directory. -->- [Rule]- [Rule]- [Rule]## File and naming conventions in this scope[How files in this subdirectory are organized, named, and structured. Any required frontmatter fields beyond the project default.]## Output requirements in this scope[If outputs from this subdirectory have a specific format or destination, document it here.]## Cross-references- Root instructions: [[CLAUDE]]- Project memory: [[MEMORY]]- [Any other relevant references]## What this scope is NOT for[Out-of-scope work that should be redirected to a different subdirectory or to root.]