con un clic
api-generating
// Generate REST API endpoints following project conventions. Activate when user asks to create a new API endpoint, add a route, or build a new API resource with CRUD operations.
// Generate REST API endpoints following project conventions. Activate when user asks to create a new API endpoint, add a route, or build a new API resource with CRUD operations.
| name | api-generating |
| description | Generate REST API endpoints following project conventions. Activate when user asks to create a new API endpoint, add a route, or build a new API resource with CRUD operations. |
| allowed-tools | ["Read","Edit","Write","Bash","Grep","Glob"] |
Generate REST API endpoints following the project's established patterns.
For each new resource, create:
Route file (src/routes/{resource}.ts)
Service file (src/services/{resource}Service.ts)
Repo file (src/repos/{resource}Repo.ts)
Test file (tests/{resource}.test.ts)
orderService.ts)OrderService)/api/order-items)Review code for security vulnerabilities, performance issues, and coding best practices. Activate when the user asks to review code, check code quality, give feedback on code changes, or audit a file.
Analyze financial data including revenue, costs, profitability, margins, and business metrics. Activate when user asks about financial analysis, revenue review, cost breakdown, ROI calculation, or profitability assessment.