skill_debug
- Repo stars 263
- Author updated Live
- Author repo audio-plugin-coder
- Domain
- AI
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @Noizefield · no license declared
- Token usage
- Lean
- Setup complexity
- Guided setup
- External API key
- Not required
- Operating systems
- macOS · Linux · Windows
- Runtime requirements
- Node.js · Python
- Permissions
-
- Read-only
- Write / modify
- Shell exec
- Network behavior
- Local-only
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: skill_debug
description: Autonomous Debugging Instructions for Visual Studio Code: for [plugin]. This document defines a…
category: ai
runtime: Node.js / Python
---
# skill_debug output preview
## PART A: Task fit
- Use case: Autonomous Debugging Instructions for Visual Studio Code: for [plugin]. 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: runs entirely locally; runs on Node.js. Works with Claude Code, Cursor, Cline and 23 more..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “Purpose / High-Level Debugging Strategy / Step 1: Workspace Reconnaissance” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “Autonomous Debugging Instructions for Visual Studio Code: for [plugin]. 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: runs entirely locally; runs on Node.js. Works with Claude Code, Cursor, Cline and 23 more.”.
- **02** When the source has headings, the agent prioritizes “Purpose / High-Level Debugging Strategy / Step 1: Workspace Reconnaissance” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files, run shell commands; mostly runs locally; usually needs no extra API key.
## Running Rules
- read files, write/modify files, run shell commands; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source does not require a stable slash command. After installation, invoke the skill by name and describe the task.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files, run shell commands.
Start with a small task and check whether the result follows “Purpose / High-Level Debugging Strategy / Step 1: Workspace Reconnaissance”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: skill_debug
description: Autonomous Debugging Instructions for Visual Studio Code: for [plugin]. This document defines a…
category: ai
source: Noizefield/audio-plugin-coder
---
# skill_debug
## When to use
- Autonomous Debugging Instructions for Visual Studio Code: for [plugin]. This document defines a self-directed debuggin…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “Purpose / High-Level Debugging Strategy / Step 1: Workspace Reconnaissance” and keep inference separate from source facts.
- read files, write/modify files, run shell commands; mostly runs locally; usually needs no extra API key.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "skill_debug" {
input -> user goal + target files + boundaries + acceptance criteria
context -> Purpose / High-Level Debugging Strategy / Step 1: Workspace Reconnaissance
rules -> SKILL.md triggers / order / output contract
runtime -> Node.js / Python | read files, write/modify files, run shell commands | mostly runs locally
guardrails -> usually needs no extra API key + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} 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.json
Requirements
- 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
- 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.
Decide Fit First
Design Intent
How To Use It
Boundaries And Review