spec-optimizer

spec-optimizer is a skill for Claude Code, Codex from cdavid817/vanehub-ai. It costs 51 tokens per session (288 once invoked), scanned A, original, Apache-2.0.

A specification review tool for OpenSpec files, which describe software requirements and expected behavior. It finds possible duplicates, related groups, and oversized specifications.

In plain words
What is it for?
It is for analyzing specifications, preparing consolidation recommendations, checking coverage, and producing review files without changing the main specifications automatically.
Why use it?
It helps reduce repetition and keep requirements within agreed size limits while preserving traceability from original requirements to proposed replacements.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/cdavid817/vanehub-ai/spec-optimizer
Any agent
npx skills add cdavid817/vanehub-ai --skill spec-optimizer
Clone the repo
git clone --depth 1 https://github.com/cdavid817/vanehub-ai

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for spec-optimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/cdavid817/vanehub-ai/spec-optimizer.svg)](https://agentmods.dev/skills/cdavid817/vanehub-ai/spec-optimizer)
Your own site
<a href="https://agentmods.dev/skills/cdavid817/vanehub-ai/spec-optimizer"><img src="https://agentmods.dev/badge/skills/cdavid817/vanehub-ai/spec-optimizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 288 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.00288
Opus 5 $0.00026 $0.00144
Sonnet 5 $0.00010 $0.00058
Haiku 4.5 $0.00005 $0.00029

Measured 5d ago against content hash a4d3c6a0aebf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

spec-optimizer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.codex/skills/spec-optimizer/SKILL.md · 19 lines

What it actually says

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

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 19 lines · 51 tokens per session scan A a4d3c6a0aebf

Subscribe to this mod's changes

spec-optimizer is a skill published in the GitHub repository cdavid817/vanehub-ai (112 stars, last pushed today), licensed Apache-2.0. It adds 51 tokens to every session and 288 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

install-iterm-agent-fork

Install and set up pirate/iterm-agent-fork locally for iTerm2 agent-session forking. Use when a user asks to install, configure, repair, update, or verify the iTerm Agent Fork repo, AutoLaunch script, iTerm Python API launch, Cmd+Shift+F/Cmd+Shift+G key bindings, or optional casr cross-agent handoff support.

pirate/iterm-agent-fork · 85 tokens

kami-deck

A lab-meeting deck on gut-microbiome links to sleep quality — the design, the results, the caveats, and the next experiment. Built as a decision-grade academic research deck for lab group, PI.

nexu-io/open-design · 49 tokens

orbit-notion

Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…

nexu-io/open-design · 117 tokens

fs-editorial-forest

Art-directing a fashion house's annual report — the editorial system, the photography rhythm, and the data spreads. Built as a decision-grade design craft deck for brand stakeholders, exec audience.

nexu-io/open-design · 44 tokens

motion-frames

A single-frame motion-design composition with looping CSS animations — rotating type ring, animated globe, ticking timer, parallax labels. Renders as a hero video poster you can hand straight to HyperFrames or any keyframe-based exporter. Use when the brief asks for "motion design", "animated hero", "loop", "video…

nexu-io/open-design · 91 tokens

hr-onboarding

A new-hire onboarding plan as a single page — first week schedule, buddy + manager intro, learning track, equipment checklist, and "you're set when…" outcomes. Use when the brief mentions "onboarding", "new hire", "first week plan", or "入职".

nexu-io/open-design · 62 tokens