One-click install
npx skills add https://github.com/huangjia2019/sdd-in-action --skill openspec-sync-specs-huangjia2019
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openspec-sync-specs
Source: https://github.com/huangjia2019/sdd-in-action/tree/main/week2/code/.opencode/skills/openspec-sync-specs
Command: npx skills add https://github.com/huangjia2019/sdd-in-action --skill openspec-sync-specs-huangjia2019

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Syncs change delta specification files into canonical OpenSpec main specs to remove manual, error-prone edits and ensure consistent spec updates across capabilities.

Core Features & Use Cases

  • Agent-driven intelligent merging: Reads delta specs and main specs to add, modify, remove, or rename requirements without overwriting unrelated content.
  • Per-capability updates and creation: Applies changes per capability, creating new spec files when needed and preserving scenarios not mentioned in the delta.
  • Auditable summary and idempotency: Produces a clear summary of updates and is designed to be idempotent so repeated runs do not produce divergent results.

Quick Start

Use the openspec-sync-specs skill to select a change and apply its delta specs to the main openspec/specs directory.

Frequently Asked Questions about openspec-sync-specs

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

FAQPage Schema
How do I sync delta specs into main OpenSpec spec files?

To sync delta specs into main OpenSpec spec files, the skill reads delta and main spec markdown to intelligently merge changes per capability, preserving unrelated content while adding, modifying, or removing requirements.

Can I automatically merge requirement changes without overwriting unrelated spec content?

Yes, automatic merging applies only the specific requirement updates from the delta file, such as renaming or modifying, while preserving existing scenarios and unrelated content in the main specification markdown.

What is the best way to apply per-capability delta changes to canonical specs?

The best way to apply per-capability delta changes is using an agent-driven process that reads each delta file, creates new spec files when needed, and produces an auditable summary of all applied updates.

Does running spec synchronization repeatedly produce divergent or duplicate results?

No, repeated spec synchronization runs do not produce divergent results because the merging process is designed to be idempotent, ensuring consistent main spec files across multiple identical delta applications.

How do I handle adding and renaming requirements in OpenSpec repositories?

Handling requirement additions and renames involves reading the delta specification markdown, applying the targeted changes to the main spec file, and generating a clear summary of the updated capability requirements.

When do I need to create new spec files during a delta sync?

New spec files need to be created during delta sync when a delta specification introduces a capability or requirement set that does not yet exist in the main OpenSpec specs directory.