On Impact Code Comments

Use code comments as a bug-fixing amplifier: generate implementation-detail comments on buggy code before attempting repairs, improving fix accuracy by up to 3x. Based on empirical research showing that LLMs fix bugs far more accurately when methods contain comments describing implementation intent and logic. Trigger phrases: - "fix this bug" or "debug this code" (when code lacks comments) - "why isn't this working" (on uncommented methods) - "add comments then fix" or "comment-assisted fix" - "help me understand and fix this method" - "the fix isn't obvious, can you analyze this?" - "repair this function"

ndpvt-web 835aa3e 12.8 KB Updated

File contents

ndpvt-web/arxiv-claude-skills/tree/main/skills/on-impact-code-comments commit 835aa3e895

Frequently asked questions

npx skillmds@latest add ndpvt-web/on-impact-code-comments