From spec-superflow
Merges delta specs into the main spec base after a change closes. Detects conflicts, applies ADDED/MODIFIED/REMOVED/RENAMED operations, and validates consistency.
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 node "${CLAUDE_PLUGIN_ROOT}/scripts/spec-superflow.mjs" 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:
node "${CLAUDE_PLUGIN_ROOT}/scripts/spec-superflow.mjs" 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 magebyte-zero/spec-superflow --plugin 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.
Analyzes divergences between spec files and code, recommends spec updates or code fixes with reasoning, and executes evolution with user control or auto-updates. Use when mismatches arise in spec-kit workflows.
Entry point for the spec-superflow state-machine workflow. Inspects change context, determines state, routes to correct skill, and blocks invalid transitions.