openspec-sync-specs

Merge delta spec changes into canonical main specs with idempotent edits.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/whatevertogo/Astrcode --skill openspec-sync-specs-whatevertogo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openspec-sync-specs
Source: https://github.com/whatevertogo/Astrcode/tree/main/.codex/skills/openspec-sync-specs
Command: npx skills add https://github.com/whatevertogo/Astrcode --skill openspec-sync-specs-whatevertogo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Many specification changes are authored as targeted delta specs that express intent (added, modified, removed, renamed requirements) but require careful, manual merging into the canonical main specs; this Skill automates that merging while preserving existing content and avoiding wholesale replacements.

Core Features & Use Cases

  • Agent-driven intelligent merging: Reads delta spec files and applies precise edits to main specs per-capability, adding scenarios or requirements without overwriting unrelated content.
  • Change selection and validation: Prompts the user to choose a change when ambiguous, ensures delta specs exist, and creates new spec files when capabilities are new.
  • Idempotent, auditable updates: Produces a summary of applied additions, modifications, removals, and renames so updates are reviewable and repeatable.

Quick Start

Apply the delta specs from the change named my-change to the main specs and return a concise summary of added, modified, removed, and renamed requirements.

Frequently Asked Questions about openspec-sync-specs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I merge delta specs into main specs without overwriting existing content?

Merging delta specs into main specs without overwriting content requires reading both delta and main spec files, then applying intent-driven updates that add, modify, remove, or rename requirement blocks while preserving unrelated content.

What is a delta spec and when do I need to sync it into a canonical spec?

A delta spec is a targeted specification file expressing intent like added, modified, or removed requirements. You need to sync it into a canonical main spec when changes are staged in openspec repositories and must be reflected in the main specification.

How do I apply intent-driven spec updates to add, modify, or remove requirement blocks?

Applying intent-driven spec updates involves reading delta spec changes and applying precise edits to main specs per-capability, adding scenarios or requirements based on the expressed intent to ensure accurate content updates.

Does openspec sync handle ambiguous changes when merging specification deltas?

OpenSpec sync handles ambiguous changes by prompting the user to choose the correct change during the merge process, ensuring the correct intent is applied and preventing incorrect modifications to the canonical main specs.

Can I create new spec files for new capabilities when syncing delta specs?

Yes, you can create new spec files when syncing delta specs. The sync process detects when capabilities are new and automatically creates the corresponding spec files to apply the delta changes.

Are merged spec changes idempotent and can I review a summary of applied updates?

Merged spec changes are idempotent and auditable. The process produces a summary of applied additions, modifications, removals, and renames, ensuring updates are reviewable and repeatable without duplicating requirement blocks.