openspec-sync

openspec-sync is a skill for Claude Code from digital-stoic-org/agent-skills. It costs 30 tokens per session (1,200 once invoked), scanned A, original, MIT.

A documentation-sync tool for OpenSpec, a structured way to plan and track software changes. It updates project context and documentation to match implementation progress.

In plain words
What is it for?
Use it after implementation or when saving session state to refresh context files, documentation, and change status.
Why use it?
It removes the need to update several project records by hand and helps prevent documentation from falling out of date.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter; mentions CLAUDE.md.

Part of the openspec plugin — 9 skills shipped together

Good fit Use it after implementation or when saving session state to refresh context files, documentation, and change status.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/digital-stoic-org/agent-skills/openspec-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 digital-stoic-org/agent-skills --skill openspec-sync
Clone the repo
git clone --depth 1 https://github.com/digital-stoic-org/agent-skills

Made for: Claude Code.

Or install openspec, the plugin that ships this one along with the rest of its 9 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-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/digital-stoic-org/agent-skills/openspec-sync/github.svg)](https://agentmods.dev/skills/digital-stoic-org/agent-skills/openspec-sync)
Your own site
<a href="https://agentmods.dev/skills/digital-stoic-org/agent-skills/openspec-sync"><img src="https://agentmods.dev/badge/skills/digital-stoic-org/agent-skills/openspec-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 openspec-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/digital-stoic-org/agent-skills/openspec-sync"><img src="https://agentmods.dev/badge/skills/digital-stoic-org/agent-skills/openspec-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,200 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 warn 7 Sept 2026
SkillSpector: 2 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 4
    Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.
    Fix: Remove the model/provider override or disclose it prominently and require explicit operator approval before invoking an external coding CLI or billed model.
  • medium Excessive Agency · line 29
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
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.00030 $0.01200
Opus 5.5 $0.00012 $0.00480
Sonnet 5.5 $0.00006 $0.00240
Haiku 4.5 $0.00003 $0.00120

Measured 1mo ago against content hash ece2fcce1eb8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

openspec/skills/openspec-sync/SKILL.md · 178 lines

How it starts

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

OpenSpec Sync

Context and documentation synchronization for OpenSpec changes. Keeps CONTEXT-llm.md and docs in sync with implementation state.

Workflow: Check → Gather → Write

flowchart LR
    A["Get status via CLI"] --> B["Read current state"]
    B --> C["Gather context"]
    C --> D["Write updates"]
    D --> E["Verify idempotent"]

    classDef action fill:#C8E6C9,stroke:#388E3C,color:#000
    class A,B,C,D,E action

Critical: Use openspec status for change state, never parse files directly.

Guardrails

Autonomous (no confirmation needed):

  • CONTEXT-llm.md updates
  • Doc content refresh
  • Status queries via CLI

Ask-first (pause and confirm):

  • Creating new doc files not mentioned in proposal
  • Deleting outdated docs
  • Major restructuring of existing docs

CLI Delegation

Always use CLI for status:

openspec status {change-id}

Never:

  • Parse proposal.md for status manually
  • Infer status from file existence
  • Maintain separate status tracking

The CLI is the single source of truth for change status.

Commands

sync

Full synchronization: updates CONTEXT-llm.md and refreshes docs in one command.

Input: $ARGUMENTS = change-id

Workflow:

  1. Run openspec status {change-id} for current state
  2. Read git state: git status --short, git log -1 --oneline
  3. Read openspec/changes/{change-id}/tasks.md for progress
  4. Update CONTEXT-llm.md with gathered state
  5. Identify docs affected by implementation (Glob for modified files)
  6. Refresh affected docs if out of sync

Output:

✅ Sync complete for {change-id}
- CONTEXT-llm.md: updated
- Docs refreshed: {count} files
- Change status: {status from CLI}

docs

Refresh documentation files only (no CONTEXT-llm.md update).

Input: $ARGUMENTS = change-id

Workflow:

  1. Run openspec status {change-id} for affected files
  2. Read openspec/changes/{change-id}/proposal.md → Affected Files
  3. Glob for modified files since change started
  4. Identify docs that reference changed files
  5. Update those docs to reflect current implementation

Read the full file on GitHub · 178 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. 1mo ago First seen · 178 lines · 30 tokens per session scan A ece2fcce1eb8

Subscribe to this mod's changes

openspec-sync is a skill published in the GitHub repository digital-stoic-org/agent-skills (20 stars, last pushed 12d ago), licensed MIT. It adds 30 tokens to every session and 1,200 once invoked, about $0.0001 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-09-04.

Related

Other skills, from other repositories