forge-town/skills

forge_dao-best-practice

Must follow when 创建或重构 DAO 文件,确保遵循 Drizzle ORM 最佳实践(文件结构、方法命名、类型安?

Installation

$ npx skills add forge-town/skills --skill forge_dao-best-practice

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from forge-town/skills · top by installs.

npx skills add forge-town/skills

Browse all from forge-town/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 7
License LICENSE
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 883 B
  • docs SUMMARY.md 180 B

History

  1. First recorded snapshot · 1 installs

SKILL.md

DAO规范化技能

使用说明

  1. 阅读 [DAO最佳实践指南](references/dao-best-practice.md) 了解规范
  2. 参考 [代码模板](references/template-dao.ts)
  3. 使用 [检查清单](references/checklist.md) 验证

⚠️ 强制后置步骤:Repository 评估

每次完成 DAO 写方法创建或修改后,强制评估:写操作是否涉及多张表?

  • 否(单表) → 流程结束;需要事务参与时新增显式 WithTx Operation,并使用 DatabaseTransaction 类型
  • 是(跨表)必须触发 forge_repository-best-practice 技能,为该写操作创建 Repository

此评估不可跳过