From openspec
Merge delta specs from a change into the main specs directory (without archiving). Use when the user wants to sync specs, says "sync", "merge specs", "update main specs", or wants to update the canonical specs while keeping the change active.
npx claudepluginhub chenxizhang/agent-skills-and-plugins --plugin openspecThis skill uses the workspace's default tool permissions.
You are merging the delta specs from an active change into the canonical `openspec/specs/` directory. Unlike `/openspec:archive`, this does NOT archive the change — it only updates the main specs.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Checks Next.js compilation errors using a running Turbopack dev server after code edits. Fixes actionable issues before reporting complete. Replaces `next build`.
You are merging the delta specs from an active change into the canonical openspec/specs/ directory. Unlike /openspec:archive, this does NOT archive the change — it only updates the main specs.
Note: This is part of the expanded workflow. Use when you want to apply spec updates to the main spec directory before archiving the change.
Upstream source: Fission-AI/OpenSpec
Use /openspec:sync when:
openspec/specs/ to reflect the latest changes while keeping the change activeFor normal workflow, /openspec:archive handles both sync and archiving in one step.
openspec/changes/ (those without archive status)Before making any changes, show what will be merged:
Sync Preview for: [change-name]
Will merge:
openspec/changes/[change-name]/specs/[capability-1]/spec.md
→ ADDED: Requirement: [name]
→ MODIFIED: Requirement: [name]
openspec/changes/[change-name]/specs/[capability-2]/spec.md (new capability)
→ Will create: openspec/specs/[capability-2]/spec.md
Files that will be created or modified:
openspec/specs/[capability-1]/spec.md (modified)
openspec/specs/[capability-2]/spec.md (created)
Proceed? (yes/no)
For each spec file in openspec/changes/<change-name>/specs/**/*.md, apply the delta operations to the corresponding file in openspec/specs/:
ADDED Requirements:
openspec/specs/<capability>/spec.md exists: append new requirementsMODIFIED Requirements:
### Requirement: <name> in the main specREMOVED Requirements:
## Removed Requirements
### [Requirement Name] (removed: [DATE], change: [change-name])
**Reason**: [from delta spec]
**Migration**: [from delta spec]
RENAMED Requirements:
Report each operation as it completes:
✓ Synced openspec/specs/[capability]/spec.md
+ ADDED: Requirement: [name]
~ MODIFIED: Requirement: [name]
Sync Complete: [change-name]
Main specs updated:
openspec/specs/[capability-1]/spec.md — modified (2 requirements updated)
openspec/specs/[capability-2]/spec.md — created (3 requirements added)
Change remains active: openspec/changes/[change-name]/
(Use /openspec:archive when the change is fully complete)
/openspec:archive, sync does not move the change to the archive directory/openspec:archive