summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJesse Vincent <jesse@fsck.com>2026-09-08 21:39:22 +0000
committerGitHub <noreply@github.com>2026-09-11 15:20:09 -0700
commitd3d9d2bec2b429dd408250916b8679df4880176e (patch)
treeb2c8d7bba200cf8e17e2ab53624d952084d8d4a9 /docs
parentbe4263611ecc034d10f3a65d2a76a4c97eb87158 (diff)
diagnosing-superpowers: use gh for issue search and creation
gh handles auth, rate limits, and JSON, and the approval gate on the exact issue text already covers posting. Keep the public-API and prefilled-link paths as fallbacks for machines without gh. Note that GitHub drops labels from reporters without push access, so the template footer is the durable marker of a skill-filed issue.
Diffstat (limited to 'docs')
-rw-r--r--docs/superpowers/specs/2026-08-27-diagnosing-superpowers-design.md27
1 files changed, 12 insertions, 15 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 25cccb9..3e7d238 100644
--- a/docs/superpowers/specs/2026-08-27-diagnosing-superpowers-design.md
+++ b/docs/superpowers/specs/2026-08-27-diagnosing-superpowers-design.md
@@ -248,27 +248,24 @@ 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 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.
+ 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.
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. 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.
+ the redaction level of any bundle. Show the exact text; create the
+ issue with `gh issue create` only after the user approves it, with the
+ `bug` and `automated-issue-report` labels. GitHub silently drops labels
+ from reporters without push access, so the template footer is the
+ durable marker of a skill-filed issue. `gh` cannot attach files, so the
+ skill tells the user the bundle path to attach through the web UI.
+ Without `gh`, the skill hands over a prefilled new-issue link on the
+ `diagnosis_report.md` template, which applies both labels for any
+ reporter; GitHub caps that URL near 8,000 characters.
4. Nothing is posted anywhere without the user approving the exact text.
### 5. Export (on request)