Agent skill

Security Nextjs

by IgorWarzocha in IgorWarzocha/Opencode-Workflows

Review Next.js security audit patterns for App Router and Server Actions.

No licenceAuto-check: notesSecurity

Install Security Nextjs

skills CLI
$ npx skills add IgorWarzocha/Opencode-Workflows --skill security-nextjs -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install IgorWarzocha/Opencode-Workflows security-nextjs --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/IgorWarzocha/Opencode-Workflows.git skills-src && mkdir -p .claude/skills && cp -r skills-src/agents/security-reviewer/.opencode/skill/security-nextjs .claude/skills/security-nextjs && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
security-nextjs
GitHub stars
122
Token cost
~1.5k tokens
SKILL.md length
185 words
Files
2 (incl. scripts)
Skills in repo
35
Repo updated
First seen
Licence
None found

At a glance

Review Next.js security audit patterns for App Router and Server Actions.

  • Works in 3 steps: grep -r "NEXT_PUBLIC_" . -g "*.env*" → For each var, ask: "Would I be OK if… → Common mistakes
  • Auditing NEXTPUBLIC exposure
  • SKILL.md covers Environment Variable Exposure, Server Actions Security, API Routes Security and Middleware Security, plus 3 more sections
  • Runs Shell scripts from its folder; calls rg; needs NEXT_PUBLIC_API_KEY and NEXT_PUBLIC_STRIPE_SECRET_KEY

What it does

