Groom a vague issue
This guide upgrades a rough issue into a work item that an agent can implement without asking you anything, using the github-groom-issue skill. The skill investigates the issue against the real code, archives the original text as a comment, and overwrites the issue body with a structured one.
It differs from planning a feature in where it starts: that skill files a new issue from a plan, and this one improves an issue that already exists.
You need the github-workflows plugin
(install commands),
gh, and a local checkout of the repository.
The skill reads code to investigate, so the checkout has to be there.
When it is worth doing
Section titled “When it is worth doing”I groom an issue only when it is too vague for an agent to implement unattended. Whoever filed the issue, I read it first and groom if needed. Then I decide whether it is ready to be worked.
Grooming costs an investigation pass and an overwrite of the issue body. The skill keeps the original, so the overwrite can be undone, but you still have to read the result.
- Ask for it by name: “Groom issue 42.” Give a full issue URL if the issue is in another repository.
- Let it read the issue and every comment. A diagnosis or partial spec in a comment is folded into the new body, with credit given to its author.
- Expect it to stop and ask in a few cases: the issue is closed; the issue was already groomed (the body ends with the skill’s footer, or an archive comment exists); the investigation shows the issue is a duplicate, already fixed or rests on a false premise; the ask is ambiguous on fundamentals. A body and a comment that disagree also stop it.
- Let it investigate. It names the real files and functions the change touches, confirms what the code does today, and notes the project’s real validation commands. For a performance report it can usually confirm the mechanism from the code and leaves the magnitude qualitative.
- It classifies the issue as a bug, a feature or a chore, labels first and body content second. Performance reports count as bugs.
- It posts the archive comment before it changes anything. The comment holds the original title and body, or says there was no description. This is the undo path.
- It composes the body from the template for that type, with concrete paths and
commands. Each template ends with a footer saying the body is authoritative for
github-issue-to-pr. - It judges whether the item is one PR. If it isn’t, it shapes the body with explicit phases, so the split has clean seams.
- It overwrites the body with
gh issue edit, on this path too. It may sharpen a vague title, and adds a type label if the repository already has one. It doesn’t assign anyone or set a milestone unless you asked. If the item was too big, it then hands off togithub-issue-to-subissues, which shows you the breakdown in plan mode before it files anything. - Read the result. The report links the archive comment. If the groomed body is wrong, the original is there to restore.
After grooming
Section titled “After grooming”The skill’s normal path has no acceptance gate. It rewrites the body directly and
leaves the review to you, so your read of the result is the gate. When you are
satisfied, run
github-issue-to-pr on it. Or, for a
repository that runs a burndown, apply the
accepted label yourself: the label is your decision, and grooming doesn’t add it.
If you can’t edit the issue
Section titled “If you can’t edit the issue”gh issue edit fails with a 403 when you have only read or triage access. The archive
comment may already be posted by then. The skill tells you the original is preserved
and hands you the groomed body to paste.