backend-models
构建可靠的后端模型
后端团队需要与数据库和 ORM 标准一致的模型定义。此技能会指导 AI 助手完成模型命名、关系、casts、验证、工厂和 seeders。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 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、软删除和 hidden 个人字段的 Customer 模型。
预期结果:
- 识别所需的 orders 关系及所有权方向。
- 推荐 hidden 个人字段和合适的 casts。
- 检查软删除设置及相关索引注意事项。
正在使用“backend-models”。 为订阅计费功能规划模型、factories 和 seeders。
预期结果:
- 列出核心实体及其关系类型。
- 描述可靠测试所需的 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 和软删除设置。
试试这些提示
使用 backend-models skill 为 [entity] 起草一个 Eloquent 模型,包含 fillable 字段 [fields] 和 timestamps。
使用 backend-models skill 更新 [model],添加与 [related models] 的关系、[fields] 的 casts,以及 [fields] 的 hidden 属性。
使用 backend-models skill 根据这些迁移详情审查 [model]:[summary]。检查约束、索引、验证和 scopes。
使用 backend-models skill 为 [feature] 设计模型。包括实体、关系、casts、验证规则、factories、seeders、索引和 observer 需求。
最佳实践
- 在请求模型变更前,提供表名、关键字段和关系基数。
- 在同一次模型审查中请求 casts、fillable 字段、hidden 属性和验证规则。
- 在实现前,根据迁移和数据库约束确认模型指导。
避免
- 不要要求此技能在没有项目上下文的情况下推断私有架构详情。
- 不要将模型指导视为迁移或数据库审查的替代品。
- 不要在未共享相关规则的情况下引用缺失的外部标准文件。