vanehub-ai: Skill for Codex

.codex/skills/spec-optimizer/SKILL.md

spec-optimizer is a skill for 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 Codex

Written for Codex: agents/openai.yaml present.

This is cdavid817/vanehub-ai's own configuration. It tells Codex how to work on vanehub-ai itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything vanehub-ai configures →

Reuse

Borrowing it

Nothing to install: this file belongs to cdavid817/vanehub-ai. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/cdavid817/vanehub-ai/main/.codex/skills/spec-optimizer/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/cdavid817/vanehub-ai

Made for: 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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for spec-optimizer

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.5 $0.00020 $0.00115
Sonnet 5.5 $0.00010 $0.00058
Haiku 4.5 $0.00005 $0.00029

Measured 1mo ago against content hash a4d3c6a0aebf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (109 stars, last pushed 4d ago), licensed Apache-2.0. It adds 51 tokens to every session and 288 once invoked, about $0.0002 per session on Opus 5.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.