Index of every page on this site: llms.txt
All skills
Run it yourself

Review everything the current Go feature branch introduces relative to its target branch (default main) for correctness, panics, error handling, concurrency, context and timeouts, transactions, idempotency, security, compatibility and test gaps. Read-only and advisory. Runs builds, tests or linters only after the user approves a validation plan. Writes a report in the shared release-evidence format that prod-deployment-planner consumes.

  • 5 files
  • 37.7 KB
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/katayunak/go-review-deploy-skills/go-code-review

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesvalidation-tiers.md

≈1.2k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Validation tiers

How to discover, propose, run and record checks. Nothing in tiers T1 to T4 runs before the user approves it at Gate A.

1. Find out what the repository uses

  • CI workflows: the exact go test invocation (flags, -tags, -race, environment variables, services: such as postgres) and lint steps.
  • Task-runner recipes: open each recipe and its dependencies, recursively. Propose a target only if every step it runs falls in T1 to T4. Example: check: fmt lint test, where fmt runs gofmt -w, must not be proposed. Propose the read-only equivalents one by one instead.
  • .golangci.*: config version, enabled linters, and whether auto-fix is turned on (fix: true). If it is, propose golangci-lint only with --fix=false and say why.
  • Build tags: //go:build integration or e2e in changed test files.
  • Test infrastructure: imports of testcontainers or dockertest, a TestMain that connects to a database or broker, and environment variables that tests read (DATABASE_URL and similar).
  • Go toolchain: compare the go and toolchain lines in go.mod with local_go. With the default GOTOOLCHAIN=auto, go commands run inside the module may download a newer toolchain. List that as a side effect.

2. Tiers

Tier Approval Commands
T0 not needed Read-only git commands, file reads, go version run outside the module with GOTOOLCHAIN=local (the facts script does this)
T1 static/compile required go vet ./<pkg>/... (type-checks packages and their tests); gofmt -l <changed .go files> (lists unformatted files, never -w); go mod tidy -diff (Go 1.23 or later only; prints the changes without writing); golangci-lint run --new-from-rev=<merge_base> ./... (only if installed and not auto-fixing)
T2 targeted tests required go test -count=1 -v ./<changed pkg>/..., optionally -run '<NewTests>', optionally -race (needs cgo, slower)
T3 broad required go test -count=1 ./..., go test -count=1 -race ./...
T4 needs infrastructure required, listed separately Integration build tags, testcontainers or Docker, databases, brokers, network. Never start Docker or a compose stack unless that exact command is an approved item.

Propose T1 and T2 before T3. Give each item a reason tied to the change, such as "covers the new retry path in worker.go".

3. Side effects to disclose for every item

  • Writes to the Go build and test cache (GOCACHE), outside the repository.
  • May download modules into GOMODCACHE (network) if they aren't cached. Since Go 1.16, -mod=readonly is the default, so go.mod and go.sum are not rewritten. A vendor/ folder means -mod=vendor.
  • May download a toolchain (GOTOOLCHAIN=auto).
  • Tests themselves may write files, call services named in environment variables, or update golden files when given flags such as -update. Never pass such flags.

4. Never run

go mod tidy (without -diff), go get, go generate, go fix, go install, go clean, gofmt -w, goimports -w, golangci-lint --fix, any task-runner target with a step that modifies files, docker compose up or down (unless approved as a T4 item), any git command that writes, and anything that touches a remote environment.

5. Running an approved item

The folder is evidence_dir from the facts script, outside the repository.

mkdir -p <evidence_dir>/logs
<approved command> > <evidence_dir>/logs/<n>.log 2>&1; echo "exit=$?"

Then read the summary lines and the end of the log:

grep -E -- '^(--- FAIL|--- SKIP|FAIL|ok |panic:|\?   )' <evidence_dir>/logs/<n>.log
tail -n 60 <evidence_dir>/logs/<n>.log

Give the Bash call a timeout that fits the tier. If it's hit, the result is timeout.

6. Labelling results

Result Meaning
pass Exit 0 and tests ran (ok lines).
no-tests Exit 0, but every package reported [no test files].
skipped Tests reported --- SKIP (visible with -v). Note which ones and why, if a reason is printed. Without -v, skips are invisible; say so.
fail --- FAIL or FAIL from test assertions.
build-error Compile errors, [build failed], [setup failed], or go vet errors.
infra-unavailable Failed because infrastructure was missing: connection refused, no such host, Docker daemon not running, missing credentials. Quote the line.
timeout panic: test timed out or the tool timeout was hit.
not-run Proposed but declined, not approved, or not reached.

Never report pass for a command that did not run, or for a run whose output you didn't read.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 7964f9c. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last month.

Steadyupdated last month
What it can do
Reads files Runs commands
argument-hint
[target-branch]
disable-model-invocation
true
All 20 allowed tools
ReadGrepGlobBash(git rev-parse:*)Bash(git symbolic-ref:*)Bash(git for-each-ref:*)Bash(git show-ref:*)Bash(git merge-base:*)Bash(git rev-list:*)Bash(git log:*)Bash(git diff:*)Bash(git show:*)Bash(git ls-files:*)Bash(git ls-tree:*)Bash(git grep:*)Bash(git cat-file:*)Bash(git describe:*)Bash(git remote get-url:*)Bash(git status:*)Bash(go version:*)

README badge

README badge for katayunak/go-review-deploy-skills/go-code-review