gh-commit-crawl is a gh CLI extension written in Go. It is a terminal
roguelike themed on Microsoft Build. Pure Go, no external services besides
the public https://github.com/<handle>.contribs JSON endpoint.
Read AGENTS.md for the full briefing. The notes below are
the high-leverage rules Copilot should always honor:
- Language: Go 1.26+. No JavaScript, Python, C, or shellouts in the hot
path. The single intentional shellout is
ghfor the--prflag. - Build/test/lint:
go build -o gh-commit-crawl ./cmd/commit-crawlgo test ./...go vet ./...gofmt -l .(must print nothing)
- Module path:
github.com/leereilly/commit-crawl. - Entrypoint:
cmd/commit-crawl/main.go. - Package boundaries:
internal/worldknows nothing about tcell;internal/contribgraphknows nothing about the game; UI packages importgameread-only. - Style: short godoc on exported symbols; paragraph comments above non-obvious blocks (explain why). Match the existing prose tone.
- Tests: table-driven where useful, deterministic seeds, no
time.Now()in fixtures. - No new dependencies without a strong reason. The standard library plus
tcellis the whole toolkit. - No secrets, ever. The
.contribsendpoint is anonymous. - Preserve easter eggs: Konami code, triple-tap
1–5warp, Clippy on floor 2, jesterj, Copilot blink, rick roll on the final ascent. - Determinism: anything driven by
--seedmust stay reproducible across runs and platforms.