AGENT SKILL
python-service-structure
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-05-26
- Stars
- ★ 0
- Forks
- 0
02 资源文件 6
- 参考文档eval/cases/governance-smoke/expected_result.json764 B
- 参考文档eval/cases/governance-smoke/README.md453 B
- 参考文档examples/governance-example.md263 B
- 参考文档prompts/governance-prompt.md490 B
- 参考文档README.md101 B
- 参考文档skill.contract.yaml448 B
03 SKILL.md 正文
Python Service Structure
Purpose
Define routers, services, repositories, adapters, domain models, and schemas for a Python service repository.
Use when
- starting a new Python service
- separating API transport from service orchestration
- reorganizing a service layer that has grown too flat
Do NOT use when
- the task is only a one-line route tweak
- the task is only a data model rename
Inputs required
- API surface
- service responsibilities
- persistence boundaries
- adapter boundaries
Outputs expected
- folder tree
- boundary map
- ownership notes
Workflow
- List routers, services, repositories, adapters, domain, and schema responsibilities.
- Place the smallest boundary around each responsibility.
- Keep business logic out of routers.
- Keep external providers behind adapters.
- Verify the tree against the intended boundaries.
Validation checklist
- [ ] Routers are thin
- [ ] Services own orchestration
- [ ] Repositories own persistence access
- [ ] Adapters isolate external providers
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