spec-sync

spec-sync is a skill for Claude Code, Codex from mouchegmouradian/claude-code-skills. It costs 116 tokens per session (1,414 once invoked), scanned A, original, MIT.

A workflow for keeping product requirements documents (PRDs) and technical design documents (RFCs) accurate after code changes. A PRD explains what a product should do and why; an RFC explains how it should be built.

In plain words
What is it for?
Use it to compare code changes with project documents and update only the affected PRD or RFC sections.
Why use it?
It helps prevent requirements and implementation documents from becoming outdated while preserving parts that did not change.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to compare code changes with project documents and update only the affected PRD or RFC sections.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mouchegmouradian/claude-code-skills/spec-sync
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 mouchegmouradian/claude-code-skills --skill spec-sync
Clone the repo
git clone --depth 1 https://github.com/mouchegmouradian/claude-code-skills

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-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/mouchegmouradian/claude-code-skills/spec-sync/github.svg)](https://agentmods.dev/skills/mouchegmouradian/claude-code-skills/spec-sync)
Your own site
<a href="https://agentmods.dev/skills/mouchegmouradian/claude-code-skills/spec-sync"><img src="https://agentmods.dev/badge/skills/mouchegmouradian/claude-code-skills/spec-sync/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-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/mouchegmouradian/claude-code-skills/spec-sync"><img src="https://agentmods.dev/badge/skills/mouchegmouradian/claude-code-skills/spec-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,414 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.
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.00116 $0.01414
Opus 5 $0.00058 $0.00707
Sonnet 5 $0.00023 $0.00283
Haiku 4.5 $0.00012 $0.00141

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

Security

Grade A, and why

spec-sync 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 9d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (hooks/spec-sync-reminder.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/spec-sync/SKILL.md · 160 lines

How it starts

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

Spec Sync

Keep PRD and RFC documents accurate after code changes. The goal is surgical updates — only change what drifted, leave everything else intact.

When to trigger

  • User says: "sync the specs", "update the PRD", "reflect this in the RFC", "docs are stale", "keep the docs up to date", "update the requirements"
  • After implementing an RFC (natural checkpoint)
  • When a hook reminder fires after a git commit
  • When requirements change mid-session and the user wants them captured

Workflow

Step 1 — Locate the docs

Look for a Product requirements/ directory in the project root. Also check docs/, specs/, rfcs/. If not found, ask the user where their PRD/RFC docs live.

List what you find:

  • PRD file(s)
  • RFC files (note their numbers and slugs)

Step 2 — Understand what changed

First, determine the sync baseline — the commit where docs were last updated:

# Find the last commit that touched the docs directory
git log --oneline -- "Product requirements/" | head -3

Use that commit hash as the base. If no such commit exists (docs were never committed), use git log --oneline -10 and ask the user which commit to diff from.

Then gather the changes:

git diff <base>..HEAD --stat
git diff <base>..HEAD

Summarize in plain language:

  • New files created
  • Existing files modified (which areas?)
  • Files deleted or renamed
  • New dependencies added (package.json, pubspec.yaml, build.gradle, etc.)
  • Config or schema changes

Step 3 — Read the docs

Read every PRD and RFC file. Build a mental map:

  • Scope: what's in, what's explicitly out
  • Data models: field names, types, relationships
  • Architecture: tech stack, patterns, service boundaries
  • RFC coverage: what area each RFC owns

Step 4 — Identify drift

Compare the code changes against the docs. Categorize each discrepancy:

Drift type Example
New feature not in docs Added offline_mode flag, PRD doesn't mention it
Changed data model Renamed userIdaccountId in code, docs still say userId
Descoped feature Deleted voice_capture.dart but RFC-003 lists it as in-scope
Architecture change Switched REST → GraphQL, RFC-000 still says REST
New RFC needed Added a full payments module, no RFC covers it
Outdated dependency Upgraded to a major library version, tech stack table is stale

Read the full file on GitHub · 160 lines

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. 9d ago First seen · 160 lines · 116 tokens per session scan A c7244ac2622b

Subscribe to this mod's changes

spec-sync is a skill published in the GitHub repository mouchegmouradian/claude-code-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 116 tokens to every session and 1,414 once invoked, about $0.0006 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-31.

Related

Other skills, from other repositories

exploratory-data-analysis

Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…

K-Dense-AI/scientific-agent-skills · 83 tokens

google-ads-audit

Google Ads account audit and business context setup. Run this first — it gathers business information, analyzes account health, and saves context that all other ads skills reuse. Trigger on "audit my ads", "ads audit", "set up my ads", "onboard", "account overview", "how's my account", "ads health check", "what should…

nowork-studio/notfair-plugin · 114 tokens

data-charts-tako

Search and visualize the world's data - get charts, insights, and embeddable knowledge cards for finance, economics, demographics, sports, and more.

gooseworks-ai/goose-skills · 35 tokens

webhook-management

Configure and validate CCAM webhook targets across supported chat, incident, automation, and generic providers. Use when listing provider requirements, creating or updating a target, scoping it to alert rules, sending a test notification, reviewing delivery history, or deleting a target.

hoangsonww/Claude-Code-Agent-Monitor · 56 tokens

gesellschaftsrechtliche-satzungen-agb

Für Gesellschaftsrechtliche Satzungen AGB Abgrenzung: ordnet Norm, Beweislast und Gegenargument; Ergebnis: Prüfprodukt mit Risiko und nächstem Schritt. Fachgebiet: AGB-Recht-Prüfer. Route: gesellschaftsrechtliche-satzungen-agb.

Klotzkette/claude-fuer-deutsches-recht · 69 tokens

master-yinguang

A reference-based assistant for questions about Yinguang and Pure Land Buddhism, a Buddhist tradition focused on faith, ethical living, and practice connected with rebirth in the Pure Land. It can answer in Yinguang’s historical teaching style.

xr843/Master-skill · 274 tokens