Index of every page on this site: llms.txt
All skills
webrenew avatar

/security-hardening

@fa709ce
by webrenewwebrenew/skills2 stars
Run it yourself

Find and fix common security gaps in Next.js apps. Use this skill for security headers, authentication, authorization, Server Actions, API routes, validation, rate limits, dependency checks, and OWASP reviews.

Use this Skill: https://skilld.dev/gh/webrenew/skills/security-hardening

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈57 tokens for metadata: the name and description. ≈388 when used: this file. ≈21k more on demand in 1 file.

Description uses 2.9% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈230 characters, or 2.9%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Security Hardening

Next.js security hardening, OWASP compliance, and production security checklist

Metadata

  • Name: security-hardening
  • Version: 1.0.0
  • Author: webrenew
  • Tags: nextjs, security, owasp, csp, authentication, authorization, xss, csrf, headers

When to Use

This skill should be used when:

  • Hardening a Next.js application for production deployment
  • Configuring security headers (CSP, HSTS, X-Frame-Options, Permissions-Policy)
  • Implementing authentication and authorization (Auth.js, middleware, RBAC)
  • Securing API routes and Server Actions (input validation, rate limiting, CORS)
  • Preventing data exposure from Server Components to Client Components
  • Setting up dependency security scanning (npm audit, Snyk, Dependabot)
  • Reviewing OWASP Top 10 vulnerabilities specific to Next.js
  • Configuring Vercel-specific security (Firewall, WAF, deployment protection)

Summary

Comprehensive Next.js security hardening guide covering security headers and CSP with nonces, authentication patterns with Auth.js v5, authorization via Data Access Layer and middleware, Server Action security (CSRF, validation, rate limiting), API route protection, input validation with Zod, XSS and SQL injection prevention, environment variable management, data exposure prevention (server-only, taint API, DTOs), cookie security, middleware-based rate limiting and bot detection, secure error handling, dependency auditing, Vercel security features, OWASP Top 10 mapped to Next.js, and pre-deployment security checklists.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill is a comprehensive security hardening guide for Next.js applications. It provides detailed patterns for authentication, authorization, input validation, and infrastructure security using industry-standard tools and best practices.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at fa709ce. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 3 weeks ago.

Activeupdated 4 months ago

README badge

README badge for webrenew/skills/security-hardening