About express
express is a development skill for building Node.js HTTP services with Express. It covers routing, middleware, common request handling, error handling, security practices, and deployment guidance.
Key features
- 01Express HTTP services and routing
- 02Middleware and static asset setup
- 03CORS and request body parsing
- 04Error handling and 404 responses
- 05Security headers and production deployment guidance
Use cases
- 01Building a Node.js HTTP service
- 02Setting up routes, middleware, and static assets
- 03Configuring CORS, request parsing, and error handling
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ full-stack-skills/ nodejs-skills --skill expressAfter installing, type/expressin Claude Code to confirm it loaded.
Bundled filesagents/openai.yamlLICENSE.txt
Details
From the project READMEWhen to use this skill
Use this skill whenever the user wants to:
- 用 Express 编写 Node.js HTTP 服务、路由、中间件与静态资源
- 配置 CORS、body 解析、错误处理与部署
How to use this skill
- 核心:express()、app.get/post、req/res、中间件(next);router 与静态。
- 常用:cors、body-parser/json、helmet、morgan;错误中间件与 404。
- 参考:https://expressjs.com/
Best Practices
- 路由与中间件分层;异步错误用 try/catch 或包装。
- 安全头与 CORS;生产用反向代理与 HTTPS。
Keywords
express, Node.js, 中间件, 路由
Comments
Markdown supported