openspec-sync-specs

Merge delta specs into main spec files while preserving existing content.

2|Updated Oct 13, 2025
One-click install
npx skills add https://github.com/Max-Loo/multi-chat --skill openspec-sync-specs-max-loo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: openspec-sync-specs
Source: https://github.com/Max-Loo/multi-chat/tree/main/.trae/skills/openspec-sync-specs
Command: npx skills add https://github.com/Max-Loo/multi-chat --skill openspec-sync-specs-max-loo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Sync delta specs from a change to main specs. This is an agent-driven operation - you will read delta specs and directly edit main specs to apply the changes. This allows intelligent merging (e.g., adding a scenario without copying the entire requirement).

Core Features & Use Cases

  • Input handling: If no change name provided, prompt for selection using openspec list --json and the AskUserQuestion tool.
  • Delta application: For each delta spec, read delta and main specs, apply ADDED/MODIFIED/REMOVED/RENAMED as described.
  • Idempotent merges: Preserve content not mentioned in delta; merges are safe to re-run.
  • Create or update specs: Create main spec when missing; apply changes to existing ones.

Quick Start

Run the openspec-sync tool to merge delta specs into the 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 requirements?

To merge delta specs into main specs without losing content, this tool applies changes intelligently by adding, modifying, removing, or renaming requirements while preserving existing content. It safely integrates delta spec changes without copying the entire requirement.

What is the best way to sync openspec delta specs to main spec files?

Syncing openspec delta specs involves reading delta files from openspec/changes and editing main specs directly. This agent-driven operation creates new spec files when needed and applies changes idempotently, ensuring merges are safe to re-run.

How do I apply ADDED, MODIFIED, or REMOVED operations to spec files automatically?

To apply ADDED, MODIFIED, REMOVED, or RENAMED operations to spec files, the tool reads delta specs and directly edits main specs. It processes these operations to apply changes exactly as described in the delta documentation.

Can I re-run spec merges safely if I need to update main spec files multiple times?

Yes, you can safely re-run spec merges multiple times. The merging process is idempotent, preserving content not mentioned in the delta and ensuring repeated operations do not duplicate or corrupt existing main spec requirements.

What happens if no change name is provided when syncing delta specs?

If no change name is provided when syncing delta specs, the tool prompts for selection using openspec list --json and the AskUserQuestion tool. It also prompts for clarification during the merge process when needed.

Does merging openspec delta specs create new spec files for missing capabilities?

Yes, merging openspec delta specs creates new main spec files when missing. It reads delta specs from openspec/changes and either applies changes to existing specs in openspec/specs or creates the required files.