/github-flow:issue [--dry-run] [issue-number] <what is wrong or wanted>from github-flow
Writes or rewrites GitHub issues with a structured format: problem statement, testable Done-when conditions, and author context. Validates output with a script before publishing.
Ships in github-flow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
An issue is the goal and how to tell it is reached. Its reader is a different agent, in a fresh session, with no access to this conversation. It explores the code itself and plans, so the goal and its situations carry the issue, and the writer does not explore the code for it. Context this session already holds from earlier work goes in the author's leads; a session with none leaves the issue at the level of the goal.
$ARGUMENTS
--dry-run: do everything but the publish step; print the title, the labels and the body instead.gh issue view <n> --json title,body,labels,url, keep the facts that still hold, drop the rest.Ask nothing else unless the request cannot be located in the code at all.
What can be tested. Read the repository's AGENTS.md or CLAUDE.md for what a cloud session can run there: its test commands, its fixtures, what it cannot reach. Each situation of Done when is a test that session can run.
Context. Do not explore the code to write the issue: the agent that takes it will. The situations and the Today column come from what this session already holds, the request and what earlier work here observed; without more, the issue stays vague where it must. Search once for a duplicate: gh issue list --search "<keywords>" --state all --limit 10, and tell the user what matches.
Body. Fill the shape below.
Check. Write the body to body.md in a directory from mktemp -d, outside the repository, and run bun ${CLAUDE_SKILL_DIR}/scripts/check-issue.ts <dir>/body.md from the repository. Each finding names its line: fix it and run the check again, until it exits 0. Exit 2 is a file it cannot read or a settings file it refuses: report it and stop.
visual-size: the visual moves to <dir>/<name>.html, one situation per table row, with no script (<details>, :checked, SVG and data URI images work). The check takes that file too: check-issue.ts <dir>/<name>.html. In the body, Done when names it: the situations of the issue artifact "<name>".Publish. No question before it: the skill is the guard, and a caller that wants a look first passes --dry-run. Labels only from gh label list.
gh issue create --title "<title>" --body-file <dir>/body.md --label "<a>,<b>"
gh issue edit <n> --body-file <dir>/body.md
--body-file keeps the markdown intact; inline --body breaks on backticks. With an artifact, upload it once the issue has its number, then link it in the body and edit the issue again, after the check:
gh api -X POST repos/{owner}/{repo}/issues/<n>/artifacts -f type=embedded_html -f name=<name> -F body=@<dir>/<name>.html --jq .html_url
On a rewrite, gh api repos/{owner}/{repo}/issues/<n>/artifacts lists the artifacts; one of the same name is replaced with gh api -X PATCH repos/{owner}/{repo}/issues/<n>/artifacts/<number> -F body=@<dir>/<name>.html. Report the title and the URL.
<title>
<problem: 1 to 2 lines>
**Done when** <the expected result, then one line on what is contract and what is free>
<the visual of the situations>
**Not this** <3 lines at most>
<!-- only when this session already holds context the reader lacks -->
<details><summary>Author's leads</summary>
- <a lead>
</details>
<sub>Written by <the model of this session></sub>
No heading, and no other section: no Evidence, Hints or Context section, no checkboxes; hints and context go in the author's leads.
Title. The state once done, not the action: "An import keeps every person of the file", not "Fix the import".
Problem. What is observed and what it costs, in one or two lines. No cause in the code: a cause the writer knows goes in the author's leads.
Done when. The expected result as a visual that lists its situations, one per row or panel: terminal sessions per situation, a mockup of the states, a timeline, a chart with the target, or a Today / Expected table for a plain bug. One line says what is contract and what is free. Each situation is a test a session can run, with what it observes; at least one shows what keeps working as today, marked no regression. A visual over 40 lines goes to an issue artifact (step 4).
Not this. What the reader must not touch or fix on the way, three lines at most. Omitted when there is nothing to say.
Author's leads. Most issues have none. When this session already holds context from earlier work, the folded block passes it on: the part of the architecture concerned, a symbol or a concept to start from rather than a file path, a trap. Never a fix or a numbered plan. The reader treats each lead as a hypothesis to check, not an instruction.
The body asks nothing: no question mark outside code and URLs. A fact the writer is unsure of says so in words.
A repository tunes the caps in .github/github-flow.json, under issue: problemLines (2), notThisLines (3), visualLines (40). The pr skill reads the same file under pr.
Read shows.fixtures/pass/artifact.html (opens in a new tab)fixtures/pass/bug.md (opens in a new tab)fixtures/pass/feature.md (opens in a new tab)fixtures/pass/guard.md (opens in a new tab)fixtures/pass/issue-588.md (opens in a new tab)fixtures/pass/issue-589.md (opens in a new tab)fixtures/pass/issue-590.md (opens in a new tab)fixtures/pass/ui-change.md (opens in a new tab)fixtures/refuse/artifact-script.html (opens in a new tab)fixtures/refuse/old-shape.md (opens in a new tab)fixtures/refuse/prescribes.md (opens in a new tab)scripts/check-issue.integration.test.ts (opens in a new tab)scripts/check-issue.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub bengous/claude-code-plugins --plugin github-flow5 skills in this plugin
/commit-push-prCommit the current work, push the branch, then open or update its pull request./prOpen or update the pull request of the current branch once the branch is reviewed, with a short body in a fixed shape (why, danger, where to start, one view, proof, decisions) that a bundled script checks before it is published, and images attached through gh. Use when the user asks to open, create, submit, update, or rewrite a PR, or to push and open one./stacked-prsRun a stack of pull requests on GitHub with `gh stack`: create, grow, submit, sync, land, repair, and cut a per-layer worktree with its handoff. Use when the user talks about stacked PRs, a stack or pile of PRs, `gh stack`, wants to split a large change into reviewable PRs that land together, or debugs a stack (empty PR "No commits between X and Y", "Needs rebase", local/GitHub divergence, a commit stuck under someone else's).Other plugins' skills for the same job