Skip to content

feat(architecture): add Hexagonal (Ports & Adapters) reference + review checklist#5

Merged
phuthuycoding merged 1 commit into
masterfrom
docs/hexagonal-architecture
Jun 1, 2026
Merged

feat(architecture): add Hexagonal (Ports & Adapters) reference + review checklist#5
phuthuycoding merged 1 commit into
masterfrom
docs/hexagonal-architecture

Conversation

@phuthuycoding
Copy link
Copy Markdown
Owner

@phuthuycoding phuthuycoding commented Jun 1, 2026

Summary

Adds a dedicated Hexagonal Architecture (Ports & Adapters) reference and wires it into the review skills so the boundary is audited, not just documented.

1. The reference doc

assets/architecture/hexagonal-architecture.md — focused on the structural boundary (cross-links ddd-architecture.md instead of duplicating tactical DDD):

  • Driving/primary vs driven/secondary ports (comparison table)
  • Primary vs secondary adapters and where each lives in the repo
  • Hexagon → domain/ application/ infrastructure/ folder mapping
  • Dependency direction, hard rules HX1–HX8, anti-patterns
  • "Relationship to the other docs" table

2. Review-skill coverage

  • /review:architect — loads hexagonal-architecture.md in Phase 1; new 11th manual area "HX — Hexagonal Boundary" (HX1–HX8): dependency direction, port ownership, thin adapters, leaky-port detection; HX row added to the report table; triggers on "review hexagonal" / "ports and adapters review".
  • /review:branch — new "3.4 Hexagonal boundary" mini-check for changed domain/adapter files.
  • /review:pr — hexagonal-boundary bullet in 3.1; deep audits routed to /review:architect.

3. Wiring

  • README + CLAUDE.md architecture tables: 8 → 9 references
  • bootstrap.md Step 2: hexagonal added for backend stacks (Go, Laravel)
  • CLAUDE.md /review:architect trigger phrases synced

No code change — the installer reads architecture/ dynamically, so the doc ships to all editors automatically.

Note: README/CLAUDE/bootstrap still reference clean-architecture.md while the actual file is ddd-architecture.md — pre-existing naming drift, left untouched to keep this PR focused.

🤖 Generated with Claude Code

Add assets/architecture/hexagonal-architecture.md as a focused Ports &
Adapters reference: driving/driven ports, primary/secondary adapters, the
dependency direction, folder mapping, hard rules and anti-patterns. It
cross-links ddd-architecture.md (which fills the core) rather than
duplicating the tactical DDD building blocks.

Wire it in:
- README + CLAUDE.md architecture tables (8 → 9 references)
- bootstrap Step 2 mapping for backend stacks (Go, Laravel)

No code change needed — the installer reads architecture/ dynamically, so
the new doc ships to all editors automatically.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@phuthuycoding phuthuycoding merged commit 9975701 into master Jun 1, 2026
3 checks passed
@phuthuycoding phuthuycoding changed the title docs(architecture): add Hexagonal (Ports & Adapters) reference feat(architecture): add Hexagonal (Ports & Adapters) reference + review checklist Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant