/upstream-issue:upstream-issuefrom upstream-issue
Use when the user wants to report a bug upstream or file an issue against a dependency, tool, library or plugin they do not own, or says "report this upstream", "this is a bug in X", "open an issue on their repo" or "make a repro". Skip for feature requests and questions, for tracker entries in the user's own repos, and for superpowers itself, which superpowers:diagnosing-superpowers covers.
Ships in upstream-issue. 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.
A public issue stays under the user's name for good. Many "upstream bugs" turn out to be the user's own setup, a bug already fixed in a newer release, or an existing report. This skill proves the bug is upstream, builds a minimal repro that has been run and fails, has two fresh subagents check both independently, and only then drafts the issue for the user to approve.
Nothing public is written (issue, comment, repo or gist) until all of these hold:VERDICT: upheld and the clean runner answered RESULT: fails-as-claimed.anti-slop, and privacy-scan.mjs ran over the draft and every repro file, with each hit fixed or shown to the user.If the evidence is inconclusive, tell the user so and stop. A "might be a bug" report is never drafted.
Do NOT use when:
superpowers:diagnosing-superpowers.Each phase ends with an exit condition. When a phase fails, give the user its stop message with the evidence and end the run. Every stop message carries the URLs behind its evidence: the docs page, the release or commit, the existing issue. Naming a README section or an option without its link is not enough. A failed phase never falls through to drafting.
Paths below are relative to this skill's directory. Work in the session scratchpad, never in the user's project.
Record the exact error or wrong output, the versions of the upstream project and its runtime, and the OS. Read upstream's docs for the expected behaviour.
Exit: a one-paragraph statement of expected versus actual. The expected half carries a docs link, or says "no docs found" and names where you looked. Never call behaviour documented or undocumented without having read the docs.
Stop: "I cannot pin down what should happen", with what is missing.
Show the cause lies in upstream code. Trace into the upstream source, reproduce outside the user's project, or remove the user's code until only upstream calls remain. Use superpowers:systematic-debugging for the investigation.
Exit: the upstream file and function the behaviour comes from, linked, or a reproduction with no user code in it.
Stop: "This looks like it comes from your code or config, not from upstream", with the evidence and the upstream docs URL from phase 1 that documents the behaviour. When phase 1 found no docs, say so and link the places you looked.
"Latest" is the latest release. When upstream has no releases, it is the default branch. Do these checks yourself; the version the user has installed proves nothing about latest.
Exit: it still fails on the latest release. Name the release or commit tested.
Stop:
Search open and closed issues, pull requests and discussions by error text, symbol names and the symptom in plain words. An open pull request that fixes the bug counts as an existing report. On GitHub, use gh search issues --repo <owner/repo> and gh search prs --repo <owner/repo>, and search discussions through the GraphQL API:
gh api graphql -f query='query($q: String!) { search(type: DISCUSSION, query: $q, first: 20) { nodes { ... on Discussion { title url closed } } } }' -f q='repo:<owner/repo> <terms>'
When discussions are disabled or cannot be searched, list that as a gap. For any other tracker, search what you can read.
Exit: a list of every query, where it ran and what it returned, plus what could not be searched, such as an unreachable mailing-list archive. Then one of:
Stop: a match where a comment would add nothing: give the user the link and stop. Never draft a bare "+1".
Pick the shape and pin versions as references/repro-shapes.md says, by reading the upstream project. Build it in a new directory in the session scratchpad, minimise it, and run it.
Exit: the repro fails with the phase 1 symptom on the latest version from phase 3. Keep the exact output and the run commands as written for a stranger.
Stop: "I could not build a repro that fails", with what you tried.
See Gates.
Exit: VERDICT: upheld and RESULT: fails-as-claimed.
Stop: see the outcome table under Gates.
See Drafting.
Exit: a draft that passed anti-slop, and a privacy scan with no unresolved hit.
Stop: "I cannot finish the draft", naming what is missing: a field the upstream template requires that the evidence does not cover, or a privacy hit that can be neither replaced nor kept with a reason the user can judge.
See Approve and post.
Exit: the user said yes and the URLs are reported, or the draft and repro were handed over for a non-GitHub tracker.
Stop: without an explicit yes nothing is posted.
Phase 6 dispatches two fresh subagents in parallel, both on sonnet:
Fill only the placeholders each brief lists and send its fenced text. The skeptic's {REPORT_TARGET} says whether this is a new issue or a comment on the phase 4 match and what the comment adds, so its duplicate check does not refute a comment for finding the issue it comments on. The skeptic gets no reasoning from you: not your suspected cause, not your reading of the docs, not your view of the search results beyond the facts the placeholders ask for. The agent that wants the bug to be real is not the one that decides it is real.
Read the first line of each reply. That line is the verdict. Check the rows top to bottom and take the first that matches.
| Skeptic | Clean runner | Next step |
|---|---|---|
| any | cannot-run-isolated | Stop, whatever the skeptic said. Tell the user what the runner could not stand up. Do not run it yourself instead. |
| no valid first line | any | Dispatch that brief again, once, with the same input. A second malformed reply stops the run. |
| any | no valid first line | Same as the row above, for the clean runner. |
upheld | fails-as-claimed | Go on to phase 7. |
refuted | any | Go back to the phase the strongest reason points at: misuse to 2, documented behaviour to 1, environment to 2, already fixed to 3, duplicate to 4. When the clean runner failed too, this target wins; carry the runner's output into that phase. |
upheld | passes or fails-differently | Go back to phase 5, or to 2 when the clean output points away from upstream. |
Rules:
Template. Use upstream's issue template under .github/ISSUE_TEMPLATE, or the tracker's own equivalent, and fill every field. When there is none, follow references/issue-body.md, for a new issue or for a comment.
Repro home. Decide inline or separate repo by the size threshold in references/repro-shapes.md. A separate repo is only planned at this point; it is created in phase 8.
Prose. Run the anti-slop skill over the draft.
Privacy. Run the scanner over the draft and every repro file, allowing upstream's own domains:
node <this skill's directory>/scripts/privacy-scan.mjs --allow <upstream-domain> [--allow <docs-domain>]... <draft> <repro-dir>
Exit 1 lists the hits, including the local username wherever it appears, such as in a scratch path inside package.json. A public reference the report needs, such as an RFC, the runtime's docs or a third-party tracker, is not private: re-run with its domain in --allow instead of editing it. Replace only private values, with a documentation value such as example.com, 192.0.2.1 or <entry_id>. When a hit seems necessary for the report, keep it only by showing it to the user explicitly at the approval step. Re-run until it exits 0 or only shown hits remain.
The privacy gate covers everything that goes public: the draft, the repro files, their commits and the repro repo. Your message to the user may name a value the user supplied when that explains the cause, but never copy it into the draft or the repro.
Show the user, in one message:
Then stop and wait. Only on an explicit yes, on GitHub:
git config user.email, which may be a private address the privacy scan never saw. Get the id and login from gh api user --jq '.id, .login' and commit with git -c user.name=<login> -c user.email=<id>+<login>@users.noreply.github.com commit. Then create the repo with gh repo create <name> --public, push, and put its URL into the draft.gh issue call inside the user's own checkout would target that repo. For a new issue, run gh issue create --repo <owner/repo> --title <title> --body-file <file>. For a comment, run gh issue comment <number> --repo <owner/repo> --body-file <file>.Any change the user asks for goes back through anti-slop, the privacy scan and this approval step.
For a tracker other than GitHub, such as GitLab, Codeberg, Jira or a mailing list, post nothing. Hand the user the final draft and the repro to post themselves.
| File | Contents |
|---|---|
| skeptic-prompt.md | Phase 6 brief for the skeptic: placeholders, the five angles, reply format |
| clean-runner-prompt.md | Phase 6 brief for the clean runner: placeholders, isolation rules, reply format |
| references/repro-shapes.md | Phase 5: repro shapes in order, version pinning, minimisation, inline threshold, ecosystem hints |
| references/issue-body.md | Phase 7: issue and comment body when upstream has no template |
scripts/privacy-scan.mjs | Phase 7: scans the draft and repro for private details |
clean-runner-prompt.md (opens in a new tab)references/issue-body.md (opens in a new tab)references/repro-shapes.md (opens in a new tab)scripts/fixtures/clean.md (opens in a new tab)scripts/fixtures/leaky.md (opens in a new tab)scripts/fixtures/repro/leaky.txt (opens in a new tab)scripts/privacy-scan.mjs (opens in a new tab)scripts/privacy-scan.test.mjs (opens in a new tab)skeptic-prompt.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub marcelroozekrans/superpowers-extensions --plugin upstream-issue