backend-models
建構可靠的後端模型
後端團隊需要與資料庫和 ORM 標準一致的模型定義。此技能會引導 AI 助理完成模型命名、關聯、轉型、驗證、工廠和種子資料。
使用我的智慧代理安裝
將此請求複製給你的智慧代理,其中包含權威 Skill 頁面和清單。
Review the Skillstore skill "backend-models" from https://skillstore.io/skills/devanb-backend-models.md and its manifest at https://skillstore.io/api/skills/devanb-backend-models/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智慧代理仍應顯示其計畫,並依安全政策請求必要確認。
Agent 可讀資源
當 AI Agent、爬蟲或腳本需要乾淨脈絡、而不是讀取完整頁面時,請使用這些連結。
測試它
正在使用「backend-models」。 檢閱包含 orders、soft deletes 和隱藏個人欄位的 Customer 模型。
預期結果:
- 識別所需的 orders 關聯及擁有權方向。
- 建議隱藏個人欄位和適當的 casts。
- 檢查 soft delete 設定和相關 index 考量。
正在使用「backend-models」。 為訂閱計費功能規劃 models、factories 和 seeders。
預期結果:
- 列出核心 entities 及其關聯類型。
- 描述可靠測試所需的 factory 資料。
- 在實作前指出驗證和約束檢查。
安全審計
安全The external command finding is a false positive caused by Markdown backticks around a path, with no command execution. The filesystem finding is confirmed because SKILL.md points agents to a parent-directory file outside the skill package using ../../../. No prompt injection, exfiltration intent, or other semantic abuse was found in SKILL.md.
能力複核項目 (1)
這些是真實的本機能力,對此技能而言可能是預期行為,因此需要複核,但不會按已確認的惡意行為計分。
風險因素
⚙️ 外部命令 (1)
📁 檔案系統存取 (1)
分享與引用此報告
分享版本化評估報告、中性徽章、嵌入卡片與引用。Skillstore 只報告證據,不判斷該 Skill 是否安全。
複製報告連結
https://skillstore.io/skills/devanb-backend-models/audits/11?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/devanb-backend-models?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/devanb-backend-models?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/devanb-backend-models/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/devanb-backend-models.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 引用
DevanB. (2026). backend-models security audit report (audit version 11) [Author version unspecified]. Skillstore. https://skillstore.io/skills/devanb-backend-models/audits/11BibTeX 引用
@techreport{devanb-devanb-backend-models-2026,
author = {DevanB},
title = {backend-models security audit report (audit version 11)},
institution = {Skillstore},
year = {2026},
number = {11},
url = {https://skillstore.io/skills/devanb-backend-models/audits/11},
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: "backend-models security audit report (audit version 11)"
version: "unspecified"
type: report
authors:
- name: "DevanB"
date-released: "2026-07-09"
url: "https://skillstore.io/skills/devanb-backend-models/audits/11"
identifiers:
- type: other
value: "skillstore:devanb-backend-models:audit:11"
description: "Skillstore immutable audit report identifier"
比較變體
2 個可安裝變體每位作者的技能都保留為獨立的可安裝項目。推薦變體依 Skillstore 證據排序。
為何此變體排名第一
Skillstore 評分
評分依據 證據置信度: 高你可以打造什麼
建立專案模型
草擬包含名稱、屬性、關聯、timestamps、casts 和驗證需求的模型定義。
準備測試資料
規劃符合模型屬性、關聯和資料庫約束的 factories 與 seeders。
檢閱模型一致性
檢查現有模型檔案的關聯準確性、fillable 欄位、hidden 屬性、scopes 和 soft delete 設定。
試試這些提示
使用 backend-models skill,為 [entity] 草擬一個包含 fillable 欄位 [fields] 和 timestamps 的 Eloquent 模型。
使用 backend-models skill,更新 [model],加入與 [related models] 的關聯、[fields] 的 casts,以及 [fields] 的 hidden 屬性。
使用 backend-models skill,根據這些 migration 詳細資訊檢閱 [model]:[summary]。檢查約束、indexes、驗證和 scopes。
使用 backend-models skill,為 [feature] 設計模型。包含 entities、relationships、casts、validation rules、factories、seeders、indexes 和 observer 需求。
最佳實務
- 在要求模型變更前,提供資料表名稱、關鍵欄位和關聯基數。
- 在同一次模型檢閱中要求 casts、fillable 欄位、hidden 屬性和 validation rules。
- 實作前,根據 migrations 和資料庫約束確認模型指引。
避免
- 不要要求此技能在沒有專案脈絡的情況下推斷私有 schema 詳細資訊。
- 不要將模型指引視為 migration 或資料庫檢閱的替代品。
- 不要在未分享相關規則的情況下引用缺失的外部標準檔案。