Skip to content
Development
Command

/sync

Sync design specs from a conversation to main specs

From plugin
scaffolding
1621 skills13 agents21 commands25 hooks
> /plugin marketplace add komluk/scaffolding
> /plugin install scaffolding@komluk-scaffolding

Command definition

sync.md
name: "Specs: Sync"
description: Sync design specs from a conversation to main specs
category: Workflow
tags: [workflow, specs, experimental]

Sync design specs from a conversation's specs directory to main specs.

This is an **agent-driven** operation - you will read the conversation's design.md and directly edit main specs to apply the changes. This allows intelligent merging (e.g., adding a scenario without copying the entire requirement).

**Input**: Optionally specify a conversation_id after `/specs:sync`. If omitted, use the current conversation's UUID. If vague or ambiguous, list conversations that have specs directories.

**UUID Enforcement**: The conversation_id MUST be a UUID (format: `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`). NEVER use descriptive names.

**Steps**

1. **Locate the specs directory**

Use the current conversation's UUID or the provided one to find: `.scaffolding/conversations/{conversation_id}/specs/`

If no specs directory exists, inform the user and stop.

2. **Read the design spec**

Read `.scaffolding/conversations/{conversation_id}/specs/design.md`.

The design.md contains scenarios, requirements, and implementation decisions that may need to be synced to the main specs.

If no design.md found, inform user and stop.

3. **Identify syncable content**

From design.md, extract:

  • New requirements (scenarios with Given/When/Then)
  • Modified requirements
  • Key decisions that affect specs

4. **Apply changes to main specs**

For each syncable item:

a. **Read the main spec** at `.scaffolding/openspec/specs/<capability>/spec.md` (may not exist yet)

b. **Apply changes intelligently**:

**New Requirements:**

  • If requirement doesn't exist in main spec -> add it
  • If requirement already exists -> update it to match

**Modified Requirements:**

  • Find the requirement in main spec
  • Apply the changes (add scenarios, modify descriptions)
  • Preserve content not mentioned in the design

c. **Create new main spec** if capability doesn't exist yet:

  • Create `.scaffolding/openspec/specs/<capability>/spec.md`
  • Add Purpose section
  • Add Requirements section

5. **Show summary**

After applying all changes, summarize:

  • Which capabilities were updated
  • What changes were made (requirements added/modified)

**Key Principle: Intelligent Merging**

Unlike programmatic merging, you can apply **partial updates**:

  • The design.md represents *intent*, not a wholesale replacement
  • Use your judgment to merge changes sensibly
  • Preserve existing content not affected by the change

**Output On Success**

## Specs Synced: <conversation_id>

Updated main specs:

**<capability-1>**:
- Added requirement: "New Feature"
- Modified requirement: "Existing Feature" (added 1 scenario)

Main specs are now updated.

**Guardrails**

  • Read both design.md and main specs before making changes
  • Preserve existing content not mentioned in design.md
  • If something is unclear, ask for clarification
  • Show what you're changing as you go
  • The operation should be idempotent - running twice should give same result
Read more
@komluk
Ships withscaffolding

Spec-driven multi-agent orchestration for Claude Code — pure markdown, zero backend, runs on the stock runtime. 13 agents, 39 skills, 21 commands, 20 hooks, per-phase model tiers, opt-in lifecycle hooks, optional cross-device semantic memory.

1639 skills13 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
16
Star history of komluk/scaffolding on GitHub, a chart by star-history.com

Other commands on scaffolding.

context

context

Command

Analyze and optimize Claude Code's context configuration (analyze, optimize, or reset).

@komluk@komlukInstall Command
create-skill

create-skill

Command

Scaffold a new scaffolding-compatible skill: an interactive flow that creates `skills/<name>/SKILL.md` from the canonical…

@komluk@komlukInstall Command
doctor

doctor

Command

Health-check the scaffolding install and report install problems plus exact fixes (diagnose-only, never mutates).

@komluk@komlukInstall Command
init-rules

init-rules

Command

Scaffold opt-in path-scoped nested CLAUDE.md rule files into the project to lazy-load per-area conventions while keeping routing…

@komluk@komlukInstall Command
init-scaffolding

init-scaffolding

Command

Bootstrap a new project with the scaffolding CLAUDE.md, settings.json, and `.scaffolding/` directory structure.

@komluk@komlukInstall Command

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command