/agentic:agentic-clean-architecturefrom agentic
Use when writing or modifying backend code that has business logic — services, domain models, use cases, APIs with validation/calculations/state transitions. Default for any non-trivial backend work.
Ships in agentic. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Business logic stays pure, infrastructure stays outside.
All three patterns (Clean, Hexagonal, Onion) share one rule: dependencies point inward. Domain knows nothing about HTTP, databases, or frameworks.
Default: ON for any backend code with business logic.
digraph when_to_use {
"Backend code?" [shape=diamond];
"Skip" [shape=box];
"Has business logic?" [shape=diamond];
"Use clean architecture" [shape=box];
"Keep it simple" [shape=box];
"Backend code?" -> "Skip" [label="no (scripts, frontend-only)"];
"Backend code?" -> "Has business logic?" [label="yes"];
"Has business logic?" -> "Use clean architecture" [label="yes (default)"];
"Has business logic?" -> "Keep it simple" [label="no, pure CRUD"];
}
Use when (any of these):
Skip when:
| Priority | Category | Rules |
|---|---|---|
| CRITICAL | Core Concepts | core-concepts.md |
| CRITICAL | Ports and Adapters | ports-and-adapters.md |
| CRITICAL | Domain Model | domain-model.md |
| HIGH | Use Cases | use-cases.md |
| HIGH | Dependency Injection | dependency-injection.md |
| MEDIUM | Testing Strategy | testing-strategy.md |
| MEDIUM | Common Mistakes | common-mistakes.md |
| Smell | Problem | Fix |
|---|---|---|
import { Repository } from 'typeorm' in domain | ORM in domain | Define own interface |
| Business rule in controller | Logic in wrong layer | Move to domain entity/service |
if (dto.type === 'X') in use case | Business logic leaked | Move to domain |
| Entity is just data + getters | Anemic domain model | Add behavior methods |
| 10 interfaces for CRUD endpoint | Over-engineering | Simplify, add abstraction when needed |
| Can't test rule without DB | Coupled domain | Extract pure function/method |
Before committing code with business logic:
Rules are in the rules/ folder. Each follows rules/_template.md format.
When designing or refactoring services, check rules by priority (CRITICAL first). Apply all applicable rules.
rules/_sections.md (opens in a new tab)rules/_template.md (opens in a new tab)rules/common-mistakes.md (opens in a new tab)rules/core-concepts.md (opens in a new tab)rules/dependency-injection.md (opens in a new tab)rules/domain-model.md (opens in a new tab)rules/ports-and-adapters.md (opens in a new tab)rules/testing-strategy.md (opens in a new tab)rules/use-cases.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub johannwilfridcalixte/agent-skills --plugin agentic40 skills in this plugin
/agentic-babysit-prGet a work item's PR merge-ready and watch it until it merges: push, open or reuse the PR, fix CI and comments in a loop. Use to open a PR, get it green, handle feedback, or watch it to merge./agentic-change-featureChange an existing feature's behaviour, from request to merged PR; `light` for a small change./agentic-cleanupClean up after a merged PR. Removes the work item's worktree and branches, updates the default branch, archives the work-item folder. Use when a PR has merged, or with --all to sweep stale worktrees and branches./agentic-code-testingTesting rules (layers, test doubles, flakiness, naming, coverage). Use when writing or reviewing tests, or fixing a flaky one./agentic-configureSet up agentic: write the config (models per step, reviewers, folders, profiles, limits)./agentic-debugFix a bug end to end (diagnose the root cause, regression test first, implement, review, babysit PR, cleanup).