openspec-audit-change

openspec-audit-change is a skill for Claude Code, Codex from redhat-developer/rhdh-skills. It costs 79 tokens per session (2,003 once invoked), scanned A, original, Apache-2.0.

A review tool for OpenSpec change plans that compares their proposal, specifications, design, and task documents before coding begins. It also checks selected repository conventions and codebase details.

In plain words
What is it for?
Use it to audit a named OpenSpec change, verify that required artifacts are complete, and check whether the plan is ready to apply.
Why use it?
It catches contradictions or missing pieces between planning documents before implementation turns them into code problems.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: mentions CLAUDE.md; mentions subagents; mentions AGENTS.md.

Part of the refinement plugin — 13 skills shipped together

Good fit Use it to audit a named OpenSpec change, verify that required artifacts are complete, and check whether the plan is ready to apply.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/redhat-developer/rhdh-skills/openspec-audit-change
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.

Any agent
npx skills add redhat-developer/rhdh-skills --skill openspec-audit-change
Clone the repo
git clone --depth 1 https://github.com/redhat-developer/rhdh-skills

Made for: Claude Code, Codex.

Or install refinement, the plugin that ships this one along with the rest of its 13 skills.

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 openspec-audit-change

README.md
[![agentmods](https://agentmods.dev/badge/skills/redhat-developer/rhdh-skills/openspec-audit-change.svg)](https://agentmods.dev/skills/redhat-developer/rhdh-skills/openspec-audit-change)
Your own site
<a href="https://agentmods.dev/skills/redhat-developer/rhdh-skills/openspec-audit-change"><img src="https://agentmods.dev/badge/skills/redhat-developer/rhdh-skills/openspec-audit-change.svg" alt="Measured on agentmods" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,003 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.00079 $0.02003
Opus 5 $0.00039 $0.01001
Sonnet 5 $0.00016 $0.00401
Haiku 4.5 $0.00008 $0.00200

Measured 7d ago against content hash 1a4fe381fabe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

openspec-audit-change 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 7d 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.

skills/refinement/openspec-audit-change/SKILL.md · 135 lines

How it starts

The opening of the file, as written. The whole thing — 135 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Audit an OpenSpec change

Spawn an isolated auditor over one change's artifacts, catch cross-artifact drift before code gets written, and never claim a clean audit the checks did not actually confirm.

Steps

  1. Select the change. If not given, run openspec list --json, show active (non-archived) changes with schema, and let the user choose. Never guess.
  2. Gather artifacts and convention docs. Run openspec status --change "<name>" --json and openspec instructions apply --change "<name>" --json; collect every artifact path from contextFiles plus .openspec.yaml. If the CLI is unavailable, fall back to filesystem discovery under openspec/changes/<name>/. Locate repo-root convention docs (AGENTS.md, CLAUDE.md, CONTRIBUTING.md) and the schema's context/rules if available from /rhdh-spec-driven-schema.
  3. Enforce the apply-ready minimum before doing anything else. Build the union of the schema's apply.requires (or CLI applyRequires) and {proposal, design, specs, tasks}. Preferred: every ID in that union must show status: "done" in the status JSON. Filesystem fallback: read .openspec.yaml for the schema name, read that schema's apply.requires, and check each mapped path exists and is non-empty (proposal->proposal.md, design->design.md, tasks->tasks.md, specs->at least one specs/**/spec.md). If the required set cannot be determined, or any required artifact is missing/not done: report CRITICAL, state "Audit blocked (CRITICAL findings remain)", write/update audit.md with the current UTC timestamp, suggest /openspec-continue-change, and stop — do not build the ownership map or spawn the auditor.
  4. Build a cross-change ownership map. Resolve sibling changes (reuse openspec list --json from step 1, or filesystem-list openspec/changes/* excluding this change and archive/). For each sibling, read only its proposal.md Canonical Touchpoints section and design.md Decisions section, and build a lightweight capability/namespace/claim -> [change names] map. Pass the map (or condensed claim lines), not full sibling trees, to the auditor. If sibling discovery fails entirely, pass an empty map and note category E ran degraded in the final report — do not fail the whole audit for this alone.
  5. Spawn an independent auditor subagent (Task tool, subagent_type: general-purpose). Give it only: change name, absolute artifact paths, the ownership map, convention doc paths, the checklist below, and the required JSON return schema. Explicitly forbid passing authoring rationale or "what we meant" — this is prompt isolation, not a sandbox; instruct it to limit reads to the given paths. Require it to return:

Read the full file on GitHub · 135 lines

Files

What ships with it

2 files 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. 7d ago First seen · 135 lines · 79 tokens per session scan A 1a4fe381fabe

Subscribe to this mod's changes

openspec-audit-change is a skill published in the GitHub repository redhat-developer/rhdh-skills (16 stars, last pushed 3d ago), licensed Apache-2.0. It adds 79 tokens to every session and 2,003 once invoked, about $0.0004 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.