بنقرة واحدة
agent-debug-panel
Debug skill/hook/agent loading issues using VS Code's Agent Debug Panel
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Debug skill/hook/agent loading issues using VS Code's Agent Debug Panel
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Run the 7-step Artificial Critical Thinking pass — Materiality → Hypothesise → Alternatives → Disconfirmers → Audit priors → Severity → Commit-with-marker
Challenge what you think is right — alternative hypotheses, missing data, evidence quality, bias detection, falsifiability, and adversarial review
Step-back protocol — restate, generalise, specialise, invert, ask why, pre-mortem, check stakeholders, and audit framings before solving
Build knowledge bases that build software — research before code, teach before execute
Two-phase brain upgrade — mechanical install via shared core, then LLM-led semantic reconciliation
Clear documentation through visual excellence
| name | agent-debug-panel |
| description | Debug skill/hook/agent loading issues using VS Code's Agent Debug Panel |
| tier | standard |
| applyTo | **/*debug*,**/*agent*,**/*skill*,**/*hook*,**/*instruction* |
| currency | "2026-04-20T00:00:00.000Z" |
When a skill doesn't load or a hook doesn't fire, stop guessing — open the panel.
Ctrl+Shift+P)Developer: Open Agent Debug Panel@alex or any agent| Tab / Section | What You See | Debug Use |
|---|---|---|
| System Prompt Assembly | Full prompt sent to LLM including instructions, skills, context | Verify your instruction/skill was included |
| Tool Calls | Every tool invocation with arguments and results | Trace why a tool wasn't called or failed |
| Participant Resolution | Which chat participant handled the request | Confirm @alex routed correctly |
| Skill Loading | Which SKILL.md files were loaded and why | Debug "why didn't my skill activate?" |
| Instruction Matching | Which .instructions.md files matched via applyTo | Verify glob patterns work for your files |
| Hook Execution | Pre/post tool-use hook firing order and results | Debug hook failures or ordering issues |
| Agent Selection | Which .agent.md was selected and why | Verify agent routing logic |
applyTo glob in SKILL.md frontmatterCommon causes:
applyTo glob doesn't match the active filechat.agentSkillsLocations setting.instructions.md file appears in matched listapplyTo pattern in YAML frontmatterCommon causes:
applyTo glob doesn't match current file type.github/instructions/)--- delimiters)chat.instructionsFilesLocations not set to {".github/instructions": true}preToolUse, postToolUse)Common causes:
chat.hooks.enabled not set to truenode --check script.js)events array doesn't include the trigger event.agent.md file is in .github/agents/chat.useAgentsMdFile is trueCommon causes:
*.agent.md.github/agents/ directorychat.useAgentsMdFile or chat.useNestedAgentsMdFiles not enabledUseful: Copy the full system prompt to verify exactly what the LLM sees. Compare against what you expected.
Run these checks before opening the debug panel:
| Setting | Required Value | Purpose |
|---|---|---|
chat.agentSkillsLocations | [".github/skills"] | Skills discovery |
chat.instructionsFilesLocations | {".github/instructions": true} | Instructions loading |
chat.useAgentsMdFile | true | Agent file detection |
chat.hooks.enabled | true | Hook execution |
chat.plugins.enabled | true | Plugin loading |
chat.useSkillAdherencePrompt | true | Forces LLM to read SKILL.md |
Add these to .vscode/settings.json:
{
"chat.agentSkillsLocations": [".github/skills"],
"chat.instructionsFilesLocations": {
".github/instructions": true
},
"chat.useAgentsMdFile": true,
"chat.useNestedAgentsMdFiles": true,
"chat.hooks.enabled": true,
"chat.useSkillAdherencePrompt": true
}
1. Reproduce the issue in chat
2. Open Debug Panel (Developer: Open Agent Debug Panel)
3. Check loading → matching → execution → output
4. Identify the break point
5. Fix the root cause (glob, setting, syntax)
6. Reproduce again to verify