knowledge-base
This file contains domain knowledge about the Cal.diy product and codebase. For coding…
After making changes to the Prisma schema in Cal.diy and creating migrations, you need to run:
$ npx -y skills add calcom/cal.diy --agent claude-codeHow it fires
How this agent gets triggered: by you, by Claude, or both.
Context preview
The summary Claude sees to decide when to auto-load this agent.
After making changes to the Prisma schema in Cal.diy and creating migrations, you need to run:
paths: - "packages/prisma/**" title: Prisma Schema and Migrations impact: HIGH impactDescription: Schema changes affect all downstream code and deployments tags: prisma, database, migrations, schema
After making changes to the Prisma schema in Cal.diy and creating migrations, you need to run:
yarn prisma generate
This updates the TypeScript types. This is especially important:
# Development migration npx prisma migrate dev --name migration_name # Production deployment yarn workspace @calcom/prisma db-deploy
When adding timestamp fields like `createdAt` and `updatedAt`:
Whenever you change the schema.prisma file, remember to always consolidate migrations by squashing them as declared in the [Prisma docs](https://www.prisma.io/docs/orm/prisma-migrate/workflows/squashing-migrations).
This helps maintain a clean migration history and prevents accumulation of multiple migration files.
If you encounter enum generator errors during the Prisma generate step (like "Cannot find module './enum-generator.ts'"), run `yarn install` first before trying to generate.
When implementing cache-related features that require timestamp tracking, always update the database schema first before modifying application code that references those fields.
Repo: calcom/cal.com
This file contains domain knowledge about the Cal.diy product and codebase. For coding…
The `packages/features` package should contain only framework-agnostic code: - Repositories…