What problem does it solve?
Go teams often struggle with tangled dependencies, bloated main packages, and inconsistent project structure. This Skill provides a principled blueprint to enforce SRP, DI, framework-less development, and strict file organization across Go projects.
Core Features & Use Cases
- Single Responsibility Principle (SRP): Each file (CSS, Go, JS) must have a single, well-defined purpose, with naming reflecting its role.
- Mandatory Dependency Injection (DI): No global state; interfaces for external dependencies; main.go minimal; promotes testable library code and easy DI.
- Framework-less Development: Use the standard library for Web development; avoid external frameworks or libraries.
- CSS-First Interactivity: UI interactivity implemented with CSS whenever possible; JavaScript only as a last resort.
- Strict File Structure: Flat project structure; max 500 lines per file; test organization guidance (move tests to tests/ if needed).
Quick Start
Integrate these principles into your current Go project by auditing modules for SRP, DI interfaces, and minimal main packages.