Skip to content
Kitbay
Submit

developer-code-organization

MITUpdated on Nov 11, 20265,616GitHub stars

A long reference for people changing gh-aw's Go code.

What the skill teaches

A long reference for people changing gh-aw's Go code. It covers how files are organised, patterns to copy and ones to avoid, size limits for files, decision trees for when to create a new file, a worked example of breaking up a large file, conventions for helper files, stubs for WASM build variants, and rules for cleaning and normalising strings. It is specific to the layout of the gh-aw repository.

Capabilities

  • Decide where new Go code belongs in gh-aw
  • Split large Go files following project patterns
  • Write WASM build-variant stubs
  • Apply gh-aw's string normalisation rules