mcpField
S
service-best-practice

service-best-practice

github.com/forge-townDevelopment738 installsUpdated 8w ago
Repository

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-practice

After 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.ts
references/
checklist.md
service-best-practice-guide.md

Details

From the project README

Service 最佳实践

使用说明

  1. 阅读 Service 最佳实践指南 了解完整规范与代码示例
  2. 完成后使用 检查清单 逐项验证

重要: Service 不得直接导入 db,必须通过 DAO 依赖注入;完成后强制对照检查清单

Comments

Markdown supported