# security-fix

The security-fix Claude Code skill keeps vulnerability fixes in a private GitHub Security Advisory fork. It activates for security audit findings, private reports, or a pre-push rejection tied to vulnerability-related wording.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 1120 repo stars
- Author: rerun-build
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/rerun-build/rerun/tree/HEAD/.claude/skills/security-fix/SKILL.md
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/security-fix

## What it does

The skill routes vulnerability work through a private advisory fork instead of a public repository branch. In a separate workspace, `pnpm security:start` opens an advisory draft and configures its fork as the push destination. Branches sent to the public repository become visible immediately.

Run the typecheck and tests locally, then create a pull request from the fork with `gh pr create`. GitHub Actions do not run in advisory forks. Rerun Cloud must be deployed before the advisory is published; its Dockerfiles accept `UPSTREAM_REPO` and `UPSTREAM_TOKEN` for a private upstream.

Work in a fresh Conductor workspace or worktree on a branch that has never been pushed. The workflow also uses `pnpm`, `gh`, and GitHub Security Advisory access. The `scripts/git-hooks/pre-push` hook scans branch names and new commit messages for terms such as `security` or `XSS`; it is a word-based guard, and `--no-verify` bypasses it.

## Requirements
- Works with: GitHub

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add rerun-build/rerun --skill security-fix -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/security-fix/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/security-fix/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add rerun-build/rerun --skill security-fix -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/security-fix/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add rerun-build/rerun --skill security-fix -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/security-fix/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install rerun-build/rerun .claude/skills/security-fix
```

2. **Manually: put the files in place**
- File: `.github/skills/security-fix/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add rerun-build/rerun --skill security-fix -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/rerun-build/rerun --path .claude/skills/security-fix
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/security-fix/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/rerun-build/rerun/tree/HEAD/.claude/skills/security-fix/SKILL.md

## When to use it
- patch a vulnerability without exposing a public branch
- create a private advisory fork for the fix
- run checks locally when GitHub Actions are unavailable
- prepare a fork-based pull request and deploy before disclosure

## Example prompts
- Fix this vulnerability through a private advisory fork, keeping the change private until publication.
- Handle this security audit finding with the private advisory workflow.
- The pre-push hook blocked my vulnerability fix. Move the work into the private workflow.

## Similar
- [ci-cd-security](https://affpapa.org/en/nevibecode/skills/ci-cd-security.md) — skill · 9000 installs
- [gh-fix-ci](https://affpapa.org/en/nevibecode/skills/openai-gh-fix-ci.md) — skill · 12100 installs
- [gha-security-review](https://affpapa.org/en/nevibecode/skills/gha-security-review.md) — skill · 5100 installs
- [om-auto-fix-issue](https://affpapa.org/en/nevibecode/skills/om-auto-fix-issue.md) — skill · 4700 installs
- [om-auto-fix-pr](https://affpapa.org/en/nevibecode/skills/om-auto-fix-pr.md) — skill · 4500 installs
- [fix-ci](https://affpapa.org/en/nevibecode/skills/fix-ci.md) — skill · 2600 installs

From the same set: [rerun-build/rerun](https://affpapa.org/en/nevibecode/by/rerun-build/rerun.md) — 25 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
