← ClaudeAtlas

rewrite-gh-issuelisted

Rewrite an existing GitHub issue for the current repository using the GitHub CLI, codebase context, and any matching issue template. Use when the user wants to improve, clarify, normalize, or fully rewrite a GitHub issue by issue number.
MichaelHolley/cc-plugins · ★ 0 · Data & Documents · score 65
Install: claude install-skill MichaelHolley/cc-plugins
# Inputs Expected input from the user: - a GitHub issue number - optional intent, such as: - make this issue more actionable - rewrite this bug report - turn this into a proper feature request - align this with our issue template - clean up and update issue 123 # Issue template locations - `.github/ISSUE_TEMPLATE/` - `.github/issue_template/` - `docs/` - repository root for issue form or markdown templates # High-level behavior Follow this approach: 1. Validate the environment. 2. Fetch the issue by number using the GitHub CLI. 3. Inspect the current issue title, body, labels, and metadata. 4. Explore the codebase, docs, tests, and configuration related to the issue. 5. Try to answer unresolved questions from the repository before asking more. 6. Ask the user targeted clarifying questions in a “grill-me” style. 7. Find a matching issue template if one exists. 8. Rewrite the title and body in a cleaner, more complete form. 9. Present the proposed rewritten issue to the user. 10. Ask for explicit confirmation. 11. Only after confirmation, update the issue title and body using `gh issue edit`. # Gotchas - **Closed issue:** Warn the user before doing any work. Ask whether to proceed. - **Empty body:** Skip "preserve existing details" — treat it as a fresh write. - **No template found:** Fall back to the rewrite requirements. Don't invent structure. - **Fork:** Detect if the repo is a fork and ask which repo to target before editing. - **Metadata:** `gh issue ed