DiagnoseCAUTION
The most comprehensive Claude Code guide: agentic workflows, hooks, skills, MCP servers, quizzes, and production-ready templates. 430K+ lines.
Overview
The most comprehensive Claude Code guide: agentic workflows, hooks, skills, MCP servers, quizzes, and production-ready templates. 430K+ lines.
d90170da4369OBSERVED · 2026-10-07Host compatibility
What the documentation claims. We have not run a compatibility test.
| Host | Status | Notes |
|---|---|---|
| claude-code | mentioned |
What it tells the agent
The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.
---
name: diagnose
description: Interactive troubleshooting assistant for Claude Code issues
argument-hint: <error_or_symptom>
effort: medium
when_to_use: "Use when hitting Claude Code issues, configuration errors, or unexpected behavior."
disable-model-invocation: true
---
# 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:
```bash
# 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:
```bash
# 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:
```bash
# 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**
1. Repeated permission prompts despite settings.json / Demandes répétées malgré settings.json
2. 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
**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
---
### Step 5: Correlate & diagnose
Cross-reference:
- User's symptom/category choice
- Environment scan results
- Knowledge base patterns
Ask targeted follow-up questions if the cause is ambiguous. Examples:
- "What exact error message do you see?"
- "When did this start happening?"
- "Did you recently update Claude Code or change configuration?"
### Step 6: Prescription
Format your response as:
---
### Diagnostic
[Root cause identified based on scan + symptom correlation]
### Solution
1. [Step 1 - most critical action]
2. [Step 2]
3. [Step 3 if needed]
### Template (if applicable)
Link to relevant template:
- Config: `https://github.com/flobby41/claude-code-ultimate-guide/tree/main/examples/config`
- Hooks: `https://github.com/flobby41/claude-code-ultimate-guide/tree/main/examples/hooks`
### Reference
Section X.Y of the guide: [Brief description]
`https://github.com/flobby41/claude-code-ultimate-guide`
---
## Common patterns
### Pattern: Repeated permission prompts
**Symptoms**: Claude keeps asking for permission despite settings.json configuration
**Likely causes**:
1. Pattern mismatch (e.g., `npm *` but using `pnpm`)
2. Wrong file location (global vs project)
3. Malformed JSON syntax
**Quick diagnostic**:
```bash
# Check what's actually in settings
cat ~/.claude/settings.json | jq '.permissions.allow'
```
### Pattern: MCP server not found
**Symptoms**: "Tool not found" or "Server not responding"
**Likely causes**:
1. Server not installed globally
2. Wrong path in MCP config
3. Missing environment variables
**Quick diagnostic**:
```bash
# Check MCP config
cat ~/.claude.json | jq '.mcpServers'
# Check if server binary exists
which mcp-server-sequential
```
### Pattern: Context saturation
**Symptoms**: Claude loses context, forgets earlier discussion
**Likely causes**:
1. Large files read into context
2. Long conversation without summary
3. Too many parallel operations
**Quick diagnostic**: Check context usage in Claude Code status bar
## Examples
### Example 1: Permission pattern mismatch
**User**: "Claude keeps asking me to approve `pnpm install`"
**Scan reveals**:
```json
{
"permissions": {
"allow": ["Bash(npm *)"]
}
}
```
**Diagnosis**: Pattern `npm *` doesn't match `pnpm` commands.
**Solution**:
1. Edit `~/.claude/settings.json`
2. Add `"Bash(pnpm *)"` to allow array
3. Restart Claude Code session
### Example 2: Hooks not triggering
**User**: "My pre-commit hook doesn't run"
**Scan reveals**: No hooks directory or wrong event name
**Diagnosis**: Hook file naming or location issue.
**Solution**:
1. Verify hooks are configured in `.claude/settings.json` or `~/.claude/settings.json`
2. Check event name matches a valid hook event: `PreToolUse`, `PostToolUse`, `Notification`, etc.
3. Ensure the command referenced in the hook exists and is executable
$ARGUMENTSTrust audit
CAUTIONgrade B · trust 89/100 Install with care. The audit found things worth knowing before you trust its output.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | WARN |
| L1 | Static analysis of the code | NA |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (3)
whitepapers/recap-cards/en/_extensions
whitepapers/recap-cards/fr/_extensions
curl -sL "https://raw.githubusercontent.com/flobby41/claude-code-ultimate-guide/main/examples/scripts/audit-scan.sh" | bash -s -- --json 2>/dev/null
Gates applied: no_behavioural_pass.
d90170da4369full audit observations/trust-audit/skill/florianbruniaux__diagnose.json · Report an issue / request a re-scanAudit history
Every audit this skill has had.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | d90170da4369 | CAUTION | B | 89 | first audit |
Questions
What does the Diagnose skill do?
The most comprehensive Claude Code guide: agentic workflows, hooks, skills, MCP servers, quizzes, and production-ready templates. 430K+ lines.
Is Diagnose safe to install?
With care. The audit graded it B (89/100) and found 3 things worth knowing before you trust this skill, listed below with the exact line each was found on.
What can Diagnose access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
Which assistants does Diagnose work with?
Its documentation mentions claude-code. That is what the text claims, not a compatibility test we ran.
How current is this page?
The grade is for one exact copy of the source (d90170da4369), read on 2026-10-07. The repository is watched, and a new audit runs when it changes — this is the first audit.