Comment Cleanup
haacked/dotfiles
Delete and tighten code comments in source files after they are written.
Hold code comments and docstrings to a strict quality bar. An agent skill from ahmetb/dotfiles.
$ npx skills add ahmetb/dotfiles --skill sweep-comments -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ahmetb/dotfiles sweep-comments --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ahmetb/dotfiles.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/sweep-comments .claude/skills/sweep-comments && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "sweep-comments" agent skill from https://github.com/ahmetb/dotfiles/tree/master/.claude/skills/sweep-comments into .claude/skills/sweep-comments/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sweep-comments", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ahmetb/dotfiles/tree/master/.claude/skills/sweep-commentsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ahmetb/dotfiles --skill sweep-comments -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ahmetb/dotfiles sweep-comments --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ahmetb/dotfiles.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/sweep-comments .agents/skills/sweep-comments && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sweep-comments" agent skill from https://github.com/ahmetb/dotfiles/tree/master/.claude/skills/sweep-comments into .agents/skills/sweep-comments/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sweep-comments", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ahmetb/dotfiles --skill sweep-comments -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ahmetb/dotfiles sweep-comments --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ahmetb/dotfiles.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/sweep-comments .cursor/skills/sweep-comments && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "sweep-comments" agent skill from https://github.com/ahmetb/dotfiles/tree/master/.claude/skills/sweep-comments into .cursor/skills/sweep-comments/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sweep-comments", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ahmetb/dotfiles.git --path .claude/skills/sweep-comments--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ahmetb/dotfiles --skill sweep-comments -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ahmetb/dotfiles sweep-comments --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ahmetb/dotfiles.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/sweep-comments .gemini/skills/sweep-comments && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "sweep-comments" agent skill from https://github.com/ahmetb/dotfiles/tree/master/.claude/skills/sweep-comments into .gemini/skills/sweep-comments/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sweep-comments", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ahmetb/dotfiles sweep-commentsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ahmetb/dotfiles --skill sweep-comments -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ahmetb/dotfiles.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/sweep-comments .github/skills/sweep-comments && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "sweep-comments" agent skill from https://github.com/ahmetb/dotfiles/tree/master/.claude/skills/sweep-comments into .github/skills/sweep-comments/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sweep-comments", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ahmetb/dotfiles --skill sweep-comments -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ahmetb/dotfiles sweep-comments --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ahmetb/dotfiles.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/sweep-comments .opencode/skills/sweep-comments && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "sweep-comments" agent skill from https://github.com/ahmetb/dotfiles/tree/master/.claude/skills/sweep-comments into .opencode/skills/sweep-comments/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sweep-comments", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
sweep-commentsHold code comments and docstrings to a strict quality bar. An agent skill from ahmetb/dotfiles.
Sweep Comments is an agent skill from ahmetb/dotfiles. Hold code comments and docstrings to a strict quality bar. Use whenever writing or editing comments — adding a comment to new code, being asked to "document this", "add comments", or "make this reviewer-ready" — and as a dedicated staleness sweep before opening or updating a pull request. Symptoms that this skill applies: comments that restate the adjacent code, docstring boilerplate on small internal helpers, derivation walkthroughs, war-story narration, or comments describing behavior a design pivot has since…
Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Technical documentation, Text to speech and voice and Project scaffolding. The repository describes itself as: Ahmet's dotfiles and macOS customizations. The licence is Apache-2.0.
5 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit a435fa0. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Sweep Comments loads about 2k tokens when it runs. Until then it costs about 135 tokens; SKILL.md has 1,164 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ahmetb/dotfiles at commit a435fa0, republished under its Apache-2.0 licence (© ahmetb). 1,164 words, ~2,023 tokens.
.claude/skills/sweep-comments/SKILL.md (or your agent's skills folder).Every comment must state a constraint the code itself cannot show, in one short sentence. If deleting the comment loses nothing a maintainer needs, delete it. Thoroughness is accuracy, not volume: an accurate, lean file is stronger in review than one padded with restatements.
Write for the reader you actually have: a professional who is competent at reading code and willing to learn the context on their own. They can read a call signature, follow a loop, and look up a library. Comments exist to hand them the facts they cannot get that way — not to tutor them through the language, the stdlib, or the control flow. Assuming an incompetent reader is what produces restatement comments; assuming this reader is what keeps them out.
A comment earns its place only if it says something you cannot get by reading the statement below it. Hold every comment — new or existing — to this test.
Keep (these say what the code cannot):
Delete (these repeat what the code already shows):
os.environ.get
or a four-line function does in prose.Each of these was found in a real pre-PR sweep (identifiers genericized). The pattern, not the wording, is what to recognize:
# Defaults to "primary" but honors SERVICE_ID from the environment
above an os.environ.get("SERVICE_ID", "primary") — a literal
reading of the call. What survived instead: the one fact the code
could not show (which config layer wins when both are set).# Entries stack above their group's anchor row on a list literal
whose ordering already shows exactly that. The list is the
statement; the comment is an echo.Design pivots during a working session are the main source of lying comments: a comment written for iteration 3 still sitting on the code of iteration 12. Before opening or updating a PR:
Do the sweep yourself, in one context. Do not partition it across subagents. A comment's value is holistic: whether it earns its place depends on what the neighboring code, the other comments, the module docstring, and the session's design pivots already say — context that no per-file or per-package delegate has. Splitting the reading and keeping the "judgment" is the same violation through a keyhole: the judgment is only as good as the reading it is built on. If the diff is large, sweep it in one pass anyway; reading the whole diff is what the sweep is.
| Excuse | Reality |
|---|---|
| "The team lead wants thorough documentation" | Thorough means every comment is true and non-obvious, not that every line has one. |
| "The derivation helps reviewers check the math" | Put derivations in the PR description or a design doc. In code, one sentence stating the invariant suffices. |
| "It's half restatement, but the other half is real" | Keep the real clause, delete the restatement half. |
| "Args/Returns blocks look professional" | Boilerplate on internal helpers buries the one comment that matters. |
| "I'll leave the old comment as historical context" | Git history is the historical context. A stale comment is a lie with authority. |
| "No time to sweep before the PR" | A sweep of touched files takes minutes; a reviewer misled by a stale comment costs a review round. |
| "The diff is huge — I'll fan the reading out to subagents and keep the judgment" | Judgment built on delegated reading is delegated judgment. The sweep's value is one reader seeing the whole change. |
| "The reader might not know this API" | The reader is a competent professional who will look it up. Document your constraint, not their library. |
© ahmetb, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/sweep-comments of ahmetb/dotfiles.
Open the folder on GitHubat commit a435fa0
Sweep Comments next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Sweep Comments this skillahmetb/dotfiles | 139 | — | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Comment Cleanuphaacked/dotfiles | 134 | — | ~2.4k | Automated safety check: Pass | None | |
| Post Draft Reviewagent-substrate/substrate | 4.6k | — | ~2.8k | Automated safety check: Pass | Apache-2.0 | |
| Review Kedro PRkedro-org/kedro | 11k | — | ~2.8k | Automated safety check: Pass | Custom licence | |
| Opik Documentation Patternscomet-ml/opik | 22k | — | ~1.3k | Automated safety check: Pass | Apache-2.0 | |
| Eli5coldteadotai/pr-lens | 1.9k | — | ~2.3k | Automated safety check: Pass | MIT |
haacked/dotfiles
Delete and tighten code comments in source files after they are written.
agent-substrate/substrate
Posts pull request review findings as GitHub draft (pending) inline comments for a human to edit and submit, instead of publishing them straight to the PR author.
kedro-org/kedro
Review a Kedro PR for checklist compliance, architecture, correctness, and clarity.
comet-ml/opik
Rules for writing PR descriptions, changelog entries and feature documentation in the Opik repository, including the exact headings that CI requires.
coldteadotai/pr-lens
WHAT: Explains a codebase, a folder, a feature, a command or a pull request to someone who knows nothing about it, as a PR Lens canvas whose walkthrough builds the picture one part at a time.
thananon/9arm-skills
Delegate menial, well-scoped coding tasks to a cheap Qwen-backed subagent via the claude-9arm command instead of burning Claude tokens/quota.
ahmetb/dotfiles
USE THIS SKILL ONLY ON PUBLIC OPEN SOURCE REPOS!!!. An agent skill from ahmetb/dotfiles.
ahmetb/dotfiles
Upload and share files on here.now (https://here-now.chimera-logarithm.ts.net), Baseten's internal artifact-sharing service.
ahmetb/dotfiles
How to name branches, writing commit titles/messages and sending PRs with correct format
ahmetb/dotfiles
Translate text written in "Claudish" — the characteristic prose style of Claude and Claude Code — into plain, direct, idiomatic English.
ahmetb/dotfiles
Design system for single-file HTML engineering reports and deep dives — two-column sticky-TOC layout, green-accented semantic color coding, timeline step lists, code-anchored prose.
Categories
Hold code comments and docstrings to a strict quality bar. An agent skill from ahmetb/dotfiles. Sweep Comments is an agent skill from ahmetb/dotfiles. Hold code comments and docstrings to a strict quality bar.
Sweep Comments fits situations like: editing comments — adding a comment to new code; being asked to document this; make this reviewer-ready — and as a dedicated staleness sweep before opening; updating a pull request.
Run `npx skills add ahmetb/dotfiles --skill sweep-comments -a claude-code`. Or copy the skill folder (.claude/skills/sweep-comments in ahmetb/dotfiles) into .claude/skills/sweep-comments in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ahmetb/dotfiles --skill sweep-comments -a codex`. Or copy the skill folder (.claude/skills/sweep-comments in ahmetb/dotfiles) into .agents/skills/sweep-comments in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ahmetb/dotfiles --skill sweep-comments -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sweep-comments, .gemini/skills/sweep-comments, .github/skills/sweep-comments and .opencode/skills/sweep-comments in your project.
SKILL.md names no scripts, command-line tools or credentials: Sweep Comments is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Sweep Comments is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2k tokens (SKILL.md is roughly 8.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Sweep Comments: Comment Cleanup (haacked/dotfiles, 134 stars), Post Draft Review (agent-substrate/substrate, 4.6k stars), Review Kedro PR (kedro-org/kedro, 11k stars) and Opik Documentation Patterns (comet-ml/opik, 22k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ahmetb (a GitHub user) maintains it in ahmetb/dotfiles, which has 139 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on August 24, 2026.
Source: ahmetb/dotfiles on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.