agentleFS
Ghost7802Ghost7802/awesome-api-skills/skills/express/SKILL.md

express

Skill13 starsChanged 26 days agoMITView on GitHub

Fast, unopinionated, minimalist web framework for Node.js. Works Well With: redis

  • Installs packages

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Do not write massive anonymous functions inside your app.get() routes.

    line 25
  2. Distinctive:

    Use this when your agent works with express — structured patterns beat pasted docs and prevent common hallucinations.

    line 46

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Express Skill

Fast, unopinionated, minimalist web framework for Node.js.

Ecosystem Graph

graph LR
  express["Express"]
  express -- "alternative to" --> fastapi
  express -- "alternative to" --> hono
  express -- "alternative to" --> nestjs
  express -- "works well with" --> redis

Quick Start

Express is the most mature Node.js HTTP framework. It utilizes a simple middleware chain architecture.

npm install express cors

Production Patterns

Controller Pattern

Do not write massive anonymous functions inside your app.get() routes. Extract business logic into dedicated controller files (e.g., user.controller.js) and pass them to the Express router.

Architecture & Scaling

Middleware Chains

Express executes middleware sequentially. Always ensure your JSON body parser (express.json()) is registered before the routes that need to read req.body. Ensure you call next() to pass control.

Error Recovery

Express 4 does not automatically catch asynchronous errors. You must wrap your async route handlers in a try/catch block and pass the error to next(err). (Note: Express 5 changes this behavior). Always register a global error handler at the very bottom of your middleware chain.

Security Notes

Install and configure helmet to automatically set secure HTTP headers. Rate limit endpoints using express-rate-limit backed by Redis to prevent brute-force attacks.

Relationships

Alternatives: fastapi, hono, nestjs

Works Well With: redis

References

Why use this skill

Use this when your agent works with express — structured patterns beat pasted docs and prevent common hallucinations.

AI pitfalls

  • Using outdated SDK or API versions from training data
  • Inventing environment variable names
  • Omitting error handling and retry logic

Production checklist

  • Secrets in environment variables, not source code
  • Error handling and logging in place
  • Rate limits and timeouts configured

Related skills

  • fastapi — alternative to
  • hono — alternative to
  • nestjs — alternative to
  • redis — works well with

Last Verified: 2026-07-02

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.