n8n-pilot: Command for Claude Code

.claude/commands/analyze-local-bugs.md

analyze-local-bugs is a command for Claude Code from AI-agents-incubator/n8n-pilot. It costs 0 tokens per session (368 once invoked), scanned A, original, MIT.

A local bug-report analysis command that finds repeated patterns in reports stored in the project.

In plain words
What is it for?
It is for grouping reports by framework version, protocol type, error, and failed step, then saving a dated analysis report.
Why use it?
It turns a collection of bug reports into summaries of common errors and failing steps, making recurring problems easier to spot.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is AI-agents-incubator/n8n-pilot's own configuration. It tells Claude Code how to work on n8n-pilot itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything n8n-pilot configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash .claude/scripts/analyze-bug-patterns.sh.

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/AI-agents-incubator/n8n-pilot/main/.claude/commands/analyze-local-bugs.md
Clone the repo
git clone --depth 1 https://github.com/AI-agents-incubator/n8n-pilot

Made for: Claude Code.

Wrote 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.

agentmods badge for analyze-local-bugs

README.md
[![agentmods](https://agentmods.dev/badge/commands/ai-agents-incubator/n8n-pilot/analyze-local-bugs/github.svg)](https://agentmods.dev/commands/ai-agents-incubator/n8n-pilot/analyze-local-bugs)
Your own site
<a href="https://agentmods.dev/commands/ai-agents-incubator/n8n-pilot/analyze-local-bugs"><img src="https://agentmods.dev/badge/commands/ai-agents-incubator/n8n-pilot/analyze-local-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.

agentmods 80×15 button for analyze-local-bugs

Your own site · 80×15
<a href="https://agentmods.dev/commands/ai-agents-incubator/n8n-pilot/analyze-local-bugs"><img src="https://agentmods.dev/badge/commands/ai-agents-incubator/n8n-pilot/analyze-local-bugs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 368 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00368
Opus 5 $0.00000 $0.00184
Sonnet 5 $0.00000 $0.00074
Haiku 4.5 $0.00000 $0.00037

Measured 7d ago against content hash 4008fee78193, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

analyze-local-bugs 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 7d 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.

.claude/commands/analyze-local-bugs.md · 60 lines

What it actually says

Analyze Local Bug Reports Command

Purpose: Analyze local bug reports to find patterns and recurring issues.

Usage:

/analyze-local-bugs

Implementation

Run Pattern Analysis Script

# Check if script exists
if [ ! -f ".claude/scripts/analyze-bug-patterns.sh" ]; then
  echo "⚠️  Bug pattern analyzer not found"
  echo "   Expected: .claude/scripts/analyze-bug-patterns.sh"
  exit 1
fi

# Run analysis
bash .claude/scripts/analyze-bug-patterns.sh

What Gets Analyzed

The script analyzes all bug reports in .claude/logs/bug-reports/ and generates:

  1. Framework Version Distribution - Which versions have most reports
  2. Protocol Type Distribution - Cold Start vs Completion failures
  3. Most Common Errors - Top 5 error messages
  4. Step Failure Analysis - Which protocol steps fail most
  5. Recommendations - Actionable insights and fixes

Output

  • Console: Visual summary with statistics and recommendations
  • File: Detailed report saved to .claude/logs/bug-analysis-TIMESTAMP.md

Notes

  • Works Everywhere: Available in both framework and host projects
  • Local Analysis: Analyzes only local bug reports (not GitHub Issues)
  • Complementary: Use with /analyze-bugs (GitHub Issues) for complete picture
  • Privacy: All data stays local, no network requests

See Also

  • /analyze-bugs - Analyze centralized GitHub Issues (framework project only)
  • /bug-reporting - Manage bug reporting settings
Changes

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.

  1. 7d ago First seen · 60 lines · 0 tokens per session scan A 4008fee78193

Subscribe to this mod's changes

analyze-local-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 368 tokens. 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-09-04.