prisma-expert
改善 Prisma 資料庫工作流程
Prisma 專案可能因 schema 漂移、查詢緩慢,以及不安全的 migration 工作流程而失敗。此技能會引導 Claude、Codex 和 Claude Code 進行 Prisma 專屬的診斷與修正。
使用我的智慧代理安裝
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "prisma-expert" from https://skillstore.io/skills/sickn33-prisma-expert.md and its manifest at https://skillstore.io/api/skills/sickn33-prisma-expert/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
Agent 可讀資源
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
測試它
正在使用「prisma-expert」。 使用者-貼文 schema 缺少關聯欄位,且依作者查找時速度緩慢。
預期結果:
- 關聯需要在子模型上明確指定 fields 和 references。
- 在作者查找使用的外鍵上新增索引。
- 建立 migration 前先執行驗證,並在發布前審查產生的 SQL。
正在使用「prisma-expert」。 列表頁載入使用者,然後在迴圈中擷取貼文。
預期結果:
- 這是 N+1 查詢模式,因為每位使用者都會觸發另一個資料庫呼叫。
- 使用關聯載入或目標明確的 select,只擷取必要的貼文欄位。
- 加入分頁以保護大型結果集。
正在使用「prisma-expert」。 無伺服器應用程式開啟過多資料庫連線。
預期結果:
- 在 warm executions 期間重複使用單一 Prisma Client。
- 針對部署環境設定連線限制。
- 當流量或並行數超過直接連線限制時,考慮使用 pooler。
安全審計
安全No malicious intent or prompt injection was found in SKILL.md. The static alerts are false positives caused by Markdown code fences, Prisma examples, official documentation links, and placeholder configuration snippets.
風險因素
⚙️ 外部命令 (36)
🌐 網路存取 (9)
📁 檔案系統存取 (5)
分享與引用此報告
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
複製報告連結
https://skillstore.io/skills/sickn33-prisma-expert/audits/5?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/sickn33-prisma-expert?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/sickn33-prisma-expert?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/sickn33-prisma-expert/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/sickn33-prisma-expert.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>學術引用 (APA · BibTeX · CFF)
APA 引用
sickn33. (2026). prisma-expert security audit report (audit version 5) [Author version unspecified]. Skillstore. https://skillstore.io/skills/sickn33-prisma-expert/audits/5BibTeX 引用
@techreport{sickn33-sickn33-prisma-expert-2026,
author = {sickn33},
title = {prisma-expert security audit report (audit version 5)},
institution = {Skillstore},
year = {2026},
number = {5},
url = {https://skillstore.io/skills/sickn33-prisma-expert/audits/5},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "prisma-expert security audit report (audit version 5)"
version: "unspecified"
type: report
authors:
- name: "sickn33"
date-released: "2026-07-07"
url: "https://skillstore.io/skills/sickn33-prisma-expert/audits/5"
identifiers:
- type: other
value: "skillstore:sickn33-prisma-expert:audit:5"
description: "Skillstore immutable audit report identifier"
Skillstore 評分
評分依據 證據置信度: 高你可以打造什麼
修正 Prisma schema 錯誤
在產生 migration 之前,診斷關聯標註、模型欄位、索引和命名問題。
審查 migration 安全性
在生產發布前檢查 migration 狀態、部署命令、rollback 規劃和資料遺失風險。
改善查詢效能
在 Prisma Client 使用方式中找出過度擷取、N+1 關聯載入、缺少分頁和缺少索引的問題。
試試這些提示
Review my Prisma schema for relation mistakes, missing indexes, and field type issues. Explain the highest priority fixes first.
Help me diagnose this Prisma migration failure. Review the schema changes, migration status, and safe next steps for development and production.
Review these Prisma Client queries for N+1 problems, over-fetching, missing select clauses, pagination gaps, and index recommendations.
Design a Prisma workflow for this feature, including schema changes, transactions, migration sequencing, connection management, and production safety checks.
最佳實務
- 在產生或套用 migrations 前,驗證並格式化 Prisma schema。
- 謹慎使用 select 和 include,讓查詢只擷取必要資料。
- 在生產部署前審查 migration SQL 和 rollback 計畫。
避免
- 不要在生產環境中使用開發用 migration 命令。
- 當少量欄位集已足夠時,不要擷取完整關聯圖。
- 當需要明確 join models 時,不要依賴隱式關聯。