Comment Non Obvious Steps

Use when writing or editing code that contains repeated-looking calls on different structures, bitmask/bit-fiddling, ordering-sensitive sequences, or multi-step state mutations across data structures — adds a short inline comment per step explaining WHY each step is distinct, so a reader doesn't stop and ask "wait, why are there three of these?". Does not apply to trivial code with self-explanatory identifiers.

amitkot 9df64ab 2.5 KB Updated

File contents

amitkot/claude-code-tools/tree/main/code-habits/skills/comment-non-obvious-steps commit 9df64abc90

Frequently asked questions

npx skillmds@latest add amitkot/comment-non-obvious-steps