Borrowing it
Nothing to install: this file belongs to AI-agents-incubator/n8n-pilot. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/AI-agents-incubator/n8n-pilot/main/.claude/commands/analyze-bugs.mdgit clone --depth 1 https://github.com/AI-agents-incubator/n8n-pilotWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/ai-agents-incubator/n8n-pilot/analyze-bugs)<a href="https://agentmods.dev/commands/ai-agents-incubator/n8n-pilot/analyze-bugs"><img src="https://agentmods.dev/badge/commands/ai-agents-incubator/n8n-pilot/analyze-bugs/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/ai-agents-incubator/n8n-pilot/analyze-bugs"><img src="https://agentmods.dev/badge/commands/ai-agents-incubator/n8n-pilot/analyze-bugs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What 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.1 | $0.00000 | $0.01255 |
| Opus 5 | $0.00000 | $0.00628 |
| Sonnet 5 | $0.00000 | $0.00251 |
| Haiku 4.5 | $0.00000 | $0.00126 |
Grade B, and why
analyze-bugs scanned grade B with 1 finding 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 5d 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
sudo apt install gh # Debian/Ubuntu How it starts
The opening of the file, as written. The whole thing — 195 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Analyze Bug Reports Command
Purpose: Analyze bug reports from host projects (framework project only).
Usage:
/analyze-bugs
Implementation
1. Verify Framework Project
# Check if this is the framework project
if [ ! -d "migration" ] || [ ! -f "migration/build-distribution.sh" ]; then
echo "⚠️ This command is only available in the framework project"
echo " (claude-code-starter repository)"
exit 1
fi
2. Fetch Bug Reports from GitHub Issues
echo ""
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo "📊 Analyzing Bug Reports"
echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
echo ""
# Fetch all open issues with bug-report label
echo "Fetching bug reports from GitHub..."
gh issue list --label "bug-report" --state open --json number,title,body,createdAt,url > /tmp/bug-reports.json 2>/dev/null || {
echo "⚠️ Failed to fetch issues. Make sure 'gh' CLI is installed and authenticated."
echo " Run: gh auth login"
exit 1
}
# Count reports
REPORT_COUNT=$(cat /tmp/bug-reports.json | jq length)
if [ "$REPORT_COUNT" -eq "0" ]; then
echo "✅ No open bug reports found"
echo ""
exit 0
fi
echo "Found $REPORT_COUNT bug report(s)"
echo ""
3. Group Reports by Error Type
# Create analysis directory
mkdir -p .claude/logs/bug-analysis
ANALYSIS_FILE=".claude/logs/bug-analysis/analysis-$(date +%Y%m%d-%H%M%S).md"
# Start analysis file
cat > "$ANALYSIS_FILE" <<EOF
# Bug Report Analysis
**Generated:** $(date -Iseconds)
**Total Reports:** $REPORT_COUNT
## Summary by Error Type
EOF
# Group by error patterns (simplified - can be enhanced)
echo "Analyzing error patterns..."
echo ""
# Parse each report
for i in $(seq 0 $((REPORT_COUNT - 1))); do
ISSUE_NUM=$(cat /tmp/bug-reports.json | jq -r ".[$i].number")
TITLE=$(cat /tmp/bug-reports.json | jq -r ".[$i].title")
BODY=$(cat /tmp/bug-reports.json | jq -r ".[$i].body")
URL=$(cat /tmp/bug-reports.json | jq -r ".[$i].url")
CREATED=$(cat /tmp/bug-reports.json | jq -r ".[$i].createdAt")
# Extract error type from body
ERROR_TYPE="Unknown"
if echo "$BODY" | grep -q "ERROR at"; then
ERROR_TYPE=$(echo "$BODY" | grep "ERROR at" | head -1 | sed 's/.*ERROR at //')
fi
# Add to analysis
cat >> "$ANALYSIS_FILE" <<EOF
### Issue #$ISSUE_NUM: $TITLE
**Created:** $CREATED
**Error Type:** $ERROR_TYPE
**URL:** $URL
**Error Details:**
\`\`\`
$(echo "$BODY" | sed -n '/```/,/```/p' | sed '1d;$d' | head -20)
\`\`\`
EOF
done
# Generate recommendations
cat >> "$ANALYSIS_FILE" <<EOF
---
## Recommendations
Based on the reports above, consider:
1. **Common Patterns:** Identify recurring error messages
2. **Framework Steps:** Which protocol steps fail most often?
3. **Priority:** Address issues affecting multiple projects first
4. **Testing:** Add regression tests for fixed issues
## Next Steps
- [ ] Review each report in detail
- [ ] Reproduce errors locally
- [ ] Create fix branches for each issue
- [ ] Add tests to prevent regression
- [ ] Close resolved issues
EOF
echo "✅ Analysis complete: $ANALYSIS_FILE"
echo ""
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.
- 5d ago First seen · 195 lines · 0 tokens per session scan B 360e447d3541
analyze-bugs is a command published in the GitHub repository AI-agents-incubator/n8n-pilot (29 stars, last pushed 6mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,255 tokens. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.
Other commands, from other repositories
qa-changes
This skill should be used when the user asks to "QA a pull request", "test PR changes", "verify a PR works", "functionally test changes", or when an automated workflow triggers QA validation of code changes. Provides a structured methodology for setting up the environment, exercising changed behavior, and reporting…
doctor
Diagnosticar y reparar problemas del framework Don Cheli, git y entorno. Usa cuando el usuario dice "doctor", "problemas del framework", "don cheli no funciona", "repair Don Cheli", "debug setup", "setup broken", "framework broken", "reparar entorno". Detecta y repara issues de configuración, git y dependencias…
fix
Universal debugging and fix application with semantic code analysis.
doctor
Badi configuration validation. Checks all Badi components and produces a diagnostic report.
http-service
Build, review or debug a Bun HTTP service. Loads the http-service skill, then works the task through its workflow.
gh-issue-use-cypress
Like /gh-issue-use-browser, but pinned to the Cypress MCP — use when your project runs the Cypress MCP for browser automation. Example — /gh-issue-use-cypress "Composer > Save" saving toasts failure but the record persists.