openspec-sync-specs

Merge delta specifications into main OpenSpec specs under openspec/specs.

221|96|Updated May 18, 2022
One-click install
npx skills add https://github.com/SAP/e-mobility-charging-stations-simulator --skill openspec-sync-specs-sap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openspec-sync-specs
Source: https://github.com/SAP/e-mobility-charging-stations-simulator/tree/main/.opencode/skills/openspec-sync-specs
Command: npx skills add https://github.com/SAP/e-mobility-charging-stations-simulator --skill openspec-sync-specs-sap

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Delta specs often live alongside main specs. This skill enables applying changes from a delta to the corresponding main specs without archiving or duplicating work.

Core Features & Use Cases

  • Delta-to-main merge: Reads delta specifications from openspec/changes/<change>/specs and updates the matching main specs under openspec/specs, preserving existing content not touched by the delta.
  • Intelligent merging: Applies ADDED/MODIFIED/RENAMED directives to produce a coherent main spec with minimal disruption.
  • Safe, idempotent operation: Re-running yields the same outcome as long as delta content remains unchanged.

Quick Start

Provide the delta change name to apply (e.g., myDelta). The system reads delta specs from openspec/changes/myDelta/specs and updates or creates main specs under openspec/specs according to the delta.

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 losing existing content?

To merge delta specs into main specs without losing existing content, use a synchronization tool that applies ADDED, MODIFIED, and RENAMED directives from your delta directory to the core specifications. This process updates or creates main specs while preserving untouched content during the merge operation.

What is a delta specification and when do I need to sync it?

A delta specification contains incremental changes meant to update core specifications. You need to sync delta specs when changes live alongside main specs and must be applied to the core without archiving or duplicating work, ensuring the main specifications reflect the latest modifications coherently.

How to apply ADDED and MODIFIED directives to update OpenSpec specifications?

Applying ADDED and MODIFIED directives involves reading delta specs from the changes directory and intelligently merging them into the main OpenSpec specifications. This updates the core specs by adding new content or altering existing sections, producing a coherent main specification with minimal disruption to the structure.

Can I re-run delta spec synchronization without causing duplicate changes?

Yes, you can re-run delta spec synchronization without causing duplicates because the operation is idempotent. Re-running yields the same outcome as long as the delta content remains unchanged, ensuring safe, repeatable merges into the main specifications without introducing redundant data or errors.

Does this spec sync approach work with RENAMED directives in OpenSpec?

Yes, spec sync works with RENAMED directives in OpenSpec. The synchronization process intelligently applies ADDED, MODIFIED, and RENAMED directives to produce a coherent main spec, handling renames safely while applying changes from the delta to the core specifications with minimal disruption.

Why does my main spec not update after changing the delta file?

If your main spec does not update, ensure the delta file is correctly placed under the openspec/changes directory. The synchronization tool reads delta specs from this specific project structure and updates or creates main specs under openspec/specs according to the delta directives found there.