Use when creating or refactoring skills that have grown too large (>300 lines) or have multiple phases/variants. Triggers: skill exceeds 300 lines, skill has multiple execution modes, skill mixes concerns (workflow + details). Pattern: SKILL.md as orchestrator (~150 lines) + resources/ for detailed instructions (~150 lines each).
When a skill becomes too large, it contaminates the LLM context and becomes harder to maintain. Skills with multiple phases or variants are especially prone to bloat.
~/.pi/agent/skills/<skill-name>/
├── SKILL.md # Orchestrator (~150 lines max)
├── resources/ # Detailed instructions (loaded as needed)
│ ├── phase-1.md
│ ├── phase-2.md
│ └── variant-a.md
└── scripts/ # Optional executable helpers
Contains only:
---