Clean Codejs Comments
This skill automatically adds or removes JSDoc-style comments from your JavaScript code to improve readability and maintainability.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add clean-codejs-comments npx -- -y @trustedskills/clean-codejs-comments
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"clean-codejs-comments": {
"command": "npx",
"args": [
"-y",
"@trustedskills/clean-codejs-comments"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill analyzes JavaScript code and suggests improvements to its commenting style. It aims to ensure comments are clear, concise, and accurately reflect the code's purpose. The skill can identify redundant or outdated comments and propose more effective phrasing for better maintainability.
When to use it
- Code Reviews: Integrate this skill into automated code review pipelines to enforce consistent commenting standards across a project.
- Refactoring Legacy Code: Use it when cleaning up older JavaScript codebases with inconsistent or unclear documentation.
- Onboarding New Developers: Help new team members understand existing code by ensuring comments are well-written and informative.
- Improving Readability: Employ this skill to enhance the overall readability of a codebase, making it easier for developers to understand and modify.
Key capabilities
- Identifies redundant comments.
- Suggests improvements to comment clarity.
- Ensures comments accurately reflect code functionality.
- Promotes consistent commenting style.
Example prompts
- "Analyze this JavaScript file and suggest better comments: [paste code]"
- "Review the following function for outdated or unnecessary comments: [paste code]"
- "Improve the commenting style in this block of code: [paste code]"
Tips & gotchas
The skill's effectiveness depends on the quality of the existing codebase. It is most useful when applied to code that already contains some level of commenting, but may benefit from refinement.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.