agentleFS
AWSKnown publisherawslabs/do-agent-aws/Container-Root/agent/skills/github-comment-manager/SKILL.md

github-comment-manager

Skill3 starsChanged 2 days agoApache-2.0View on GitHub

Audit, delete, and consolidate scattered GitHub issue/PR comments into clean single-thread summaries. Use when comments have accumulated across issues/PRs and need cleanup before maintainer review.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before deleting, extract valuable content from comments:

    line 48
  2. Distinctive:

    NEVER delete maintainer comments: Only delete your own (or the specified author's).

    line 80
  3. Distinctive:

    Save before deleting: Always capture comment body to /tmp before deletion.

    line 81

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

GitHub Comment Manager Skill

Clean up scattered, redundant, or outdated GitHub comments by auditing, deleting stale ones, and consolidating into single clean summaries.

Usage

/github-comment-manager [repo] [issue-or-pr-number]

Or audit all comments by a user:

/github-comment-manager [repo] --author [username]

Workflow

Step 1: Audit All Comments

# List all comments on an issue by a specific author
gh api repos/OWNER/REPO/issues/NUMBER/comments | \
  jq -r '.[] | select(.user.login=="USERNAME") | "\(.id) \(.created_at[:10]) \(.body[:80])"'

# List all PR review comments by author
gh api repos/OWNER/REPO/pulls/NUMBER/comments | \
  jq -r '.[] | select(.user.login=="USERNAME") | "\(.id) \(.created_at[:10]) \(.body[:80])"'

Step 2: Classify Each Comment

ClassificationAction
Current & accurateKeep
Superseded by later commentDelete
Contains outdated claimsDelete
Duplicate contentDelete, keep best version
Partial - good evidence buriedExtract evidence, delete
Maintainer response referenceKeep (never delete maintainer comments)

Step 3: Extract Best Content

Before deleting, extract valuable content from comments:

# Save comment body for reference
gh api repos/OWNER/REPO/issues/comments/COMMENT_ID | jq -r '.body' > /tmp/comment_COMMENT_ID.md

Step 4: Delete Stale Comments

# Delete a specific comment
gh api -X DELETE repos/OWNER/REPO/issues/comments/COMMENT_ID

# For PR review comments (different endpoint)
gh api -X DELETE repos/OWNER/REPO/pulls/comments/COMMENT_ID

Step 5: Post Consolidated Comment

# Post a clean, consolidated comment
gh issue comment NUMBER --repo OWNER/REPO --body "$(cat <<'EOF'
## Updated Analysis

[Consolidated content from multiple previous comments]

**Environment:** [specs]
**Reproduction:** [steps]
**Evidence:** [file:line references]
EOF
)"

Rules

  1. NEVER delete maintainer comments. Only delete your own (or the specified author's).
  2. Save before deleting. Always capture comment body to /tmp before deletion.
  3. Log all deletions. Track comment IDs deleted and reason.
  4. Consolidate, don't lose. Any valuable evidence from deleted comments must appear in the consolidated version.
  5. One clean comment per issue. The goal is a single, comprehensive comment that replaces N scattered ones.

Audit Report Format

# Comment Audit: REPO#NUMBER

| Comment ID | Date | Action | Reason |
|-----------|------|--------|--------|
| 123456 | 2026-01-15 | DELETE | Superseded by later analysis |
| 123457 | 2026-01-16 | KEEP | Contains maintainer response |
| 123458 | 2026-01-18 | DELETE | Duplicate of 123459 |
| 123459 | 2026-01-18 | CONSOLIDATE | Best version, merge with 123460 |

**Before:** 8 comments by @username
**After:** 1 consolidated comment
**Deleted:** 7 comments
<!-- imported on 2026-10-31 by tools/import-skills.py from a native Claude Code instance's skill library; the source site's names, ids, hosts and paths are scrubbed to <placeholders>; its other files were not copied -->

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.