openspec-sync-specs

Merge delta specifications into main specs with idempotent updates.

1|Updated May 7, 2024
One-click install
npx skills add https://github.com/sitdownkevin/blog-next --skill openspec-sync-specs-sitdownkevin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openspec-sync-specs
Source: https://github.com/sitdownkevin/blog-next/tree/main/.cursor/skills/openspec-sync-specs
Command: npx skills add https://github.com/sitdownkevin/blog-next --skill openspec-sync-specs-sitdownkevin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Sync delta specs from a change to main specs, enabling updates to main specs without archiving the delta.

Core Features & Use Cases

  • Intelligent delta-merging: read delta specs and apply them to main specs with safe, partial updates.
  • Change-aware: handles ADDED, MODIFIED, REMOVED, and RENAMED sections to evolve specs incrementally.
  • Guardrails: prompts for ambiguous changes, preserves existing content, and ensures idempotent results.

Quick Start

Run the delta-merge workflow to read delta specs and apply them to main specs.

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 safely, this workflow reads delta files and applies them incrementally to main specs. It preserves existing content while handling ADDED, MODIFIED, REMOVED, and RENAMED sections to evolve your specifications accurately.

What is an idempotent merge for spec management?

An idempotent merge means applying the same delta spec multiple times yields the same final main spec. This workflow ensures idempotent merging to prevent duplicate content or conflicting updates during repeated sync operations.

How do I update main specs incrementally when delta specs are ambiguous?

When delta specs contain ambiguous changes, this workflow includes guardrails that prompt for clarification before proceeding. It ensures safe partial updates by verifying intent rather than guessing the desired modification.

Does this delta-merge workflow create new main specs if one is missing?

Yes, the workflow applies when a corresponding main spec is present or can be created. If a delta spec exists under openspec/changes and no main spec is found, it generates the new main spec automatically.

What is the best way to sync openspec changes without archiving the delta?

The best way to sync without archiving is running a delta-merge workflow. It intelligently reads delta specs and applies them to main specs, enabling updates to main specs while keeping the original delta intact.

How do delta specs handle renamed sections during a merge?

Delta specs handle renamed sections through change-aware merging logic. The workflow detects RENAMED sections and applies them to main specs incrementally, ensuring structural integrity without duplicating the moved content.