.claude/skills/add-prisma-model/SKILL.md
Add a new Prisma model to schema.prisma, push it to PostgreSQL, regenerate the client, and document it in the vault. Use when the user asks to "add a table", "create a model", or "add X to the database".
npx skillsauth add malhajri07/real-estate-CRM-project add-prisma-modelInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Add a new Prisma model. The schema is in data/schema/prisma/schema.prisma. Dev workflow uses prisma db push (no migration files) per ADR 005.
organizationId String + indexdata/schema/prisma/schema.prisma to find the right place to add the model (group by domain — CRM, Pipeline, Pool, etc.).id String @id @default(cuid())createdAt DateTime @default(now())updatedAt DateTime @updatedAtdeletedAt DateTime? (soft delete pattern)organizationId String + @@index([organizationId]) if multi-tenantagent users @relation(...) style with explicit @relation namecd data/schema && npx prisma db push && npx prisma generate
(Equivalent to running the /db-push skill.)Aqarkom_Knowledge/Architecture/Database Schema.md under the right domain block/add-feature or its sub-skill)prisma db push completes with no data loss warnings (or user explicitly accepts them)prisma generate completesnode_modules/.prisma/client/index.d.tsorganizationId indexed + included in any new route's whereprisma migrate dev — this project uses db push for dev (per ADR 005)organizationId — see [[Org Isolation]] in the vaultdeletedAt if the table will hold user data — soft delete is the project defaultenum types in Prisma without checking the existing convention (some are strings constrained at the zod layer instead)testing
Create and edit Obsidian Flavored Markdown with wikilinks, embeds, callouts, properties, and other Obsidian-specific syntax. Use when working with .md files in Obsidian, or when the user mentions wikilinks, callouts, frontmatter, tags, embeds, or Obsidian notes.
tools
Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more. Also supports plugin and theme development with commands to reload plugins, run JavaScript, capture errors, take screenshots, and inspect the DOM. Use when the user asks to interact with their Obsidian vault, manage notes, search vault content, perform vault operations from the command line, or develop and debug Obsidian plugins and themes.
data-ai
Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.
tools
Create and edit JSON Canvas files (.canvas) with nodes, edges, groups, and connections. Use when working with .canvas files, creating visual canvases, mind maps, flowcharts, or when the user mentions Canvas files in Obsidian.