context
Analyze and optimize Claude Code's context configuration (analyze, optimize, or reset).
Sync design specs from a conversation to main specs
> /plugin marketplace add komluk/scaffolding > /plugin install scaffolding@komluk-scaffolding
How it fires
How this command gets triggered: by you, by Claude, or both.
/syncContext preview
What this command does when you run it.
Sync design specs from a conversation to main specs
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:
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:**
**Modified Requirements:**
c. **Create new main spec** if capability doesn't exist yet:
5. **Show summary**
After applying all changes, summarize:
**Key Principle: Intelligent Merging**
Unlike programmatic merging, you can apply **partial updates**:
**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**
Spec-driven multi-agent orchestration for Claude Code — pure markdown, zero backend, runs on the stock runtime. 13 agents, 36 skills, 19 commands, 15 hooks, per-phase model tiers, opt-in lifecycle hooks, optional cross-device semantic memory.
Repo: komluk/scaffolding
Analyze and optimize Claude Code's context configuration (analyze, optimize, or reset).
Scaffold a new scaffolding-compatible skill: an interactive flow that creates `skills/<name>/SKILL.md` from the canonical template, composes a `TRIGGER`/`SKIP`…
Health-check the scaffolding install and report install problems plus exact fixes (diagnose-only, never mutates).
Initialize OpenSpec in a project directory with the scaffolding-workflow schema.
Scaffold opt-in path-scoped nested CLAUDE.md rule files into the project to lazy-load per-area conventions while keeping routing always-loaded.
Bootstrap a new project with the scaffolding CLAUDE.md, settings.json, and `.scaffolding/` directory structure.