sdd4j-package-by-feature

Installation
SKILL.md

Skill: Package By Feature

Objective

Map a Java capability to one feature-owned package. This skill owns architecture layout only. Compose it with sdd4j for spec workflow and with a stack skill for framework idioms and verification.

Use this adapter only when the project accepts strict feature-package ownership: one SDD4J capability maps to one feature package, and contract-relevant code for that capability stays in or below that package unless AGENTS.md declares a shared or cross-cutting exception.

Architecture Invariants

  • The project or module has sdd4j-package-by-feature as its primary SDD4J architecture adapter.
  • One SDD4J capability maps to one Java feature package.
  • The feature package is the capability identity and the default ownership boundary.
  • The capability spec lives in that package's package-info.java.
  • Contract-relevant entrypoints, application operations, domain/model/entity types, and capability tests belong in the feature package, its subpackages, or a declared mirrored test package.
  • Shared packages are exceptional. They must be declared in AGENTS.md or treated as cross-cutting implementation outside the capability contract.
  • Do not mix this adapter with layered or BCE mapping inside the same capability.

Default Layout

Installs
18
GitHub Stars
14
First Seen
Sep 6, 2026