triage-dependabot-prslisted
Install: claude install-skill app-vitals/shipwright
# Triage All Dependabot PRs
Scan every repo in `repos/` for open Dependabot PRs, triage new ones, and stage comments for review.
## 1. Load state
Read `state/dependabot-reviews.json`. Create `[]` if missing.
## 2. Sync closed and merged PRs
For each entry with `status` of `staged` or `posted`:
```bash
gh pr view {pr} --repo {org}/{repo} --json state -q '.state'
```
- `MERGED` → set `status: "merged"`, `mergedAt: <now>`
- `CLOSED` → set `status: "closed"`
## 3. Discover open Dependabot PRs
For each directory in `repos/`:
```bash
# Get owner/repo for this directory
git -C repos/{dirname} remote get-url origin
# Parse owner/repo from the URL (strip .git suffix, handle both https and ssh formats)
# List open Dependabot PRs
gh pr list --repo {owner}/{repo} --author "app/dependabot" --state open --json number,title,headRefName
```
For each open PR not already present in state with a non-terminal status (`pending`, `staged`, `posted`):
- Add a new entry: `{ pr, repo, org, title, branch, status: "pending", firstSeen: <now>, lastTriagedAt: null, recommendation: null, stagedFile: null, postedAt: null, mergedAt: null }`
## 4. Triage pending PRs
For each entry with `status: "pending"`:
Invoke the `triage-dependabot-pr` skill with `{pr} --repo {org}/{repo}`.
The skill writes the staged comment file and updates the state entry to `staged`. Collect the recommendation from the skill output.
Process serially — merging one PR can affect others.
## 5. Save state
Write the upd