express

express is a skill for Claude Code from alivirgo/Major-AI-Skills. It costs 21 tokens per session (834 once invoked), scanned A, original, MIT.

An operational guide for Express, a Node.js framework for building HTTP servers and APIs. It explains routers, middleware order, request validation, asynchronous errors, authentication, logging, and rate limiting.

In plain words
What is it for?
Use it to build REST or JSON APIs, split routes by domain, add middleware, handle asynchronous failures, validate request bodies, and configure error handling.
Why use it?
It helps agents prevent common server problems such as handlers that never finish, errors that are not returned, or unvalidated request data.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is NODE_ENV=production node src/server.js.

Part of the major-ai-skills plugin — 147 skills, 7 plugins shipped together

Good fit Use it to build REST or JSON APIs, split routes by domain, add middleware, handle asynchronous failures, validate request bodies, and configure error handling.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/alivirgo/Major-AI-Skills
agentmods
npx agentmods add skills/alivirgo/major-ai-skills/express

Made for: Claude Code.

Or install major-ai-skills, the plugin that ships this one along with the rest of its 147 skills, 7 plugins.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for express

README.md
[![agentmods](https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/express/github.svg)](https://agentmods.dev/skills/alivirgo/major-ai-skills/express)
Your own site
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/express"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/express/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for express

Your own site · 80×15
<a href="https://agentmods.dev/skills/alivirgo/major-ai-skills/express"><img src="https://agentmods.dev/badge/skills/alivirgo/major-ai-skills/express.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 834 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00021 $0.00834
Opus 5 $0.00010 $0.00417
Sonnet 5 $0.00004 $0.00167
Haiku 4.5 $0.00002 $0.00083

Measured today against content hash 7c20b045df40, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

express scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/express/SKILL.md · 112 lines

How it starts

The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Express.js HTTP APIs AI Skill Guide

Overview & Engine Architecture

Express is a minimal Node HTTP framework built around middleware chains and routers. Request flows top-to-bottom; the first matching route wins unless next() continues. Agents keep middleware ordered correctly (parsers before handlers, error middleware last), wrap async routes so rejections reach the error handler, and validate input before business logic.

req -> middleware... -> router -> handler
                              \-> next(err) -> error middleware -> res

When to use this skill

  • Building REST/JSON APIs on Node
  • Splitting apps into domain routers
  • Fixing hanging requests from unhandled async errors
  • Adding auth, logging, and rate-limit middleware

Operational directives

  1. Mount express.json() / urlencoded only where needed; cap body size.
  2. Put four-arg error middleware (err, req, res, next) after all routes.
  3. Wrap async handlers or use a helper so rejected promises call next(err).
  4. Use Router() per domain; keep app.js / server.js thin.
  5. Never trust req.body shape - validate with zod/joi or similar.

App sketch

import express from "express";

const app = express();
app.use(express.json({ limit: "100kb" }));

const items = express.Router();

items.get("/", (_req, res) => {
  res.json([{ id: 1, sku: "A" }]);
});

items.post("/", (req, res, next) => {
  Promise.resolve()
    .then(() => {
      const sku = req.body?.sku;
      if (typeof sku !== "string" || !sku) {
        const err = new Error("sku required");
        err.status = 400;
        throw err;
      }
      res.status(201).json({ id: 2, sku });
    })
    .catch(next);
});

app.use("/items", items);

app.use((err, _req, res, _next) => {
  const status = err.status ?? 500;
  res.status(status).json({ error: err.message ?? "internal error" });
});

app.listen(3000);

Commands

npm install express
node --watch src/server.js
NODE_ENV=production node src/server.js

Read the full file on GitHub · 112 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · -5 tokens per session 7c20b045df40
  2. 6d ago First seen · 112 lines · 26 tokens per session scan A 23771cf93ba0

Subscribe to this mod's changes

express is a skill published in the GitHub repository alivirgo/Major-AI-Skills (1 stars, last pushed today), licensed MIT. It adds 21 tokens to every session and 834 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

api-endpoint-builder-v2

API Endpoint Builder workflow skill. Use this skill when the user needs Builds production-ready REST API endpoints with validation, error handling, authentication, and documentation. Follows best practices for security and scalability and the operator should preserve the upstream workflow, copied support files, and…

diegosouzapw/awesome-omni-skills · 66 tokens

express-docs

Comprehensive Express.js reference covering getting started, routing, middleware, error handling, the Application/Request/Response/Router API objects, template engines, debugging, database integration, security, performance, production patterns, and migration guides. Use whenever the user mentions Express, Express.js…

pledgeandgrow/pledge-skills · 80 tokens

Express.js Testing Patterns

Express.js API testing with supertest, middleware testing, route handler testing, error handling verification, and authentication testing.

PramodDutta/qaskills · 28 tokens

backend

Backend development with Node.js, Express, NestJS, and server patterns.

miles990/claude-software-skills · 16 tokens

api-endpoint-builder

API Endpoint Builder workflow skill. Use this skill when the user needs Builds production-ready REST API endpoints with validation, error handling, authentication, and documentation. Follows best practices for security and scalability and the operator should preserve the upstream workflow, copied support files, and…

diegosouzapw/awesome-omni-skills · 64 tokens

api-rate-limit-handler

Implement bounded, idempotency-aware API throttling, backoff, and retry handling for 429 and transient 5xx responses.

sickn33/agentic-awesome-skills · 32 tokens