Skip to main content

diagnose-before-editing

Diagnose a reproducible defect or performance regression before changing production code. Use when behavior is broken, failing, throwing, flaky, or unexpectedly slow.

Quellinformationen

Repository
theonly1me/shadowclone
Letzte Quellaktivität
27. September 2026 um 19:18
Erkannte Sprache von SKILL.md
Englisch
Sterne
9
Forks
0

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
diagnose-before-editing
description
Diagnose a reproducible defect or performance regression before changing production code. Use when behavior is broken, failing, throwing, flaky, or unexpectedly slow.
metadata
{"shadowclone-category":"debugging","shadowclone-section":"workflow","shadowclone-applies-when":"diagnosing a reported defect or performance regression"}
# Diagnose Before Editing ## Use when A defect or performance regression has no demonstrated cause yet. ## Process 1. State the input, actual result, and expected result. Find the fastest repeatable command that reaches the failing path. 2. Reproduce the reported failure, then remove inputs or steps while preserving it. 3. Trace where correct state first becomes incorrect. List plausible causes and an observation that would disprove each. 4. Probe one cause at a time with a debugger, targeted instrumentation, timings, or controlled inputs. 5. Stop when a cause predicts the symptom and a controlled change removes it. 6. Preserve the reproduction as a regression test through a stable public interface where practical. Fix the cause at its origin. 7. Run the reduced and original reproductions, then remove temporary diagnostics. For flaky behavior, measure the reproduction rate and control clocks, randomness, concurrency, or external responses. For performance work, establish a baseline and measure the suspected cost before changing it. ## Guardrails Redact sensitive traces and paths before reporting them. Change one causal variable per probe. Keep unrelated defects out of the fix and avoid fallbacks that merely hide invalid state. If reproduction fails, report what was tried and the missing evidence. Do not turn an unverified theory into a production change. ## Completion The cause explains the original symptom, the fix passes both reproductions and affected checks, and temporary instrumentation is gone.
Auf GitHub ansehen