Skip to content
Back to skills

Spec Optimizer

ASecurity

Analyze 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.

  • 116 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 4, 2026
development

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add cdavid817/vanehub-ai --skill spec-optimizer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Spec Optimizer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Spec Optimizer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cdavid817-spec-optimizer/badge)](https://www.skillsdirectory.com/skills/cdavid817-spec-optimizer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: spec-optimizer
description: Analyze 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.
---

# 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.

Files in this skill

  • SKILL.md1.4 KB
  • agents/openai.yaml223 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…