From code-taste-python
Review and structure Python backend code against the layered-architecture playbook in ./docs/architecture/. Use when asked to review architecture, structure a new feature, check whether code follows the patterns (Domain/Repository/Service/Adapter/UoW), or audit what's missing in code quality / tooling / tests / observability.
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-taste-python:code-taste-pythonThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Code-structure review and guidance, grounded in the architecture playbook at `./docs/architecture/` (sibling to this file).
docs/architecture/README.mddocs/architecture/adapter.mddocs/architecture/domain.mddocs/architecture/images/runtime-flow.pngdocs/architecture/instrumentation.mddocs/architecture/logging.mddocs/architecture/performance.mddocs/architecture/project-structure.mddocs/architecture/repository.mddocs/architecture/service.mddocs/architecture/testing.mddocs/architecture/unit-of-work.mddocs/plan.mdCode-structure review and guidance, grounded in the architecture playbook at ./docs/architecture/ (sibling to this file).
The docs define the vocabulary. Don't re-explain concepts they cover — link to the file or quote the relevant part.
The full doc set is at ./docs/architecture/:
| File | Use when… |
|---|---|
README.md | Need the overview / dependency rule / vocabulary cheat-sheet |
domain.md | Reviewing entities, business rules, anemic-vs-rich questions |
repository.md | Reviewing data access, swap-cases, fakes for tests |
service.md | Reviewing use-case orchestration; "rules in service" smells |
adapter.md | Any external system seam (auth, LLM, payment, email, file storage) |
unit-of-work.md | Multi-repo writes, transaction boundaries, atomicity |
project-structure.md | New project setup, directory layout, dependency-rule enforcement |
testing.md | Test pyramid, doubles vs mocks, what to test where |
performance.md | Profiling vs tracing vs load testing, prod failure modes |
logging.md | Structured logging, log levels, what to log where |
instrumentation.md | Metrics, traces, observability seams |
Don't load all of them. Load the 1–3 that match the task. For a service review: Domain + Service + UoW. For new project setup: Project Structure + Testing. For "what am I missing?": README (vocab/dep rule) + the doc closest to the gap.
"Review this code":
"Structure this new feature":
project-structure.md"What am I missing?":
These are the durable principles behind the playbook:
Default to this shape, kept tight:
Match length to task. A simple "is this right?" gets a 5-line answer. A full code review gets the structured format above.
Memorize this without reading the docs:
domain ← imports nothing external
ports ← imports domain only
adapters ← imports domain, ports, external SDKs
services ← imports domain, ports
entrypoints ← imports services, schemas
bootstrap ← imports everything (the wiring)
Arrows point inward. A grep for forbidden imports is enough to enforce. If domain/ imports from adapters/, the architecture is broken.
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub rakeshbhugra/code-taste-python --plugin code-taste-python