iamp5/springboot-plugin/clean-architecture

Claude Code and agent skill by iamp5/springboot-plugin

Trust tier 3
  • community
Source check pending

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-architecture

SKILL.md

The same SKILL.md was published earlier as iamp5/springboot-plugin/clean-architecture.

Clean and hexagonal architecture rules

  1. Read project context, then the affected module's architecture documents. Repository documents and architecture tests override these rules (existing boundaries).
  2. Map the change to roles with role mapping. If .springboot-agent/project.json declares architecture.roles, use them; otherwise infer roles from package names and say so in the summary.
  3. 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.
  4. After editing, run node <plugin-root>/dist/cli.mjs boundaries --root <repo> when roles are configured, then finish through spring-verify.

Rule categories by priority

PriorityCategoryImpactPrefix
1Architecture boundariesCRITICALarch-
2Domain modelHIGHdomain-
3Use casesHIGHusecase-
4SOLID decisionsMEDIUMsolid-
5Design patternsMEDIUMpattern-
6Java 25 / Spring 7 idiomsMEDIUMmodern-
7Tests by roleMEDIUMtest-

Quick reference

TriggerRule
New import, field type, or signature in domain/application codePoint dependencies inward
New persistence, messaging, HTTP, clock, or ID dependency for the corePorts owned by the core
New use case, @Service in application code, or bean wiringWire in configuration
Controller, listener, repository, or client crossing a boundaryTranslate at the adapter
New exception type or error responseMap errors in one adapter
Saving several aggregates, events, or @Transactional on a use caseTransactions at the edge
New aggregate, constructor, or rehydration mappingCreation vs rehydration
Setters, mutable getters, or state checks outside the aggregateBehavior, not setters
Primitive IDs, money, or quantities in signaturesTyped values
Several inputs validated in one operationCollect errors, fail once
Status field, lifecycle, or transition logicSealed states
Notifying other aggregates, services, or brokersEvents through an outbox
New operation exposed to adaptersOne intent per use case
Business conditionals or calculations in a use caseOrchestration only
A class with rules from different stakeholdersSingle responsibility
New port implementation, fake, or UnsupportedOperationExceptionSubstitutable implementations
A port growing methods for one consumerRole-specific ports
Field injection, Instant.now(), getBean, or new collaboratorsExplicit dependencies
Branching on type, provider, or channelSealed switch or strategy
Flows across use cases, event fan-out, webhooksObserver and mediator
Validation before super(...) in entity constructorsFlexible constructors
Correlation, tenant, or caller context via ThreadLocalScoped context
Retries or concurrency limits on remote callsResilient adapters
@HttpExchange clients for external APIsHTTP service adapters
New or changed testsTest 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

  1. 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.
  2. During generation, prefer the repository's existing base types (AggregateRoot, UseCase, Notification, *Gateway) and naming over the examples here.
  3. During review, cite the rule ID, file and line, the concrete consequence, and evidence. A pattern match alone is not a defect. policy rules apply when the module has adopted the architecture; advisory rules 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/iamp5/springboot-plugin/clean-architecture/badge)](https://verified-skill.com/skills/iamp5/springboot-plugin/clean-architecture)

Something wrong with this skill or its page? Tell us.