agentleFS
AWSKnown publisherawslabs/do-agent-aws/Container-Root/agent/skills/issue-closure-strategist/SKILL.md

issue-closure-strategist

Skill3 starsChanged 3 days agoApache-2.0View on GitHub

Analyze open GitHub issues/PRs and execute strategic closures with appropriate justification comments. Use when cleaning up stale issues, withdrawing superseded PRs, or closing issues that have been resolved upstream.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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:

    Don't close items with active discussion: If there's recent maintainer engagement, the item is alive.

    line 131
  2. Distinctive:

    Batch strategically: Don't close 10 items in 5 minutes - space them out to avoid looking like spam.

    line 132

≈ “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

Issue Closure Strategist Skill

Strategically close GitHub issues and PRs with appropriate justification, maintaining professional reputation and relationships with maintainers.

Usage

/issue-closure-strategist [repo]

Or for a specific item:

/issue-closure-strategist [repo] [issue-or-pr-number]

Workflow

Step 1: Audit Open Items

# List all open issues by author
gh issue list --repo OWNER/REPO --author @me --state open \
  --json number,title,createdAt,comments,labels

# List all open PRs by author
gh pr list --repo OWNER/REPO --author @me --state open \
  --json number,title,createdAt,reviewDecision,mergeable,comments

Step 2: Check Upstream Activity

For each open item, check if the issue was resolved:

# Check recent commits that might fix the issue
gh api repos/OWNER/REPO/commits?since=ISSUE_CREATED_DATE | \
  jq -r '.[].commit.message' | grep -i "KEYWORD"

# Check if similar PR was merged by someone else
gh pr list --repo OWNER/REPO --state merged --limit 50 \
  --json number,title,mergedAt | jq -r '.[] | "\(.number): \(.title)"' | grep -i "KEYWORD"

# Check maintainer comments on the issue
gh issue view NUMBER --repo OWNER/REPO --comments

Step 3: Classify Disposition

ClassificationCriteriaClosure Comment Tone
WithdrawYour analysis was wrong or incompleteAcknowledge error, thank maintainers
SupersededAnother PR/issue covers the same groundReference the superseding item
Fixed upstreamMaintainers resolved it independentlyThank them, reference the fix commit
StaleNo activity for 30+ days, no longer relevantExplain changed circumstances
Per feedbackMaintainer explicitly asked you to closeAcknowledge their guidance
Keep openStill valid, still relevant, actively discussedDo NOT close

Step 4: Draft Closure Comments

Withdraw (wrong/incomplete)

Closing this issue. After further analysis, [explanation of what changed].
Thank you @maintainer for the feedback on [specific point]. This helped
clarify [what you learned].

Superseded

Closing in favor of #NUMBER which addresses this more comprehensively.
The approach in #NUMBER [brief explanation of why it's better].

Fixed upstream

This has been resolved in [commit/PR reference]. Verified that the fix
addresses the original issue. Thank you for the quick resolution.

Per maintainer feedback

Closing per @maintainer's feedback. Understood that [key takeaway from
their feedback]. Will [what you'll do differently next time].

Step 5: Execute Closures

# Close issue with comment
gh issue close NUMBER --repo OWNER/REPO \
  --comment "CLOSURE_MESSAGE"

# Close PR with comment
gh pr close NUMBER --repo OWNER/REPO \
  --comment "CLOSURE_MESSAGE"

Step 6: Generate Report

# Closure Report: REPO

**Date:** YYYY-MM-DD

## Actions Taken

| # | Type | Title | Disposition | Reason |
|---|------|-------|-------------|--------|
| <n> | Issue | <title> | Per feedback | Maintainer resolved in PR #<m> |
| <n> | PR | <title> | Superseded | Approach adopted in PR #<m> |

## Metrics
- **Before:** N open issues, M open PRs
- **After:** N open issues, M open PRs
- **Closed:** X issues, Y PRs

## Reputation Impact
- Professional closures maintain contributor standing
- Acknowledged maintainer contributions
- No bridges burned

Key Principles

  1. Never close without reading maintainer comments. Their feedback determines the tone.
  2. Acknowledge when you're wrong. "After further review..." is stronger than defending a bad position.
  3. Reference specific items. Link to the PR/commit that supersedes your work.
  4. Keep it brief. Closure comments should be 2-4 sentences, not essays.
  5. Don't close items with active discussion. If there's recent maintainer engagement, the item is alive.
  6. Batch strategically. Don't close 10 items in 5 minutes - space them out to avoid looking like spam.
<!-- 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.