/goal-workflow-skills:debug-itfrom goal-workflow-skills
Guides disciplined bug diagnosis, performance regression forensics, and root-cause fixing with a phased methodology: build a tight feedback loop, rank falsifiable hypotheses, instrument, attack failed premises, and lock down fixes with regression tests.
Ships in goal-workflow-skills. 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.
Read when SKILL.md points to them; scripts run unread.
A phased debugging discipline for hard bugs, intermittent failures, and performance regressions. Skip a phase only when explicitly justified by the user or environment.
Before exploring, read GLOSSARY.md and relevant docs/adr/ entries if they exist so hypotheses use the codebase's real domain model.
Never print raw secrets, tokens, cookies, or PII in commands, logs, or captured artifacts:
<REDACTED> before quoting.$API_TOKEN), never inline secrets.If redacted output strips the signal needed to diagnose, tell the user explicitly instead of guessing.
This is the leverage point. A fast, deterministic pass/fail command that goes red on this exact bug turns debugging into mechanical elimination. Do not read code to build theories before this command exists.
git bisect run when a bug appeared between two known commits/versions.scripts/hitl-loop.template.sh, customize steps, and parse its KEY=VALUE output.Treat the loop like a product:
Raise the reproduction rate before investigating: loop 100x, run concurrently, tighten timing windows, inject controlled delays/jitter. A 50% repro rate is debuggable; a 1% flake is not.
If you genuinely cannot build a loop, stop and report what you tried. Ask the user for:
Name one exact command you have already executed at least once (with redacted output) that is:
A minimal repro shrinks the hypothesis space and becomes the clean regression test in Phase 5. Do not proceed without both reproduction and minimisation.
Generate 3–5 ranked, falsifiable hypotheses before running any diagnostic probe. Generating only one hypothesis anchors you on the first plausible guess.
Each hypothesis must state a concrete prediction:
If <X> is the cause, then <changing/observing Y> will <make the bug disappear / produce Z>.
If you cannot write a falsifiable prediction, sharpen or discard the hypothesis. Briefly show the ranked list to the user (they may spot an already-ruled-out path), then proceed without blocking if they are away.
Test one hypothesis and change one variable at a time:
[DEBUG-<4hex>] (e.g., [DEBUG-a4f2]) so Phase 6 cleanup is a single grep.performance.now(), benchmark, CPU/heap profile, EXPLAIN query plan), then bisect or measure before/after under the same workload.When 2 fixes sharing one premise fail the same verification gate: STOP writing a third fix.
Trace every symptom backward until the answer to "why did this happen?" is a wrong decision in code:
if (!x) return), retry, swallowed error, or value clamp at the crash site — that hides the bug. Find and fix what produced the illegitimate state.Write the regression test before the fix when a real seam exists:
Execution sequence:
Before reporting done, verify every item from real command output (never "it compiles"):
[DEBUG-...] probes (git grep '\[DEBUG-' returns nothing).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub smallnest/goal-workflow --plugin goal-workflow-skills22 skills in this plugin
/article-iconsIllustrate an article (Markdown, HTML, etc.) with animated-style icons from itshover.com/icons. Fetches icons as clean inline SVG and places them at section headings, key concepts, lists, and callouts. Triggers on: /article-icons, 配图, 给文章配图标, add icons to article, illustrate with icons./code-to-specReverse-engineer a SPEC document from an existing project. Analyzes code, config, tests, and structure to produce a comprehensive specification. Triggers on: code-to-spec, reverse spec, generate spec, 逆向规格, 生成规格文档, 生成设计文档, 生成设计方案, extract spec, document this project, what does this project do./design-itUse when turning a requirement, spec, or feature brief into a single self-contained HTML design document in a fixed house style — one styled HTML page with a table-of-contents, architecture/sequence SVG diagrams, code/SQL/YAML blocks, callout boxes, an aligned-decisions (已对齐结论) panel, test cases, and a code index. Reuse for any new 需求/设计文档 that should look identical every time./graphGraph engineering for parallel task execution: convert a task, PRD, SPEC, or issue set into a dependency graph (DAG), layer it into supersteps, then implement each independent node concurrently with subagents — each node runs /goal → /review-it → /ship-it in an isolated git worktree, with a fan-in barrier between waves. Triggers on: graph, graph engineering, build a graph, task graph, dependency graph, DAG, parallel implement, 并发实现, 并行实现, 任务图, 把任务变成图, fan-out fan-in, superstep, dynamic workflow./humanize-it对指定文档进行去 AI 味的改写。自动选择最合适的人性化策略(humanizer-zh / humanize-chinese / technical-writing), 迭代改写直到效果达标或迭代 42 次为止。适用于中文文本的去 AI 化处理,包括通用文章、技术文档、学术论文等。 Use when user says: "humanize this", "去AI味", "降AIGC", "人性化改写", "改成人话", "去除AI痕迹", "humanize document", "make text human-like", "去机器味", "降低AI率", "过AIGC检测"
/insight-diagram为任意项目生成 UML 图、架构图和流程图。分析代码库后让用户选择要生成的图表类型,使用 architecture-diagram skill 渲染为 HTML+SVG,保存到 docs/ 目录。适用于任何软件项目的文档可视化。Other plugins' skills for the same job