What problem does it solve?
hex-generate automates the end-to-end creation of a hexagonal adapter implementation within a codebase, streamlining how developers add new adapters while preserving architectural boundaries.
Core Features & Use Cases
- Resolve the target port from the adapter path and infer required interfaces.
- Scaffold and implement an adapter across language targets (typescript, go, rust) with accompanying unit tests and test-driven workflow.
- Validate architectural boundaries via hex analyze and compile gates, ensuring correctness before integration.
- Use case: a developer wants to add a new secondary/git-adapter, implement IGitPort and IWorktreePort, and verify code compiles and passes tests automatically.
Quick Start
Ask the assistant to generate an adapter by specifying the adapter path under src/adapters, the target port, language, test style, and max iterations.