# security-stinger

security-stinger scans SvelteKit projects for authorization gaps, SQL injection, secret leaks and unsafe webhooks before code reaches production.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 96 repo stars
- Author: Legion Code Inc.
- License: AGPL-3.0-or-later · policy=link-only · description only; the file stays with the author
- Source: https://github.com/legioncodeinc/vibe-coding-tools/tree/HEAD/plugins/wasp-nest-core/skills/security-stinger/SKILL.md
- Updated: 2026-10-18
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/security-stinger

## What it does

The skill inspects `+server.ts` endpoints, Drizzle schemas, Stripe and GoHighLevel webhook handlers for signature verification and idempotency, Doppler and Vercel configs for environment variables leaking into the client bundle or git history. Covers tenant isolation in Neon, CSRF in SvelteKit, XSS via `{@html}`, CSP and HSTS headers. No FFmpeg or Python required — static code analysis only.

Runs `ripgrep` patterns, then reads guides for each attack surface, assigns severity and file location to every finding, remediates Critical and High in the same session, writes a report to `library/`. For Medium and above, re-runs the check after fixes. Every claim traces to a primary source archive — not training data.

Acts as the first Ship Gate step before `quality-stinger`. The load-on-demand map includes 15 guides, threat model templates, severity rubrics and per-surface checklists — loaded as needed, not all at once.

## Requirements
- Works with: Stripe

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add legioncodeinc/vibe-coding-tools
```
In the agent chat (not a shell):
```text
/plugin install wasp-nest-core@wasp-nest
```
This installs the whole wasp-nest-core plugin with all its skills

2. **Skills CLI (Vercel)**
```bash
npx skills add legioncodeinc/vibe-coding-tools --skill security-stinger -a claude-code
```

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

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add legioncodeinc/vibe-coding-tools --skill security-stinger -a codex
```

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

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add legioncodeinc/vibe-coding-tools --skill security-stinger -a cursor
```

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install legioncodeinc/vibe-coding-tools plugins/wasp-nest-core/skills/security-stinger
```

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

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add legioncodeinc/vibe-coding-tools --skill security-stinger -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/legioncodeinc/vibe-coding-tools --path plugins/wasp-nest-core/skills/security-stinger
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/security-stinger/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/legioncodeinc/vibe-coding-tools/tree/HEAD/plugins/wasp-nest-core/skills/security-stinger/SKILL.md

## When to use it
- check a new endpoint for authorization and tenant isolation
- catch SQL injection in Drizzle queries with dynamic identifiers
- verify that a Stripe webhook checks signatures and rejects duplicates
- find Doppler secrets in the client bundle or git history
- audit CSP nonces and headers before deploying to Vercel

## Example prompts
- Run `security-wasp-drone` on this branch before merging
- Check the new `routes/api/webhooks/stripe/+server.ts` file for signature verification
- Find environment variable leaks in `src/` and `.env`

## Similar
- [saas-scaffolder](https://affpapa.org/en/nevibecode/skills/borghei-saas-scaffolder.md) — skill · 125 installs
- [payments](https://affpapa.org/en/nevibecode/skills/payments.md) — skill · 5 installs
- [marketplace](https://affpapa.org/en/nevibecode/skills/marketplace.md) — skill · 14 installs
- [replica-deploy](https://affpapa.org/en/nevibecode/skills/replica-deploy.md) — skill · 1600 installs
- [stripe-best-practices](https://affpapa.org/en/nevibecode/skills/stripe-best-practices-2.md) — skill · 102700 installs
- [use-link-identity](https://affpapa.org/en/nevibecode/skills/use-link-identity.md) — skill · 15700 installs

From the same set: [legioncodeinc/vibe-coding-tools](https://affpapa.org/en/nevibecode/by/legioncodeinc/vibe-coding-tools.md) — 172 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
