Prompt file imported from rechedev9/cliphub-typescript (
.codex/prompts/go-pr-ready.md). Copyright stays with the author.
Go PR-ready playbook for ClipHub
Follow AGENTS.md.
Prepare the current change for review. Do not commit unless explicitly asked.
Process:
- Run
git status --shortand inspectgit diff. - Identify whether the diff touches:
- generated media/data artifacts
- dependencies or
go.mod/go.sum - DB migrations/schema
- auth/security/filesystem/subprocess execution
- goroutines/channels/shared state
- public CLI/API contracts
- HLAE/CS2/FFmpeg behavior
- Format changed Go files. If the repo contains unrelated dirty work, format
only the files in scope with
scripts/go-format-changed.sh path/file.go .... - Run
scripts/go-gate.sh; usescripts/go-gate.sh --no-formatif you already formatted the in-scope files and must avoid touching unrelated work. - If concurrency/shared state changed, run
scripts/go-gate.sh --race. - If security/dependencies/subprocess/filesystem code changed, run
scripts/go-gate.sh --security. - Review the final diff using the standards in
AGENTS.md. - Summarize:
- files changed
- behavior changed
- tests added/changed
- commands run and results
- blocker/warning/nit findings
- remaining risk
Do not hide failing checks. If a check fails because of existing unrelated work, separate that clearly from issues introduced by this task.