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.
Blocks new/edited comments that violate the "why-only, ≤7 words, one line" comment convention, before the edit lands.
Runs on Write, Edit, and MultiEdit. Scans only the newly written/changed
text (content for Write, new_string for Edit/MultiEdit) for whole-line
comments in the target file's language, and denies the operation if either
rule is violated:
Trailing inline comments (code() # note) are intentionally not checked --
detecting a marker inside a string literal without a real parser is too
false-positive-prone.
Line-comment languages (#, //, --, ;) -- see LINE_COMMENT_MARKERS
in comment_length_check.py for the full extension list -- plus Python's
bare triple-quoted string statements ("""..."""/'''...'''), Python's
only block-comment idiom (docstrings included). A quote assigned to a
variable (x = """...""") is not a comment and is left alone. C-style
block comments (/* */) are out of scope for now.
A comment block is skipped entirely if it is:
#!/usr/bin/env ...) on the first line.noqa, type:, pragma, eslint-disable,
pylint:, nosec, @ts-ignore, SPDX-License-Identifier, etc).No configuration required. Loaded automatically by Claude Code when
CLAUDE_HOOKS_DIR points to the parent claude-hooks directory, or via
/plugin install comment-style@steeef/claude-hooks.
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 steeef/claude-hooks --plugin comment-stylePlugins from other owners that cover similar ground