Code Comments

Use this skill whenever writing or changing code in any language — implementing a feature, fixing a bug, refactoring, or scaffolding a file — to decide whether a comment is warranted at all before writing one. The default is no comment. Also triggers when the user says "too many comments", "stop adding comments", "this is too verbose", "should this be documented?", "add a docblock", "clean up the comments", or reviews a diff full of narration. Covers the short allowlist of warranted comments, the ban list (restating the code, duplicating one rationale across sites, section banners, redundant docblocks, diff/session narration, commented-out code), style rules, and a pre-finish sweep of the diff.

specsnl Updated

File contents

specsnl/agent-skills/tree/main/plugins/code/skills/code-comments commit 9b00df820f

Frequently asked questions

npx skillmds@latest add specsnl/code-comments