Commit f2ac5cf
feat(ce-plan): extract conditional blocks to references/ for token savings
Extract three large conditional/late-sequence blocks from ce:plan SKILL.md
into on-demand reference files, reducing the base skill from 1,023 lines
(~15,525 tokens) to 685 lines (~9,971 tokens) — a 36% reduction.
For orchestration-heavy skills like ce:plan with 20-40+ tool/agent calls
per session, unused content carried in every message exchange compounds
significantly. This saves ~130,000-167,000 context tokens per planning
session depending on which code paths execute.
Extracted files:
- references/deepening-workflow.md (5.3.3-5.3.7, ~3,808 tok) — loaded
only when the deepening gate passes
- references/visual-communication.md (4.4, ~823 tok) — loaded only when
plan has complex visual-worthy content patterns
- references/plan-handoff.md (5.3.8-5.4, ~1,304 tok) — loaded only at
end of workflow for document review and post-generation options
Also adds a "Conditional and Late-Sequence Extraction" rule to the plugin
AGENTS.md to guide future skill optimization.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent bbd4f6d commit f2ac5cf
6 files changed
Lines changed: 378 additions & 348 deletions
File tree
- plugins/compound-engineering
- skills/ce-plan
- references
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
96 | 100 | | |
97 | 101 | | |
98 | 102 | | |
| |||
0 commit comments