AGENT SKILL

no-comments

PStack diff clean-up. Strips redundant, obvious, or workaround comments to keep PR diffs focused.

License 许可
MIT
最近更新
2026-10-28
Stars
★ 0
Forks
0

01 前言 Front Matter

name
no-comments
description
PStack diff clean-up. Strips redundant, obvious, or workaround comments to keep PR diffs focused.

03 SKILL.md 正文

/no-comments — Comment Pruning & Hygiene

Code should be self-documenting through clear naming and small functions.

Rules

  1. Delete Obvious Comments:
    • BAD: // increment counter followed by count++
    • BAD: // function to fetch user followed by function fetchUser()
  2. Delete Workaround Notes: Remove commented-out dead code or temporary debugging markers (// TODO: fix later).
  3. Keep Only Rationale Comments: The only valid comments explain WHY an unusual or non-obvious decision was made (e.g., explaining an upstream vendor API quirk).

04 同仓库更多 Skills