agentleFS
TeFuirneverTeFuirnever/azhou-ai-hub/.agents/skills/delete-comment/SKILL.md

delete-comment

Skill3 starsChanged 4 days agoMITView on GitHub

Audit source comments, remove redundant or stale notes, record design decisions, and ratchet down legacy comments. Use when explicitly asked for /delete-comment or $delete-comment in this checkout.

25 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 24 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the requested files or section.

    line 11
  2. Distinctive:

    Read the surrounding code, consumers, tests and existing decisions.

    line 12

“Common” is measured: kept by at least 6 in 10 of the 24 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Delete comments

  1. Use the requested files or section. Default to Hub-maintained source throughout the checkout. Read the comment ratchet and run the lint command with --inventory to enumerate original file and line spans. Confirm source ownership and provenance before editing.
  2. Read the surrounding code, consumers, tests and existing decisions. Review each prose comment against the following actions:

    CategoryAction
    TautologyDelete a restatement of the code.
    ExcuseDelete the justification for a concrete workaround and file or reuse an issue for the underlying fix. Include the current behavior, location and acceptance criteria. If issue filing lacks authorization or fails, report the pending issue.
    StaleDelete a claim that no longer applies.
    Decision RecordCapture the current constraint, decision and rationale in the governing ADR. Verify it against the current implementation before deleting the comment.
  3. Preserve executable and tooling directives, legal notices and strings such as Python docstrings. Record the reason for each retained directive separately. Avoid instruction-bearing changes in generated or vendored files without explicit scope and the relevant provenance contract.
  4. Remove only comment tokens and the whitespace they leave behind. Compare the meaningful syntax before and after when the language permits it. Prune exact baseline entries when removing a grandfathered comment. Do not increase the baseline to accept a new comment. For a new source type, extend the lexer mapping and test real comments alongside comment-like strings. Keep the initial baseline and any scope expansion reviewable.
  5. Run python3 scripts/verify.py and applicable component checks. Report the original locations by category, issue and ADR links, actual standalone lines removed, inline comments removed, remaining directives and the estimate for any deferred scope. Count standalone lines separately from inline comments, which leave the code line in place.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.