Clean architecture
Skill kimtth/agent-skill-100-lines-or-less/skills/clean-architecture
Use when: structure an app so business logic is independent of frameworks, UI, and databases.From its SKILL.md
npx -y skills add kimtth/agent-skill-100-lines-or-less --skill clean-architectureAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.0 KB, 193 tokens by cl100k_base, as published. Nobody here has run it
Goal: a core domain that does not depend on delivery or infrastructure.
Use for:
- keeping business rules testable and framework-agnostic
- isolating database and UI choices from core logic
- structuring layers and their dependencies
Workflow:
- Put business rules in a core that imports nothing external.
- Define ports (interfaces) the core needs.
- Implement adapters for db, UI, and services at the edges.
- Point all dependencies inward, toward the core.
- Pass data across boundaries as plain structures.
- Test the core without frameworks or a database.
Layers:
- entities and use cases at the center
- interface adapters (controllers, presenters, gateways)
- frameworks and drivers at the outer edge
Rules:
- dependencies point inward only; core knows no framework
- depend on interfaces, inject implementations
- keep framework code out of use cases
- the domain must be testable in isolation
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.