用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/joshukraine/dotfiles --skill resolve-issue命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
基于 SOC 职业分类
| name | resolve-issue |
| description | Full issue workflow — fetch details, research, plan solution, implement, and verify. |
| argument-hint | [issue-number] |
Take a GitHub issue through to a verified, committed implementation on a feature branch — stopping short of the PR.
gh issue view $ARGUMENTS # title, labels, body, and a `comments: N` count
gh issue view $ARGUMENTS --comments # the thread — this one omits the body, so it is not a swap for the first
Read the comments, not just the body. The body is the oldest artifact on an issue; comments carry scope added later, sequencing against other issues, and decisions that supersede an acceptance criterion still written in the body. An issue filed months ago and worked today is the normal case, not the exception. Run the second call unconditionally — the comments: N count sits in a metadata header that is easy to skim past, and a zero-comment issue costs one wasted call.
Right-size the ceremony to the issue:
When unsure which applies, treat it as complex and ask.
Check git branch --show-current first:
<prefix>/gh-$ARGUMENTS-…) — reuse it, do not create a second branch. This includes re-entering this step inside an autopilot fan-out worktree.git switch -c <prefix>/gh-$ARGUMENTS-<short-description>The prefix comes from the issue's type label. If the project defines its own branch convention, that wins.
| Type label | Prefix |
|---|---|
feat | feat/ |
fix | fix/ |
chore | chore/ |
docs | docs/ |
test | test/ |
No type label? Bug fixes are fix/, new functionality feat/, everything else chore/.
Commit each working component rather than everything at the end — typically 3–8 commits for an issue, each one working code.
Never reference the issue number in a commit message. Issues close when the PR merges, so the closing keyword belongs in the PR description, not the commits.
Run the project's full test suite and confirm no regressions. Do not proceed until it passes.
Then check off the acceptance criteria the work satisfied. Round-trip through a file rather than a shell variable — issue bodies routinely contain backticks and $(...), and a file keeps them out of shell parsing entirely:
gh issue view $ARGUMENTS --json body --jq '.body' > <scratchpad>/issue-body.md
# edit that file: flip `- [ ]` to `- [x]` for the criteria now satisfied
gh issue edit $ARGUMENTS --body-file <scratchpad>/issue-body.md
Check off only what the work actually satisfied. If a criterion was superseded by a comment, say so in the summary rather than silently ticking or skipping it.
Summarize what changed: files touched, commits made, test status, and which acceptance criteria are now met. Then stop and ask.
Recommend /simplify first for anything non-trivial, then /create-pr — it infers the issue number from the branch name.