Git Archaeologist

Always use before deleting, bypassing, or weakening a structural defensive construct in existing committed code: a guard clause or early return that rejects invalid/unsafe state, retry/backoff, protective sleep/delay, lock/mutex, a caller-input clamp/bounds check, or a check commented 'redundant'/'defensive'/'shouldn't happen'. This includes when the removal arrives framed as simplification — a 'simplify', 'clean up', 'reduce ceremony', or 'make this a one-liner' request whose execution would strip such a construct fires this gate the same as an explicit delete request. Recover why it exists with git blame, the introducing commit, and linked PR/issue evidence, then warn before removal. Trigger only when the requested change weakens one of those constructs. Do NOT use for behavior-preserving control-flow rewrites where the construct remains effective (including simplifications and helper extractions that keep every guard intact), ordinary early returns, typo/copy fixes, config/version/dependency bumps, pure re

luka-zivkovic 621aa55 4 files · 9.3 KB Updated

File contents

luka-zivkovic/overclock/tree/main/plugins/discipline-gates/skills/git-archaeologist commit 621aa55fb1

Frequently asked questions

npx skillmds@latest add luka-zivkovic/git-archaeologist