process-vulnerability-report
Take one reported vulnerability from the triage queue to a published GitHub security advisory — triage, verify, fix, author the advisory body, hand to a maintainer to publish. TRIGGER when the user asks to process a security report, work the advisory backlog, triage a GHSA, or write/publish a security advisory.
git clone --depth 1 https://github.com/Significant-Gravitas/AutoGPT /tmp/process-vulnerability-report && cp -r /tmp/process-vulnerability-report/.claude/skills/process-vulnerability-report ~/.claude/skills/process-vulnerability-reportSKILL.md
# Process a vulnerability report
A **GitHub security advisory** is a private record on the repo. Outside researchers
open one through a web form; it sits in state `triage` until a maintainer works it.
Publishing makes it public and pushes it into GitHub's vulnerability database, so
downstream users get alerted.
This skill takes **one advisory** from `triage` to `published`. It works the same on a
report filed five minutes ago and on one that has sat untouched for months — the
backlog is processed by running this skill per item, not by a separate tool.
`REPO=Significant-Gravitas/AutoGPT` throughout.
## Stages
| # | Stage | Input | Artefact | Decides |
|---|---|---|---|---|
| 1 | Triage | a GHSA id, or the queue | acknowledgment + dedup verdict + CVSS vector + metadata block | agent proposes, **a maintainer confirms severity and checks the acknowledgment**, the agent posts it |
| 2 | Verify | the triaged report | reproduction note: proved-live vs read-in-source | agent, on the model *Which model does which work* picks |
| 3 | Fix | the reproduction note | fix PR with tests, reviewed by a separate session, its public text naming the change and no advisory id | agent, on a route a maintainer has checked |
| 4 | Author | fix PR + reproduction note | the advisory body, in the template below | agent drafts; a maintainer approves it before it replaces the description |
| 5 | Raise | body + fix PR + metadata | published advisory; the public sync's PR updates SECURITY.md | **human** reviews, merges, publishes |
**Two writes are irreversible and the agent never runs them: `state=published` and the
CVE request.** The skill prepares each payload and stops; a human executes it.
**Three more are prepared by the agent, checked by a maintainer, then run by the agent:
closing an advisory (`state=closed`, irreversible too), a comment to the reporter, and the
choice of fix route.** The agent hands over the exact command, text or proposed route, and
acts on that version once a maintainer has checked it. Also a maintainer's, always: confirming the severity and the
credits (each credit sends its researcher an invitation), approving the advisory body
before it replaces the description, merge approval, and whether two reporters' reports are
one bug.
## Which model does which work
A **cleared model** is one cleared for security work, its safeguards adjusted for defensive
use. A standard model refuses part of this skill's work, so establish which of three cases
you are in before starting. In all three, a model built for finding vulnerabilities is only
for finding new ones, never for working a report, and a refused response is never retried
reworded: shorten it to the advisory id and the location, or hand it over.
**No cleared model.** A standard model refuses the advisory body (stage 4), a
security review that has to describe the exploit, and some reproductions (stage 2) and fix
sessions (stage 3). A human writes or does those; everything else runs as written.
**Billed access.** Metered calls go only where a standard model refuses, so declare a
budget before starting and split the work:
- **Cleared model:** the advisory body (stage 4), a short fix brief for a private
finding (the files, the rule to enforce as code behaviour, and which report sections to
read), a security review that has to describe the exploit, and a reproduction or fix
session a standard model still refuses.
- **Standard model:** everything else, from intake, coverage and duplicates to credits and
records, and the fix and its tests, built from that brief.
Hand work over by pointer (the advisory id, a ticket, the file and function), never by
pasting details. A standard-model session coordinating the work does not read the advisory
body, a reproducer or the write-up.
**Access included in a subscription.** The split and the pointer-only hand-over exist to
save metered calls and to keep refused content out of standard-model sessions, and neither
applies, so the whole report runs on the cleared model:
- the coordinating session reads the report itself;
- dedup (stage 1) compares the reports' content, not only their summaries;
- the CVSS vector and the CWE come from the exploit as proved in stage 2;
- stage 2's reproduction runs on it;
- the fix (stage 3) is written with the weakness in view, and the class is hunted at every
entry point;
- a security review tries to get around the fix before it lands;
- the disclosure read of every public text (the PR description, branch name, commit
messages, code comments and test fixtures) is done by a model that understands the
weakness;
- replies to the reporter are drafted on it, and still wait for a maintainer's check.
---
## Stage 1 — Triage
**Input:** a GHSA id, or nothing (take the queue's top item).
**Artefact:** an acknowledgment drafted for a maintainer's check, a dedup verdict naming
the ids compared, and a completed metadata block on the advisory — including an affected
version range derived from git history, never the reporter's.
**Meets:** SECURITY.md §4.1 *Target Timelines* — acknowledgment (5 business days) and
triage (14 business days), both measured **from `created_at`**: receipt, not from when we
picked it up. **Read the policy before quoting a number at a reporter.**
### Pick an item
A report waits in `triage` until a maintainer accepts it, which moves it to `draft`. An
accepted report is still open, and its clocks keep running from `created_at`.
`open_reports` lists both kinds, leaving out our own drafts, which carry no `submission`:
```bash
open_reports() {
for s in triage draft; do
gh api "/repos/$REPO/security-advisories?state=$s&per_page=100" --paginate \
--jq '.[] | select(.state == "triage" or .submission != null)'
done
}
open_reports | jq -rs 'map(. + {untouched: (.updated_at == .created_at)})
| sort_by((.severity as $s | ["critical","high","medium","low"] | index($s)) // 9,
(if .untouched then 0 else 1 end), .cOpen a pull request with proper PR template, test coverage, and review workflow. Guides agents through creating a PR that follows repo conventions, ensures existing behaviors aren't broken, covers new behaviors with tests, and handles review via bot when local testing isn't possible. TRIGGER when user asks to "open a PR", "create a PR", "make a PR", "submit a PR", "open pull request", "push and create PR", or any variation of opening/submitting a pull request.
Meta-agent supervisor that manages a fleet of Claude Code agents running in tmux windows. Auto-discovers spare worktrees, spawns agents, monitors state, kicks idle agents, approves safe confirmations, and recycles worktrees when done. TRIGGER when user asks to supervise agents, run parallel tasks, manage worktrees, check agent status, or orchestrate parallel work.
Shared measurement recipe for AutoGPT performance work. Compares a baseline and a candidate in Sentry (two releases, two environments such as preview pr-<n> deploys, or two time windows) per transaction: count, p50/p95/p99, failure rate, and a trace-clustered bootstrap verdict of faster / slower / no detectable change / not enough data, with exit codes agents can branch on. Works for span duration, web vitals (measurements.lcp) or any numeric span field. TRIGGER when an agent needs to show a change made the backend or frontend faster or slower, compare a preview against a control or dev, check a release after merge on dev or prod, or check for regressions.
Address PR review comments and loop until CI green and all comments resolved. TRIGGER when user asks to address comments, fix PR feedback, respond to reviewers, or babysit/monitor a PR.
Alternate /pr-review and /pr-address on a PR until the PR is truly mergeable — no new review findings, zero unresolved inline threads, zero unaddressed top-level reviews or issue comments, all CI checks green, and two consecutive quiet polls after CI settles. Use when the user wants a PR polished to merge-ready without setting a fixed number of rounds.
Review a PR for correctness, security, code quality, and testing issues. TRIGGER when user asks to review a PR, check PR quality, or give feedback on a PR.
Initialize a worktree-based repo layout for parallel development. Creates a main worktree, a reviews worktree for PR reviews, and N numbered work branches. Handles .env creation, dependency installation, and branchlet config. TRIGGER when user asks to set up the repo from scratch, initialize worktrees, bootstrap their dev environment, "setup repo", "setup worktrees", "initialize dev environment", "set up branches", or when a freshly cloned repo has no sibling worktrees.
React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.