refine-issue
Turns a thin GitHub issue into an implementable one by restating the goal, listing open questions, writing acceptance criteria and splitting it when too large. Use when an issue is picked up but does
Files1
View on GitHubSKILL.mdskills/work/refine-issue/SKILL.md
GitHubrefine-issue
Make an existing issue ready to implement. Do not implement it.
When to use
- An issue is picked up and does not say enough to start.
- Asked to refine, groom, scope or break down an issue.
- A brand new issue: use
issue. An implementation plan: useplan. - The issue carries the story label (config
labels.story, defaultstory): useuser-storyinstead.
Steps
- Read the issue and every comment:
gh issue view <number> --comments. Later comments override the body. - Read the referenced code. Confirm the behavior described still exists.
- Restate the goal in one line as an outcome.
- List what is unclear.
- Interactive session: ask the user the open questions directly.
- Unattended session (
CI=true): record the open questions as a comment withgh issue commentand stop. Do not guess an answer. - Write acceptance criteria as checkboxes, verifiable without reading the diff.
- Task list ordered, each task ending reviewable alone. More than about seven tasks: split with
the
issueskill, link withgh issue edit --add-blocked-by. - Name affected files with paths. Flag shared interfaces, schemas or config contracts.
- Update the body with
gh issue edit <number> --body-file <file>, keeping the original problem statement. - Comment the change summary with
gh issue comment <number> --body-file <file>. - Remove
needs triageonly once the user confirms the issue is ready. - Never set
ai: readywithout the user saying so explicitly. A request that names the work is that instruction, seeissue. - Stop. No branch, no code.
Template
Appended to the body:
## Refined goal
<One line outcome.>
## Acceptance criteria
- [ ] <Verifiable statement>
## Tasks
1. [ ] <Task ending reviewable>
## Open questions
- <Question> (<who answers>)
Guardrails
- Never implement, never create a branch.
- Open questions go to the user when interactive, to a comment when unattended. Never guessed.
needs triageandai: readychange only with the user's explicit confirmation or a request that names the work, seeissue.- Setting
ai: readyuses the snippet in~/.claude/skills/README.md: exactly oneai:state label remains afterwards.
Config
Reads .agent-skills.json through the snippet in ~/.claude/skills/README.md.
labels.needsTriage: defaultneeds triage.labels.ready: defaultai: ready.labels.story: defaultstory. An issue carrying this label is handed touser-story.
References
gh issue edit,gh issue comment: https://cli.github.com/manual/