公司规范只约束代码内容,门禁仍按插件执行;MCP token 不入库。 Co-authored-by: Cursor <cursoragent@cursor.com>
6.0 KiB
6.0 KiB
name, description, phase, model_requirement, can_edit, reads, writes, outputs, risk_level
| name | description | phase | model_requirement | can_edit | reads | writes | outputs | risk_level | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| hypothesis-critic | Challenge incident or bugfix hypotheses against available evidence before implementation. Use after incident intake or whenever a suspected root cause needs support checks, disconfirming evidence review, and a safest-next-step recommendation. | analysis | reasoning | false |
|
|
medium |
Hypothesis Critic
Use this skill to challenge bugfix or incident hypotheses before implementation.
Read <task-id> from .task/active.json. Prefer .task/<task-id>/incident.md when it exists. If no incident file exists, use only the evidence the user supplied and state the limitation clearly.
Purpose
- Test whether each hypothesis is supported by observed phenomena, logs, code, runtime behavior, configuration, and other concrete evidence.
- Separate evidence from interpretation.
- Catch weak causal claims before a planner or coding agent acts on them.
- Prepare a clean handoff for a planner, context-pack-builder, or reviewer.
Workflow
- Read
.task/active.jsonwhen a task directory is in use. - Read
.task/<task-id>/incident.mdif available. - Collect the smallest relevant evidence set:
- user symptom report
- logs or stack traces
- screenshots or external reports
- relevant code snippets or config fragments
- known environment or version notes
- List the explicit hypotheses already proposed by the user, incident pack, or prior analysis.
- If no explicit hypotheses exist, derive a small set of candidate hypotheses and label them as tentative.
- For each hypothesis, evaluate:
- what evidence supports it
- what evidence only weakly suggests it
- what evidence could disconfirm it
- whether the claimed cause actually explains the observed effect
- whether the hypothesis is broader than the current incident scope
- Assign exactly one support label to each hypothesis:
confirmedlikelypossibleunknownweakly-supportedunsupportedcontradicted
- Identify whether the current evidence is sufficient to justify implementation, or whether the safest next step is reproduction, disconfirming checks, or more evidence.
- Recommend the smallest safe next step needed to reduce uncertainty.
- Output the assessment only.
- Do not implement fixes.
Required Checks
For every hypothesis, explicitly check for:
- over-interpretation from partial evidence
- weak causal links between symptom and suspected cause
- missing disconfirming evidence
- missing reproduction evidence or documented
NOT_RUNreason - repair actions that depend on unsupported assumptions
- scope creep beyond the reported incident
- reliance on a single log fragment as if it were conclusive
Support Label Rules
confirmed: directly supported by multiple consistent evidence points, with no meaningful conflicting evidence currently visible.likely: supported by meaningful evidence, but at least one uncertainty or missing disconfirmation step remains.possible: plausible, but support is limited, indirect, or mostly inferential.unknown: not adequately supported by current evidence, or the evidence is too incomplete or conflicting to judge.weakly-supported: some evidence points in this direction, but the causal link is too thin for implementation without a narrower check.unsupported: asserted without concrete evidence in the current packet.contradicted: conflicts with observed evidence or a stronger confirmed fact.
Do not use any label other than confirmed, likely, possible, unknown, weakly-supported, unsupported, or contradicted.
Output Format
# Hypothesis Critic Assessment
## Evidence Basis
- Incident source:
- Evidence reviewed:
- Missing evidence:
- Limitations:
## Hypothesis Review
### Hypothesis 1
- Statement:
- Support label: confirmed | likely | possible | unknown | weakly-supported | unsupported | contradicted
- Implementation readiness: ready | needs narrower check | needs more evidence | blocked
- Supporting evidence:
- Weak or indirect evidence:
- Disconfirming evidence checked:
- Gaps or contradictions:
- Over-interpretation or scope-creep risk:
- Verdict:
- Required evidence or safest next step:
### Hypothesis 2
- Statement:
- Support label: confirmed | likely | possible | unknown | weakly-supported | unsupported | contradicted
- Implementation readiness: ready | needs narrower check | needs more evidence | blocked
- Supporting evidence:
- Weak or indirect evidence:
- Disconfirming evidence checked:
- Gaps or contradictions:
- Over-interpretation or scope-creep risk:
- Verdict:
- Required evidence or safest next step:
## Recommended Handoff
- Best current working hypothesis:
- Hypotheses that should not drive implementation yet:
- Unsupported, weakly-supported, or contradicted assumptions:
- Before-fix validation needed:
- After-fix validation expectation:
- Next recipient: planner | context-pack-builder | user for more evidence
- Notes for handoff:
Guardrails
- Do not edit code.
- Do not implement or suggest a broad fix plan beyond the safest next step.
- Do not assume local reproduction exists or is required.
- Do not auto-capture logs or generate synthetic evidence.
- Do not treat a single stack trace line or log fragment as conclusive on its own.
- State uncertainty explicitly.
- Treat large code changes based on
possible,unknown,weakly-supported,unsupported, orcontradictedhypotheses as blocked unless the user explicitly accepts the risk and the task records the rationale. - Prefer before-fix and after-fix validation evidence; when validation cannot be run, require a documented
NOT_RUNreason and follow-up. - Prefer disconfirming checks over confident speculation.
- Keep the output tied to the reported incident scope.