skills/engineering/sync/SKILL.md
Keep documentation in sync with code changes. Detect stale docs, identify drift between code and docs, and suggest updates when code changes. Use when: "check doc freshness", "sync docs", "docs out of date", "update docs after refactor", "docs drift", "docs out of sync"
npx skillsauth add mikeparcewski/wicked-garden syncInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Keep documentation fresh by detecting when code changes have made docs stale.
Maintain documentation accuracy:
| Command | Purpose |
|---------|---------|
| /wicked-garden:engineering:sync | Check all documentation freshness |
| /wicked-garden:engineering:sync [path] | Check specific path |
| /wicked-garden:engineering:sync --fix | Auto-update where possible |
# Check all documentation
/wicked-garden:engineering:sync
# Check specific directory
/wicked-garden:engineering:sync src/api
# Auto-fix simple issues
/wicked-garden:engineering:sync --fix
Compare file timestamps (code modified after docs = STALE). Compare function signatures (code vs docs = DRIFT). Validate API specs against code (path/method mismatches = DRIFT).
STALE - Documentation older than code:
DRIFT - Documentation doesn't match code:
MISSING - Documentation incomplete:
OUTDATED - Referenced deprecated code:
# Documentation Sync Report
## Summary
- Issues found: 7
- STALE: 3
- DRIFT: 2
- MISSING: 2
## Issues
### DRIFT: docs/api/users.md
**Issue:** Function signature changed
**Code:**
```typescript
function createUser(data: UserInput, options?: CreateOptions)
Docs:
### createUser(data: UserInput)
Suggestion:
Add documentation for options parameter
Priority: HIGH
## Auto-Fix Capabilities
Can auto-fix simple type changes, timestamps, and link updates.
Cannot auto-fix parameter descriptions, behavior changes, or examples (requires human review).
## Integration
Use **wicked-garden:search** to find docs. **wicked-crew** auto-checks after build.
Native TaskCreate (with `metadata.event_type="task"`) tracks doc updates. Git hooks check on commit.
## Events
- `[docs:stale:warning]` - Stale documentation found
- `[docs:drift:warning]` - Documentation drift detected
- `[docs:missing:warning]` - Missing documentation found
- `[docs:synced:success]` - Documentation synchronized
## Configuration
```yaml
sync:
max_staleness_days: 30 # Warn if docs unchanged for 30 days
check_signatures: true # Compare function signatures
check_types: true # Compare type definitions
check_openapi: true # Validate OpenAPI against code
auto_fix: false # Auto-fix simple issues
development
--- name: large-scale-migration description: How to execute a LARGE MECHANICAL change across any codebase with LEVERAGE instead of an agent-grind or hand-edits — a cross-cutting migration, refactor, rename, dialect/framework/DB port, library adoption, or bulk transform. The map→transform→gate pattern: a deterministic transform driven by a source-of-truth map, proven by a differential-equivalence gate. Use when the work is "migrate all X to Y", "rename Z everywhere", "port to a new DB/dialect/fra
testing
v11 LLM-based work-shape classifier. Replaces the regex archetype detector with the model's own reasoning. Reads the user's prompt, picks the right archetype(s) from the catalog, identifies signals (blast_radius, novelty, reversibility, etc.), and persists to SessionState so subsequent turns steer correctly. Use when: the prompt_submit hook emitted a `<wg classify-due />` directive, OR explicitly invoked at session start, OR when re-classifying after the user changes scope mid-session.
tools
v11 work-shape archetype runner. When a prompt has been routed to one of the 9 archetypes (triage, explore, specify, decide, ship, review, incident, build, migrate), this skill is the entry point. It picks the right per-archetype playbook from refs/ and executes the phase shape declared in `.claude-plugin/archetypes.json`. Use when: a `<wg archetype="X">` or `<wg archetypes>` system-reminder tag appears, an explicit "let's run the X archetype" request, or when one of the per-archetype slash commands resolves to this skill.
development
Show or set the session intent variable. Intent gates how loud the framework is — simple-edit (silent), feature/research (synthesis directive), rigor (full crew context). Auto-detected on turn 1; this skill overrides explicitly. Sticky for the session. Use when: "set intent", "intent override", "/wicked-garden:intent", "make the framework quiet", "force rigor", "what's my intent".