express-best-practices
Defines Express 5 best practices and project structure for the FarmaDesconto backend.
Install
mkdir -p .claude/skills/express-best-practices && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/15501" && unzip -o skill.zip -d .claude/skills/express-best-practices && rm skill.zipInstalls to .claude/skills/express-best-practices
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Este guia define os padrões para desenvolvimento Backend com Express 5 no projeto FarmaDesconto.Key capabilities
- →Separate concerns in Express applications
- →Centralize error handling using middleware
- →Utilize native Async/Await support for error propagation
- →Structure project directories for maintainability
- →Standardize JSON response formats
How it works
This skill defines a structured approach for Express 5 development, emphasizing separation of concerns, centralized error handling via middleware, and consistent JSON response formatting. It use native async/await for error management.
Inputs & outputs
When to use express-best-practices
- →Structuring express routes
- →Implementing global error handlers
- →Standardizing api responses
About this skill
Express 5 Best Practices
Este guia define os padrões para desenvolvimento Backend com Express 5 no projeto FarmaDesconto.
Princípios Básicos
- Separação de Preocupações: Rotas chamam Controllers, Controllers usam Models/Services.
- Tratamento de Erros: Centralize o tratamento de erros em um middleware especializado.
- Async/Await Nativo: Aproveite o suporte nativo do Express 5 para disparar erros em funções async automaticamente.
Estrutura Recomendada
src/app.js: Configuração do servidor e middlewares globais.src/routes/: Definição de endpoints.src/controllers/: Lógica de requisição/resposta.src/middlewares/: Auth, Validation, Error Handling.
Padrões de Resposta
Sempre retorne JSON consistente:
{
"success": true,
"data": {},
"message": "Operação realizada"
}
Middleware de Erro Global
app.use((err, req, res, next) => {
console.error(err.stack);
res.status(err.status || 500).json({
success: false,
message: err.message || 'Internal Server Error'
});
});
When not to use it
- →When developing backend applications not using Express 5
- →When the project does not require a structured approach to error handling or response formatting
Limitations
- →This skill is specific to Express 5 development.
- →This skill provides architectural guidance, not functional implementation.
How it compares
This skill provides a defined set of best practices for Express 5, offering a standardized and maintainable structure compared to ad-hoc Express application development.
Compared to similar skills
express-best-practices side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| express-best-practices (this skill) | 0 | 4mo | No flags | Intermediate |
| shopify-development | 12 | 6mo | Review | Intermediate |
| woocommerce-email-editor | 3 | 6mo | Review | Advanced |
| shopify-apps | 1 | 4mo | Review | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
shopify-development
davila7
Build Shopify apps, extensions, themes using GraphQL Admin API, Shopify CLI, Polaris UI, and Liquid. TRIGGER: "shopify", "shopify app", "checkout extension", "admin extension", "POS extension", "shopify theme", "liquid template", "polaris", "shopify graphql", "shopify webhook", "shopify billing", "app subscription", "metafields", "shopify functions"
woocommerce-email-editor
woocommerce
Setup and develop the WooCommerce block email editor. Use when working on email templates, transactional emails, or the email editor feature.
shopify-apps
alinaqi
Shopify app development - Remix, Admin API, checkout extensions
ccxt-typescript
ccxt
CCXT cryptocurrency exchange library for TypeScript and JavaScript developers (Node.js and browser). Covers both REST API (standard) and WebSocket API (real-time). Helps install CCXT, connect to exchanges, fetch market data, place orders, stream live tickers/orderbooks, handle authentication, and manage errors. Use when working with crypto exchanges in TypeScript/JavaScript projects, trading bots, arbitrage systems, or portfolio management tools. Includes both REST and WebSocket examples.
azure-eventhub-ts
microsoft
Build event streaming applications using Azure Event Hubs SDK for JavaScript (@azure/event-hubs). Use when implementing high-throughput event ingestion, real-time analytics, IoT telemetry, or event-driven architectures with partitioned consumers.
azure-servicebus-ts
microsoft
Build messaging applications using Azure Service Bus SDK for JavaScript (@azure/service-bus). Use when implementing queues, topics/subscriptions, message sessions, dead-letter handling, or enterprise messaging patterns.