From spec-superflow
Sync delta specs to main specs after closure. Invoke when a change is closing, delta specs need merging into the main spec base, or when detecting spec drift across multiple changes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/spec-superflow:spec-mergerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
After a change completes, delta specs (ADDED/MODIFIED/REMOVED/RENAMED) must be merged into the main spec base. **Specs that aren't synced become lies.**
After a change completes, delta specs (ADDED/MODIFIED/REMOVED/RENAMED) must be merged into the main spec base. Specs that aren't synced become lies.
Run npx --yes --package [email protected] ssf sync <change-dir>. If conflicts are detected (same requirement modified by multiple changes), present the conflict list to the user for resolution order.
Check if the change is abandoned. If so → STOP: "Abandoned changes cannot be synced. Delta specs are preserved for reference but must not be merged."
Each specs/<capability>/spec.md under the change folder contains delta operations under ## ADDED/MODIFIED/REMOVED/RENAMED Requirements.
ADDED: Append to specs/<capability>/spec.md. Create the main spec if it doesn't exist. Insert before any REMOVED section.
MODIFIED: Match on ### Requirement: <name>. Replace description and scenarios. Preserve original in a ### Previous version subsection. Flag if requirement doesn't exist in main spec.
REMOVED: Move to ## Removed section with deprecation note: reason, migration, and change name. Flag if requirement doesn't exist.
RENAMED: Match old name, change header to new name, add _Renamed from <old> in <change>_. Flag if new name collides with existing.
Before executing, detect:
Apply changes. Do NOT delete delta specs — they remain for traceability. After merge, validate: no duplicate requirement names, no orphaned references, REMOVED section clearly separated.
Output sync report table: Capability, ADDED/MODIFIED/REMOVED/RENAMED counts, Status (✓/⚠). Summary with totals and unresolved conflicts.
executing → closing guard allows closure:
npx --yes --package [email protected] ssf state set <change-dir> spec_merged true
(If the change had no delta sections, still set spec_merged true — there was nothing to merge.)npx claudepluginhub haroldhuanrongliu/spec-superflowSyncs delta specs from OpenSpec changes to main specs, applying added, modified, removed, and renamed requirements intelligently without archiving. Prompts for change selection if needed.
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.