prisma-client-api
建立更安全的 Prisma Client 查詢
Prisma Client 任務可能需要許多查詢選項、關聯模式與交易選擇。本參考資料可協助您選擇已記錄的 API,並更安全地使用原始 SQL。
自分のエージェントでインストール
このリクエストをエージェントにコピーしてください。正規の Skill ページとマニフェストが含まれています。
Review the Skillstore skill "prisma-client-api" from https://skillstore.io/skills/prisma-prisma-client-api.md and its manifest at https://skillstore.io/api/skills/prisma-prisma-client-api/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.エージェントは引き続き計画を提示し、セキュリティポリシーで必要な確認を求める必要があります。
エージェントが読めるリソース
AI エージェント、クローラー、スクリプトがページ全体ではなく整理されたコンテキストを必要とする場合は、これらのリンクを使ってください。
テストする
「prisma-client-api」を使用しています。 我需要近期已發布的貼文及每位作者的名稱。
期待される結果:
- 使用已發布篩選條件與依建立日期遞減排序的 findMany 查詢模式。
- 建議使用只傳回所需作者欄位的 include 或 select。
- 提醒限制結果大小,並為篩選與排序欄位建立索引。
「prisma-client-api」を使用しています。 我可以根據使用者選取的資料表名稱建立原始 SQL 查詢嗎?
期待される結果:
- 警告識別字無法像值一樣進行參數化。
- 指引您對支援的識別字使用固定的允許清單。
- 針對所有使用者提供的值採用參數化模式。
セキュリティ監査
中リスクAll 151 static findings are false positives caused by Markdown syntax, TypeScript templates, relative imports, environment configuration, SQL examples, and documentation links. No command execution, path traversal, environment-file reading, reconnaissance, unauthorized network behavior, or prompt injection was found. One medium concern remains because examples log raw query parameters without redaction and may expose sensitive data.
確認済みのセキュリティ上の懸念 (1)
リスク要因
⚙️ 外部コマンド (50)
📁 ファイルシステムへのアクセス (9)
🔑 環境変数 (25)
🌐 ネットワークアクセス (3)
このレポートを共有・引用
バージョン付き評価レポート、中立的なバッジ、埋め込みカード、引用を共有できます。Skillstore は証拠を報告しますが、この Skill が安全かどうかは判断しません。
レポートリンクをコピー
https://skillstore.io/skills/prisma-prisma-client-api/audits/6?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdownバッジ
[](https://skillstore.io/skills/prisma-prisma-client-api?utm_source=security_passport_badge)HTMLバッジ
<a href="https://skillstore.io/skills/prisma-prisma-client-api?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/prisma-prisma-client-api/security.svg" alt="Skillstore security assessment" loading="lazy"></a>埋め込みカード
<iframe src="https://skillstore.io/embed/skills/prisma-prisma-client-api.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形式の引用
prisma. (2026). prisma-client-api security audit report (audit version 6) [Author version 7.6.0]. Skillstore. https://skillstore.io/skills/prisma-prisma-client-api/audits/6BibTeX形式の引用
@techreport{prisma-prisma-prisma-client-api-2026,
author = {prisma},
title = {prisma-client-api security audit report (audit version 6)},
institution = {Skillstore},
year = {2026},
number = {6},
url = {https://skillstore.io/skills/prisma-prisma-client-api/audits/6},
note = {Author version 7.6.0}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "prisma-client-api security audit report (audit version 6)"
version: "7.6.0"
type: report
authors:
- name: "prisma"
date-released: "2026-07-23"
url: "https://skillstore.io/skills/prisma-prisma-client-api/audits/6"
identifiers:
- type: other
value: "skillstore:prisma-prisma-client-api:audit:6"
description: "Skillstore immutable audit report identifier"
Skillstore スコア
このスコアの理由 証拠の信頼度: 中作成できるもの
建立應用程式查詢
在實作 TypeScript 服務時,使用已記錄的 CRUD、篩選與查詢結構。
審查資料庫存取
在程式碼審查期間檢查選取欄位、關聯載入、分頁與交易選擇。
學習原始 SQL 防護措施
在新增資料庫特定查詢前,比較參數化 Prisma SQL 模式與不安全的串接方式。
これらのプロンプトを試す
顯示一個 Prisma Client 查詢,依電子郵件尋找單一使用者,且只選取 id、email 和 name。
協助我為活躍使用者撰寫 Prisma findMany 查詢,依建立日期排序,並使用游標分頁。
展示如何在一次 Prisma 操作中建立使用者與初始貼文。說明我必須調整的關聯欄位。
審查這個規劃中的 Prisma 原始 SQL 查詢。找出參數化需求,並建議更安全的標記範本方法。
ベストプラクティス
- 只選取呼叫端所需的欄位與關聯。
- 對於必須一同成功或失敗的相關寫入操作,使用交易。
- 對原始 SQL 值使用標記範本與參數。
回避
- 不要將使用者輸入串接到原始 SQL 字串中。
- 不要在應用程式日誌中暴露資料庫 URL 或查詢參數。
- 當聚焦的 select 已足夠時,不要使用廣泛的關聯 include。
よくある質問
這項技能涵蓋哪些內容?
它會執行資料庫命令嗎?
它可以為我的模型產生查詢嗎?
我何時應該使用原始 SQL?
它會自動防範 SQL 注入嗎?
哪些工具可以使用這項技能?
開発者情報
作成者
prismaライセンス
MIT
作者バージョン
v7.6.0
Skillstore リビジョン
r2
リポジトリ
https://github.com/prisma/skills/tree/1a9f427e9fe2137298abbcc1a6f372db92e8c40d/prisma-client-api参照
ebdfe608f5de2b66ff37ab4af12af8ac4f5e8006
メンテナンスの新しさ
2026/7/25
利用状況
0 ダウンロード · 0 閲覧
ファイル構成