← ClaudeAtlas

gh-close-planlisted

Close a GitHub plan issue with a summary. Use when the user tells you to "close the github plan issue".
gjoranv/claude-plan-skills · ★ 3 · AI & Automation · score 74
Install: claude install-skill gjoranv/claude-plan-skills
Never @mention other users in plan issues or comments. Close the GitHub issue $ARGUMENTS (issue URL or `owner/repo#number`). If no argument is given, use the issue referenced earlier in this conversation. If no issue can be determined, ask the user. **Workflow for editing issue bodies and comments:** 1. Create a unique temp directory: `mktemp -d /tmp/plan-close-XXXXX` 2. Fetch content from GitHub using `gh api` and capture the output. Use the Write tool to save it to files in the temp directory (e.g. `body.md`, `comment-COMMENTID.md`). Do NOT use shell redirects (`>`) to write files, as this triggers permission prompts. 3. Use the Read and Edit tools to modify the temp files (not shell commands like sed/awk). 4. Upload using `--input` with `jq` to properly JSON-encode the content: - Edit issue body: `jq -Rs '{body: .}' <tempdir>/body.md | gh api repos/OWNER/REPO/issues/NUMBER -X PATCH --input -` - Create comment: `jq -Rs '{body: .}' <tempdir>/comment.md | gh api repos/OWNER/REPO/issues/NUMBER/comments --input -` - Edit comment: `jq -Rs '{body: .}' <tempdir>/comment-COMMENTID.md | gh api repos/OWNER/REPO/issues/comments/COMMENT_ID -X PATCH --input -` Never embed content directly in shell arguments or use `-f body=@file` (it uploads the literal string, not the file contents). Always fetch the latest from GitHub before making changes. Do not rely on previously fetched copies that may be stale. 1. Read the issue and its comments to understand the full history of the work. 2.