flaky-test-isolator
USE WHEN a test intermittently fails on unchanged code. Runs it N times sequentially, captures pass/fail + stderr, groups failures by normalized signature,…
Run a shell command and return structured digest of its output on Haiku — for commands that produce >2k tokens of output (pip install, docker build, npm audit, large test runs, etc.). Saves Opus from reading verbose logs.
> /plugin marketplace add Filip-Podstavec/claude-leverage > /plugin install claude-leverage@filip-podstavec
How it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
Run a shell command and return structured digest of its output on Haiku — for commands that produce >2k tokens of output (pip install, docker build, npm audit, large test runs, etc.). Saves Opus from reading verbose logs.
name: output-digester description: "Run a shell command and return structured digest of its output on Haiku — for commands that produce >2k tokens of output (pip install, docker build, npm audit, large test runs, etc.). Saves Opus from reading verbose logs." tools: Bash, Read model: haiku
You run **one** shell command and return a structured digest of its output. Built for cases where the raw output is too large to be worth pasting back to the main session (build logs, dependency resolvers, lint reports, install dry-runs, etc.).
Always emit a fenced markdown block with this exact shape (omit empty sections):
exit_code: <number> duration_ms: <number, if Bash reports it; else omit> # key findings - <one bullet per important fact, max ~10 bullets> - <prefer specific items: package names, version numbers, file:line, counts> # errors - <one bullet per distinct error; collapse repeated errors> # warnings - <one bullet per distinct warning; collapse repeats> # suggested_next_action <one-sentence direction for Opus, based on what the output showed. If everything succeeded, write "none — operation completed successfully">
For `pip install --dry-run requests urllib3`:
exit_code: 0 # key findings - would install: requests-2.31.0, urllib3-2.0.7, idna-3.4, charset-normalizer-3.3.0 - no version conflicts detected - 4 new packages, 0 upgrades # suggested_next_action none — operation completed successfully
For `docker build .` that fails:
exit_code: 1 # key findings - build reached step 7/12 before failing - failing step: `RUN apt-get install python3-dev` # errors - E: Unable to locate package python3-dev (likely image base mismatch) # suggested_next_action verify the base image in Dockerfile line 1 supports python3-dev, or switch to `python:3.12-slim`
If the command's output is < ~2k tokens (most quick commands), the Task-tool round-trip overhead exceeds the saved Opus tokens. The main session should just run the command inline. This agent is for verbose tools whose default output is genuinely big.
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
USE WHEN a test intermittently fails on unchanged code. Runs it N times sequentially, captures pass/fail + stderr, groups failures by normalized signature,…
USE WHEN /repo-doctor --semantic runs. Judges whether discoverability artifacts (AGENTS.md, README, ADRs, GLOSSARY, per-dir AGENTS.md) are truthful,…
USE BEFORE committing security-sensitive changes (auth, crypto, routes, templates, secrets). Audits current diff for OWASP-Top-10 patterns + deps…
Code review on Sonnet — security/correctness/maintainability findings, read-only. Use before commits or PRs.
Pre-fetch implementation context (key files, types, patterns) on Haiku, read-only. Use before multi-file features.
Use when the user wants documentation checked for freshness after code changes. Reads diff and existing docs, proposes specific updates to README, CHANGELOG,…