/fff:hexagonal-architecturefrom fff
Defines hexagonal architecture layers (Domain, Application, Infrastructure) with the dependency rule, directory structure, and spec/test mapping. Useful for enforcing clean architecture in projects.
Ships in fff. 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.
None: SKILL.md is the whole skill.
Reference rulebook (L1+). Loaded as context by plan-chat, work-issue, and /audit --type architecture. Not invoked as a tool.
Three layers. Dependencies point inward. Nothing else.
Pure business logic. Zero external dependencies. No database, no HTTP, no framework, no I/O.
Contains:
User, Order).Password, EmailAddress, Money).Domain code is fully deterministic and testable in isolation.
Orchestration. Depends on domain. Defines ports.
Contains:
LoginUseCase, PlaceOrderUseCase).UserRepository, TokenService, EmailService).Application code depends on domain and port interfaces. It never depends on concrete infrastructure.
Adapters that implement ports using concrete technologies.
Contains:
PostgresUserRepository, RedisSessionStore.StripePaymentGateway, SendGridEmailService.Infrastructure depends on application (implements ports) and domain (uses domain types).
Domain ← Application ← Infrastructure
Domain knows nothing about application or infrastructure. Application knows nothing about infrastructure. Infrastructure depends on both. No exceptions.
Enforced by /audit --type architecture at L1+.
project-root/
├── src/
│ ├── domain/<context>/
│ ├── application/<context>/
│ └── infrastructure/<adapter-type>/
└── tests/
├── domain/<context>/
├── application/<context>/
└── infrastructure/<adapter-type>/
L2+ adds Gherkin specs:
specs/
└── <context>/
├── <feature>.feature # Acceptance specs
├── domain/<entity>.feature # Domain specs
└── application/<use-case>.feature # Application specs
Specs in specs/. Source in src/. Tests in tests/. No mixing.
| Layer | Spec type | What it specifies |
|---|---|---|
| Domain | Domain specs | Entity invariants, value object rules, service contracts |
| Application | Application specs | Use case orchestration, port interactions |
| Infrastructure | (none) | Adapters have no Gherkin specs |
| Cross-cutting | Acceptance specs | Stakeholder-visible end-to-end behavior |
| Layer | Spec tests (L2+) | Unit tests | What each covers |
|---|---|---|---|
| Domain | Yes | Yes | Spec tests: behavioral rules. Unit tests: branches, edge cases. |
| Application | Yes | Yes | Spec tests: orchestration flows. Unit tests: internal logic. |
| Acceptance | Yes | No | Spec tests only. Drive system through application ports. |
| Infrastructure | No | Yes | Unit/integration tests only. Real infra (testcontainers, etc.). No RIDs. |
Domain and application get both test types. Acceptance is spec-only. Infrastructure is unit-only.
@property-based at L2+ (Hypothesis / fast-check).| Level | Hex enforcement |
|---|---|
| L0 | Optional. Encouraged for projects expecting growth. |
| L1 | Recommended. Layer separation, no audit enforcement yet. |
| L2 | Required if architecture.style: hexagonal in config. /audit --type architecture runs. |
| L3 | Required. Full enforcement; violations are blocking. |
application/. Adapters in infrastructure/. Never co-locate.Money can be passed everywhere).PostgresConnection in User: forbidden).What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub zerotechdebt/ffflow --plugin fffOther plugins' skills for the same job
38 skills in this plugin
/adopt-ffflowEnd-to-end onboarding for a new FFFlow project. Runs init-ffflow, stack-init, then hands off to plan-roadmap to phase out the work (greenfield or brownfield — roadmap figures out the right per-phase entry point). Use `--ui` to adopt FFFlow's view-layer-purity structure (the frontend sibling of hexagonal) on an already-adopted project./auditRun the FFFlow keep-honest auditors against this project. Coordinator with per-type cartridges (CLAUDE.md freshness, spec drift, characterization tests, architecture conformance, complexity/refactor signals, and L3 RID traceability). Use --type to target one; --plan to convert findings into work./autopilotMeta-skill that wraps any interactive skill for unattended execution. Reads project context to stand in for the user on routine decisions, with a decision log.