スキル prisma-client-api
📦

prisma-client-api

v7.6.0 コンテンツリビジョン r2 中リスク ⚙️ 外部コマンド📁 ファイルシステムへのアクセス🔑 環境変数🌐 ネットワークアクセス

建立更安全的 Prisma Client 查詢

Prisma Client 任務可能需要許多查詢選項、關聯模式與交易選擇。本參考資料可協助您選擇已記錄的 API,並更安全地使用原始 SQL。

対応: Claude Codex Code(CC)
Maintain this Skill? Claim it 📊 70 十分

自分のエージェントでインストール

このリクエストをエージェントにコピーしてください。正規の 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.

9
スキャンされたファイル
2,155
解析済み行数
0
レビュー項目
0
誤検知を無視

確認済みのセキュリティ上の懸念 (1)

中
Unredacted Query Parameter Logging
Examples print raw query parameters to console without redaction guidance. Parameters may contain personal data or credentials and enter retained application logs.
Both examples directly log e.params from Prisma query events. Query parameters commonly contain user data, and neither example recommends redaction or development-only use.

リスク要因

⚙️ 外部コマンド (50)
📁 ファイルシステムへのアクセス (9)
🔑 環境変数 (25)
🌐 ネットワークアクセス (3)
監査者: codex 監査履歴を表示 →
このレポートを共有・引用

バージョン付き評価レポート、中立的なバッジ、埋め込みカード、引用を共有できます。Skillstore は証拠を報告しますが、この Skill が安全かどうかは判断しません。

バージョン別レポートを開く
セキュリティ評価

レポートリンクをコピー

https://skillstore.io/skills/prisma-prisma-client-api/audits/6?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdownバッジ

[![Skillstore security assessment](https://skillstore.io/badges/skills/prisma-prisma-client-api/security.svg)](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/6

BibTeX形式の引用

@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 スコア

このスコアの理由 証拠の信頼度: 中
45
アーキテクチャ
100
保守性
87
コンテンツ
65
コミュニティ
91
仕様準拠

作成できるもの

建立應用程式查詢

在實作 TypeScript 服務時,使用已記錄的 CRUD、篩選與查詢結構。

審查資料庫存取

在程式碼審查期間檢查選取欄位、關聯載入、分頁與交易選擇。

學習原始 SQL 防護措施

在新增資料庫特定查詢前,比較參數化 Prisma SQL 模式與不安全的串接方式。

これらのプロンプトを試す

依電子郵件尋找使用者
顯示一個 Prisma Client 查詢,依電子郵件尋找單一使用者,且只選取 id、email 和 name。
篩選及分頁記錄
協助我為活躍使用者撰寫 Prisma findMany 查詢,依建立日期排序,並使用游標分頁。
安全建立關聯記錄
展示如何在一次 Prisma 操作中建立使用者與初始貼文。說明我必須調整的關聯欄位。
審查原始 SQL 計畫
審查這個規劃中的 Prisma 原始 SQL 查詢。找出參數化需求,並建議更安全的標記範本方法。

ベストプラクティス

  • 只選取呼叫端所需的欄位與關聯。
  • 對於必須一同成功或失敗的相關寫入操作,使用交易。
  • 對原始 SQL 值使用標記範本與參數。

回避

  • 不要將使用者輸入串接到原始 SQL 字串中。
  • 不要在應用程式日誌中暴露資料庫 URL 或查詢參數。
  • 當聚焦的 select 已足夠時,不要使用廣泛的關聯 include。

よくある質問

這項技能涵蓋哪些內容?
它涵蓋 Prisma Client 設定、查詢、篩選、關聯、交易、方法與原始 SQL 安全性。
它會執行資料庫命令嗎?
否。它僅提供參考指引與範例。
它可以為我的模型產生查詢嗎?
會,它可以建議模式,但您必須依您的 schema 調整模型與欄位名稱。
我何時應該使用原始 SQL?
僅在 Prisma 查詢 API 不足時使用,並優先採用參數化的標記範本。
它會自動防範 SQL 注入嗎?
否。您必須將值參數化,並避免不受信任的動態識別字與字串串接。
哪些工具可以使用這項技能?
此套件宣告支援 Claude、Codex 與 Claude Code。

開発者情報

作成者

prisma

ライセンス

MIT

作者バージョン

v7.6.0

Skillstore リビジョン

r2

参照

ebdfe608f5de2b66ff37ab4af12af8ac4f5e8006

メンテナンスの新しさ

2026/7/25

利用状況

0 ダウンロード · 0 閲覧