code-review
Delegate code review to the code-reviewer subagent (Sonnet, read-only) and apply approved fixes in the main session
Check documentation freshness after code changes. Delegates to docs-updater subagent (Sonnet) to propose doc/changelog updates - main session applies approved fixes.
> /plugin marketplace add Filip-Podstavec/claude-leverage > /plugin install claude-leverage@filip-podstavec
How it fires
How this command gets triggered: by you, by Claude, or both.
/docs-syncContext preview
What this command does when you run it.
Check documentation freshness after code changes. Delegates to docs-updater subagent (Sonnet) to propose doc/changelog updates - main session applies approved fixes.
description: Check documentation freshness after code changes. Delegates to docs-updater subagent (Sonnet) to propose doc/changelog updates - main session applies approved fixes. allowed-tools: Bash(git diff:*), Bash(git log:*), Bash(git branch:*), Bash(git status:*), Bash(ls:*) argument-hint: "[commit-range or branch] [--changelog-only]"
Branch: !`git branch --show-current` Status: !`git status --short` Last commit: !`git log -1 --oneline` Last commit shortstat: !`git diff HEAD~1 --shortstat 2>/dev/null || echo "no previous commit"` Branch diff vs main shortstat: !`git diff main...HEAD --shortstat 2>/dev/null || git diff origin/main...HEAD --shortstat 2>/dev/null || echo "n/a"` CHANGELOG present: !`ls CHANGELOG.md 2>/dev/null && echo "yes" || echo "no"`
You are orchestrating a documentation-sync workflow:
You do NOT analyze the docs yourself in the main session. The subagent does that. Your job is to delegate, summarize, get user direction, and then apply edits.
1. **Determine diff scope:**
2. **Invoke the `docs-updater` subagent** with the scope. Wait for its structured report.
3. **If the subagent reports "No Update Needed":** relay that to the user briefly and stop. Do not propose unsolicited improvements.
4. **If updates are needed:** present the report's "Documentation Updates Needed" and "CHANGELOG Entry" sections to the user. Each suggestion has a `confidence: high|low` field - call those out explicitly so the user knows which are obvious wins versus judgment calls.
5. **Ask for direction.** Offer these options:
Wait for explicit confirmation. Never apply edits preemptively.
6. **Apply approved updates** using Edit (or Write for new files like an initial CHANGELOG). Read the live file first - the subagent's prose direction tells you *what and why*, you write the actual edit fresh from current state. Do not paste the subagent's "suggested entry" verbatim if the live file has shifted.
7. **After edits, ask whether to commit the doc changes** via `/commit-smart`. Do not auto-commit.
Make any repo AI-first - write sustainable code from the start, or refactor a legacy codebase to prepare it for agent-driven development.Building blocks for Claude Code: subagents, slash commands, hooks, and workflow patterns. Copy what you need. A working developer's stack for Claude Code.
Repo: Filip-Podstavec/claude-leverage
Delegate code review to the code-reviewer subagent (Sonnet, read-only) and apply approved fixes in the main session
Gather implementation context before starting a task. Delegates to context-gatherer subagent (Sonnet) to pre-fetch everything Opus needs.
Delegate test execution to the test-runner subagent (Sonnet) and apply approved fixes in the main session
Diagnose a flaky test by running it N times. Delegates to flaky-test-isolator subagent — N runs, signature-grouped failures, stability report. Does NOT fix the…