Security Nextjs is an agent skill from IgorWarzocha/Opencode-Workflows. Review Next.js security audit patterns for App Router and Server Actions. Use for auditing NEXTPUBLIC exposure, Server Action auth, and middleware matchers. Use proactively when reviewing Next.js apps. Examples: - user: "Scan Next.js env vars" → find leaked secrets with NEXTPUBLIC prefix - user: "Audit Server Actions" → check for missing auth and input validation - user: "Review Next.js middleware" → verify matcher coverage for protected routes - user: "Check Next.js API routes" → verify auth in app/api and…

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/scan.sh`).

It sits in Security, covering Secrets management, Security review and Secure coding. It works with Next.js. The repository describes itself as: An ever evolving repository of Opencode workflow examples that might enhance your experience with it. I only left the stuff that actually works. YMMV.

When your agent uses it

  • Auditing NEXTPUBLIC exposure
  • Server Action auth
  • Middleware matchers

Example prompts

  • “Scan Next.js env vars”
  • “Audit Server Actions”
  • “Review Next.js middleware”
  • “/security-nextjs”

Requirements

  • A Bash shell
  • A credential in NEXT_PUBLIC_API_KEY
  • A credential in NEXT_PUBLIC_STRIPE_SECRET_KEY

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. grep -r "NEXT_PUBLIC_" . -g "*.env*"
  2. For each var, ask: "Would I be OK if this was in view-source?"
  3. Common mistakes

What it can do on your machine

Read from SKILL.md and the folder at commit 6444ec4. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • rg

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • NEXT_PUBLIC_API_KEY
    • NEXT_PUBLIC_STRIPE_SECRET_KEY
    • STRIPE_SECRET_KEY
    • API_KEY
    • NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Security Nextjs loads about 1.5k tokens when it runs. Until then it costs about 155 tokens; SKILL.md has 185 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~155
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:192
    | NEXT_PUBLIC_ secrets | `.env*` files | CRITICAL |

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 185 words (~1,526 tokens).

“Security audit patterns for Next.js applications covering environment variable exposure, Server Actions, middleware auth, API routes, and App Router security.”

— opening of SKILL.md by IgorWarzocha
name
security-nextjs

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file (scripts) in agents/security-reviewer/.opencode/skill/security-nextjs of IgorWarzocha/Opencode-Workflows.

  • SKILL.md
  • scripts/scan.sh

Open the folder on GitHubat commit 6444ec4

Compare with similar skills

Security Nextjs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Security Nextjs compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Security Nextjs this skillIgorWarzocha/Opencode-Workflows122—~1.5kAutomated safety check: NotesNone
Vercel Security Basicsjeremylongshore/tons-of-skills-marketplace2.8k—~1.9kAutomated safety check: NotesMIT
Security Baselinerampstackco/claude-skills940—~3kAutomated safety check: PassMIT
Discover Securityrand/cc-polymath181—~1.9kAutomated safety check: PassMIT
Secure Codingtechygarg/lattice198—~1.5kAutomated safety check: PassMIT
Security Hardeningrohitg00/awesome-claude-code-toolkit2.7k—~1.5kAutomated safety check: NotesApache-2.0

Similar skills

  • Vercel Security Basics

    jeremylongshore/tons-of-skills-marketplace

    Apply Vercel security best practices for secrets, headers, and access control.

    2.8k GitHub stars~1.9k tokensUpdated today
    SecurityAuto-check: notes
  • Security Baseline

    rampstackco/claude-skills

    Establish a security baseline for a website or web app. An agent skill from rampstackco/claude-skills.

    940 GitHub stars~3k tokensUpdated yesterday
    SecurityAuto-check passed
  • Discover Security

    rand/cc-polymath

    Automatically discover security skills when working with authentication, authorization, input validation, security headers, vulnerability assessment, or secrets management.

    181 GitHub stars~1.9k tokensUpdated 7 mo ago
    SecurityAuto-check passed
  • Secure Coding

    techygarg/lattice

    Apply security-conscious thinking when generating or modifying code.

    198 GitHub stars~1.5k tokensUpdated 2 days ago
    SecurityAuto-check passed
  • Security Hardening

    rohitg00/awesome-claude-code-toolkit

    Application security covering input validation, auth, headers, secrets management, and dependency auditing

    2.7k GitHub stars~1.5k tokensUpdated 4 mo ago
    DevOps & CloudAuto-check: notes
  • Security Scan

    ericrisco/rsc-harness

    A skill your agent uses when automated scanners drive a security sweep of a repo or app — SAST, dependency/lockfile CVEs, secrets in the tree or git history, IaC misconfig — and the raw output has…

    167 GitHub stars~2.8k tokensUpdated yesterday
    SecurityAuto-check: notes

More from IgorWarzocha/Opencode-Workflows

All 35 skills in this repo
  • Create Opencode Plugin

    IgorWarzocha/Opencode-Workflows

    Create OpenCode plugins using the @opencode-ai/plugin SDK. An agent skill from IgorWarzocha/Opencode-Workflows.

    122 GitHub stars~2.4k tokensUpdated 8 mo ago
    Auto-check passed
  • Plugin Installer

    IgorWarzocha/Opencode-Workflows

    Find, install, and configure OpenCode plugins from the catalog or community.

    122 GitHub stars~1.3k tokensUpdated 8 mo ago
    Auto-check passed
  • Skill Creator

    IgorWarzocha/Opencode-Workflows

    Guide for creating effective opencode skills. An agent skill from IgorWarzocha/Opencode-Workflows.

    122 GitHub stars~2.8k tokensUpdated 8 mo ago
    Auto-check passed
  • Security AI Keys

    IgorWarzocha/Opencode-Workflows

    Review AI API key leakage patterns and redaction strategies.

    122 GitHub stars~793 tokensUpdated 8 mo ago
    Auto-check: notes
  • Security Convex

    IgorWarzocha/Opencode-Workflows

    Review Convex security audit patterns for authentication and authorization.

    122 GitHub stars~3.1k tokensUpdated 8 mo ago
    Auto-check passed
  • Security Django

    IgorWarzocha/Opencode-Workflows

    Review Django security audit patterns for settings and middleware.

    122 GitHub stars~1.6k tokensUpdated 8 mo ago
    Auto-check: notes

Works with

Categories

Questions about Security Nextjs

What does Security Nextjs do?

Review Next.js security audit patterns for App Router and Server Actions. Security Nextjs is an agent skill from IgorWarzocha/Opencode-Workflows.js security audit patterns for App Router and Server Actions.

When should I use Security Nextjs?

Security Nextjs fits situations like: auditing NEXTPUBLIC exposure; server Action auth; middleware matchers.

How do I install Security Nextjs in Claude Code?

Run `npx skills add IgorWarzocha/Opencode-Workflows --skill security-nextjs -a claude-code`. Or copy the skill folder (agents/security-reviewer/.opencode/skill/security-nextjs in IgorWarzocha/Opencode-Workflows) into .claude/skills/security-nextjs in your project. Claude Code loads it when a task matches its description.

How do I install Security Nextjs in Codex?

Run `npx skills add IgorWarzocha/Opencode-Workflows --skill security-nextjs -a codex`. Or copy the skill folder (agents/security-reviewer/.opencode/skill/security-nextjs in IgorWarzocha/Opencode-Workflows) into .agents/skills/security-nextjs in your project. Codex loads it when a task matches its description.

Can I use Security Nextjs in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add IgorWarzocha/Opencode-Workflows --skill security-nextjs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/security-nextjs, .gemini/skills/security-nextjs, .github/skills/security-nextjs and .opencode/skills/security-nextjs in your project.

What does Security Nextjs need to run?

Going by SKILL.md and its folder, Security Nextjs needs a shell for the scripts in its folder, the command-line tools its instructions call (rg) and credentials named NEXT_PUBLIC_API_KEY, NEXT_PUBLIC_STRIPE_SECRET_KEY, STRIPE_SECRET_KEY and API_KEY. Our summary lists: A Bash shell; A credential in NEXT_PUBLIC_API_KEY; A credential in NEXT_PUBLIC_STRIPE_SECRET_KEY.

Does Security Nextjs access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Security Nextjs safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Security Nextjs use?

No licence was found for Security Nextjs or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Security Nextjs use?

About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Security Nextjs?

Skills that share tags, products or a category with Security Nextjs: Vercel Security Basics (jeremylongshore/tons-of-skills-marketplace, 2.8k stars), Security Baseline (rampstackco/claude-skills, 940 stars), Discover Security (rand/cc-polymath, 181 stars) and Secure Coding (techygarg/lattice, 198 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Security Nextjs?

IgorWarzocha (a GitHub user) maintains it in IgorWarzocha/Opencode-Workflows, which has 122 GitHub stars. The repository holds 35 skills in this directory. The repository was last updated on February 4, 2026.

Source: IgorWarzocha/Opencode-Workflows on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.