What problem does it solve?
Contributors to the gh-aw Go codebase need consistent rules for where new code belongs, when to split large files, how to name helper files, and how to keep the WASM build compiling, and this Skill codifies those conventions.
Core Features & Use Cases
- File Organization Patterns: Enforces small, functionality-grouped files (100-500 lines) with decision trees for creating or splitting files, illustrated by the frontmatter.go refactoring case study.
- Helper File and Naming Conventions: Defines when to create helper files, what belongs in them, and which vague names (utils.go, misc.go) to avoid.
- String Processing and WASM Guidance: Distinguishes sanitize vs normalize functions and documents the
_wasm.go stub pattern required to keep GOOS=js GOARCH=wasm builds compiling.
- Use Case: When adding a new safe output type or AI engine to gh-aw, consult this Skill to decide whether to create
create_entity.go or engine_name_engine.go, and whether a WASM stub is required.
Quick Start
Ask the agent to review the gh-aw code organization guidelines before creating a new Go file in pkg/workflow.