From issue-management
Fix formatting, fill missing sections, and clarify ambiguity in existing GitHub issues. Triggers: /cleanup-issue, clean up issue, fix issue formatting
npx claudepluginhub benjamcalvin/bootstraps --plugin issue-managementThis skill uses the workspace's default tool permissions.
Clean up GitHub issue: $ARGUMENTS
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
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").