diff options
| author | Jesse Vincent <jesse@fsck.com> | 2026-09-08 19:30:42 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-11 15:20:09 -0700 |
| commit | 3dd5b621a19e6a405196d3a3f7c069bd2ea18a76 (patch) | |
| tree | 5e8acb7dabcc593df2734658de55070d7ea83419 /docs | |
| parent | 20c37ac9096135bfd18883d5c0e899e80622ec09 (diff) | |
diagnosing-superpowers: drop gh; file issues through a prefilled template link
A default gh login carries the repo scope, which is write access to every
repository the user can reach. The skill now searches issues through the
unauthenticated public API and, instead of posting, hands the partner a
prefilled new-issue link. The link uses a new diagnosis_report.md issue
template so the bug and automated-issue-report labels apply regardless of
the reporter's permissions. Addresses arittr's review on #2236.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/superpowers/specs/2026-08-27-diagnosing-superpowers-design.md | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/docs/superpowers/specs/2026-08-27-diagnosing-superpowers-design.md b/docs/superpowers/specs/2026-08-27-diagnosing-superpowers-design.md index 9c8a5ab..156b2e6 100644 --- a/docs/superpowers/specs/2026-08-27-diagnosing-superpowers-design.md +++ b/docs/superpowers/specs/2026-08-27-diagnosing-superpowers-design.md @@ -247,19 +247,27 @@ user asks. 1. **Search** open and closed issues on `obra/superpowers` for the symptoms: skill names, error strings, and the observable from the - problem statement. Use `gh` if it is installed; otherwise the public - search API (`https://api.github.com/search/issues`) via curl; - otherwise give the user a search URL and stop. + problem statement. Use the public search API + (`https://api.github.com/search/issues`) via curl, which needs no + token and allows 10 requests a minute; otherwise give the user a + search URL and stop. The skill never uses `gh`: a default `gh` login + carries the `repo` scope, which is write access to every repository + the user can reach, far more than this step needs. 2. **Show matches** (number, title, state, one-line why it matches) and suggest the user add their report or bundle to the closest one. 3. **If nothing matches**, draft an issue from `templates/issue.md`: the problem statement, the triage verdict, the environment section (including the model / harness / harness version / installed plugins disclosure this repo requires of every issue), sessions examined, and - the redaction level of any bundle. Show the exact text; create the - issue only after the user approves it. `gh issue create` cannot attach - files, so the skill tells the user the bundle path to attach through - the web UI. + the redaction level of any bundle. Write the draft to the workspace, + show it, and hand the user a prefilled new-issue link using the repo's + `diagnosis_report.md` issue template, which applies the `bug` and + `automated-issue-report` labels regardless of the reporter's + permissions (the `labels` URL parameter only works for people with + triage rights). GitHub caps the URL near 8,000 characters; past that + the link carries the title only and the user pastes the body from the + file. The user submits the issue and attaches any bundle in the form. + The skill never posts to GitHub. 4. Nothing is posted anywhere without the user approving the exact text. ### 5. Export (on request) |
