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/florianbruniaux/claude-code-plugins/diagnosegit clone --depth 1 https://github.com/FlorianBruniaux/claude-code-pluginsWrote 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/florianbruniaux/claude-code-plugins/diagnose)<a href="https://agentmods.dev/commands/florianbruniaux/claude-code-plugins/diagnose"><img src="https://agentmods.dev/badge/commands/florianbruniaux/claude-code-plugins/diagnose.svg" alt="Measured on agentmods" 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 | $0.00010 | $0.01300 |
| Opus 5 | $0.00005 | $0.00650 |
| Sonnet 5 | $0.00002 | $0.00260 |
| Haiku 4.5 | $0.00001 | $0.00130 |
Grade D, and why
diagnose scanned grade D with 3 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 today.
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.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
curl -sL "https://raw.githubusercontent.com/flobby41/claude-code-ultimate-guide/main/examples/scripts/audit-scan.sh" | bash -s -- --json 2>/dev/null Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
cat ~/.claude/settings.json 2>/dev/null || echo "No global settings" Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -sL "https://raw.githubusercontent.com/flobby41/claude-code-ultimate-guide/main/guide/ultimate-guide.md" | head -n 3000 How it starts
The opening of the file, as written. The whole thing — 213 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Claude Code Diagnostic Assistant
Interactive troubleshooting assistant for Claude Code issues. Supports FR/EN.
Instructions
You are an expert diagnostic assistant for Claude Code problems. Your role is to identify issues and provide targeted solutions.
Step 1: Language Detection
Detect the user's language from their input. If ambiguous, ask:
"FR or EN? / Français ou English?"
Respond in the detected language throughout the session.
Step 2: Fetch Knowledge Base
Silently fetch the troubleshooting reference:
# Fetch the latest troubleshooting guide from the repo
curl -sL "https://raw.githubusercontent.com/flobby41/claude-code-ultimate-guide/main/guide/ultimate-guide.md" | head -n 3000
Use Section 10.4 (Troubleshooting) as your primary reference.
Step 3: Environment Scan
Run the audit scanner to understand the user's setup:
# Run audit-scan.sh in JSON mode for structured data
curl -sL "https://raw.githubusercontent.com/flobby41/claude-code-ultimate-guide/main/examples/scripts/audit-scan.sh" | bash -s -- --json 2>/dev/null
If the script fails, fall back to manual checks:
# Global config
cat ~/.claude/settings.json 2>/dev/null || echo "No global settings"
# Project config
cat .claude/settings.json 2>/dev/null || echo "No project settings"
# CLAUDE.md files
ls -la CLAUDE.md .claude/CLAUDE.md ~/.claude/CLAUDE.md 2>/dev/null
# MCP config
cat ~/.claude.json 2>/dev/null | jq '.mcpServers // empty' || echo "No MCP config"
Step 4: Present Categories
If the user hasn't described a specific problem, present these categories:
Permissions
- Repeated permission prompts despite settings.json / Demandes répétées malgré settings.json
- Actions blocked by hooks / Actions bloquées par hooks
MCP Servers 3. Server not found / connection failed / Serveur non trouvé 4. MCP tool not recognized / Outil MCP non reconnu
Configuration 5. settings.json ignored / settings.json ignoré 6. CLAUDE.md not read / CLAUDE.md non lu 7. Hooks not triggering / Hooks ne se déclenchent pas
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.
- today First seen · 213 lines · 10 tokens per session scan D 4e180296ebf2
diagnose is a command published in the GitHub repository FlorianBruniaux/claude-code-plugins (40 stars, last pushed 2d ago), licensed MIT. It adds 10 tokens to every session and 1,300 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it D with 3 findings (downloads and executes remote code, reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.
Other commands, from other repositories
aso
App Store Optimization command. iOS app listing analysis via the iTunes API, keyword optimization, and competitor comparison.
content-generate
Social media content generation command. Produces ready-to-use posts, captions, visual briefs, and hashtags for the given platform and type.
api-doc
API documentation generation. Scans route definitions and produces structured API docs.
audit
Quality audit command. Runs a systematic audit over code, structure, or process.
brief
Project briefing command. Turns raw project ideas into structured, actionable briefs.
changelog
Automatic changelog generation. Produces a structured changelog from commit history.