/cstk-language-go:go-review-pr [base branch, default: main]from cstk-language-go
Diff-aware review of Go branch changes against project conventions. Checks compilation, tests, lint, and coding standards (English, snake_case, SQL schema prefix, route order, error patterns).
Ships in cstk-language-go. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Perform a diff-aware quality review of ALL changes in the current branch before opening a PR. This is the final quality gate — it checks everything that go-review-service checks, but scoped to the diff only.
$ARGUMENTS should specify:
main) — the branch to compare against# Get the base branch (default: main)
BASE=${1:-main}
# All changed files in this branch vs base
git diff --name-only $BASE...HEAD
# Full diff for context
git diff $BASE...HEAD
# Commits in this branch
git log --oneline $BASE..HEAD
Categorize changed files:
For each service with changed files, read the changed files and run these checks:
cd services/{service} && go build ./...
cd services/{service} && go test ./... -count=1 -timeout 60s
cd services/{service} && golangci-lint run ./... 2>&1 || true
For each changed Go file, verify:
json:"" tags use snake_casedb:"" tags use snake_case matching column names{schema}.{table} formatFROM members instead of FROM member.members)/:id routes/:id catch-allvar ErrXxxNotFound), no HTTP codeserrors.Is() dispatch, dto.ErrorResponse returnssql.ErrNoRows → nil, nilVerify no import cycles:
domain → (nothing)
dto → domain (if needed)
repository → domain
service → repository + domain
handler → service + dto + domain
factory → repository + postgres
FAIL if handler imports repository directly, or service imports handler, etc.
context.Context as first parameterVerify order: recover → requestid → nrfiber → logging → cors → [dryrun] → audit → endpoints
{NNN}_{descriptive_name}.up.sql / {NNN}_{descriptive_name}.down.sql{schema}.{table_name}DROP TABLE IF EXISTS ... CASCADE or appropriate reversal'0051522')LPAD if converting from integer sourcesIF NOT EXISTS for CREATE TABLE/INDEXDO $$ ... IF NOT EXISTS for enum typesapiClient (not raw fetch/axios/ky){ body: data } (not { json: data })transformResponse camelCase conversion accounted for in typesany types where a proper type could be usedfooKeys.all/lists/detail)PageHeader for page titles (not custom headers)ServerPagination for tables (not custom pagination)useConfirmDialog for destructive actions (not inline confirm)end: true to prevent highlight on child routessrc/config/navigation.tsgo-commons replace is expected)go mod tidy was run (no extra/missing deps)storage.Storage interface (not direct S3 calls){service}/{category}/{entityID}/{uuid}-{filename}.extUpload(ctx, key, reader, size, contentType) — NOT PutPresignedGetURL(ctx, key, expiry) — NOT GetPresignedURLAMQPPublisher + NoopPublisher (graceful degradation)ExchangeDeclarePassive for foreign exchanges (not ExchangeDeclare)nil for unrecognized event routing keys (not error)X-Internal-Key headerINTERNAL_API_KEY or SHARED_INTERNAL_API_KEY# PR Review: {branch-name}
Date: {date}
Base: {base-branch}
Changes: {N} files across {M} services
## Build & Test
| Service | Build | Tests | Lint |
|---------|-------|-------|------|
| gob-xxx-service | PASS | PASS (12/12) | PASS |
| gob-yyy-service | FAIL | - | - |
## Convention Checks
| # | Check | Status | Details |
|---|-------|--------|---------|
| A | Code in English | PASS | |
| B | JSON tags snake_case | FAIL | dto/member.go:45 — `firstName` should be `first_name` |
| C | Schema prefix | PASS | |
| ... | ... | ... | ... |
## Migration Checks
| # | Check | Status | Details |
|---|-------|--------|---------|
| 1 | Naming | PASS | |
| 2 | Rollback | WARNING | 015_add_column.down.sql missing |
| ... | ... | ... | ... |
## Summary
- **PASS**: X checks
- **FAIL**: Y checks (must fix before merge)
- **WARNING**: Z checks (review recommended)
## Required Actions
1. [List of things that MUST be fixed]
## Recommendations
1. [List of things that SHOULD be fixed]
file:line references for FAIL and WARNING resultsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub jotjunior/cstk --plugin cstk-language-go7 skills in this plugin
/commitCommit staged and unstaged changes with a well-crafted conventional commit message.
Handles submodule updates, multi-service changes, and follows project conventions.
Triggers: "/commit", "commit", "commitar", "fazer commit", "commit changes".
/go-add-consumerAdd a RabbitMQ event consumer to an existing GOB Go microservice/go-add-entityAdd a full CRUD vertical slice (domain, DTO, repository, service, handler, migration, factory wiring) to an existing GOB Go microservice/go-add-migrationCreate properly named PostgreSQL migration files for GOB microservices/go-add-testAdd unit/integration tests to a GOB Go microservice following established project patterns.
Triggers: "add test", "add tests", "criar teste", "novo teste", "test coverage", "testar",
"write tests for", "escrever testes para".
/go-review-serviceAudit a GOB Go microservice against all project conventions and patternsOther plugins' skills for the same job