dao-best-practices

此技能帮助规范化DAO文件,使其符合项目的最佳实践。

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "dao-best-practices" with this command: npx skills add forge-town/skills/forge-town-skills-dao-best-practices

DAO规范化技能

此技能帮助规范化DAO文件,使其符合项目的最佳实践。

使用说明

识别需要规范化的DAO文件,通常位于 apps/web/src/db/models/daos/ 。

阅读参考指南:DAO最佳实践指南 以了解规范。

代码示例:DAO代码参考 作为参考

使用脚本检查文件:检查DAO脚本 (如果可用)。

重构文件以匹配指南中的模式。

核心规范

  • 文件结构:文件名与表名一致,导出为对象。

  • 方法:使用驼峰命名,标准CRUD方法。

  • 类型安全:使用Drizzle类型推断。

  • 性能:使用分页、联表查询等。

如果需要更多细节,请阅读参考文件。

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

page-best-practice

No summary provided by upstream source.

Repository SourceNeeds Review
General

svg-icon-best-practice

No summary provided by upstream source.

Repository SourceNeeds Review
General

store-best-practice

No summary provided by upstream source.

Repository SourceNeeds Review
General

service-best-practice

No summary provided by upstream source.

Repository SourceNeeds Review