spec-optimizer
SolidAnalyze and safely optimize OpenSpec main specifications. Use when asked to find semantically duplicate Requirements or Scenarios, cluster related capabilities, enforce spec line/token budgets, or generate reviewable consolidation mappings and diffs without changing main specs automatically.
Code & Development 116 stars
2 forks Updated yesterday Apache-2.0
Install
Quality Score: 85/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# Spec Optimizer
Analyze `openspec/specs/` only. Never edit `openspec/specs/` or `openspec/changes/archive/` during analysis.
1. Parse capability, Requirement, Scenario, `SHALL`, and `MUST` units.
2. Report duplicate candidates and capability clusters as recommendations, not facts.
3. Flag specs above 500 lines or 8,000 tokens unless the user supplies different budgets.
4. For every proposed merge, create a mapping from each source Requirement and Scenario to a retained target or an explicit rejection reason.
5. Fail the coverage check when any source `SHALL` or `MUST` is missing from the mapping.
6. Write review artifacts in a new OpenSpec change: `analysis/report.md`, `analysis/mapping.md`, `analysis/coverage.md`, `analysis/diff.md`, and proposed delta specs.
7. Stop before applying changes. Ask the user to review the artifacts and use the normal OpenSpec workflow for approved edits.
Use the archive catalog only to locate historical context after a main-spec candidate is identified; do not optimize or rewrite archive artifacts.
Details
- Author
- cdavid817
- Repository
- cdavid817/vanehub-ai
- Created
- 2 months ago
- Last Updated
- yesterday
- Language
- Rust
- License
- Apache-2.0
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
Testing & QA Listed
spec
Create specifications through parallel analysis
4 Updated yesterday
bitcraft-apps Code & Development Listed
openspec-sync-specs
Sync delta specs from a change to main specs. Use when the user wants to update main specs with changes from a delta spec, without archiving the change.
25 Updated 4 days ago
AkaraChen Testing & QA Listed
openspec-sync-specs
Sync delta specs from a change to main specs. Use when the user wants to update main specs with changes from a delta spec, without archiving the change.
2 Updated 2 weeks ago
dmz2922990