Size Limits (MANDATORY) (+3)
Size Limits (MANDATORY)
| File | Max Size | Max Lines | Purpose |
|---|---|---|---|
~/.Codex/AGENTS.md |
2KB | 50 | Global preferences |
Workspace AGENTS.md |
4KB | 100 | Delegation patterns |
Project AGENTS.md |
8KB | 200 | Project rules |
Codex.local.md |
2KB | 50 | User overrides |
Validation Command
# Run validation across all repos
./scripts/context/validate_context.sh
# Check single repo
./scripts/context/validate_context.sh digitalmodel
Content Categories
MUST be in AGENTS.md:
- Mandatory behavioral rules (TDD, batching, etc.)
- Plan mode conventions
- Cross-review requirements
- File organization rules
- Key delegation patterns
MUST be in .Codex/docs/ (reference):
- Agent lists and descriptions
- MCP tool reference tables
- Execution workflow diagrams
- Code examples and patterns
- Memory namespace details
Automated Improvement
The skill analyzes past work to suggest improvements:
- Pattern Detection: Identifies frequently used instructions
- Redundancy Removal: Flags duplicate content across files
- Usage Analysis: Tracks which docs are actually loaded
- Suggestion Generation: Proposes optimizations