Generates meaningful comments and documentation for code to improve maintenance and readability. Use when adding documentation to Python or Java code, including function/method docstrings, class documentation, inline explanations for complex logic, and code annotations (TODO, FIXME). Analyzes existing comment style in the codebase to match conventions. Produces clear, concise comments that explain the "why" not just the "what", following best practices for each language.
92
92%
Does it follow best practices?
Impact
89%
1.23xAverage score across 3 eval scenarios
Passed
No known issues
Python docstring style matching
Google-style docstring format
100%
100%
Args section present
100%
100%
Returns section present
100%
100%
Raises section present
66%
100%
Type hints in signatures
0%
100%
Explains WHY not WHAT
70%
70%
No obvious inline comments
100%
100%
Magic numbers explained
50%
87%
Assumptions documented
37%
62%
Complex logic commented
37%
62%
Style matches existing code
100%
100%
Example section present
100%
100%
Java Javadoc and annotations
Javadoc format
100%
100%
@param tags
100%
100%
@return tag
100%
100%
@throws tag
0%
25%
@see cross-reference
0%
100%
Class-level Javadoc
70%
100%
Code example in class doc
0%
100%
TODO annotation
50%
66%
FIXME or HACK annotation
50%
100%
No obvious inline comments
75%
100%
Messy condition refactored
100%
100%
Explains WHY in comments
100%
100%
Regex and business rule commenting
Regex breakdown comment
100%
71%
Business rule context
100%
100%
Consistent domain terminology
100%
75%
Module-level docstring
0%
0%
WHY explained for rules
100%
100%
FIXME or TODO annotation
100%
100%
Google-style docstrings
100%
100%
Type hints present
0%
100%
No state-the-obvious comments
75%
87%
Magic number explained
78%
100%
0f00a4f
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.