debug
Skill334 starsChanged 34 days agoMITView on GitHub
Autonomous Debugging Instructions for Visual Studio Code: for [plugin].
192 other projects use a version of this.
Adopted by
Most recently taken up by
- PeanutGT/NutsSkillstheir own version, first seen Nov 8, 2026
- jskswamy/skillstheir own version, first seen Nov 8, 2026
- Firzus/agent-skillstheir own version, first seen Nov 8, 2026
- domengabrovsek/agent-configtheir own version, first seen Nov 8, 2026
- domengabrovsek/claudetheir own version, first seen Nov 8, 2026
- microsoft/veronatheir own version, first seen Nov 8, 2026
Used with
Projects with it also use add-discord, add-slack and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
MicrosoftSkilladd-discord
Add Discord bot channel integration via Chat SDK.
Also in 11 projects that use this
MicrosoftSkilladd-slack
Add Slack channel integration via Chat SDK.
Also in 11 projects that use this
- +10 more from microsoft
Other versions192 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 192
- Yeachan-Heo/oh-my-claude-sisyphus★ 41ksame name
- Yeachan-Heo/oh-my-claudecode★ 41ksame name
- anthropics/knowledge-work-plugins★ 35ksame name
- gavrielc/nanoclaw★ 31ksame name
- nanocoai/nanoclaw★ 31ksame name
- qwibitai/nanoclaw★ 31ksame name
- openai/symphony★ 27ksame name
- FalkorDB/FalkorDB★ 10ksame name
- NVIDIA/TensorRT-Model-Optimizer★ 5.6ksame name
- NVIDIA/Model-Optimizer★ 5.6ksame name
182 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository33 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .cursor/rules/no-ai-attribution.mdcCursor rule
- apc-setupSkill
- audio-plugin-coderSkill
- designSkill
- dreamSkill
- implSkill
- orchestrateSkill
- planSkill
- shipSkill
- skill-debugSkill
- skill-designSkill
- juce-webview-windowsSkill
- skill-ideationSkill
- skill-implementationSkill
- skill-packagingSkill
- skill-planningSkill
- skill-testingSkill
- skill-troubleshootingSkill
- testSkill
- apc-setupSkill
- skill_debugSkill
- skill_designSkill
- dreamSkill
- implSkill
- orchestrateSkill
- planSkill
- shipSkill
- juce-webview-windowsSkill
- skill_testingSkill
- skill_troubleshootingSkill
- testSkill
- audio-plugin-coderSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 15 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 175 edited versions we read keep these.
15
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Read access to the workspace
- Distinctive: line 22
Write access to configuration files
- Distinctive: line 33
Prefer evidence over speculation
- Distinctive: line 35
Never suppress errors at source
- Distinctive: line 36
Always preserve original error output
- Distinctive: line 77
All caught and uncaught exception blocks
- Distinctive: line 82
Before and after async boundaries
- Distinctive: line 87
Prefer conditional breakpoints when possible
- Distinctive: line 88
Avoid breakpoints inside tight loops unless gated
- Distinctive: line 103
Use the correct debugger type for the detected runtime
- Very specific: line 104
Ensure stopOnEntry is enabled
- Distinctive: line 107
Do NOT suppress framework-level warnings
- Distinctive: line 141
Verify all breakpoints are registered
- Distinctive: line 143
If debugger fails to attach, halt and report configuration errors.
- Distinctive: line 223
If the root cause is not definitive:
- Distinctive: line 230
Never apply fixes without isolating the cause.
“Common” is measured: kept by at least 6 in 10 of the 175 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Purpose
This document defines a self-directed debugging workflow for a Large Language Model (LLM) operating inside or alongside Visual Studio Code: (VS Code:). The goal is for the LLM to:
- Inspect a codebase without human intervention
- Identify likely failure points
- Insert breakpoints programmatically
- Generate a valid VS Code:
launch.jsondebugging configuration - Enter VS Code: debug mode
- Capture runtime errors, logs, and stack traces
- Filter noise while preserving full raw error telemetry
- Transmit all collected diagnostic data back to the LLM for analysis
This workflow assumes the LLM has:
- Read access to the workspace
- Write access to configuration files
- The ability to invoke VS Code: commands (directly or via an agent/tooling layer)
High-Level Debugging Strategy
The LLM must operate as a deterministic debugger, not a conversational assistant.
Core principles:
- Prefer evidence over speculation
- Favor runtime inspection over static guesses
- Never suppress errors at source
- Always preserve original error output
Step 1: Workspace Reconnaissance
- Enumerate the workspace root
- Identify:
- Primary language(s)
- Entry points (e.g.
main.py,index.js,app.ts,Program.cs) - Existing test suites
- Existing
.vscodeconfiguration
- Detect build systems and runtimes:
- Node.js, Python, Java, .NET, Go, etc.
Output a workspace map internally before proceeding.
Step 2: Static Code Analysis
For each execution path:
- Parse the AST (or equivalent)
- Identify:
- Unhandled exceptions
- Unsafe casts
- Null/undefined dereferences
- Infinite loops
- Race conditions (async / threading)
- External I/O boundaries (filesystem, network, DB)
Mark all high-risk lines.
Step 3: Breakpoint Placement Heuristics
Automatically insert breakpoints at:
- Program entry point
- All caught and uncaught exception blocks
- Function boundaries with:
- Complex conditionals
- State mutation
- External side effects
- Before and after async boundaries
- Any line referenced in stack traces from prior runs
Breakpoint Rules
- Prefer conditional breakpoints when possible
- Avoid breakpoints inside tight loops unless gated
- Label each breakpoint with intent (comment or metadata)
Step 4: Generate VS Code: Debug Configuration
Create or update:
.vscode/launch.jsonRequirements
- Use the correct debugger type for the detected runtime
- Ensure
stopOnEntryis enabled - Enable verbose logging
- Capture stdout and stderr
- Do NOT suppress framework-level warnings
Example (Node.js)
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "LLM Autonomous Debug",
"program": "${workspaceFolder}/index.js",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"stopOnEntry": true,
"outputCapture": "std",
"env": {
"NODE_ENV": "development"
}
}
]
}Adapt as required for other languages.
Step 5: Enter Debug Mode
- Invoke VS Code: command:
Debug: Start Debugging
- Confirm debugger attachment
- Verify all breakpoints are registered
If debugger fails to attach, halt and report configuration errors.
Step 6: Runtime Observation
While execution is paused or running:
Capture:
- Call stacks
- Variable states
- Heap/closure values (where available)
- Thread or async task states
On error or crash, collect:
- Full stack trace
- Error type
- Error message
- Source location
- Runtime version
- OS and architecture
Step 7: Error Telemetry Handling
DO NOT discard information
The LLM must:
- Capture raw error output verbatim
- Parse it with
scripts/error-detection.ps1(Parse-BuildErrors, Windows) orscripts/error-detection.sh(parse_build_errors, macOS/Linux) to categorize (cmake / webview / build) and matchFind-KnownIssue/find_known_issueagainst.agents/troubleshooting/known-issues.yamlbefore hypothesizing - Separately derive:
- A cleaned summary
- A probable root cause
- A confidence score
Noise Handling
- Framework warnings
- Deprecation notices
- Transitive dependency logs
These must be tagged as low-signal, not removed.
Step 8: Transmission Back to the LLM
Transmit a structured payload containing:
- Workspace map
- Breakpoint list
launch.json- Execution timeline
- Raw stderr/stdout
- Stack traces
- Memory snapshots (if available)
Suggested Format
{
"environment": {},
"breakpoints": [],
"errors": [],
"rawLogs": "",
"analysisHints": []
}Step 9: Iterative Debugging Loop
If the root cause is not definitive:
- Adjust breakpoints
- Restart debug session
- Narrow scope
- Repeat until failure is explained by evidence
Never apply fixes without isolating the cause.
Termination Criteria
Stop only when:
- The error is fully reproducible
- The root cause is identified
- The exact line(s) responsible are known
At that point, transition from debugging mode to remediation mode.
Final Note
This document defines behavior, not intent.
The LLM must act as a debugger first, a theorist second, and a code generator last.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

