claude-code-debug
除錯 Claude Code 問題
Auch verfügbar von: 0xDarkMatter
Claude Code 擴充功能、掛鉤和代理有時會停止運作。此技能提供逐步疑難排解指南和診斷指令,以快速識別和修復常見問題。當技能無法載入、掛鉤無法執行或代理未被使用時,請使用此技能。
Die Skill-ZIP herunterladen
In Claude hochladen
Gehe zu Einstellungen → Fähigkeiten → Skills → Skill hochladen
Einschalten und loslegen
Teste es
Verwendung von "claude-code-debug". My skill is not activating
Erwartetes Ergebnis:
- Check if the skill directory exists at .claude/skills/skill-name/
- Verify SKILL.md exists with exact capitalization
- Confirm YAML frontmatter starts and ends with ---
- Ensure name: field matches directory name exactly
- Add trigger keywords: Triggers on: keyword1, keyword2
- Run: claude --debug and look for skill loading errors
Verwendung von "claude-code-debug". My hook is not running
Erwartetes Ergebnis:
- Check if script is executable: chmod +x script.sh
- Validate settings.json with: jq '.' ~/.claude/settings.json
- Verify matcher is case-sensitive: use Bash not bash
- Test script manually: echo '{"tool_name":"Test"}' | ./hook.sh
- Run /hooks to see registered hooks
Sicherheitsaudit
SicherThis skill is a pure documentation resource containing troubleshooting guides, diagnostic command references, and decision trees for Claude Code. All 219 static findings are FALSE POSITIVES - they represent bash command examples in markdown documentation, not executable code. The skill contains no JavaScript/TypeScript code, makes no network calls, and performs no file system operations beyond reading its own markdown files. The allowed-tools field explicitly limits the skill to Bash and Read tools for helping users run diagnostic commands.
Risikofaktoren
⚙️ Externe Befehle (133)
📁 Dateisystemzugriff (48)
🔑 Umgebungsvariablen (2)
🌐 Netzwerkzugriff (5)
Qualitätsbewertung
Was du bauen kannst
技能未載入
當新安裝的技能儘管檔案結構和 YAML 前置matter正確卻無法啟動時
掛鉤未執行
當在 settings.json 中設定的掛鉤無法執行或無法如預期阻止工具時
MCP 伺服器問題
當模型內容通訊協定伺服器無法連線或工具無法使用時
Probiere diese Prompts
My Claude Code skill is not activating. How do I troubleshoot this?
My hook script is not executing when tools are used. What diagnostic steps should I follow?
Claude Code is not using my custom agent. How do I verify it is configured correctly?
My MCP server is not connecting. Walk me through the debugging flow to identify the issue.
Bewährte Verfahren
- 執行 'claude --debug' 以查看詳細的載入和權限資訊
- 在儲存前使用 'jq .' 驗證所有 JSON 檔案
- 在依賴掛鉤指令碼之前先手動測試
Vermeiden
- 跳過 YAML 前置matter驗證步驟
- 在掛鉤設定中使用相對路徑而未使用 $CLAUDE_PROJECT_DIR
- 假設技能可以在不新增特定觸發關鍵字的情況下啟動