code-comment-improver

Rewrites unclear code comments into documentation explaining why, not what.

Updated Feb 21, 2026
One-click install
npx skills add https://github.com/joySUSY/violet-plugin-place --skill code-comment-improver-joysusy
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: code-comment-improver
Source: https://github.com/joySUSY/violet-plugin-place/tree/main/plugins/documentation-guidelines/modules/code-comment-improver
Command: npx skills add https://github.com/joySUSY/violet-plugin-place --skill code-comment-improver-joysusy

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Codebases often contain comments that state the obvious, are outdated, or fail to explain the reasoning behind complex logic, making maintenance and onboarding harder for developers. ## Core Features & Use Cases - Comment Rewriting: Transforms vague or redundant comments into explanations of why code behaves a certain way, including edge cases and business logic context. - Documentation Templates: Provides structured formats for file headers, function docs (JSDoc/docstrings), inline comments, and TODO/FIXME/HACK markers with owner and ticket references. - Use Case: When reviewing a legacy Python module with cryptic one-line comments, use this Skill to produce full docstrings covering parameters, return values, exceptions, and usage examples. ## Quick Start Ask the assistant to improve the comments in a pasted code snippet, and it will return the original code, the improved version, and a list of changes made.

Frequently Asked Questions about code-comment-improver

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write better code comments?▼

Focus on explaining why the code exists rather than what it does, since the code itself shows the what. Document edge cases, business logic context, and workarounds with links to tickets or specifications.

How to document a function with JSDoc or docstrings?▼

Include a brief description, detailed explanation if needed, and tags for parameters, return values, thrown errors, and a usage example. This gives readers the contract of the function without reading its implementation.

What should a TODO comment include?▼

A TODO should name an owner, describe what needs to be done, and reference a ticket or issue. FIXME comments should state what is broken and why the fix is deferred, while HACK comments explain when the workaround can be removed.

When should I avoid adding comments to code?▼

Avoid comments that restate obvious code behavior, such as labeling an increment operation. Redundant comments drift out of sync with code and add noise; reserve comments for non-obvious logic and constraints.

Does this work with languages other than JavaScript and Python?▼

The comment principles and templates are language-agnostic, covering inline, block, header, and function documentation styles. The provided examples use JavaScript, Python, and React JSX, but the same rules apply elsewhere.