code-review
Delegate code review to the code-reviewer subagent (Sonnet, read-only) and apply approved fixes in the main session
Delegate test execution to the test-runner subagent (Sonnet) and apply approved fixes in the main session
> /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.
/testContext preview
What this command does when you run it.
Delegate test execution to the test-runner subagent (Sonnet) and apply approved fixes in the main session
description: Delegate test execution to the test-runner subagent (Sonnet) and apply approved fixes in the main session allowed-tools: Bash(git status:*), Bash(git diff:*), Bash(ls:*), Read argument-hint: "[optional test path or pattern]"
Status: !`git status --short` Recently changed files: !`git diff --name-only HEAD~1 2>/dev/null || git diff --name-only`
You are orchestrating a two-phase test workflow:
You do NOT run tests yourself. The subagent does that. Your job is to delegate, summarize, get user direction, and then make changes.
1. **Determine test scope:**
2. **Invoke the `test-runner` subagent** with the scope. Wait for its structured report.
3. **If all tests passed:** relay that to the user briefly and stop. Do not propose unsolicited improvements.
4. **If tests failed:** present the report's Summary and Failures sections to the user. Keep it concise - do not paraphrase the subagent's analysis, just relay it. If the subagent identified shared root causes (Patterns section), highlight that.
5. **Ask for direction.** Offer these options:
Wait for explicit confirmation. Never apply fixes preemptively.
6. **Apply approved fixes** using your full toolset (Edit, Write, Bash). Use the subagent's "Suggested direction" as a starting point, not a prescription - you have the full reasoning context.
7. **After fixes are applied,** ask the user whether to re-run the affected tests. Do not auto-rerun.
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
Check documentation freshness after code changes. Delegates to docs-updater subagent (Sonnet) to propose doc/changelog updates - main session applies approved…
Gather implementation context before starting a task. Delegates to context-gatherer subagent (Sonnet) to pre-fetch everything Opus needs.
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…