一键导入
investigate
Systematic root-cause debugging with evidence before any fix is applied.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Systematic root-cause debugging with evidence before any fix is applied.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | investigate |
| description | Systematic root-cause debugging with evidence before any fix is applied. |
Related: /regression-check after a fix is identified; /self-audit for session-authored changes without a runtime repro; /skills-doctor for setup, toolchain, and initial evidence before root cause is proven.
Do not use this skill for greenfield feature design or pre-merge diff review without a failing behavior to explain.
curl, unit test, browser path)./regression-check scope.Return a markdown report with these exact sections:
Checkout total shows $0.00 because applyDiscount() runs before priceLoaded is true when the cache hits a stale cart snapshot (packages/cart/src/checkout.ts:142).
discount applies after price hydrationCI=1 pnpm test packages/cart — passCode review and cleanup across reuse, quality, and efficiency dimensions. Launches three parallel review agents against the current diff, then aggregates findings and applies fixes.
Red-team the agent's own output against OWASP Top 10 for LLM Applications and Agentic AI. Self-inject, test boundaries, check exfiltration paths. If you can't attack your own output, someone else will.
Mandatory verification of every factual claim before emission. API contracts, dependency versions, file existence, behavior promises — claims about code are hypotheses until verified against the actual source. Based on Dhuliawala et al. (Meta FAIR, ACL 2024).
Disciplined 6-step diagnosis loop with strict evidence gates between stages. Reproduce → minimise → hypothesise → instrument → fix → regression-test. Cannot advance without the required artifact per step.
Split the workflow into Evaluator and Optimizer personas. Evaluator scores output 1–10 on correctness, completeness, safety, and simplicity. Optimizer rewrites to address critiques. Loop until score ≥9 or 3 iterations. Self-improvement without measurement is guessing.
Detect fail-open security patterns: debug mode in production, permissive CORS, disabled CSRF, default admin credentials, verbose error messages, unauthenticated health endpoints. Configuration is code — review it with the same rigor.