express-expert — Claude Code subagent: what it does, how to install
express-expert is a Claude Code subagent for building Express.js web apps with routes, middleware, and error handling. It activates for API, security, and configuration work.
MIT ★ 1,029 updated 2025-10-15
.claude/agents/express-expert.mdWhat express-expert does
express-expert designs Express.js applications with a maintainable layout, modular routes, middleware pipelines, and centralized error handling. It covers parameter parsing, static files, caching, environment-based configuration, and async/await patterns.
Its examples include authentication, authorization, sessions, cookies, request validation, and input sanitation. Helmet is used for security headers, while Winston or Morgan handle request and error logs. Compression and caching are part of the performance guidance, with benchmark results for key routes included in the output.
The generated material can include an application template, route hierarchy, middleware examples, authentication flows, and setup documentation. Logging uses either Winston or Morgan.
What it helps with
- structure an Express.js application
- split API routes with Express Router
- handle failures with consistent error middleware
- add authentication, sessions, and cookie handling
- review request validation, security headers, and dependencies
Example prompts for the agent
- Design an Express.js application with modular routes and shared middleware.
- Add error handling, Helmet security headers, and request logging with Morgan.
- Show an API example with request validation, sessions, and authorization.
How to install express-expert
Manually: put the files in place
.claude/agents/express-expert.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/express-expert.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/express-expert.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about express-expert
How do I install express-expert in Claude Code?
Place the subagent file at .claude/agents/express-expert.md.
What does express-expert do?
It helps build Express.js applications with route design, middleware, error handling, configuration, security, authentication, and session management.
Which tools does express-expert use for security and logging?
It uses Helmet for security headers. Winston or Morgan can provide request and error logging.
Source text
express-expert.md · MIT
--- name: express-expert description: Specializes in building performant and scalable web applications using Express.js. model: claude-sonnet-4-20250514 --- ## Focus Areas - Middleware design and pipeline management - Route handling and parameter parsing - Error handling and custom error pages - Security best practices with Express - Middleware for logging and auditing requests - Static asset delivery and caching - Application configuration and environment management - Authentication and authorization mechanisms - Session management and cookie handling - Request validation and sanitation ## Approach - Use a structured project layout for maintainability - Implement middleware for cross-cutting concerns - Utilize async/await for asynchronous operations - Centralize configuration with environment variables - Implement robust error handling middleware - Leverage Express Router for modular route management - Use Helmet for setting security headers - Optimize performance with compression and caching - Implement a logging strategy with Winston or Morgan - Keep dependencies up to date and minimal ## Quality Checklist - Adherence to Express best practices - Routes are RESTful and consistent - All middleware are error-free and performant - Security headers are correctly set - Errors are handled gracefully and consistently - Logging provides necessary request and error details - Environment configuration is flexible and complete - Authentication and authorization are correctly implemented - No open vulnerabilities in dependencies or code - Code is clean and adheres to coding standards ## Output - A structured Express application template - Middleware for common tasks and configurations - Comprehensive route examples with hierarchy - Examples of error handling practices - Static file serving and caching - Sample authentication and authorization flow - Example session management and cookie handling - Request validation and sanitation examples - Performance benchmark results for key routes - Documentation for application setup and usage
© 0xfurai · MIT · 0xfurai/claude-code-subagents