원클릭으로
comment-audit
Remove useless comments and keep only human-useful context
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Remove useless comments and keep only human-useful context
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
| name | comment-audit |
| description | Remove useless comments and keep only human-useful context |
Use this skill after AI-assisted edits, large refactors, or any change that adds comments.
This skill handles cosmetic AI slop. It is lower priority than the five dangerous patterns in AI_DANGER_PATTERNS.md.
Delete comments that narrate code.
Bad:
// Get enabled mods
const enabledMods = mods.filter((mod) => mod.enabled)
Bad:
// Loop through files
for (const file of files) {
installFile(file)
}
Bad:
// Return Ok result
Ok(result)
Keep or improve comments that explain:
Good:
// ModWorkshop can return duplicate files for archived mod versions,
// so dedupe by download URL before writing to disk.
const uniqueFiles = dedupeByUrl(files)
Good:
// Use remove_dir, not remove_dir_all, so a failed backup restore
// cannot silently delete user mods.
fs::remove_dir(path)?;
Do not delete comments that act as section headers or file-level orientation.
Examples to keep:
// Reference implementation: https://github.com/HW12Dev/PDModExtractor (MIT)
// .pdmod is a password-protected ZIP containing pdmod.json (ItemQueue manifest)
// plus the replacement asset files. BundlePath and BundleExtension are hashes;
// the hashlist maps them back to game-relative asset paths.
// Bob Jenkins lookup8 hash — direct port of hash.cpp from PDModExtractor.
These preserve domain knowledge and make complex files safer to edit. Do not "clean up" structural comments just because they are comments.
Remove:
// TODO without a concrete issue or next step// FIXME without a reason// old, // removed, // legacy when the code already shows itReport how many comment blocks were removed or rewritten and mention any important comments kept.
SOC 직업 분류 기준
Add user-facing entries to CHANGELOG.md's Unreleased section for recent changes
Remove AI-generated code slop from a diff, path, branch, or repository
Review a diff for AI-shaped code before a PR, commit, or final summary
Flatten nested conditionals and make the happy path readable
Audit a diff for the five dangerous AI patterns
Propose a conventional commit message for the current diff