Skill v1.0.0
currentAutomated scan100/100version: "1.0.0" name: bertha-groom description: Groom a repository's open GitHub issues with Bertha's GitHub tools. Triage with list_issues, give each issue that needs work to its own worker, keep authors' words, fix drifted citations, close duplicates, and report. Use for a scheduled or requested backlog groom.
Backlog groom
Groom this repository's open GitHub issues.
Follow the repository's own grooming rules: the groom-backlog skill in .claude/skills/groom-backlog/SKILL.md if there is one, and the label vocabulary in README's Commit conventions section. Where the skill runs gh or its scripts, use the github tools instead (list_issues, get_issue, list_labels, update_issue, comment_issue, close_issue, github_get); there is no gh CLI or token here.
You can't read or change a single issue yourself here: get_issue, github_get, update_issue and comment_issue are for workers only, and refused to you. You triage from list_issues, give each issue that needs anything to a worker, and close duplicates.
Do only the work each issue needs. Most issues are already groomed; rewriting a good issue adds nothing and churns it. Grooming only changes issues: there is no branch to push and no pull request to open.
Steps
- Read the grooming skill and README's label vocabulary, then call list_issues and list_labels. list_issues gives each issue a suggested triage; use it:
- unchanged_since_groom: nothing has happened since the last groom. Skip it entirely, whoever last_comment_by names: the triage already counts any comment since then.
- well_formed: has the house shape. Check it from the list: if its labels are wrong, it needs a label fix (step 2); if last_comment_by is a person (not "bot") after the bot asked something, it needs the answer folded in (step 2); if it has citations, it needs a citation check (step 2).
- incomplete: has most of the house shape; missing_sections says what's missing (step 2).
- thin: needs fleshing out (step 2).
- Give each issue that needs work (thin, incomplete, an answer to fold in, or a citation check) to its own worker subagent with the task tool: one issue per worker, so a worker's reading stays out of your context. Issues that only need a label fix can go together to one worker, with each issue's number and the labels it should have. Pass: the issue number, which job it is, the rules below with the exact label vocabulary, and "report in three lines: what the issue is about in one sentence, what you changed, anything you couldn't do".
- Look across all the issues' titles and the workers' reports for duplicates (a worker only sees its own issue): close the newer as a duplicate of the older, with a comment saying why.
Rules for workers
- Work only on the issue (or issues, for label fixes) you were given: read each with get_issue, and make every change or comment about the issue it's on.
- Keep the author's own words. Whatever the job, the text the issue's author wrote stays in the body, word for word, at the top; add the house sections around it, never in place of it.
- Thin issue: flesh out the body into the house shape (Why / Proposed changes / Out of scope) with evidence read from the code: cite files and lines, and say what is there today. Ask what the code can't answer in one comment.
- Incomplete issue: add only the sections missing_sections names, written from the issue's own text and the code. Leave every existing line as it is.
- Answer to fold in: update the body with the decision (the skill's "fold decisions back in" step). Don't re-ask anything that's been answered.
- Citation check: read only the cited files and symbols, not the wider code. Fix every citation that has drifted: update it to where the code is now (a citation pointing at the wrong code is worse than none). A citation to a file that no longer exists means the issue may be done or overtaken: if the code shows the work is done, close the issue as completed with the evidence; otherwise remove or correct the citation and say so in your report. Change nothing else.
- Never rewrite a body that's already in good shape just to restate it. Change only what's wrong or missing.
- Never repeat a question already asked in an earlier comment. Comment only with a new question, or not at all.
- Labels: exactly one
type:and at least onearea:label from README, plussecuritywhere it applies. Replace GitHub's stockbugandenhancement.
Report
Finish with a short report: how many issues you skipped, checked and worked on; for each issue you changed, what changed and why; the duplicates you closed; anything you couldn't do.