Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Whenever AI tries to write code comments, this plugin tells them to remove unnecessary comments.
/plugin install comment-checker@swen128-claude-plugins
User: Create a function to calculate fibonacci numbers
Claude writes:
// Calculate the nth fibonacci number using recursion
function fibonacci(n: number): number {
if (n <= 1) return n;
return fibonacci(n - 1) + fibonacci(n - 2);
}
Hook output:
COMMENT/DOCSTRING DETECTED - IMMEDIATE ACTION REQUIRED
...
PRIORITY-BASED ACTION GUIDELINES:
1. This is a comment/docstring that already existed before
-> Explain to the user that this is an existing comment/docstring and proceed (justify it)
2. This is a newly written comment: but it's in given, when, then format
-> Tell the user it's a BDD comment and proceed (justify it)
-> Note: This applies to comments only, not docstrings
3. This is a newly written comment/docstring: but it's a necessary comment/docstring
-> Tell the user why this comment/docstring is absolutely necessary and proceed (justify it)
-> Examples of necessary comments: complex algorithms, security-related, performance optimization, regex, mathematical formulas
-> Examples of necessary docstrings: public API documentation, complex module/class interfaces
-> IMPORTANT: Most docstrings are unnecessary if the code is self-explanatory. Only keep truly essential ones.
4. This is a newly written comment/docstring: but it's an unnecessary comment/docstring
-> Apologize to the user and remove the comment/docstring.
-> Make the code itself clearer so it can be understood without comments/docstrings.
-> For verbose docstrings: refactor code to be self-documenting instead of adding lengthy explanations.
...
Detected comments/docstrings:
<comments file="fibonacci.ts">
<comment line-number="1">// Calculate the nth fibonacci number using recursion</comment>
</comments>
Claude corrects:
I apologize for adding an unnecessary comment. The function name fibonacci and parameter n are self-explanatory. Let me remove it:
function fibonacci(n: number): number {
if (n <= 1) return n;
return fibonacci(n - 1) + fibonacci(n - 2);
}
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub swen128/claude-plugins --plugin comment-checkerPlugins from other owners that cover similar ground