projectx: Skill for Claude Code

.agents/skills/prisma/SKILL.md

prisma is a skill for Claude Code from proyecto26/projectx. It costs 31 tokens per session (1,269 once invoked), scanned A, original, MIT.

A guide for using Prisma, a tool that lets application code work with a PostgreSQL database, in the project's database package.

In plain words
What is it for?
Use it to edit schemas, generate the database client, create or apply migrations, seed data, open Prisma Studio, and build repository services.
Why use it?
It gives developers the project's locations, commands, and patterns for changing database structure and accessing data consistently.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is proyecto26/projectx's own configuration. It tells Claude Code how to work on projectx itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything projectx configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { PrismaService } from '../prisma.service';.

Reuse

Borrowing it

Nothing to install: this file belongs to proyecto26/projectx. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/proyecto26/projectx/develop/.agents/skills/prisma/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/proyecto26/projectx

Made for: Claude Code.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/proyecto26/projectx/prisma/github.svg)](https://agentmods.dev/skills/proyecto26/projectx/prisma)
Your own site
<a href="https://agentmods.dev/skills/proyecto26/projectx/prisma"><img src="https://agentmods.dev/badge/skills/proyecto26/projectx/prisma/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for prisma

Your own site · 80×15
<a href="https://agentmods.dev/skills/proyecto26/projectx/prisma"><img src="https://agentmods.dev/badge/skills/proyecto26/projectx/prisma.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,269 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.00031 $0.01269
Opus 5.5 $0.00012 $0.00508
Sonnet 5.5 $0.00006 $0.00254
Haiku 4.5 $0.00003 $0.00127

Measured 2mo ago against content hash f0b996e8b101, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

prisma 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 2mo 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.

.agents/skills/prisma/SKILL.md · 228 lines

How it starts

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

Prisma Database Operations

Database Package Location

The Prisma schema and client are in packages/db/.

Schema Location

packages/db/
├── prisma/
│   ├── schema.prisma    # Database schema
│   ├── migrations/      # Migration history
│   └── seed.ts          # Seed script
└── src/
    └── lib/
        ├── prisma.service.ts           # NestJS Prisma service
        └── [model]/                    # Repository services
            └── [model]-repository.service.ts

Common Commands

# Generate Prisma client after schema changes
pnpm prisma:generate

# Create and apply migration (development)
pnpm prisma:migrate:dev

# Apply migrations (production)
pnpm prisma:migrate

# Seed the database
pnpm prisma:seed

# Open Prisma Studio
pnpm --filter @projectx/db exec prisma studio

Schema Patterns

Basic Model

model Product {
  id          String   @id @default(cuid())
  name        String
  description String?
  price       Decimal  @db.Decimal(10, 2)
  createdAt   DateTime @default(now())
  updatedAt   DateTime @updatedAt

  // Relations
  categoryId  String
  category    Category @relation(fields: [categoryId], references: [id])
  orderItems  OrderItem[]

  @@index([categoryId])
  @@map("products")
}

PostGIS Geometry Support

model Location {
  id        String   @id @default(cuid())
  name      String
  // PostGIS geometry stored as Unsupported type
  point     Unsupported("geometry(Point, 4326)")

  @@map("locations")
}

Enums

enum OrderStatus {
  PENDING
  PROCESSING
  SHIPPED
  DELIVERED
  CANCELLED
}

Repository Pattern

Creating a Repository Service

// packages/db/src/lib/product/product-repository.service.ts
import { Injectable } from '@nestjs/common';
import { PrismaService } from '../prisma.service';
import { Prisma, Product } from '@prisma/client';

@Injectable()
export class ProductRepositoryService {
  constructor(private readonly prisma: PrismaService) {}

  async findAll(params?: {
    skip?: number;
    take?: number;
    cursor?: Prisma.ProductWhereUniqueInput;
    where?: Prisma.ProductWhereInput;
    orderBy?: Prisma.ProductOrderByWithRelationInput;
  }): Promise<Product[]> {
    return this.prisma.product.findMany(params);
  }

  async findById(id: string): Promise<Product | null> {
    return this.prisma.product.findUnique({
      where: { id },
      include: { category: true },
    });
  }

  async create(data: Prisma.ProductCreateInput): Promise<Product> {
    return this.prisma.product.create({ data });
  }

  async update(id: string, data: Prisma.ProductUpdateInput): Promise<Product> {
    return this.prisma.product.update({
      where: { id },
      data,
    });
  }

  async delete(id: string): Promise<Product> {
    return this.prisma.product.delete({ where: { id } });
  }
}

Read the full file on GitHub · 228 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. 2mo ago First seen · 228 lines · 31 tokens per session scan A f0b996e8b101

Subscribe to this mod's changes

prisma is a skill published in the GitHub repository proyecto26/projectx (83 stars, last pushed yesterday), licensed MIT. It adds 31 tokens to every session and 1,269 once invoked, about $0.0001 per session on Opus 5.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-30.

Related

prisma compared with skills from other repositories

prisma next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prismaproyecto26/projectxSkill83yesterdayMITA31Claude Code
obto-databaseobto-inc/platformSkill112d agoApache-2.0B176Claude Code, Codex
postgres-and-relational-data-modelingvaquarkhan/Fullstack-development-agent-skillsSkill32mo agoMITA30Claude Code
design-schemaevgenii-studitskikh/Claude-Code-SaaS-StudioSkill24mo agoMITA37Claude Code
alloydb-basicsgoogle/skillsSkill22kyesterdayApache-2.0A72Claude Code, Codex
postgresql-table-designwshobson/agentsSkill42kyesterdayMITA37Claude Code
db-repairgarrytan/gbrainSkill32kyesterdayMITA96Claude Code