スキル一覧に戻る
HenryXV

prisma-workflow

by HenryXV

1🍴 0📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: prisma-workflow description: Strictly enforces Prisma 7 + Next.js App Router protocols. Manages the lifecycle from initialization to deployment. Use for all database tasks.

Prisma Workflow (v7 Protocol)

Purpose

To execute a zero-tolerance, type-safe integration of Prisma 7 with Next.js, strictly adhering to the "Prisma Postgres" adapter pattern.

Critical Directives

You are strictly forbidden from guessing configuration. You must consult the reference files for every step.

  1. Version 7 Only: If you generate provider = "prisma-client-js", you have failed.
  2. No Hallucinations: Do not invent DATABASE_URL values.
  3. Interactive Init: You cannot run npx prisma init yourself. You must guide the user.

Workflow Phases

Phase 1: Bootstrap & Configuration

Reference: references/setup-protocol.md

  • Action: Guide user through the interactive npx prisma init --db.
  • Constraint: Wait for user confirmation. Do not proceed until .env exists.
  • Verification: Check prisma.config.ts for dotenv/config and Ensure schema.prisma has NO url in the datasource.

Phase 2: Architecture & Schema

Reference: references/v7-guardrails.md

  • Action: Define models in schema.prisma.
  • Constraint: Use output = "../app/generated/prisma" (Custom Output).
  • Constraint: Use postgres:// (TCP) schema, never prisma+postgres:// (HTTP).

Phase 3: System Implementation

Reference: references/implementation-patterns.md

  • Action: Create the Global Singleton at lib/prisma.ts.
  • Constraint: Must use @prisma/adapter-pg.
  • Constraint: Imports must end in /client.

Phase 4: Verification

Reference: references/verification-suite.md

  • Action: Create scripts/test-database.ts.
  • Action: Add db:test and db:studio to package.json.
  • Constraint: Never mark a task complete until npm run db:test passes.

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です