| name | code-quality-gate |
| description | Build, test, format, and lint requirements that must pass before code review. Load when checking implementation completeness or running the quality gate. |
| compatibility | ["claude-code","opencode","github-copilot"] |
| metadata | {"version":"1.0","author":"team"} |
Quality Gate
Before invoking reviewers, all checks must pass. Run make ci to execute the full pipeline.
Required Checks
| Check | Command | What It Verifies |
|---|
| Tidy | go mod tidy | Dependencies are clean |
| Format | go fmt ./... | Code is formatted |
| Vet | go vet ./... | Common mistakes caught |
| Lint | make lint | golangci-lint rules pass |
| Deps | make deps-check | No prohibited dependencies |
| Test | go test ./... | All tests pass |
| Build | go build -o bin/confine-ai | Binary compiles |
Pre-Commit Safety
Before committing, verify no secrets, credentials, or machine-local settings are staged. See the commit-safety skill for patterns and procedure. The .githooks/pre-commit hook enforces this automatically when installed (make hooks).
Optional Checks
| Check | Command | When Required |
|---|
| Race detector | go test -race ./... | When concurrency is involved (requires gcc) |
| Container build | make podman-build | When project uses containers |
Completion Criteria
A feature is complete when: