slack-auth-1770277653/.claude/commands/fix-quality.md
jordan 0a1a1e4b3d
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/manual/woodpecker Pipeline was successful
Initialize project from skeleton template
2026-02-05 07:47:34 +00:00

1.4 KiB

description: Fix failing quality gate checks - lint, test, build, format argument-hint: <optional: specific check to fix, e.g., "lint" or "test"> allowed-tools: Task, Read, Write, Edit, Glob, Grep, Bash

Fix quality gate failures: $ARGUMENTS

Instructions

1. Run All Checks

# Go
gofmt -l .
go vet ./...
golangci-lint run ./... 2>/dev/null || true
go test ./...

# Node (if applicable)
pnpm lint 2>/dev/null || npm run lint 2>/dev/null || true
pnpm typecheck 2>/dev/null || npm run typecheck 2>/dev/null || true

2. Fix Each Category

Order: Format > Vet > Lint > Test > Build

Category Auto-fix Manual fix
Format gofmt -w, prettier --write N/A
Vet N/A Read error, fix code
Lint golangci-lint run --fix Read warning, fix code
Test N/A Read failure, fix code
Build N/A Read error, fix code

3. Re-run Checks

After all fixes, re-run the full suite to confirm everything passes.

4. Report

## Quality Gate Report

| Check | Before | After |
|-------|--------|-------|
| gofmt | X issues | PASS |
| go vet | X issues | PASS |
| golangci-lint | X issues | PASS |
| go test | X failures | PASS |

Rules

  • Fix ALL issues, not just the first one
  • Auto-fix where possible (gofmt, prettier)
  • Re-run checks after fixing to confirm
  • If a fix breaks something else, fix that too