go-reference Template
When the user asks to Dockerize a Go project, add a Makefile, set up sqlc, or add CI, read lwlee2608/go-reference and refer to it as the canonical template. Do not write these files from scratch or from memory.
Arguments
The argument (e.g. "Add Dockerfile", "Set up sqlc") scopes the work — copy only the matching files, not the whole template. If no argument is given, ask which parts to scaffold.
Rules
Clone the live repo, never work from memory. Source of truth is
https://github.com/lwlee2608/go-reference(branchmain). Clone it once withgit clone --depth=1 https://github.com/lwlee2608/go-reference /tmp/go-reference-template, thenlsandReadfiles from there. This lets you see the full project layout (cmd/,internal/api,internal/db) — that structure is part of the template too, not just the individual files. The repo evolves; reproducing contents from memory causes drift.Adapt, don't blind-copy. The template hardcodes
go-referenceinDockerfile,Makefile(APP := go-reference), and thecmd/go-reference/path — replace with the target project's binary name. Otherwise keep the template's structure and conventions.