mani901

Next Fastify Audit Skill — Security skill for Claude Code

Security community

One agent skill that audits your Next.js App Router + Fastify codebase for security, performance, and API-design issues, including LLM-integration risks, and only reports findings it can prove from yo.

How to install Next Fastify Audit Skill

This entry records only its repository, not the path inside it, so there is no exact command to give. Open mani901/next-fastify-audit-skill and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Next Fastify Audit Skill does

One agent skill that audits your Next.js App Router + Fastify codebase for security, performance, and API-design issues, including LLM-integration risks, and only reports findings it can prove from your code.

Alternatives in Security

  • Bountyforge — All-round bug bounty skill for Claude Code parallelized agents for smart contract audits (EVM, Move, Solana, T 399 ★
  • All Deploy — Claude Code skill that deploys any web app, API, or agent to the internet — strict pre-deploy audit, preview → 50 ★
  • Audit Multizone — Audit a PolicyEngine Next.js zone app for multi-zone compliance — basePath, assetPrefix, vercel.json, host rew 31 ★

README

next-fastify-audit-skill

**One agent skill that audits your Next.js App Router + Fastify codebase for security, performance, and API-design issues, including LLM-integration risks, and only reports findings it can prove from your code.**

What it audits

  • Security (Next.js): hardcoded secrets, dangerouslySetInnerHTML, missing auth on route handlers and server actions, eval(), error leaks
  • Security (Fastify): routes without schema validation, hardcoded JWT secrets, CORS origin: '*', string-concatenated SQL
  • Performance: raw tags, await inside loops (N+1 queries), Fastify without compression
  • API design: missing input validation, inconsistent error shapes, error responses that leak internals
  • LLM integration: API keys in prompts/logs/tool outputs, user input concatenated into system prompts, LLM endpoints with no rate limit or token cap

Every finding ships with severity, `file:line` evidence, and a concrete fix (with a code snippet where possible). Every finding must be verified against the actual code before it is reported. No unverified claims.

Install (30 seconds)

# Claude Code
mkdir -p ~/.claude/skills && cp -r next-fastify-audit-skill ~/.claude/skills/

# Cursor
cp -r next-fastify-audit-skill .cursor/skills/

# Codex
cp -r next-fastify-audit-skill ~/.codex/skills/

No dependencies, no build step, no API keys. The scanner is plain Node.js (v18+) with zero packages.

Usage

Just ask your agent:

Audit this repo for security, performance, and API issues.

Or run the scanner directly:

node scripts/scan.js ./my-app --json audit-findings.json
node scripts/report.js audit-findings.json audit-report.md

Example output

Auditing the bundled fixture (a small app with planted issues) produces:

Scanned 7 files: 8 high, 12 medium, 3 low.
### SEC-001 Hardcoded secret or API key - lib/llm.ts:7

**Evidence:**
const apiKey = 'sk-live-9f2c41d7a8b34e6f9021