Agent skill

comments-explain-why

Good comments explain: business rules ("Tax is calculated differently for EU customers due to VAT... Use when documenting code and APIs. Documentation category skill.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/comments-explain-why

Metadata

Additional technical details for this skill

category
Documentation
priority
high
is built in
YES
session guardian id
builtin_comments_explain_why

SKILL.md

Comments Explain Why

Good comments explain: business rules ("Tax is calculated differently for EU customers due to VAT regulations"), workarounds ("Using setTimeout because the library has a race condition - see issue #123"), non-obvious decisions ("We use insertion sort here because n is always small and it's faster for nearly-sorted data"). Don't comment what is obvious from the code itself.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results