Why Comments

Use when a file is littered with comments that narrate what the code already says (`// increment the counter`), when load-bearing code has no explanation of why it exists, or when reviewing AI-generated code (agents pad output with narration and never record the why). Deletes comments that restate the code, keeps and sharpens the ones that capture a non-obvious why — the workaround, the spec quirk, the ordering constraint — and adds a why where surprising code has none. Use when you hit a line that makes you ask 'why on earth is this here?' and the comment above it just says what it does.

mikestangdevs 0718bf3 5.5 KB Updated

File contents

mikestangdevs/craft-skills/tree/main/skills/craft/why-comments commit 0718bf33ef

Frequently asked questions

npx skillmds@latest add mikestangdevs/why-comments