AI Agent Skills

Skills.md for SecureNow

Two skill files ship inside the securenow npm package: SKILL-API.md to wire SecureNow into your Node.js app and SKILL-CLI.md to run it from the terminal. Point your coding agent at them, or install them as skills.

Let your agent set it up

Paste this into Claude Code, Codex, Cursor or Windsurf. Your agent installs securenow@latest, runs login and init, reads node_modules/securenow/SKILL-API.md, wires the runtime for your framework and verifies it end to end. You only finish the browser sign-in.

paste into Claude Code / Cursor / Codex
Add SecureNow production security to this project.
Guide: node_modules/securenow/SKILL-API.md once installed (also https://securenow.ai/SKILL-API.md)

1. Install the latest package with this project's package manager:
   npm install securenow@latest
2. Connect my SecureNow account: npx securenow login
   (I'll finish the sign-in in the browser; it writes .securenow/runtime.json
   and .securenow/admin.json. They hold secrets: never print or commit them,
   and keep them out of git without ignoring the whole .securenow/ folder.)
3. Run npx securenow init: it detects the framework and fills
   .securenow/runtime.json with the defaults.
4. Read node_modules/securenow/SKILL-API.md and wire the runtime for this
   stack, on the command that really starts the server:
   - Express, Fastify, NestJS, Koa, Hapi, Hono, Polka, Feathers, h3, raw
     http: node -r securenow/register <entry> (CommonJS, ESM or TypeScript)
   - Next.js: keep the instrumentation.ts and next.config changes init wrote
   - Nuxt: modules: ['securenow/nuxt'] in nuxt.config
   - PM2: node_args: ['-r', require.resolve('securenow/register')]
   Configuration lives in .securenow/runtime.json; don't add SECURENOW_*
   variables to .env.
5. Verify: npx securenow whoami, npx securenow doctor, npx securenow test-span,
   then start the app, send one request, and run npx securenow status.
6. Connect the SecureNow MCP server to yourself, for example:
   claude mcp add securenow -- npx securenow mcp
7. Run a first production-security baseline and summarize what you find.

Do not block traffic or change security policy without asking me first.

Download Agent Skills

Each skill is a single markdown file your agent reads before it touches SecureNow. Both ship in node_modules/securenow/ and match the version you installed; the copies here follow the latest release. Together they cover setup per framework, every runtime.json key, every feature, deployment, verification and the CLI.

SKILL-CLI.md

Terminal & Security Operations

node_modules/securenow/SKILL-CLI.md

What your agent learns

Log in, connect apps, production credentials
Today's overview and why an IP was flagged
Investigate IPs, traces, logs — AI forensics in plain English
Block, allow and trust IPs; rate limits and challenges
Revoke stolen sessions and users
Alert rules from English: test mode, runs, promotion
Starter protection, review queues, the autonomous agent
False positive rules (create, AI-fill, dry-run)
MCP setup, local and hosted
Events, logs and spans from scripts; doctor and env

Example usage

$ securenow today
$ securenow attacker 203.0.113.42
$ securenow forensics "any SQL injection today?"
$ securenow blocklist add 203.0.113.42 --duration 24h --reason "brute force"
$ securenow ratelimit from-text "5 per minute per IP on POST /api/login" --yes
$ securenow revoke session <session-id> --reason "stolen cookie"
$ securenow fp ai-fill --description "Stripe webhook"
$ securenow doctor
Download SKILL-CLI.md

SKILL-API.md

SDK Integration & Instrumentation

node_modules/securenow/SKILL-API.md

What your agent learns

Express, Fastify, NestJS, Koa, Hapi, Hono, Polka, Feathers, h3, raw http
CommonJS, ESM and TypeScript with one preload flag
Next.js 15/16 (14 from 8.25.0) and Nuxt 3/4 via init
Every runtime.json key and its default (only two env vars are read)
Firewall layers 1-4, trusted proxies and Cloudflare
Rate limits with Redis, challenges, blocklist and allowlist
track() auth events and session revocation
Docker, Kubernetes, PM2, systemd, PaaS, Vercel caveats
Verification checklist, troubleshooting, honest limits

Example usage

$ npm install securenow@latest
$ npx securenow login
$ npx securenow init
$ node -r securenow/register src/index.js
$ node -r securenow/firewall-only src/index.js
$ npx securenow credentials runtime --env production
$ npx securenow doctor && npx securenow test-span
Download SKILL-API.md

Already installed the package? They are right there:

# From your project root
ls node_modules/securenow/SKILL-*.md
# Or fetch the latest release
curl -O https://securenow.ai/SKILL-API.md
curl -O https://securenow.ai/SKILL-CLI.md

What is a SKILL.md?

A SKILL.md file is a markdown document that gives your AI coding agent reusable knowledge and step-by-step instructions for a specific task.

Put it in its own folder under your agent's skills directory (for example .claude/skills/ or .cursor/skills/). Its frontmatter description tells the agent when to load it. The SecureNow files are plain playbooks without frontmatter: the install commands below add it.

Plain markdown — no DSL or scripting language
Loaded when the task matches its description
Works with Claude Code, Codex, Cursor, Windsurf and Copilot
Composable: one skill per task domain
SKILL.md
---
name: investigate-threat
description: >-
  Investigate a suspicious IP address using SecureNow's
  threat intelligence API. Use when the user asks to
  check an IP, investigate a threat, or analyze traffic.
---

# Investigate Threat

## Steps

1. Call the IP Intelligence API:
   `curl https://api.securenow.ai/api/public/ip-intel/{ip}`

2. Parse the response for:
   - **securenowScore** — threat severity (0-100)
   - **verdict** — AI-generated summary
   - **attackTypes** — classified attack categories

3. If score > 70, recommend blocking the IP
4. Provide a human-readable summary of findings

What Your Agent Can Do

With both skills installed, your AI agent can handle the full SecDevOps lifecycle — from install to investigation to approved response.

Threat Investigation

Analyze suspicious IPs, check abuse reports, run forensic queries, and get AI-powered threat verdicts — all from natural language.

Firewall & IP Blocking

Block, allow, or trust IPs. Enable multi-layer protection: HTTP 403, TCP drop, iptables kernel rules, and cloud WAF (Cloudflare, AWS, GCP), with trusted proxies for Cloudflare and load balancers.

Framework Integration

Wire any Node.js server built on node:http with tracing, logging, body capture and the firewall: zero code changes for Express, Fastify, NestJS, Koa, Hapi, Hono and more; one init for Next.js and Nuxt.

Rate Limits & Bot Challenges

Rate-limit routes per IP, API key, session cookie or globally (HTTP 429), share counters across workers with Redis, and send bots an invisible proof-of-work challenge.

Login & Session Protection

Send sign-in, OTP and password-reset events with track(), and revoke stolen sessions: zero-code config (8.25.0+), guard() for Express-style apps, or sessions.check() anywhere else (8.25.0+).

False Positive Management

Create, test, and dry-run exclusion rules. Use AI to auto-generate conditions from a description. Suppress noise so real threats stand out.

Works With Your Node.js Stack

The API skill teaches your agent how to wire SecureNow into any server built on node:http — most need zero code changes. Edge runtimes, Deno and Bun.serve are not supported.

Express
node -r securenow/register app.js
Zero code changes
Fastify
node -r securenow/register server.js
Zero code changes
NestJS
node -r securenow/register dist/main.js
Zero code changes
Koa
node -r securenow/register app.js
Zero code changes
Hapi
node -r securenow/register server.js
Zero code changes
Hono
node -r securenow/register app.mjs
Zero code changes
h3
node -r securenow/register server.js
Zero code changes
Polka / Feathers
node -r securenow/register app.js
Zero code changes
Next.js
npx securenow init
init writes instrumentation.ts + next.config
Nuxt 3 / 4
modules: ['securenow/nuxt']
1 line of config
Vite (server)
node -r securenow/register-vite node_modules/vite/bin/vite.js preview
Node server only, no browser telemetry
Bun 1.3
bun --preload securenow/register app.js
apps on node:http, not Bun.serve

Install in 3 Steps

1

Install the securenow package

Adds the SDK, the CLI, the MCP server and both skill files (node_modules/securenow/SKILL-API.md and SKILL-CLI.md). For CLI-only use, npm install -g securenow@latest.

npm install securenow@latest
2

Make them skills for your agent

Claude Code and Codex can install the SecureNow plugin. For any agent, copy the shipped files into its skills folder with a frontmatter block so it knows when to load them, or reference them from AGENTS.md.

# Claude Code: the SecureNow plugin bundles the MCP server and skills /plugin marketplace add securenow-ai/claude-plugin /plugin install securenow@securenow # Codex: codex plugin marketplace add securenow-ai/claude-plugin # codex plugin add securenow@securenow # Any agent: copy the shipped files into its skills folder with frontmatter. # D = .claude/skills (Claude Code), .cursor/skills (Cursor), # .windsurf/skills (Windsurf) or .github/skills (Copilot) D=.claude/skills mkdir -p $D/securenow-api $D/securenow-cli printf -- '---\nname: securenow-api\ndescription: Wire the securenow SDK into this Node.js app - setup per framework, runtime.json config, firewall, rate limits, challenges, track() events, session revocation, deployment and verification.\n---\n\n' > $D/securenow-api/SKILL.md cat node_modules/securenow/SKILL-API.md >> $D/securenow-api/SKILL.md printf -- '---\nname: securenow-cli\ndescription: Run SecureNow from the terminal - investigate IPs, block, rate-limit, challenge, revoke sessions, alert rules, review queues and MCP setup.\n---\n\n' > $D/securenow-cli/SKILL.md cat node_modules/securenow/SKILL-CLI.md >> $D/securenow-cli/SKILL.md # Or one line in AGENTS.md / CLAUDE.md: # For SecureNow, read node_modules/securenow/SKILL-API.md and SKILL-CLI.md first.
3

Ask your agent anything

Your agent reads the relevant skill and executes the full workflow — installing, configuring, investigating, or proposing a block for your approval.

"Wire securenow into my Express app and verify it end to end" "Investigate 203.0.113.42 and propose a block if it is hostile" "Turn on session revocation for this app" "Rate-limit POST /api/login to 5 per minute per IP"

Full SecDevOps, One Conversation Away

Your AI agent becomes a security engineer. Investigate threats, harden your app, block attackers, and wire SecureNow into your Node.js servers — all with natural language.