From aj-geddes-useful-ai-prompts-4
Builds Express.js servers with middleware, authentication, routing, and database integration for REST APIs.
How this skill is triggered — by the user, by Claude, or both
Slash command
/aj-geddes-useful-ai-prompts-4:nodejs-express-serverThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- [Overview](#overview)
references/authentication-with-jwt.mdreferences/basic-express-setup.mdreferences/database-integration-postgresql-with-sequelize.mdreferences/environment-configuration.mdreferences/error-handling-middleware.mdreferences/middleware-chain-implementation.mdreferences/restful-routes-with-crud-operations.mdscripts/security-checklist.shCreate robust Express.js applications with proper routing, middleware chains, authentication mechanisms, and database integration following industry best practices.
Minimal working example:
const express = require("express");
const app = express();
const PORT = process.env.PORT || 3000;
// Middleware
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
// Routes
app.get("/health", (req, res) => {
res.json({ status: "OK", timestamp: new Date().toISOString() });
});
// Error handling
app.use((err, req, res, next) => {
console.error(err.stack);
res.status(err.status || 500).json({
error: err.message,
requestId: req.id,
});
});
app.listen(PORT, () => {
console.log(`Server running on port ${PORT}`);
});
Detailed implementations in the references/ directory:
| Guide | Contents |
|---|---|
| Basic Express Setup | Basic Express Setup |
| Middleware Chain Implementation | Middleware Chain Implementation |
| Database Integration (PostgreSQL with Sequelize) | Database Integration (PostgreSQL with Sequelize) |
| Authentication with JWT | Authentication with JWT |
| RESTful Routes with CRUD Operations | RESTful Routes with CRUD Operations |
| Error Handling Middleware | Error Handling Middleware |
| Environment Configuration | Environment Configuration |
npx claudepluginhub joshuarweaver/cascade-code-languages-misc-1 --plugin aj-geddes-useful-ai-prompts-4Generates Express.js REST APIs with TypeScript, middleware, validation, error handling, and authentication patterns.
Implements Node.js backend patterns with Express/Fastify for middleware, error handling, auth, DB integration, REST/GraphQL APIs, microservices, and WebSockets.
Builds production-ready Node.js backend services with Express/Fastify, covering middleware, error handling, authentication, database integration, and API design patterns for REST, GraphQL, and microservices.