一键导入
gh-update-plan
Update a GitHub plan issue with progress. Use when planning a task, or when the user tells you to "update the github plan issue".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Update a GitHub plan issue with progress. Use when planning a task, or when the user tells you to "update the github plan issue".
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | gh-update-plan |
| description | Update a GitHub plan issue with progress. Use when planning a task, or when the user tells you to "update the github plan issue". |
| argument-hint | [owner/repo#number] [--local] |
| allowed-tools | Bash, Read, Write, Edit |
Exit plan mode before executing this skill. You must actually run gh commands to update the issue; do not just describe what you would do. Use gh to read, edit, and comment on issues. This includes using gh api to update issue bodies and edit or create comments. Do not ask for permission to update comments — it is expected.
Workflow for editing issue bodies and comments:
/tmp/plan-update-OWNER-REPO-NUMBER. This allows reuse across invocations.--local is passed and the temp directory already has files from a previous invocation, skip fetching and reuse the cached files. Otherwise, fetch content from GitHub using gh api and save to the temp directory using the Write tool. Do NOT use shell redirects (>).--input with jq to properly JSON-encode the content:jq -Rs '{body: .}' <tempdir>/body.md | gh api repos/OWNER/REPO/issues/NUMBER -X PATCH --input -jq -Rs '{body: .}' <tempdir>/comment.md | gh api repos/OWNER/REPO/issues/NUMBER/comments --input -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).
By default, always fetch the latest from GitHub before making changes. Use --local only when you know the issue hasn't been updated since the last fetch.
Never @mention other users in plan issues or comments.
Update 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.
- [ ] / - [x])sequenceDiagram for temporal flow, flowchart with subgraph + classDef for static structure- [x]) based on the work done in this conversation. Steps may be in a separate Steps comment (new format) or in the issue body (old format). Check both locations and update wherever the steps are found.gh-close-plan will finalize the full commit list when the plan is closed.| Session | Directory | Model | ID |. Add a row for this session. Get the session name from conversation context (e.g. a system reminder indicating the session was named). If not found, use "unnamed". Get the session ID from $CLAUDE_CODE_SESSION_ID. If this session ID already has a row, update it (the name or other fields may have changed). Do not duplicate rows.Create a GitHub PR from the current branch. Use when the user asks to "create a PR", "open a pull request", or "submit a PR".
Create a plan issue on GitHub. Use when planning a task, or when the user tells you to "create a github plan issue" with the repo name as argument.
Prepare a handover for continuing work in a new session. Use when the user asks to "hand over", "prepare handover", "wrap up for a new session", or "context dump".
Close a GitHub plan issue with a summary. Use when the user tells you to "close the github plan issue".
Implement a GitHub plan issue step by step with checkpoints. Use when the user asks to "implement the plan", "start working on the plan", or "execute the plan".
Read the GitHub plan issue given as argument. Use when the user tells you to "read this github plan issue" with the issue as argument.