/praxis:upstream-bug-reportfrom praxis
Take a defect in an installed third-party plugin, server, or library from local diagnosis to an issue on its public repository — prove the fix in a fresh process, reproduce on pristine upstream, dedup, match the repo's conventions, and post only after approval. Also vets a contributor's fix PR against the original reproduction.
Ships in praxis. 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.
None: SKILL.md is the whole skill.
A third-party tool fails, the cause turns out to be in its code, and the next step is an issue on someone else's public repository. That write crosses a boundary: it is public, it cannot be unsent, and a report whose reproduction only works on your patched machine wastes the maintainer's time. Most bad upstream reports fail on one of three things — they blame upstream for a local problem, they quote output from a tree that is not upstream, or they duplicate an existing report.
This skill orders the work so each of those is closed before the body is drafted, and the post happens only after the user has seen the exact title and body.
Core principle: every command in the issue body is a transcription of a run on pristine upstream that produced the quoted output.
<checkout> placeholders instead of home paths, no account names.--body-file. Never inline a multi-line body in the command..venv/bin/python), loading the
credential from your env file inside the same command without printing it.Done when: the defect is attributed to upstream code with a fresh-process positive and negative run, and the vendor contract is cited by URL — or it is attributed to local setup and the skill stops.
Do not reproduce on the locally patched tree.
git -C <plugin> show <sha>:<path> > <scratch>/module.py (plus its
__init__.py) — and run the exact reproduce command you will put in the
body from there.origin may
be a fork and the default branch may not be main, so resolve both from
the canonical repository first —
gh repo view <r> --json url,defaultBranchRef --jq '.url, .defaultBranchRef.name'
— then fetch by URL:
git -C <repo> fetch <upstream-url> <default-branch> && git -C <repo> worktree add --detach <scratch>/<name>-upstream FETCH_HEAD.
Point the import path at it, run the repro, then git worktree remove it.
Reproducing on the upstream default branch rather than the installed commit
also answers "is it already fixed"; cite that SHA in the body.<checkout> placeholders — so the repro carries no account names or
local state.Done when: the reproduce command, run on pristine upstream at a named SHA, printed the same error you will quote.
gh issue list --repo <r> --state all --search "<phrase>"
gh search issues --repo <r> "<phrase>"
gh search prs --repo <r> "<phrase>"
For a repo of a few hundred issues, or one whose reports are multilingual (CJK titles are common on AI-tool repos), pull the whole corpus once and filter locally instead — it covers every language and both states in one pass:
gh issue list --repo <r> --state all --limit 1000 \
--json number,title,state,createdAt,url,body > "$TMPDIR/<r>-issues.json"
# then regex title+body in python, including CJK/Korean synonyms
# (e.g. shortcut|hotkey|快捷键|단축키, sidebar|collapse|折叠|收起|접기)
Check the count against --limit. Give gh search issues a positive
control: if it returns [] for a phrase a known issue contains, discard its
empty results and rely on the local filter.
Run several phrasings: the symptom, the function name, and a mechanism word
(for example tombstone, resurrect). Report the result with its scan scope
(the phrasings used), plus the closest related-but-different reports and why
they differ — those go into the body too. praxis's
block-gh-issue-create-without-dup-search hook blocks gh issue create
without a prior search whose keywords overlap the title, so this step is also
what lets Step 7 run.
Done when: every phrasing and its hit count is listed, and the nearest reports are named with one line on how they differ (or "none found").
Survey before drafting, not after a hook rejects it:
gh api "repos/<r>/commits?per_page=50" --jq '.[].commit.message|split("\n")[0]'
gh issue list --repo <r> --state all --limit 50 --json title --jq '.[].title'
Also read .github/ISSUE_TEMPLATE/ and CONTRIBUTING. If issues have no
title precedent, mirror the commit convention (for example Conventional
Commits fix(<scope>): <lowercase>) and state that as the basis.
praxis's commit-title-format-check also checks gh issue create titles and
rejects a template's [Bug]: / [Feature]: title prefix. Propose the
Conventional title in the first approval ask and say the template prefix
was dropped for that reason; otherwise the post bounces and costs a second
approval round. Do not offer "advisory mode for this one call" as an option:
an inline PRAXIS_COMMIT_TITLE_FORMAT_STRICT=0 gh issue create … prefix
does not reach the hook, which reads the agent process's own environment. The
real choices are the Conventional title, or the user posting the body file
themselves with the repo's own prefix — offer both up front.
Done when: the proposed title cites the convention it follows and the evidence for it (commit subjects, issue titles, or template).
Write it to a scratch file outside the repository. Include:
P0–P3, descriptions from gh label list --json name,description) but
the template has no severity field and gh api repos/<r> --jq .permissions
shows no triage, open the body with
**Suggested severity: P<n>** — <the label's own criterion, e.g. degraded, workaround exists (<workaround>)>.
A worse case inferred only from code goes on the same line, marked
(inferred from the code path, not reproduced).Feature request (Steps 1–2 skipped): drop the severity line, the reproduce command, and the vendor-contract URL. Instead state the use case, the current behavior as observed by a probe on the latest upstream release or default branch (name it), and the requested behavior; the observed-claims and related-reports items still apply.
Done when: the body file exists, opens with the severity line, and every quoted output traces to a Step 2 run — or, for a feature request, every claim about current behavior traces to a named probe.
Show the full title and body, then one AskUserQuestion with these options:
"Post issue", "Edit draft", "Keep body file only". A PR is a separate public
write: it is out of this skill's scope and needs its own draft and approval.
The last is the non-posting tier; if you drop it, praxis's
menu-mutation-tier-advisory expects a column-0
Safe-tier-unavailable: <why> line in the question body instead (posting has
no dry run).
If the approval prompt times out, do not retry on your own. Report the issue as not posted, keep the body file, and re-ask only when the user explicitly requests it — re-running Step 3 first.
Done when: the user picked an option for this exact title and body.
gh issue create --repo <r> --title "<title>" --body-file <body.md>
gh issue view <n> --repo <r> --json title,state,body
Confirm the title, the OPEN state, and the body length against the local
file. A body edit after posting is a new public write: show the complete
revised body and get an explicit approval for it before each
gh issue edit --body-file, then re-read the first lines of the posted
body. If a hook blocks the title, do not bypass it: return to Step 4,
propose the new title, and re-ask.
Report the URL, that the local fix is still uncommitted and local-only, and whether a running server process must restart to pick up the local fix.
Done when: the posted issue's title, state, and body length match the approved draft, and the report names the local-fix status.
When a PR appears for the issue and the user asks how well it covers it:
gh api repos/<r>/issues/<n>/timeline --jq '.[]|select(.event=="cross-referenced")|.source.issue.html_url',
then gh pr view <pr> --json state,isDraft,labels,files,reviewDecision,body
and gh pr checks <pr>.gh pr view <pr> --repo <r> --json baseRefName) — it may be a
maintenance branch, not main — and fetch both sides from the upstream
URL resolved in Step 2:
git fetch <upstream-url> pull/<pr>/head:pr-<pr> <base>:pr-<pr>-base,
then git worktree add --detach <scratch>/pr-<pr> pr-<pr> and
git worktree add --detach <scratch>/pr-<pr>-base pr-<pr>-base. Run the
issue's repro on the base worktree and on the PR head, plus the PR's own
tests and the neighbouring suites it names.gh search prs --author <u> --merged) is a side note; say when a count
hit the search limit.issue (blocking|non-blocking): …)
with Trigger / Fix / Probe parts, where Probe transcribes the run on the PR
head SHA. Open with a thank-you and an explicit disclosure that it is an
AI-prepared review. Post it as a conversation comment when the defect sits
in a file the PR does not touch (no diff line to anchor on). Confirm the
head SHA is unchanged right before posting, then re-read the posted body.Remove the scratch worktrees and the pr-<pr> / pr-<pr>-base branches
afterwards.
Done when: the scenario table covers every repro scenario on both sides, and the scratch worktrees and branches are gone.
| Error | Recovery |
|---|---|
| Fix works in a fresh process but the tool still fails in-session | The serving process is stale; say a restart is required — do not re-diagnose |
| Repro does not fail on pristine upstream | Already fixed or local-only cause; cite the upstream SHA and stop |
gh issue create blocked by the dup-search hook | Run Step 3 with keywords from the title, then retry |
| Title rejected by the title-format hook | Back to Step 4; re-ask with the new title, never bypass |
| Approval prompt timed out | Not posted; keep the body file; re-ask only on explicit request |
| PR head SHA moved before a review comment posts | Re-run Step 8.2 on the new head and redraft |
triage permission the label is the
maintainer's call; the severity line only states the criterion matched.What SKILL.md sets; muted values are Claude Code's defaults
Triggers on "upstream bug report", "file upstream issue", "report upstream", "vet fix PR", "업스트림 이슈", and on a feature request to a third-party public repo (Steps 3–7 apply; skip Steps 1–2). Do NOT activate on filing an issue in your own repository or on a bug whose cause is local setup.
Other plugins' skills for the same job
16 skills in this plugin
/cmux-delegateHand off an existing independent issue that surfaced mid-task to its own Claude Code session in a new cmux workspace, with auto-collected context; that session runs issue→worktree→PR alone. Not for splitting the current task./cmux-recover-sessionsBulk recover Claude Code sessions after a crash, power loss, OOM kill, or reboot by scanning the .jsonl files Claude Code persists automatically. Interactive interview chooses recovery scope and layout. Use this when sessions died and you need them back. The .jsonl scan reflects each session's real final state, so no snapshot taken before the crash is needed.
/codex-review-wrapWorktree-aware wrapper for /codex:review. Forces explicit worktree selection when several worktrees are active, preventing silent cwd mismatch, then gates every returned finding: premise verification before fact-modifying edits, flip detection halting A→B→A oscillation, sibling cross-checks for a port or parallel hotfix, a diminishing-returns advisory (PRAXIS_DIMINISHING_RETURNS_N), and a per-finding approval ask. It also reaps leaked openai-codex brokers (PRAXIS_CODEX_REAP=1).
/merge-briefingBrief and ask before merging any PR: probe CI, reviews and inline threads, grade every open finding by its blocking decoration, carry the anchor's `Unverified` gaps, write the six-part briefing, and end on the approve-ask.
/perf-leak-reviewPoint at performance-defect and memory-leak candidates in a diff — a read-only LLM reviewer reads the change plus the repository around it and reports candidates in a closed list of six classes. Report-only: nothing is executed, nothing is written, no finding is a proven defect.
/reset-strikesReset the current session's strike counter to 0 and clear the recorded violation list. Required after a 3rd strike block before Claude can respond again.npx claudepluginhub devseunggwan/praxis --plugin praxis