Production-ready REST API development with Express.js, covering routing, middleware, validation, and error handling.
Works with
Supports standard HTTP methods (GET, POST, PUT, DELETE) with RESTful route design patterns and centralized error handling
Includes middleware patterns for authentication, validation, CORS, security headers, and request logging
Provides structured project organization (controllers, routes, services, models) and common response formats with pagination support
Covers e
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionexpress-rest-apiExecute the skills CLI command in your project's root directory to begin installation:
Fetches express-rest-api from pluginagentmarketplace/custom-plugin-nodejs and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate express-rest-api. Access via /express-rest-api in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Automate repetitive workflows and reduce manual effort
Example
Generate reports, summarize documents, draft communications
Save 3-5 hours per week on routine tasks
Learn new skills, understand complex topics, get expert guidance
Example
Explain concepts, provide examples, suggest learning resources
Accelerate learning and skill development by 2x
Enhance output quality through reviews, suggestions, and refinements
Example
Review drafts, suggest improvements, catch errors
Improve work quality by 30-40% with less effort
3
total installs
3
this week
2
GitHub stars
0
upvotes
Run in your terminal
3
installs
3
this week
2
stars
Master building robust, scalable REST APIs with Express.js, the de-facto standard for Node.js web frameworks.
Build a basic Express API in 5 steps:
npm install expressconst express = require('express');
const app = express();
// Middleware
app.use(express.json());
app.use(express.urlencoded({ extended: true }));
// Routes
app.use('/api/users', userRoutes);
app.use('/api/products', productRoutes);
// Error handling
app.use(errorHandler);
app.listen(3000, () => console.log('Server running'));
// GET /api/users - Get all users
// GET /api/users/:id - Get user by ID
// POST /api/users - Create user
// PUT /api/users/:id - Update user
// DELETE /api/users/:id - Delete user
const router = express.Router();
router.get('/', getAllUsers);
router.get('/:id', getUserById);
router.post('/', createUser);
router.put('/:id', updateUser);
router.delete('/:id', deleteUser);
module.exports = router;
// Authentication middleware
const authenticate = (req, res, next) => {
const token = req.headers.authorization;
if (!token) return res.status(401).json({ error: 'Unauthorized' });
// Verify token...
next();
};
// Validation middleware
const validate = (schema) => (req, res, next) => {
const { error } = schema.validate(req.body);
if (error) return res.status(400).json({ error: error.message });
next();
};
// Usage
router.post('/users', authenticate, validate(userSchema), createUser);
// Custom error class
class APIError extends Error {
constructor(message, statusCode) {
super(message);
this.statusCode = statusCode;
}
}
// Global error handler
app.use((err, req, res, next) => {
const statusCode = err.statusCode || 500;
res.status(statusCode).json({
success: false,
error: err.message,
...(process.env.NODE_ENV === 'development' && { stack: err.stack })
});
});
/api/v1/, /api/v2/){
"dependencies": {
"express": "^4.18.0",
"helmet": "^7.0.0", // Security headers
"cors": "^2.8.5", // Cross-origin requests
"morgan": "^1.10.0", // HTTP logger
"express-validator": "^7.0.0", // Input validation
"express-rate-limit": "^6.0.0" // Rate limiting
}
}
// Success
{ success: true, data: {...} }
// Error
{ success: false, error: "Message" }
// Pagination
{
success: true,
data: [...],
pagination: { page: 1, limit: 10, total: 100 }
}
200 OK - Successful GET/PUT201 Created - Successful POST204 No Content - Successful DELETE400 Bad Request - Validation error401 Unauthorized - Auth required403 Forbidden - No permission404 Not Found - Resource not found500 Internal Error - Server errorsrc/
├── controllers/ # Route handlers
├── routes/ # Route definitions
├── middlewares/ # Custom middleware
├── models/ # Data models
Prerequisites
Time Estimate
15-45 minutes depending on use case complexity
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use when skill capabilities match your task, clear ROI on time saved, and you can validate outputs. Best for repetitive tasks, learning, and quality improvement.
✗ Avoid when
Avoid when task requires deep expertise you can't validate, involves sensitive decisions, or when learning process is more valuable than speed of completion.
jwynia/agent-skills
mindrally/skills
github/awesome-copilot
kostja94/marketing-skills
wispbit-ai/skills
mrgoonie/claudekit-skills
I recommend express-rest-api for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
Keeps context tight: express-rest-api is the kind of skill you can hand to a new teammate without a long onboarding doc.
Registry listing for express-rest-api matched our evaluation — installs cleanly and behaves as described in the markdown.
Keeps context tight: express-rest-api is the kind of skill you can hand to a new teammate without a long onboarding doc.
Registry listing for express-rest-api matched our evaluation — installs cleanly and behaves as described in the markdown.
Useful defaults in express-rest-api — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
Registry listing for express-rest-api matched our evaluation — installs cleanly and behaves as described in the markdown.
Keeps context tight: express-rest-api is the kind of skill you can hand to a new teammate without a long onboarding doc.
Useful defaults in express-rest-api — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
I recommend express-rest-api for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
showing 1-10 of 56