v2.2.0: Progressive Disclosure Architecture Optimization - 60% Token Reduction #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
v2.2.0: Progressive Disclosure Architecture (PDA) Optimization
Overview
This PR implements Anthropic's Progressive Disclosure Architecture, achieving a 60%+ token reduction while preserving all functionality of the SDD skill.
Summary of Changes
🎯 Key Metrics
📦 What Changed
Tier 1: Metadata Optimization (~100 tokens)
sdd,speckit,spec-driven,greenfield,brownfield,feature status,/speckit)tier1_token_budget: 100,tier2_token_budget: 2000Tier 2: Orchestrator Refactoring (~1,450 tokens)
NEW_PROJECT,EXISTING_PROJECT,FEATURE_MANAGEMENT,INSTALLATION,EXECUTE_WORKFLOW,COMMAND_REFERENCEskill_old.mdfor referenceTier 3: Modular Resources (lazy loaded, 400-6,000 tokens per request)
New Directory Structure:
All Tier 3 files include token budget tracking headers.
🎁 Benefits
✅ Token Efficiency: ~60% reduction in typical request cost
✅ Surgical Loading: Only load resources based on detected user intent
✅ Maintainability: Changes isolated to specific files, no monolithic updates
✅ Scalability: Easy to add new guides without touching orchestrator
✅ Clarity: Focused guides improve comprehension and reduce cognitive load
✅ No Breaking Changes: All workflows function identically from user perspective
📊 Files Changed
14 files changed, 4,761 insertions(+), 570 deletions(-)
Modified:
skill.md(633 → 290 lines, complete rewrite as Tier 2 orchestrator)Created (12 new Tier 3 resource files):
references/workflows/greenfield-quick-start.md(300 lines)references/workflows/brownfield-quick-start.md(300 lines)references/guides/greenfield-step-details.md(150 lines)references/guides/codebase-analysis.md(250 lines)references/guides/reverse-engineering.md(250 lines)references/guides/integration-planning.md(250 lines)references/guides/feature-management-quick.md(200 lines)references/templates/10-point-summary-template.md(100 lines)references/templates/feature-status-brief.md(60 lines)references/templates/feature-status-dashboard.md(100 lines)references/templates/command-reference.md(80 lines)references/examples/greenfield-examples.md(100 lines)skill_old.md(backup of original 633-line version)🧪 Testing
🚀 Migration Notes
skill_old.md📝 Version History
This implements v2.2.0 following v2.1.0 (Enhanced Summaries & Feature Status Tracking).
See
CLAUDE.mdfor complete version history and architecture documentation.Ready to merge - All phases complete, tested, and documented.
🤖 Generated with Claude Code