/nexus-agents:security-advisory-responsefrom nexus-agents
Handles reporter-filed GitHub Security Advisories with coordinated disclosure: confidential triage, private-fork patching, simultaneous publish, and post-mortem. Activates on security advisory, CVE response, coordinated disclosure, or private fork patch.
Ships in nexus-agents. 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.
Adapted from paperclipai/paperclip deal-with-security-advisory skill. Handles the reporter-filed inbound path — the outbound path (our own discoveries) is covered by CLAUDE.md's Security Discovery Protocol (.security-discoveries.jsonl + draft advisories).
Core invariant: Everything about this process is confidential until the advisory is published. No PR titles, no commit messages, no branch names, no issue comments should reveal the vulnerability. Treat the coordinated-disclosure window as a Rule of Two scenario — processing untrusted reporter input AND editing repo state AND accessing secrets for release.
Fetch the full advisory via the API (never paste content into chat, email, or Slack):
gh api "repos/${REPO}/security-advisories/GHSA-xxxx-xxxx-xxxx" \
--jq '{severity, summary, affected: .vulnerabilities}'
Assess:
Decision gate:
| Signal | Action |
|---|---|
| Critical or high severity, confirmed reproducible | Proceed to Phase 2 immediately |
| Medium/low, or unreproducible | Acknowledge reporter, investigate async; may downgrade to regular issue with reporter's consent |
| Cannot reproduce, no PoC, vague claim | Request PoC; do NOT close as "not a bug" without verification |
| Duplicate of a known issue already fixed | Reference existing fix in response; still credit reporter |
A human operator (not the agent) posts on the private advisory thread:
Agent role in this phase: draft the acknowledgment text for the operator to review and post. Never post directly.
Never patch in the public repo. GitHub auto-creates a temporary private fork when you click "Start a temporary private fork" on the advisory:
gh api -X POST "repos/${REPO}/security-advisories/${GHSA}/forks"
# Returns: { html_url: "https://github.com/OWNER/REPO-ghsa-xxxx" }
Clone the private fork to a directory separate from your regular worktree so you never push the wrong branch:
git clone [email protected]:OWNER/REPO-ghsa-xxxx.git ~/sec-work/GHSA-xxxx
cd ~/sec-work/GHSA-xxxx
Branch naming discipline — non-negotiable:
fix/v2.x-regression, patch/upstream-cve, hotfix/param-validationfix/dns-rebinding, fix/ssrf-bypass, patch/XXE, or anything that describes the vuln classWhy: advisory URLs with descriptive branch names are indexed by scanners and leak the vuln class before disclosure.
Patch discipline:
Local test verification (critical — GH Actions do NOT run on temporary private forks):
pnpm install --frozen-lockfile
pnpm lint && pnpm typecheck && pnpm test && pnpm build
If you skip this, you publish the advisory on a build you haven't validated. Don't.
Notify the reporter the fix is ready for review on the private fork. Give them a window (typically 3–7 days) to validate the patch closes the vuln. They may:
Zero-disclosure-window discipline: code merge, patched release, and advisory publication all land in the same tight window (ideally <5 minutes apart) so users never see the public vulnerability without the fix being available.
[!WARNING] Advisory publication permanently deletes the temporary private fork. GitHub does not auto-merge the temporary private fork when you publish an advisory. You must merge all eligible private pull requests into the base branch before publishing the advisory. Once an advisory is published, GitHub permanently deletes the temporary private fork; any unmerged private PRs or commits can no longer be merged through the advisory.
Sequence within the window:
pnpm install --frozen-lockfile
pnpm lint && pnpm typecheck && pnpm test && pnpm build
main) before publishing the advisory. Confirm the merge commit is present on the public branch.npm view nexus-agents versions --json | jq -r '.[-1]'
The changeset entry should say "security: patch CVE-YYYY-NNNNN (see GHSA-xxxx)" — full details only appear after CVE propagates."published" via PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}, nesting patched_versions under each vulnerabilities entry:
gh api -X PATCH "repos/${REPO}/security-advisories/${GHSA}" \
--input - <<< '{
"state": "published",
"vulnerabilities": [
{
"package": {
"ecosystem": "npm",
"name": "nexus-agents"
},
"vulnerable_version_range": "< X.Y.Z",
"patched_versions": "X.Y.Z"
}
]
}'
Note: Do not use POST /repos/{owner}/{repo}/security-advisories/{GHSA}/publish (an unsupported route), and do not pass patched_versions as a top-level field (an unsupported schema).Because the release is cut and verified (step 3) before the advisory is published (step 4), users never see a public vulnerability disclosure before the fix is available on npm. Rehearse this operational sequence before the coordinated publication window (do not perform a real advisory publication merely to test documentation).
gh api "repos/${REPO}/security-advisories/${GHSA}" --jq .cve_id until populatednpm view nexus-agents versions --json | jq -r '.[-1]' should show the patched version| Concept | Why not |
|---|---|
| Heartbeat-scheduled advisory work | We're synchronous — advisory response is human-driven |
| Company-wide advisory board | Single-repo scope |
| Excuse | Counter |
|---|---|
| "It's low severity, don't bother with the private fork" | Private-fork discipline applies regardless of severity. Severity informs timeline; the process stays the same. |
| "I'll patch in the public repo, it's faster" | Public branch names + commit messages leak the vuln class. Indexed by scanners within minutes. Always private fork. |
| "We can publish before the fix tested in prod" | The advisory window is when both publish and fix exist. Untested fix + public advisory = scrambling under pressure. |
| "Reporter wants quicker disclosure, override our timeline" | Document the request, but the timeline is decided by maintainer + severity. Reporter pressure is an input, not a directive. |
| "Skip post-mortem, we patched it" | The lesson the post-mortem extracts is what prevents the next incident in the same class. Always do it. |
fix/dns-rebinding)gh api ... .cve_id empty) at publish timepnpm install --frozen-lockfile && pnpm lint && pnpm typecheck && pnpm test && pnpm build)PATCH with {"state":"published"} and nested patched_versionsnpm view nexus-agents version shows patched versionWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.PreToolUse.0: Hook matcher "hooks" must be an array of hook entries; received undefined; hooks.PreToolUse.1: Hook matcher "hooks" must be an array of hook entries; received undefined — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.PreToolUse.0: Hook matcher "hooks" must be an array of hook entries; received undefined; hooks.PreToolUse.1: Hook matcher "hooks" must be an array of hook entries; received undefined — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
34 skills in this plugin
/api-and-interface-designDesign stable, hard-to-misuse interfaces — REST endpoints, MCP tool
schemas, module boundaries, type contracts. Apply when defining new
surfaces or evolving public ones. Triggers on "API design", "interface",
"schema", "contract", "module boundary", "type design".
/browser-testing-with-devtoolsTest UI in real browsers via Chrome DevTools MCP. Apply when debugging
rendering issues, console errors, network behavior, performance, or
accessibility — anywhere static code analysis can't see runtime state.
Triggers on "browser test", "DOM inspect", "console errors",
"network trace", "core web vitals in browser", "ui bug repro".
/bug-fixFix a bug following project standards.
Use when fixing defects, debugging issues, or resolving reported problems.
Triggers on "fix bug", "debug", "fix issue", "resolve bug".
/code-simplificationReduce nesting, extract names, eliminate redundancy without changing
behavior. Apply after features work and tests pass — never as a
drive-by during feature work. Triggers on "simplify", "refactor for clarity",
"this is hard to read", "code review flagged complexity".
/codex-delegatorDelegate code generation tasks to Codex CLI for optimal performance.
Use when implementing features, generating tests, refactoring code, or
making bulk code changes. Triggers on "delegate to codex", "route to codex",
"use codex", "code generation".
/context-engineeringCurate what the agent sees, when, and how it's structured. Apply when
starting a session, when output quality drifts, when fanning out
subagents, or when configuring rules files. Triggers on
"context engineering", "rules file", "agent context",
"subagent fan-out", "context budget".
Other plugins' skills for the same job