Agent skill
backend-context-loader
Load the minimal Cookmate backend context fast. Use only for backend tasks to avoid repeated discovery: Prisma schema, domain modules, repositories, route patterns, shared route helpers.
Stars
163
Forks
31
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/backend-context-loader
SKILL.md
Context Loader (Cookmate backend)
Goal: cut token/time spent rediscovering the repo. Load these in order, skim only what’s needed.
Quick sequence
- Prisma model source:
apps/api/prisma/schema.prisma. - Domain modules:
packages/domain/src/**(check entity folders +index.tsexports). - Repositories:
apps/api/src/infra/db/repositories/**(map to models/domains). - Route patterns:
apps/api/src/interfaces/http/routes/collections/**(+collections/membersfor sub-entity prefixing). - Shared libs:
apps/api/src/shared/lib/route/**,apps/api/src/shared/utils/handle-error.ts,apps/api/src/shared/enums/http-status.enum.ts.
Fast commands (prefer to keep context small)
- List files quickly:
rg --files apps/api/src/interfaces/http/routes/collections - Search patterns:
rg "CollectionEntity" apps/api/src - Preview:
sed -n '1,160p' path
Notes
- Sub-entities: use
collections/membersas the reference for prefixes (/:parentId/...). - Stay concise: only open files relevant to the task; avoid full dumps.
Didn't find tool you were looking for?