Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/martybonacci/specswarm/bugfixgit clone --depth 1 https://github.com/MartyBonacci/specswarmWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00015 | $0.07924 |
| Opus 5 | $0.00008 | $0.03962 |
| Sonnet 5 | $0.00003 | $0.01585 |
| Haiku 4.5 | $0.00002 | $0.00792 |
Grade A, and why
bugfix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 1,109 lines — stays where its author put it; the contents beside it link to each section on GitHub.
User Input
$ARGUMENTS
You MUST consider the user input before proceeding (if not empty).
Goal
Execute regression-test-first bug fixing workflow to ensure bugs are fixed correctly and prevent future regressions.
Key Principles:
- Test First: Write regression test before fixing
- Verify Failure: Confirm test reproduces bug
- Fix: Implement solution
- Verify Success: Confirm test passes
- No Regressions: Validate no new bugs introduced
Coverage: Addresses ~40% of development work (bug fixes)
Smart Integration Detection
Before starting workflow, detect available plugins for enhanced capabilities:
# Get repository root and plugin directory
REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null || pwd)
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PLUGIN_DIR="$(dirname "$SCRIPT_DIR")"
# Check for SpecSwarm (tech stack enforcement)
SPECSWARM_INSTALLED=$(claude plugin list | grep -q "specswarm" && echo "true" || echo "false")
# Check for additional SpecSwarm features
SPECSWARM_EXTRAS_AVAILABLE="false"
# Check for web project and Chrome DevTools MCP (web debugging enhancement)
if [ -f "$PLUGIN_DIR/lib/web-project-detector.sh" ]; then
source "$PLUGIN_DIR/lib/web-project-detector.sh"
# Determine if Chrome DevTools should be used
if should_use_chrome_devtools "$REPO_ROOT"; then
CHROME_DEVTOOLS_MODE="enabled"
echo "🌐 Web Project Detected: $WEB_FRAMEWORK"
echo "🎯 Chrome DevTools MCP: Available for enhanced browser debugging"
elif is_web_project "$REPO_ROOT"; then
CHROME_DEVTOOLS_MODE="fallback"
echo "🌐 Web Project Detected: $WEB_FRAMEWORK"
echo "📦 Using Playwright fallback (Chrome DevTools MCP not available)"
else
CHROME_DEVTOOLS_MODE="disabled"
# Non-web project - no message needed
fi
else
CHROME_DEVTOOLS_MODE="disabled"
fi
# Configure workflow based on detection
if [ "$SPECSWARM_INSTALLED" = "true" ]; then
EXECUTION_MODE="sequential"
ENABLE_TECH_VALIDATION=true
echo "🎯 Smart Integration: SpecSwarm detected (tech stack enforcement enabled)"
else
EXECUTION_MODE="sequential"
echo "ℹ️ Running in basic mode (install SpecSwarm/SpecTest for enhanced capabilities)"
fi
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 1,109 lines · 15 tokens per session scan A 165481309061
bugfix is a command published in the GitHub repository MartyBonacci/specswarm (65 stars, last pushed 1mo ago), licensed MIT. It adds 15 tokens to every session and 7,924 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
e2e
使用 Playwright 对 Web UI 进行端到端测试(支持视频录制、Trace 录制、控制台/网络日志捕获).
auto-browse
Auto-browse — learn, optimize, and graduate browser operations or web data-mining workflows.
research-perplexity
Run a deep research query using Perplexity's /research mode via Playwright browser automation. This is an alternative to /export-to-council that uses Perplexity's dedicated research mode instead of multi-model council.
review
Compare a reference design against an implementation. Accepts Figma URL, image file, or browser URL as reference.
graphify
Turn your vault into a clustered knowledge graph with HTML and JSON outputs.
laravel-playwright
E2E Playwright patterns; use the laravel:e2e-playwright skill exactly as written.