Claude Code Plugins

Community-maintained marketplace

Feedback

Create Backend Service

@CheekyCodexConjurer/quant-lab
0
0

Use this skill when adding new backend functionality (API endpoints + business logic).

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name Create Backend Service
description Use this skill when adding new backend functionality (API endpoints + business logic).

Create Backend Service

Use this skill to follow the route (controller) + service split used in server/src/.

Steps

  1. Create the service module
  • Location: server/src/services/{serviceName}.js
  • Use template_service.js from this folder.
  • Prefer small exported functions (keep them easy to test).
  1. Create the route module
  • Location: server/src/routes/{routeName}.js
  • Use template_route.js from this folder.
  • Validate inputs near the route (or use server/src/contracts/httpSchemas.js when applicable).
  1. 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