prisma-workflow

prisma-workflow is a skill for Claude Code, Codex from desilokesh1/antigravity-fullstack-hq. It costs 39 tokens per session (573 once invoked), scanned A, original, MIT.

A workflow for using Prisma with PostgreSQL, covering database models, migrations, seed data, and query performance. Prisma is a code tool that maps application data to database tables.

In plain words
What is it for?
Use it to design Prisma models, create and deploy migrations, seed development data, select related records, and optimize PostgreSQL queries.
Why use it?
It provides a consistent way to change schemas, review generated SQL, and write queries that avoid unnecessary data and performance problems.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design Prisma models, create and deploy migrations, seed development data, select related records, and optimize PostgreSQL queries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/desilokesh1/antigravity-fullstack-hq/prisma-workflow
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add desilokesh1/antigravity-fullstack-hq --skill prisma-workflow
Clone the repo
git clone --depth 1 https://github.com/desilokesh1/antigravity-fullstack-hq

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for prisma-workflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/desilokesh1/antigravity-fullstack-hq/prisma-workflow.svg)](https://agentmods.dev/skills/desilokesh1/antigravity-fullstack-hq/prisma-workflow)
Your own site
<a href="https://agentmods.dev/skills/desilokesh1/antigravity-fullstack-hq/prisma-workflow"><img src="https://agentmods.dev/badge/skills/desilokesh1/antigravity-fullstack-hq/prisma-workflow.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 573 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.00573
Opus 5 $0.00019 $0.00287
Sonnet 5 $0.00008 $0.00115
Haiku 4.5 $0.00004 $0.00057

Measured 7d ago against content hash 7d121a88c831, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

prisma-workflow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/prisma-workflow/SKILL.md · 113 lines

How it starts

The opening of the file, as written. The whole thing — 113 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Prisma Workflow

Schema Design

model User {
  id        String   @id @default(cuid())
  email     String   @unique
  name      String?
  role      Role     @default(USER)
  posts     Post[]
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt

  @@index([email])
}

model Post {
  id        String   @id @default(cuid())
  title     String
  content   String?
  published Boolean  @default(false)
  author    User     @relation(fields: [authorId], references: [id], onDelete: Cascade)
  authorId  String

  @@index([authorId])
}

enum Role {
  USER
  ADMIN
}

Migration Workflow

  1. Edit schema.prisma
  2. npx prisma migrate dev --name descriptive_name
  3. Review generated SQL in prisma/migrations/
  4. Test on development
  5. npx prisma migrate deploy for production

Good Migration Names

npx prisma migrate dev --name add_user_role
npx prisma migrate dev --name create_posts_table
npx prisma migrate dev --name add_index_on_email

Query Patterns

Select Specific Fields

const user = await prisma.user.findUnique({
  where: { id },
  select: { id: true, email: true, name: true }
})

Include Relations

const user = await prisma.user.findUnique({
  where: { id },
  include: { posts: true }
})

Pagination

const users = await prisma.user.findMany({
  skip: (page - 1) * limit,
  take: limit,
  orderBy: { createdAt: 'desc' }
})

Transactions

await prisma.$transaction([
  prisma.user.update({ where: { id }, data: { balance: { decrement: 100 } } }),
  prisma.order.create({ data: { userId: id, amount: 100 } })
])

Performance Tips

  • Always index foreign keys
  • Use select to fetch only needed fields
  • Use take for large tables
  • Batch operations with createMany
  • Use transactions for related operations

Prisma Service (NestJS)

@Injectable()
export class PrismaService extends PrismaClient implements OnModuleInit {
  async onModuleInit() {
    await this.$connect()
  }
}

Read the full file on GitHub · 113 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 113 lines · 39 tokens per session scan A 7d121a88c831

Subscribe to this mod's changes

prisma-workflow is a skill published in the GitHub repository desilokesh1/antigravity-fullstack-hq (2 stars, last pushed yesterday), licensed MIT. It adds 39 tokens to every session and 573 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

azure-database-postgresql

Expert knowledge for Azure Database for PostgreSQL development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when using Flexible Server, replicas, PgBouncer, Query Store, Redis…

MicrosoftDocs/Agent-Skills · 133 tokens

azure-horizondb

Expert knowledge for Azure Horizondb development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when using azureai SQL/embeddings, pgvector tuning, Apache AGE graphs, hybrid…

MicrosoftDocs/Agent-Skills · 95 tokens

postgres-pro

Use when optimizing PostgreSQL queries, configuring replication, or implementing advanced database features. Invoke for EXPLAIN analysis, JSONB operations, extension usage, VACUUM tuning, performance monitoring.

zacklecon/claude-skills · 41 tokens

azure-resource-manager-postgresql-dotnet

Azure Resource Manager SDK for managing PostgreSQL Flexible Server deployments.

rootcastleco/rei-skills · 0 tokens

azure-postgres-ts

Connect to Azure Database for PostgreSQL Flexible Server using the pg (node-postgres) package with support for password and Microsoft Entra ID (passwordless) authentication.

rootcastleco/rei-skills · 0 tokens

postgresql-expert

Design, optimize, and administer PostgreSQL databases. Covers advanced indexing, partitioning, full-text search, JSON operations, replication, and performance tuning.

AtulPurohit/Antigravity-Awesome-Skills · 35 tokens