Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计未展示

prisma-workflowPrisma 工作流

Agent Skill

用于辅助数据库表结构、查询语句、迁移脚本和数据维护任务。它适合让 Agent 分析 schema、编写 SQL、排查查询问题、整理索引或生成迁移建议。使用时需要明确数据库类型、连接环境和目标表,区分只读分析与写入变更;涉及删除、更新、迁移和批量导入时,应优先 dry-run、备份或事务保护,避免误操作。

总安装

564

周安装

24

GitHub Stars

公开资料未说明

下载量

198
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:prisma-workflow(Prisma 工作流)
来源仓库:https://github.com/henryxv/study-platform
仓库路径:skills/prisma-workflow
安装命令:
npx skills add henryxv/study-platform --skill "prisma-workflow"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add henryxv/study-platform --skill "prisma-workflow"

简介

prisma-workflow 协助构建基于 Prisma 的数据操作流程与自动化脚本模板。

  • 适用于 CI/CD 集成、批量数据处理或定时任务编排支持。
  • 通过 GitHub 仓库安装,支持自定义输入参数以适应不同项目结构。
  • 涉及写入操作时应启用事务保护,防止部分失败导致数据不一致。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

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.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

27.23%
按下载量换算54

Gemini CLI

21.5%
按下载量换算43

Antigravity

18.31%
按下载量换算36

windsurf

12.74%
按下载量换算25

trae

6.9%
按下载量换算14

Codex

3.33%
按下载量换算7

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills