Skip to content
Development
Skill

/sync-docs

Sync living docs for an increment. Generates or updates spec files in .specweave/docs/internal/specs/. Use when saying "sync docs", "update living docs", or "sync-docs".

From plugin
specweave
15651 skills20 agents73 commands
Install
$ npx -y skills add anton-abyzov/specweave --skill sync-docs --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/sync-docs

Context preview

The summary Claude sees to decide when to auto-load this skill.

Sync living docs for an increment. Generates or updates spec files in .specweave/docs/internal/specs/. Use when saying "sync docs", "update living docs", or "sync-docs".

SKILL.md

sync-docs.SKILL.md
description: Sync living docs for an increment. Generates or updates spec files in .specweave/docs/internal/specs/. Use when saying "sync docs", "update living docs", or "sync-docs".
version: 1.0.0
argument-hint: "<increment-id> [--review]"

Sync Living Docs

Project Overrides

**Skill Memories**: If `.specweave/skill-memories/sync-docs.md` exists, read and apply its learnings.

Sync living documentation for an increment. This generates or updates feature specs and user story files under `.specweave/docs/internal/specs/`.

Usage

sw:sync-docs <increment-id>           # Sync living docs for increment
sw:sync-docs <increment-id> --review  # Dry-run: validate sync without modifying files

Workflow

Step 1: Resolve Increment

1. Parse the increment ID argument (required) 2. Find the increment directory: `.specweave/increments/NNNN-*/` 3. Load `spec.md` and `metadata.json`

Step 2: Detect Mode

  • If `--review` argument present: set `dryRun = true`
  • Otherwise: set `dryRun = false`

Step 3: Execute Sync

Run the living docs sync via CLI:

# Normal mode
specweave sync-living-docs <increment-id>

# Review mode (dry-run)
specweave sync-living-docs <increment-id> --dry-run

# If CLI command not available, use sync-progress as fallback:
specweave sync-progress <increment-id> --no-github --no-jira --no-ado

Step 4: Report Results

Display a summary:

Living Docs Sync Results:
- Feature spec: created/updated/unchanged
- User story files: N created, M updated, K unchanged
- Total files affected: X

In review mode, prefix with: `[DRY RUN] No files were modified.`

Step 5: Error Handling

If sync fails:

  • Display the error message
  • Suggest: "Check that spec.md has valid frontmatter and user stories are properly formatted"
  • Suggest: "Run `sw:progress-sync` for full external tool sync"

Resources

  • [Official Documentation](https://verified-skill.com/docs/reference/skills#sync-docs)
Read more
Ships withspecweave

Spec-first AI development: describe a feature → AI creates spec + plan + tasks, builds autonomously, syncs to GitHub/JIRA. Domain-expert skills for PM, Architect, Frontend, QA learn your patterns permanently. Claude Code, Codex, Cursor, Copilot & more.

Get the whole plugin