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.
In this repository37 other files it gives its agents.
- docs/manual/agents.mdAGENTS.md
- ablate-combined-changesSkill
- agent-supervisor-methodologySkill
- benchmark-comparisonSkill
- browser-vlm-acceptanceSkill
- claim-verificationSkill
- claude-code-best-practicesSkill
- code-attributionSkill
- comms-connectSkill
- condition-based-waitingSkill
- conference-intelligenceSkill
- deep-research-methodologySkill
- defense-in-depthSkill
- detect-deployment-thrashingSkill
- directory-cross-examinationSkill
- doc-freshness-auditorSkill
- eval-harnessSkill
- github-deep-researchSkill
- github-issue-responseSkill
- harness-setupSkill
- issue-closure-strategistSkill
- issue-quality-assessmentSkill
- k8s-configmap-runtime-patchSkill
- k8s-config-persistence-trapSkill
- maintainer-profilingSkill
- measure-before-theorizeSkill
- multi-phase-optimization-campaignSkill
- phase-trackerSkill
- pptx-slide-creationSkill
- pr-issue-scannerSkill
- public-root-reproducibilitySkill
- repo-organizerSkill
- root-cause-tracingSkill
- technique-versioning-workflowSkill
- wrong-layer-debuggingSkill
- wrong-theory-cascade-preventionSkill
- youtube-transcriberSkill
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
- Distinctive: line 48
Before deleting, extract valuable content from comments:
- Distinctive: line 80
NEVER delete maintainer comments: Only delete your own (or the specified author's).
- Distinctive: line 81
Save before deleting: Always capture comment body to /tmp before deletion.
≈ “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.
Files
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
| Classification | Action |
| Current & accurate | Keep |
| Superseded by later comment | Delete |
| Contains outdated claims | Delete |
| Duplicate content | Delete, keep best version |
| Partial - good evidence buried | Extract evidence, delete |
| Maintainer response reference | Keep (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.mdStep 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_IDStep 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
- NEVER delete maintainer comments. Only delete your own (or the specified author's).
- Save before deleting. Always capture comment body to /tmp before deletion.
- Log all deletions. Track comment IDs deleted and reason.
- Consolidate, don't lose. Any valuable evidence from deleted comments must appear in the consolidated version.
- 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 -->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
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.

