/code-quality:diagnose <error-or-symptom>from code-quality
Interactive troubleshooting assistant for Claude Code issues. Fetches a troubleshooting reference, runs an environment audit scan, and guides users through resolving configuration, permissions, MCP, and performance problems.
Ships in code-quality. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Interactive troubleshooting assistant for Claude Code issues. Supports FR/EN.
You are an expert diagnostic assistant for Claude Code problems. Your role is to identify issues and provide targeted solutions.
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.
Silently fetch the troubleshooting reference:
# Extract Section 10.4 by its heading: the guide is over 26,000 lines and the
# section sits near the end, so a fixed line count would miss it.
curl -fsSL "https://raw.githubusercontent.com/FlorianBruniaux/claude-code-ultimate-guide/main/guide/ultimate-guide.md" \
| awk '/^## 10\.4 /{f=1} /^## 10\.5 /{f=0} f'
Use this Section 10.4 (Troubleshooting) as your primary reference. If the output is empty, say so and continue from your own knowledge.
Run the audit scanner to understand the user's setup:
# The script is pinned to a commit, so what runs is the reviewed version and not
# whatever a branch points to later. Update the ref when audit-scan.sh changes.
AUDIT_SCAN_REF=eab8adc215822f67629b6a0f9366f60a1db9b03c
script="$(mktemp)" \
&& curl -fsSL "https://raw.githubusercontent.com/FlorianBruniaux/claude-code-ultimate-guide/${AUDIT_SCAN_REF}/examples/scripts/audit-scan.sh" -o "$script" \
&& bash "$script" --json
rm -f "$script"
If the script fails, report its error to the user, then fall back to manual checks:
# Global config (do not repeat values under "env": they often hold tokens)
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
jq '(.mcpServers // {}) | map_values(del(.env, .headers))' ~/.claude.json 2>/dev/null || echo "No MCP config"
If the user hasn't described a specific problem, present these categories:
Permissions
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
Performance 8. Context saturated (>75%) / Contexte saturé 9. Slow responses / Réponses lentes
Installation 10. Installation/update errors / Erreurs installation
Other 11. Agents/Skills issues / Problèmes agents/skills 12. Other → describe freely / Autre → décrivez
Cross-reference:
Ask targeted follow-up questions if the cause is ambiguous. Examples:
Format your response as:
[Root cause identified based on scan + symptom correlation]
Link to relevant template:
https://github.com/FlorianBruniaux/claude-code-ultimate-guide/tree/main/examples/confighttps://github.com/FlorianBruniaux/claude-code-ultimate-guide/tree/main/examples/hooksSection X.Y of the guide: [Brief description]
https://github.com/FlorianBruniaux/claude-code-ultimate-guide
Symptoms: Claude keeps asking for permission despite settings.json configuration
Likely causes:
npm * but using pnpm)Quick diagnostic:
# Check what's actually in settings
cat ~/.claude/settings.json | jq '.permissions.allow'
Symptoms: "Tool not found" or "Server not responding"
Likely causes:
Quick diagnostic:
# Check MCP config (env and headers removed so tokens are not printed)
jq '(.mcpServers // {}) | map_values(del(.env, .headers))' ~/.claude.json
# Check if server binary exists
which mcp-server-sequential
Symptoms: Claude loses context, forgets earlier discussion
Likely causes:
Quick diagnostic: Check context usage in Claude Code status bar
User: "Claude keeps asking me to approve pnpm install"
Scan reveals:
{
"permissions": {
"allow": ["Bash(npm *)"]
}
}
Diagnosis: Pattern npm * doesn't match pnpm commands.
Solution:
~/.claude/settings.json"Bash(pnpm *)" to allow array/permissions to confirm the rule is listedUser: "My pre-commit hook doesn't run"
Scan reveals: No hooks directory or wrong event name
Diagnosis: Hook file naming or location issue.
Solution:
.claude/settings.json or ~/.claude/settings.jsonPreToolUse, PostToolUse, Notification, etc.$ARGUMENTS
What SKILL.md sets; muted values are Claude Code's defaults
Use when hitting Claude Code issues, configuration errors, or unexpected behavior.
medium18 skills in this plugin
/ast-grep-patternsStructural code search and refactoring with ast-grep: choose it over Grep, then write tested pattern and YAML rule recipes. Use when renaming calls or changing an API signature across a large codebase, migrating a framework, or finding code by shape (async functions without try/catch, empty catch blocks, long parameter lists). Not for plain text searches, which Grep handles faster./audit-codebaseCodebase health audit scoring 7 categories with progression plan/check-cache-bugsAudit Claude Code setup for cache bugs (CC#40524): sentinel, --resume/--continue, attribution header + ArkNill B3/B4/B5/design-patternsDetect, suggest, and evaluate GoF design patterns in TypeScript/JavaScript codebases. Use when refactoring code, applying singleton/factory/observer/strategy patterns, reviewing pattern quality, or finding stack-native alternatives for React, Angular, NestJS, and Vue./eval-skillsAudit a project or library of skills for metadata, trigger boundaries, workflow completion criteria, local resource closure, instruction economy, tool scope, effort, and routing evidence. Use before shipping skills, after importing a skill collection, or when a skill triggers too often or not at all./explainExplain code, concepts, or system behavior with adjustable depth levelsnpx claudepluginhub florianbruniaux/claude-code-plugins --plugin code-quality2 plugins in one repository ship this exact skill · first indexed Nov 30, 2026
Other plugins' skills for the same job