klimkit-diagnose
Installation
SKILL.md
Klimkit Diagnose
Diagnose before fixing. The output should make the failure, root cause, fix, and regression proof inspectable.
Workflow
- Ensure operator-scoped Klimkit context exists. If
.klimkit/<operator>/is missing or ambiguous, useklimkit-setupfirst. - Define the symptom in one sentence and identify the smallest observable failure signal.
- Read relevant instructions, prior task notes, logs, and nearby tests before changing code.
- Reproduce the failure with the cheapest deterministic command, UI path, log bundle, or fixture.
- Minimize the failing surface: isolate the module, route, command, input, environment, or data dependency.
- Form hypotheses from evidence. Do not patch based only on plausible explanations.
- Instrument only when needed, and remove temporary instrumentation before handoff unless it becomes useful production diagnostics.
- Write or update a regression test when the repo has an appropriate test surface.
- Make the smallest robust fix.
- Rerun the failing signal, the new regression coverage, and any blast-radius checks.
- Record proof under
.klimkit/<operator>/tasks/<feature>/: reproduction, root cause, changed files, checks run, and remaining risk.