| name | core-context-management-size-limits-mandatory |
| description | Sub-skill of core-context-management: Size Limits (MANDATORY) (+3). |
| version | 1.0.0 |
| category | _core |
| type | reference |
| scripts_exempt | true |
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
./scripts/context/validate_context.sh
./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