跳到正文
Skillpedia
通用编程15k · #10970

no-comments

它能做什么

让智能体审阅代码中的注释,并删除没有帮助的注释。适合需要清理代码中杂乱或过时笔记的团队。

适用场景

  • ✓当你希望在一组差异或文件中审阅并整理注释的时候。
  • ✓当代码中有嘈杂、过时或显而易见的注释的时候。
  • ✓当需要检查某个代码检查或类型抑制规则是否仍然必要的时候。

技能链接

https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/no-comments/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/cursor/plugins/blob/main/harness/pstack/claude-code/skills/no-comments/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请逐条查看这次差异中的注释,删除没用的,保留那些解释真实约束的注释。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会启动一个单独的注释审阅者,对它提出的每项发现都对照代码进行核实,拒绝超出注释范围的改动,只应用被采纳的发现。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

No comments

In Claude Code, read the Claude Code adapter once per session before you follow this skill. It maps the Cursor names in pstack skills to Claude Code.

Spawn Comment Sicko. Act on accepted findings.

Defer to Comment Sicko's fresh perspective.

Scope

Use the caller's files or diff. Otherwise use the current diff against the base branch, default main, including the working tree.

Steps

  1. Spawn Task with subagent_type: "comment-sicko". Pass the scope. Pick each subagent's reasoning level and fast or standard speed for the job, per the Subagents section of the poteto-mode skill. Do not restate its rules.
  2. Inspect its report and diff. Reject application-code edits, scope escapes, exception-protected deletions, misstated MUST KILL reasons, and flags that treat kept intentional code as guilty. Reshape flags on our-code surprises stay actionable. Do not restore those comments. A keep survives only with proof it is about something we cannot change. Audit missed scoped lint and TypeScript suppressions. Correctness or safety suppressions stay actionable MUST KILLs. Restore deletions only with exact exceptions and scoped proof. Before accepting thin IMPORTANT or do not remove kills or keeps, run /how or /why on their symbol. If a kill is ambiguous, do not restore. If a keep is refuted or still ambiguous, delete it. Revert and rerun one rejected report with the failure named. Reject a second, report it open, and fail /no-comments.
  3. Fix trivial accepted flags directly by deleting a dead path, dropping a parameter, or using the real API. If any fix needs a shape, run /architect once for the accepted set and surrounding code. Stop at the sketch. Architect shapes. Step 4 implements.
  4. Implement the smallest root-cause fix in scope. Remove every named workaround. If the root cause is out of scope, land the smallest in-scope fix and report the rest open. The principle-fix-root-causes and principle-redesign-from-first-principles skills guide intent only. Neither authorizes widening the fence nor fixing instances outside it. Never bolt on symptom guards.
  5. Constraint comments say do not remove, do not change wording, or talk to X before changing. Leave keeps about things we cannot change. Offer the cheapest in-scope type, runtime, test, or CI lint. Wait for interactive approval. Unattended and eval require caller pre-approval. If approved, encode then delete. Otherwise delete, report the constraint open, and sketch out-of-scope work.
  6. Report the deletion count, restored comments, reruns, architect sketch, fixes, encoding offers, encodings, unenforced constraints, and other open work.
常见问题

它会改动应用逻辑吗?

不会。该技能拒绝对应用代码的编辑,它的改动只限于注释和抑制规则。

保留的注释会被检查吗?

会。只有在证明某条注释描述的是团队无法改变的事情时,才会保留它。

默认的范围是什么?

你指定的文件;否则默认是相对于基础分支的当前差异,包括工作区中的改动。

详情

作者的原始描述

Spawn Comment Sicko, fix accepted findings, and offer encodings for claimed constraints.

repo: cursor/plugins

热度

GitHub 星标
15k
排名
#10970
许可证
—
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能