Agent skill
Create Backend Service
Use this skill when adding new backend functionality (API endpoints + business logic).
Install this agent skill to your Project
npx add-skill https://github.com/CheekyCodexConjurer/quant-lab/tree/main/skills/create_backend_service
SKILL.md
Create Backend Service
Use this skill to follow the route (controller) + service split used in server/src/.
Steps
- Create the service module
- Location:
server/src/services/{serviceName}.js - Use
template_service.jsfrom this folder. - Prefer small exported functions (keep them easy to test).
- Create the route module
- Location:
server/src/routes/{routeName}.js - Use
template_route.jsfrom this folder. - Validate inputs near the route (or use
server/src/contracts/httpSchemas.jswhen applicable).
- Mount the route
- Register it in
server/src/index.js:app.use('/api/your-scope', yourRouter);
Naming notes
- Prefer existing naming patterns:
- Routes:
dataRoutes.js,runRoutes.js,indicatorExecutionRoutes.js - Services:
marketWindowService.js,leanService.js,runStore.js
- Routes:
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
action_logger
Keep an audit trail of changes, commands, and verification.
size_guard
Enforce line budgets and rotate or split large context files.
analyze_repo_capabilities
Detect repo tooling and patterns, then record a dynamic manifest.
safety_validation
Validate changes against .agentignore before commit.
safe_refactor_migration
Plan and execute large refactors with shadow mode and rollback.
command_guard
Enforce .agentpolicy rules before executing commands.
Didn't find tool you were looking for?