一键导入
diagnosis
Use when debugging a failure, flaky behavior, regression, broken command, or unclear root cause. Builds a fast deterministic feedback loop before fixing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when debugging a failure, flaky behavior, regression, broken command, or unclear root cause. Builds a fast deterministic feedback loop before fixing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use at the start of work in any BES repo to build a current, cited map of instructions, repo state, verification gates, active plans, and likely risk before editing.
BLOCKING. Use after a SPEC.md is approved and before in-execution to emit one TASK.md per executable slice into specs/<id>/tasks/. Each TASK.md carries primary/cross-validation/verification model lanes and gates the parent SPEC's transition approved -> decomposed -> in-execution. Tasks are the source-of-truth dispatchable units that agents execute directly; no external tracker (Linear) or dispatcher (Symphony) is required.
Use for reviewing local diffs, branches, or PRs. Prioritises bugs, regressions, missing tests, unsafe assumptions, and broken repo contracts over surface polish. Do not use to author or review SPEC.md / IDEA.md artefacts — use spec-review for that BLOCKING gate.
Use when you (an agent) intend to invoke another agent's CLI from Bash — claude calling copilot, copilot calling claude, or any equivalent cross-agent pattern. Read at session start whenever you might fire `claude` or `copilot` from a Bash tool call. The skill documents the gotchas, points at the validator helper, and explains where the mechanical block fires.
Use during code authoring + spec-review. Four practices bundled: (1) impact-aware test selection — run tests the changed files transitively reach, not just the ones you wrote; (2) anti-over-mock cue — no mocks outside test files; (3) complexity-delta gate during review — measure lines vs behaviour; (4) dual-reader ambiguity probe at SPEC review — second reviewer asks 'what does this permit/forbid that disagrees'.
Use during every execution-phase task AND whenever answering any question with a knowledge gap. Six practices bundled: (1) tool receipts; (2) in-flight failure disclosure; (3) receiving-code-review; (4) ground before you answer; (5) confidence-band declarations on completion-report claims; (6) escalation rubric — stop and surface or reset rather than grind. Inherits the canonical exit-code mapping from the CLI invocation contract.
| name | diagnosis |
| description | Use when debugging a failure, flaky behavior, regression, broken command, or unclear root cause. Builds a fast deterministic feedback loop before fixing. |
| license | unknown |
| compatibility | ["copilot","claude","bes-fleet"] |
| allowed-tools | [] |
| metadata | {"bes_provenance":{"origin":"adapted","source_urls":["https://github.com/mattpocock/skills"],"borrowed_from":["mattpocock/skills diagnosing-bugs"],"upstream_status":"current","last_audited":"2026-07-08T00:00:00.000Z","audit_cadence":"quarterly","adoption_status":"adapted","security_review":"needed","notes":"BES-adapted from external skill lineage (mattpocock/skills diagnosing-bugs; renamed upstream from 'diagnose' — the fleet's 2026-06-05 record was stale on the name and is corrected here; the rename predates v1.1, so it is NOT a v1.1 change); not a verbatim import. 2026-07-08 (v1.1.0 @ d574778): added the missing-architectural-seam-is-the-finding cue to Stop And Reframe, a perf-measure-first note, and a post-mortem output line; the ranked falsifiable hypotheses and [DEBUG-<id>] probe tagging were already present and were NOT re-added (no-op discipline). Adoption record: specs/2026-07-08-pocock-v1.1-alignment-rebaseline."},"bes_tool_surface":{"scripts":"none","network":false,"dependencies":[],"secrets":[],"allowed_tools":[],"risk_notes":"No skill-local executable helper scripts."}} |
Use this skill when the task is to understand why something fails, regressed, flakes, or behaves unexpectedly.
Diagnosis comes before fixing. The output of diagnosis is evidence: reproduction, observations, likely root cause, and the narrowest safe fix direction.
[DEBUG-<id>] so cleanup is mechanical.For performance diagnosis specifically, measure before changing: a profile or benchmark is the feedback loop, and an optimization applied without a baseline measurement is a guess, not a fix.
Stop and reframe before continuing when:
mattpocock/skills
diagnosing-bugs @ d574778, v1.1.0, per
file://specs/2026-07-08-pocock-v1.1-alignment-rebaseline/SPEC.md
§11 T7; the ranked-falsifiable-hypotheses and [DEBUG-<id>]
probe-tagging cues were already present in this skill).A missing tool, a broken hook, or an absent feedback loop is fix-or-propose work, not a reason to stop diagnosing:
Report: