跳到正文
cccskills
免费在 GitHub 公开

remove-dumb-comments

Flag comments that merely restate the code instead of explaining why, and remove only those the user approves. Use when asked to remove dumb, redundant, or obvious comments, clean up comments, or invoke `/remove-dumb-comments [<number>|all]`.

中文简介正在准备中。当前显示原文说明。

LukeberryPi/skills星标 25(GitHub 25 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(1)

  • SKILL.md2.8 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Remove Dumb Comments

Flag comments that say what the code already says; keep every comment that explains why. The user chooses which flagged comments to remove.

Invocation

CommandBehavior
/remove-dumb-commentsFind the 10 lowest-value comments.
/remove-dumb-comments <number>Find that many lowest-value comments.
/remove-dumb-comments allFind every low-value comment.

Never Remove

Keep any comment that carries a why the code cannot convey:

  • backports, compatibility, or version-specific behavior;
  • infrastructure, deployment, or architecture;
  • workarounds, gotchas, or non-obvious reasons;
  • documentation, specifications, RFCs, or ADRs;
  • bugs, issues, tickets, or contextual TODOs/FIXMEs;
  • intent, trade-offs, or constraints.

When unsure, keep it. Flag only pure restatements.

Workflow

  1. Resolve the limit from the invocation (default 10).
  2. Search source files; skip generated output, vendored dependencies, lockfiles, and documentation.
  3. Rank candidates from most redundant to least.
  4. Get each candidate's age with git blame (see Comment Age).
  5. Present the table below, then ask whether to remove all recommended (see Feedback).
  6. If yes, treat every Remove item as approved. If no, ask Remove or Keep for each, naming it by its exact text, not its location.
  7. Remove only the approved comments.
  8. Run the project's lint and typecheck; fix anything the changes broke.

Delegate the read-only search to a fast, low-reasoning subagent when one is available: request at most the limit, each with exact path, line, comment text, and one to three adjacent code lines. Otherwise search directly.

Comment Age

For each candidate, run:

git blame -L <line>,<line> --date=relative -- <file>

Use the relative date; mark uncommitted lines uncommitted.

Required Output

Use exactly these columns:

| Comment | Age | Why |
|---------|-----|-----|
| `// increment the counter` | 8 months ago | *Remove.* Restates `count++` verbatim. |
| `/** Returns the user id. */` | 3 weeks ago | *Remove.* Describes the function word by word. |
| `// debounce avoids hammering the API on each keypress` | 1 year ago | *Keep.* Explains intent, not mechanics. |
  • Comment: Include the exact comment text in backticks.
  • Age: Use the relative git blame age.
  • Why: Start with *Remove.* or *Keep.*, then give one short reason.

Feedback

After presenting the table, ask:

Remove all recommended?

  • Yes, remove all recommended
  • No, I want to review each comment

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Audit or remediate web accessibility barriers, optimizing accessible task completion against a WCAG 2.2 AA floor.

中文简介正在准备中。当前显示原文说明。

LukeberryPi/skills252026年10月2日 更新

Dissect a codebase and run a 10-question mock technical interview on it, rating each answer 1-10 and closing with a PASS or FAIL verdict.

中文简介正在准备中。当前显示原文说明。

LukeberryPi/skills252026年10月2日 更新

gostaria que você agora usasse a força total do mega brain com.... o cop thief. que está acionado no sistema. ele precisa investigar mais… termos inteligentes e o que está acontecendo agora, na atualidade do mercado para que esse vídeo tenha tantos acessos e visualizações quanto o primeiro vídeo. o antigo. ele precisa ser uma versão reformulada e eu gostaria que você ajustasse somente aquilo que achar necessário para… se conectar ao contexto inicial que eu colei no começo da conversa. precisamos de um vídeo inteligente. didático, profundo na voz do tiago finch, porém voltado para empresários.

中文简介正在准备中。当前显示原文说明。

LukeberryPi/skills252026年10月2日 更新

Audit a codebase for dead and otherwise safe-to-remove code, and report each finding for approval. Use when asked to find dead or unused code, deduplicate repeated constants, replace magic literals that duplicate a named constant, or remove arbitrary caps, thresholds, or timeouts.

中文简介正在准备中。当前显示原文说明。

LukeberryPi/skills252026年10月2日 更新

查看 LukeberryPi 的全部技能

报告此技能的问题