cocsi-mg/eevee/platform-api-conventions

Claude Code and agent skill by cocsi-mg/eevee

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

NestJS module/DTO/entity/migration conventions in platform-api. Use when adding an API endpoint, entity, DB migration, or module in platform-api, or running its Jest/e2e tests and seed script.

Install

npx vskill@latest install cocsi-mg/eevee/platform-api-conventions

SKILL.md

The same SKILL.md was published earlier as cocsi-mg/eevee/platform-api-conventions.

platform-api Conventions (NestJS)

platform-api/src/ is organized by feature module: assignment/, attempt/, class/, template/, user/, worker/, scheduling/, kubernetes/, bullmq/, auth/, ai-report/, etc. Each feature module follows the same internal layout:

  • entities/ — TypeORM entities (DB schema).
  • dto/ — validation classes using class-validator/class-transformer

decorators (@IsEnum(), @IsString(), @MinLength(), ...).

  • *.controller.ts — HTTP endpoints, documented with @ApiOperation() for

Swagger (served at /api locally).

  • *.service.ts — @Injectable() business logic.
  • *.module.ts — DI wiring.

Cross-cutting: ClsModule propagates request context (e.g. user id) across services via middleware. BullMQModule carries async messaging (scheduling jobs, AI report generation) over Redis — platform-domain consumers live in platform-api, Kubernetes-execution consumers live in assignment-runner.

Common modifications

New API endpoint:

  1. DTO in src/feature/dto/.
  2. Method on FeatureService.
  3. Route on FeatureController with @Post()/@Get() + @ApiOperation().

Database change:

  1. Edit the entity under src/*/entities/.
  2. npm run migration:generate -n DescriptiveNameForChange.
  3. npm run migration:run.

Testing & environment

bash
cd platform-api
npm run test # Jest unit tests
npm run test:e2e # e2e tests
npm run test:cov # coverage
npm run migration:run # apply TypeORM migrations
npm run seed # creates admin@example.com / admin123

Required .env vars: JWT_SECRET (generate via npm run script:generate-jwt-key), PG_* (default eevee_user:eevee_password@localhost:5432), REDIS_HOST/REDIS_PORT (default localhost:6379). Loaded globally via ConfigModule.forRoot().

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cocsi-mg/eevee/platform-api-conventions/badge)](https://verified-skill.com/skills/cocsi-mg/eevee/platform-api-conventions)

Something wrong with this skill or its page? Tell us.