/stv:debugfrom stv
Records a structured debugging trace when code behaves unexpectedly. Uses AS-IS/TO-BE confirmation, callstack tracing, and red-green fix methodology.
Ships in stv. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A debugging methodology that records everything like an airplane black box while hunting for the root cause. Core constraint: An unexplored branch is an unexamined branch.
Before starting, always confirm with the user:
The gap between AS-IS and TO-BE is the bug. Do not start debugging without confirmation.
Create a debugging log file under the current working directory (NOT the home directory):
./.claude/stv/debugging/{issueID}-{YYYYMMDDhhmm}/trace.md
The ./ prefix is intentional — every stv artifact (spec.md, trace.md, debugging trace) lives under the active CWD so multi-tenant / multi-session agents stay isolated. The tradeoff is that the same {issueID} started in different working trees yields separate trace dirs; that is the intended isolation model, not a bug.
Path guards (all three are hard rules):
.claude. The trace dir is always the CWD-relative ./.claude/stv/…; a trace path that resolves to the HOME-level .claude (~/.claude/…, $HOME/.claude/…, /Users/<user>/.claude/…, /home/<user>/.claude/…) is a bug in the run, not a fallback — older versions of this skill polluted ~/.claude/stv/debugging/ exactly this way. (A checkout that happens to live under /Users/<user>/project/ is fine — the guard is about the home .claude, not the home prefix.) If the CWD is somehow unwritable, stop and surface that instead of falling back to home. ./.claude/stv/ must be git-ignored before the first trace write: if ! git check-ignore -q .claude/stv; then echo '.claude/stv/' >> .git/info/exclude; fi. Default to .git/info/exclude (local scratch policy, no tracked-file mutation); append to the repo's .gitignore instead only when the project explicitly wants the ignore rule shared. A debugging trace that leaks into a commit is scratch entering the tree.Follow the callstack one step at a time from the entry point, recording in this file.
Once a hypothesis is identified:
docs/{feature}/trace.md, update that trace via the Delta Protocol (a wrong transformation rule → MODIFIED; a missing error path → ADDED) so trace and code stay synchronized. The debugging trace dir is scratch; the vertical trace is the contract.The above blackbox method covers how to trace. These principles cover how to think while debugging.
setTimeout/sleep 대신 조건 폴링을 써라.waitFor(() => condition, timeout) — 10ms 간격 폴링 + 타임아웃 필수.# Bug Trace: ISSUE-1234 — Soccer team names appear in results
## AS-IS: Movie search results include soccer team names mixed in
## TO-BE: Movie search results should only contain movies
## Phase 1: Heuristic Top-3
### Hypothesis 1: Search query runs without category filter
- `SearchController.cs:45` → calls `SearchService.Query()`
- `SearchService.cs:112` → check categoryFilter parameter → **passed as null** ✅ Likely
### Hypothesis 2: DB table join is incorrect
- `SearchRepository.cs:78` → check SQL → join is correct ❌ Ruled out
### Hypothesis 3: Response mapping mixes in other entities
- `SearchMapper.cs:34` → check mapping logic → correct ❌ Ruled out
## Conclusion: Hypothesis 1 confirmed — categoryFilter passed as null to SearchService.Query()
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub 2lab-ai/oh-my-claude --plugin stv15 skills in this plugin
/clarifyUse when the user's request is ambiguous — vague asks, polysemous instructions, unclear scope — BEFORE committing to a feature. Two-track loop (one question at a time + parallel codebase exploration) producing a Context Brief that becomes the SSOT for the follow-up work./do-workUse when a trace.md with unfinished scenarios exists and the user wants autonomous implementation — 'continue the work', 'implement the traced feature', or after a bundle was selected. Accepts an explicit bundle contract (trace_path + scenario_ids); scans for ready scenarios only when no contract is given./excalidraw-diagramCreate Excalidraw diagram JSON files that make visual arguments. Use when the user wants to visualize workflows, architectures, or concepts./exploreUse when the problem is vague, the domain unfamiliar, multiple approaches are possible, or the user says 'investigate first' / 'before we spec this'. Read-only stance (not a workflow): no code changes, no mandatory artifacts; exits to spec/debug/clarify/direct implementation when insight crystallizes./new-taskUse when the user gives a vague or high-level feature request that needs decomposition into implementable work — new ideas, '~만들어줘' with implicit requirements, features with multiple possible approaches. NOT for specific 1-2 file changes, obvious bug fixes, quick questions, or when spec/trace already exist (use stv:do-work)./plan-new-taskUse when the trace backlog has ZERO unfinished scenarios (or the user explicitly asks for new feature ideas) and the project needs its next feature proposed. Hands the chosen idea to new-task for spec + trace.Other plugins' skills for the same job