openspec-sync-specs

Merge delta requirement blocks into main OpenSpec capability specs.

139|27|Updated Nov 9, 2014
One-click install
npx skills add https://github.com/nfe/client-nodejs --skill openspec-sync-specs-nfe
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openspec-sync-specs
Source: https://github.com/nfe/client-nodejs/tree/main/.github/skills/openspec-sync-specs
Command: npx skills add https://github.com/nfe/client-nodejs --skill openspec-sync-specs-nfe

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the problem of keeping main OpenSpec requirements up to date when you have a delta (change) spec, without overwriting everything or losing existing scenarios.

Core Features & Use Cases

  • Agent-driven intelligent merging: Reads delta specs and applies only the added, modified, removed, or renamed requirement parts to the corresponding main specs.
  • Capability-level synchronization: Updates the relevant openspec/specs/<capability>/spec.md for each capability found in the delta, creating the main spec if it does not exist yet.
  • Idempotent, guardrailed updates: Prompts you to choose a change when the change name is missing or ambiguous, and preserves main-spec content not referenced by the delta.

Quick Start

Ask the agent to sync a delta change into the main specs by name, or say to infer the change from the conversation context if it is unambiguous.

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 requirement specs into main OpenSpec specs without overwriting existing scenarios?

To merge delta specs into main OpenSpec specs, read both the delta and main spec files, then apply only the added, modified, removed, or renamed requirement blocks. This preserves existing scenarios and untouched content while keeping the main specs up to date.

What happens if a main spec file does not exist yet when syncing a delta change?

When a main spec file does not exist yet, the delta synchronization process automatically creates the missing `openspec/specs/<capability>/spec.md` file. This ensures new capabilities are properly initialized while applying the delta requirements.

Can I apply a delta spec merge idempotently so running it multiple times produces the same result?

Yes, the delta spec synchronization produces idempotent results, meaning applying the same delta merge multiple times will consistently yield the same final main spec state. It also provides a summary output of the applied changes.

How does spec synchronization handle ambiguous or missing change names in a delta branch?

When a change name is missing or ambiguous during spec synchronization, the process prompts you to choose the correct change. This guardrail ensures the correct delta branch or folder is applied to the active specs.

What is the best way to update only specific requirements in a main spec while leaving the rest untouched?

The best way to update specific requirements is to use a delta merge that edits only the requirement blocks mentioned in the delta. It reads the corresponding main spec and preserves all other content that is not referenced by the change.