一键导入
wz-debugging
Use when behavior is wrong or verification fails. Follow an observe-hypothesize-test-fix loop instead of guesswork.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when behavior is wrong or verification fails. Follow an observe-hypothesize-test-fix loop instead of guesswork.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use before implementation work to turn operator briefings into an approved design with explicit trade-offs.
Run the clarification pipeline — research, clarify scope, brainstorm design, generate task specs and execution plan. Pauses for user approval between phases.
How to use Claude Code CLI programmatically for reviews, automation, and non-interactive operations within Wazir pipelines.
How to use Codex CLI programmatically for reviews, execution, and sandbox operations within Wazir pipelines.
Measure pipeline compliance for a completed run — checks phase execution, artifact production, gate evidence, hook enforcement, and publishes per-step and aggregate compliance scores.
Guide the designer role through open-pencil MCP workflow to produce design artifacts from an approved spec.
| name | wz:debugging |
| description | Use when behavior is wrong or verification fails. Follow an observe-hypothesize-test-fix loop instead of guesswork. |
Real talk: the pipeline steps aren't suggestions. Check .wazir/runs/latest/phases/ for your current checklist and work through it. Use wz: skills when they apply — that's not optional. What phase are you starting?
Follow the Canonical Command Matrix in hooks/routing-matrix.json.
wazir index search-symbols <query> firstwazir recall file <path> --tier L1 for targeted readswazir index build && wazir index summarize --tier allNote: This skill uses Wazir CLI commands for symbol-first code exploration. If the CLI index is unavailable, fall back to direct file reads — the generic OBSERVE methodology (read files, inspect state, gather evidence) still applies.
Follow this order:
Observe
Use symbol-first exploration to locate the fault efficiently:
wazir index search-symbols <suspected-area>
— find relevant symbols by name.wazir recall symbol <name-or-id> --tier L1
— understand structure (signature, JSDoc, imports).wazir recall file <path> --start-line N --end-line M
— read ONLY the suspect code slice.Also record the exact failure, reproduction path, command output, and current assumptions.
Hypothesize
List 2-3 plausible root causes and rank them.
Test
Run the smallest discriminating check that can confirm or reject the top hypothesis.
Fix
Apply the minimum corrective change, then rerun the failing check and the relevant broader verification set.
Debugging loops respect the loop cap when running inside a pipeline:
.wazir/runs/latest/ exists): use wazir capture loop-check to track iteration count. If the cap is reached (exit 43), escalate to the user with all evidence collected so far..wazir/runs/latest/): the loop runs for pass_counts[depth] passes (quick=3, standard=5, deep=7) with no cap guard. Track iteration count manually.In standalone mode, any debug logs go to docs/plans/ alongside the artifact.
See docs/reference/review-loop-pattern.md for cap guard integration.
Almost done? Then you should be able to list every phase checklist item and show exactly where you completed it with real evidence. If you can't do that, you're not actually done. Can you list them all with proof?