Purpose: Ensure all context files follow the same format and structure
Last Updated: 2026-02-15
Files MUST be under line limits (see below) All files MUST follow MVI principle Files MUST be in correct folder MUST update navigation.md when creating files
Ask: Is this a concept, example, guide, lookup, or error?
→ Place in correct folder
Use standard template for file type (see templates.md)
Ensure file under limit. If not, split or reference external.
Link to related concepts/, examples/, guides/, errors/
Add entry to navigation.md in parent directory
| Type | Format | Example |
|---|---|---|
| Concept | {concept-name}.md |
authentication.md |
| Example | {example-name}.md |
jwt-example.md |
| Guide | {action-name}.md |
creating-agents.md |
| Lookup | {reference-name}.md |
commands.md |
| Error | {error-category}.md |
auth-errors.md |
Rules:
concept-authentication.md)<!-- Context: {path} | Priority: {level} | Version: {X.Y} | Updated: {YYYY-MM-DD} -->
Priority levels: critical, high, medium, low
When to use:
| File Type | Max Lines |
|---|---|
| Concept | 100 |
| Example | 80 |
| Guide | 150 |
| Lookup | 100 |
| Error | 150 |
Enforcement: Strict. If over limit, split into multiple files or reference external docs.
Format: See {type}/{filename}.md for {what}
Examples:
See concepts/authentication.md for JWT detailsSee examples/jwt-example.md for working codeSee errors/auth-errors.md for troubleshootingBest practices:
When creating a file, update parent navigation.md:
| File | Description | Priority |
|------|-------------|----------|
| new-file.md | Brief description | high |
Keep navigation:
| Mistake | Fix |
|---|---|
| File too long | Split into multiple files or compress |
| Missing frontmatter | Add HTML comment at top |
| Wrong folder | Move to correct function folder |
| No cross-references | Add links to related files |
| Verbose explanations | Apply MVI compression |
| Missing from navigation | Update navigation.md |
| File Type | Template | Use When |
|---|---|---|
| Concept | Concept template | Explaining what something is |
| Example | Example template | Showing working code |
| Guide | Guide template | Step-by-step instructions |
| Lookup | Lookup template | Quick reference data |
| Error | Error template | Troubleshooting issues |
See templates.md for full templates.