بنقرة واحدة
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 ويثبّتها لك.
استنادا إلى تصنيف 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
| 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.