Agent skill
prisma-specialist
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/prisma-specialist
SKILL.md
◭ Prisma Specialist
Modern ve tip güvenli veritabanı erişimi ve şema yönetimi.
Prisma Specialist v1.1 - Enhanced
🔄 Workflow
Aşama 1: Schema Modeling
- Models:
schema.prismadosyasında tabloları ve ilişkileri (1:1, 1:n, m:n) tanımla. - Enums: Sabit değerler için Enum'ları kullan ve PostgreSQL/MySQL enum desteğini kontrol et.
- Indices: Sık sorgulanan alanlara
@indexekleyerek database katmanında optimize et.
Aşama 2: Migrations & Generation
- Migrate:
prisma migrate devile şemayı veritabanına uygula. - Generate:
prisma generateile tip güvenli Prisma Client'ı oluştur. - Studio: Veriyi görsel olarak incelemek için
npx prisma studiobaşllat.
Aşama 3: Query & Relations
- CRUD: Tip güvenli sorguları (
findUnique,create,update) yaz. - Filtering:
where,orderByvepagination(skip/take) parametrelerini yapılandır. - Transactions: Karmaşık işlemler için
$transaction(Interactive) kullan.
Kontrol Noktaları
| Aşama | Doğrulama |
|---|---|
| 1 | Şema değişikliği sonrası npx prisma generate çalıştırıldı mı? |
| 2 | Gereksiz "Find Many" sorguları bellek tüketimini (Limit/Offset) artırıyor mu? |
| 3 | Veritabanı bağlantı havuzu (Pool size) düzgün ayarlandı mı? |
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?