About service-best-practice
Must follow when creating or refactoring the Service layer: based on the tRPC + Service + DAO architecture, ensure dependency injection, error handling, and business logic layering comply with the conventions.
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ forge-town/ skills --skill service-best-practiceAfter installing, type/service-best-practicein Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
best-practice-examples/userService.tsreferences/checklist.mdservice-best-practice-guide.mdDetails
From the project READMEService 最佳实践
使用说明
- 阅读 Service 最佳实践指南 了解完整规范与代码示例
- 完成后使用 检查清单 逐项验证
重要: Service 不得直接导入 db,必须通过 DAO 依赖注入;完成后强制对照检查清单
Comments
Markdown supported