Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Design and review maintainable Go CLI application boundaries, package layout, dependency direction, command factories, configuration ownership, adapters, services, storage, and composition roots. Use when starting a multi-command CLI, extracting business logic from Cobra, untangling globals, adding external dependencies, or deciding what belongs under cmd, internal, or reusable packages.
.claude/skills/hashgraph-online-go-cli-application-architecture/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-12 | ✗→✓ | ▲ Improved | -1% | 0% |
| case-14 | ✗→✓ | ▲ Improved | 15% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 12% | 0% |
| case-01 | ✓→✓ | = Same ✓ | -9% | 0% |
| case-03 | ✓→✓ | = Same ✓ | -9% | 0% |
Organize around dependency direction and testable behavior, not a copied folder template. Keep CLI framework code as an adapter around application services.
| Task | Load | |---|---| | Design or refactor boundaries | guidelines.md, workflows/design-application-boundaries.md | | Review ownership and cleanup | workflows/review-resource-lifecycle.md | | Decide package and interface placement | references/application-architecture/rules.md | | Review patterns and examples | references/application-architecture/examples.md | | Understand dependency direction | references/application-architecture/knowledge.md |
Run functions.init for dependency construction.init; use explicit composition.Guidance is transformed and paraphrased from Marian Montagnino, Building Modern CLI Applications in Go (Packt, 2023), especially Chapters 2-3, with original adaptations aligned to current Go conventions.
Concrete-first interfaces, dependency ownership, and adapter lifecycle guidance also incorporates transformed material from Inanc Gumus, Go by Example: Programmer's Guide to Idiomatic and Testable Programs (Manning, 2025), Chapters 5 and 8-10.
Initialization and lifecycle guidance also incorporates transformed material from Teiva Harsanyi, 100 Go Mistakes and How to Avoid Them (Manning, 2022), Chapters 2, 6, 7, and 10.
Other measured skills in the registry, with their headline benchmark lift.