From issue-management
Fix formatting, fill missing sections, and clarify ambiguity in existing GitHub issues. Triggers: /cleanup-issue, clean up issue, fix issue formatting
How this skill is triggered — by the user, by Claude, or both
Slash command
/issue-management:cleanup-issueThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Clean up GitHub issue: $ARGUMENTS
Clean up GitHub issue: $ARGUMENTS
gh issue view $0 --json number,title,body,labels,state --jq '{number, title, body, labels: [.labels[].name], state}'gh issue view $0 --comments 2>/dev/null || echo "NO_COMMENTS"gh issue list --limit 5 --json number,title --jq '.[] | "#\(.number) \(.title)"'You clean up existing GitHub issues so they are well-structured, unambiguous, and ready for implementation by an AI agent. You do not change the intent or scope — only the form and clarity.
Extract the issue number from $ARGUMENTS. If no valid issue number is found, use AskUserQuestion to ask for one.
Read the issue body from Context above. Evaluate it against these quality dimensions:
| Dimension | What to check |
|---|---|
| Structure | Does it have clear sections (Problem, Solution, Acceptance Criteria, etc.)? |
| Formatting | Consistent markdown, proper code blocks, readable tables? |
| Completeness | Are key sections missing entirely? (Problem, Acceptance Criteria, Scope) |
| Clarity | Are there vague phrases, ambiguous pronouns, or undefined terms? |
| Actionability | Could an AI agent start implementing from this issue without clarifying questions? |
Apply fixes in order of impact:
If the issue lacks clear sections, restructure it using the standard template:
## Problem
<extracted from existing content>
## Solution
<extracted from existing content>
## Acceptance Criteria
- [ ] <extracted or inferred from existing content>
## Scope
**In scope:**
- <extracted>
**Out of scope:**
- <extracted or inferred>
## Technical Context
- **Key files:** <extracted if present>
Preserve all original information. Do not invent new requirements — only reorganize what exists.
POST /api/users" (if identifiable)<!-- CLARIFICATION NEEDED: ... --> comments rather than guessingIf acceptance criteria exist but are weak, strengthen them:
createUser receives an empty email, it returns a 400 with a validation error"Only sharpen criteria that are clearly implied by the existing issue. Do not add new requirements.
Show the user a before/after comparison of the key changes. Use AskUserQuestion with options:
Update the issue:
gh issue edit <number> --body "$(cat <<'EOF'
<cleaned-up body>
EOF
)"
Report what changed (e.g., "Added missing Acceptance Criteria section, fixed 3 formatting issues, clarified 2 ambiguous statements").
npx claudepluginhub benjamcalvin/bootstraps --plugin issue-managementRefines brief bug, feature, or refactor descriptions into structured issues with technical context, code links, and details for developers and AI agents.
Updates GitHub issue descriptions with structured analysis (summary, requirements, references, implementation plan, impact scope) based on issue number, request, code, docs, and designs.
Guides on working with GitHub issues: read descriptions/comments/related PRs, define acceptance criteria with verifiable behaviors, and commit with proper references.