AGENT SKILL
node-service-structure
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-05-26
- Stars
- ★ 0
- Forks
- 0
02 资源文件 6
- 参考文档eval/cases/governance-smoke/expected_result.json759 B
- 参考文档eval/cases/governance-smoke/README.md429 B
- 参考文档examples/governance-example.md276 B
- 参考文档prompts/governance-prompt.md478 B
- 参考文档README.md99 B
- 参考文档skill.contract.yaml442 B
03 SKILL.md 正文
Node Service Structure
Purpose
Define transport, service, repository, and adapter boundaries for a Node backend or job processor.
Use when
- starting a new Node backend
- reorganizing a service layer that has grown too flat
- separating API transport from business orchestration
Do NOT use when
- the task is only route copy or a single handler tweak
- the task is only database migration authoring
Inputs required
- API surface
- service responsibilities
- persistence boundaries
- adapter boundaries
Outputs expected
- folder tree
- boundary map
- ownership notes
Workflow
- List transport, service, repository, and adapter responsibilities.
- Place the smallest boundary around each responsibility.
- Keep business logic out of route handlers.
- Keep external providers behind adapters.
- Verify the tree against the intended boundaries.
Validation checklist
- [ ] Transport is thin
- [ ] Business logic stays in services or domain code
- [ ] Persistence access stays behind repositories
- [ ] External providers stay behind adapters
References
../../prompts/new_feature.md../../prompts/new_project.md
Karpathy governance
- Contract:
skill.contract.yaml - Eval case:
eval/cases/governance-smoke/README.md - Expected result:
eval/cases/governance-smoke/expected_result.json - Example:
examples/governance-example.md - Prompt:
prompts/governance-prompt.md
04 同仓库更多 Skills
toolkit-i18n-operator
Use the toolkit-i18n CLI for repeated Flutter localization workflows with compact outputs, CSV validation, key coverage reporting, generated JSON exports, and safe non-mutating behavior.
★ 0
toolkit-design-operator
Use the toolkit-design CLI for repeated repository workflows.
★ 0
toolkit-ci-operator
Use the toolkit-ci CLI for repeated repository workflows.
★ 0
toolkit-arch-operator
Use the toolkit-arch CLI for repeated repository workflows, including Flutter i18n usage scans, layer checks, and localization coverage.
★ 0
web-testing
暂无简介
★ 0
web-state
暂无简介
★ 0