iamp5/springboot-plugin/clean-architecture
Claude Code and agent skill by iamp5/springboot-plugin
- community
Checking that the SKILL.md file is still in the repository.
Design and review hexagonal or clean-architecture Java 25 / Spring Boot 4 modules - dependency direction, ports and adapters, use-case wiring, aggregates, value objects, Notification validation, sealed lifecycle states, domain events and outbox, transactions at the edge, SOLID decisions, strategy/observer/mediator patterns, scoped values, flexible constructors, Spring 7 resilience and HTTP service clients, and role-level tests. Use when a module declares architecture roles or its documents describe domain/application/infrastructure (or ports/adapters) layers.
Install
npx vskill@latest install iamp5/springboot-plugin/clean-architectureSKILL.md
The same SKILL.md was published earlier as iamp5/springboot-plugin/clean-architecture.
Clean and hexagonal architecture rules
- Read project context, then the affected module's architecture documents. Repository documents and architecture tests override these rules (existing boundaries).
- Map the change to roles with role mapping. If
.springboot-agent/project.jsondeclaresarchitecture.roles, use them; otherwise infer roles from package names and say so in the summary. - Select the rules whose trigger matches the task or diff, highest impact first. For a new feature, follow the vertical slice order: domain, port, use case, adapter, configuration, tests.
- After editing, run
node <plugin-root>/dist/cli.mjs boundaries --root <repo>when roles are configured, then finish throughspring-verify.
Rule categories by priority
| Priority | Category | Impact | Prefix | |
|---|---|---|---|---|
| 1 | Architecture boundaries | CRITICAL | arch- | |
| 2 | Domain model | HIGH | domain- | |
| 3 | Use cases | HIGH | usecase- | |
| 4 | SOLID decisions | MEDIUM | solid- | |
| 5 | Design patterns | MEDIUM | pattern- | |
| 6 | Java 25 / Spring 7 idioms | MEDIUM | modern- | |
| 7 | Tests by role | MEDIUM | test- |
Quick reference
| Trigger | Rule | |
|---|---|---|
| New import, field type, or signature in domain/application code | Point dependencies inward | |
| New persistence, messaging, HTTP, clock, or ID dependency for the core | Ports owned by the core | |
New use case, @Service in application code, or bean wiring | Wire in configuration | |
| Controller, listener, repository, or client crossing a boundary | Translate at the adapter | |
| New exception type or error response | Map errors in one adapter | |
Saving several aggregates, events, or @Transactional on a use case | Transactions at the edge | |
| New aggregate, constructor, or rehydration mapping | Creation vs rehydration | |
| Setters, mutable getters, or state checks outside the aggregate | Behavior, not setters | |
| Primitive IDs, money, or quantities in signatures | Typed values | |
| Several inputs validated in one operation | Collect errors, fail once | |
| Status field, lifecycle, or transition logic | Sealed states | |
| Notifying other aggregates, services, or brokers | Events through an outbox | |
| New operation exposed to adapters | One intent per use case | |
| Business conditionals or calculations in a use case | Orchestration only | |
| A class with rules from different stakeholders | Single responsibility | |
New port implementation, fake, or UnsupportedOperationException | Substitutable implementations | |
| A port growing methods for one consumer | Role-specific ports | |
Field injection, Instant.now(), getBean, or new collaborators | Explicit dependencies | |
| Branching on type, provider, or channel | Sealed switch or strategy | |
| Flows across use cases, event fan-out, webhooks | Observer and mediator | |
Validation before super(...) in entity constructors | Flexible constructors | |
Correlation, tenant, or caller context via ThreadLocal | Scoped context | |
| Retries or concurrency limits on remote calls | Resilient adapters | |
@HttpExchange clients for external APIs | HTTP service adapters | |
| New or changed tests | Test each role at its level |
Related rules owned by other skills: records, exhaustive switches, validation boundaries, purposeful abstraction, proxy transactions, null contracts.
Applying a rule
- Check its version bounds and exceptions against the module. Apply rules to new and changed code; do not restructure unrelated code without a task that asks for it.
- During generation, prefer the repository's existing base types (
AggregateRoot,UseCase,Notification,*Gateway) and naming over the examples here. - During review, cite the rule ID, file and line, the concrete consequence, and evidence. A pattern match alone is not a defect.
policyrules apply when the module has adopted the architecture;advisoryrules are design judgment.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/clean-architecture/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/iamp5/springboot-plugin/clean-architecture)