Reviews Go applications for security vulnerabilities including input validation, injection, SSRF, path traversal, auth, secrets, cryptography, TLS, CSRF, and OWASP Top 10. Use for security reviews, vulnerability checks, and hardening Go services.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Security is not a feature — it's a property. Every line of code either maintains it or degrades it.
Pick the mode that matches the request before starting:
Trust boundaries, STRIDE checks and the finding template:
references/threat-model.md.
Before manual review, run the automated scanners and fold their output into the findings (skip any that is not installed and note it):
govulncheck ./... # known CVEs actually reachable from your code
gosec ./... # static analysis for insecure patterns
go vet ./... # includes some security-relevant checks
Scanners find the known patterns; the manual passes below find the logic flaws they cannot.
Each numbered section below is an independent audit pass. For codebases beyond ~20 files:
file.go:line, the vulnerable input path,
and a concrete fix. Aggregate into one report sorted by severity.Detailed reference material, loaded on demand:
references/injection.md — boundary validation, sanitization,
parameterized and dynamic queries, command injection, SSRF, path
traversal, archives, templates, open redirects, log injection.references/auth-and-transport.md — passwords, JWT, authorization
middleware, secrets, headers, cookies, CSRF, CORS, TLS, rate limiting.references/threat-model.md — trust boundaries, STRIDE per boundary,
severity definitions, finding template.references/crypto.md — randomness, constant-time comparison, password
hashing, AEAD encryption, hashes and KDFs, signatures, FIPS mode.Read a reference file only when the section below is not enough.
Validate at the boundary, before the value reaches any business code:
http.MaxBytesReader — an unbounded decoder is
a memory exhaustion vector.bluemonday), parse emails with
net/mail, and reject URLs whose scheme is not http/https.Examples in references/injection.md.
ALWAYS pass values as query parameters. There is no safe amount of string concatenation:
// ✅ Good — parameterized
row := db.QueryRowContext(ctx, "SELECT id, name FROM users WHERE email = $1", email)
// ❌ CRITICAL — SQL injection
query := "SELECT * FROM users WHERE email = '" + email + "'"
query := fmt.Sprintf("SELECT * FROM users WHERE id = %s", id)
Dynamic filters are built by appending placeholders ($1, $2, …) and
collecting the values into an args slice — never by interpolating the value
itself. Table and column names cannot be parameterized: allowlist them
against a fixed set.
Examples in references/injection.md.
exec.CommandContext(ctx, "tool", "--", arg): no shell,
-- before input. Input never selects the binary.os.Root (Go 1.24+) for any user-influenced path;
filepath.Join + HasPrefix misses symlinks.html/template only; template.HTML(input) disables escaping.Examples in references/injection.md.
bcrypt (or argon2id). NEVER store plaintext, NEVER
use MD5/SHA — they are fast, which is the wrong property here.bcrypt.CompareHashAndPassword, which is constant-time.
Hand-rolled comparisons leak timing.exp, iss, aud. Reject alg: none and never hardcode the
signing key.Examples in references/auth-and-transport.md.
Read them from the environment or a secrets manager, keep .env, *.pem,
*.key and credentials.json in .gitignore, and run gitleaks detect in
CI so a leak fails the build instead of ageing in history.
Examples in references/auth-and-transport.md.
crypto/rand for anything that must not be guessed — tokens (rand.Text,
Go 1.24+), nonces, salts. math/rand never.subtle.ConstantTimeCompare / hmac.Equal.cipher.NewGCMWithRandomNonce (Go 1.24+), so
no nonce is ever reused. No ECB, no unauthenticated modes.GOFIPS140 (Go 1.24+).Examples in references/crypto.md.
X-Content-Type-Options: nosniff, X-Frame-Options: DENY, a
Content-Security-Policy, and HSTS on every response.MinVersion to tls.VersionTLS12 (or 1.3) and keep Go's
default cipher suites — a hand-picked list only goes stale.
NEVER InsecureSkipVerify: true outside a test.Secure, HttpOnly, SameSite, with a
__Host- prefix; CSRF via http.CrossOriginProtection (Go 1.25+), with
no state change on GET; CORS from an exact-origin allowlist, never *
on authenticated APIs.Examples in references/auth-and-transport.md.
Log the identifier, never the credential:
// ❌ CRITICAL
log.Printf("user login: email=%s password=%s", email, password)
log.Printf("request body: %v", req) // may contain secrets
// ✅ Good — redacted
logger.Info("auth completed", slog.String("user_id", userID))
Whole-struct logging is the common leak: a %v on a request struct prints
whatever field someone adds next sprint.
os.Rootmath/rand for tokens, IDs or nonces; no == on secretsalg: none rejectedgovulncheck in CI pipelinegitleaks for secret scanningWhat SKILL.md sets; muted values are Claude Code's defaults
/go-agent-skills:go-security-auditfrom go-agent-skills
Claude never picks this skill on its own
Claude Code cannot parse its frontmatter, so it ignores every field there: the description on this page is for you to read, but Claude never sees it. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /go-agent-skills:go-security-audit still runs it.
npx claudepluginhub eduardo-sl/go-agent-skills --plugin go-agent-skills35 skills in this plugin
/git-commitStructured git commit messages following Conventional Commits format for Go projects. Generates well-scoped, atomic commits with clear descriptions. Use when committing changes, writing commit messages, preparing PRs, or reviewing commit history quality. Trigger examples: "commit these changes", "create commit", "commit message", "prepare PR", "squash commits". Not for: code review (go-code-review), changelog generation.
/go-api-designHTTP/REST API design for Go services: handlers, ServeMux routing, middleware, request validation, pagination, idempotency, health checks, error responses, and graceful shutdown. Use when designing APIs, writing HTTP handlers, implementing middleware, or structuring REST endpoints. Trigger examples: "design API", "REST endpoints", "HTTP handler", "middleware pattern", "graceful shutdown", "API versioning". Not for: gRPC services (go-grpc), spec-first OpenAPI work (go-openapi), general architecture (go-architecture-review), concurrency in handlers (go-concurrency-review).
/go-architecture-reviewReview Go project architecture: package structure, dependency direction, layering, separation of concerns, domain modeling, and module boundaries. Use when reviewing architecture, designing package layout, evaluating dependency graphs, or refactoring monoliths into modules. Trigger examples: "review architecture", "package structure", "project layout", "dependency direction", "clean architecture Go", "module boundaries". Not for: code-level style (go-coding-standards), endpoint design (go-api-design).
/go-binary-sizeReduce the size of compiled Go binaries and container images: linker flags, inlining budget, CGO and build tags, embedded assets, dependency weight, and measuring what actually costs bytes. Use when a binary or image is too large, when shrinking a CLI for distribution, or when auditing what a dependency adds to the build. Trigger examples: "binary is too big", "shrink the binary", "reduce image size", "strip symbols", "what is making my binary large", "ldflags -s -w". Not for: runtime speed and allocations (go-performance-review), CI setup (go-ci), release pipelines and signing (go-build-release), dependency CVEs (go-dependency-audit).
/go-build-releaseBuild and release Go binaries that are reproducible and verifiable: version stamping, -trimpath builds, cross-compilation, GoReleaser, checksums, SBOMs, cosign signing, build provenance attestations, and container images with ko or a multi-stage Dockerfile. Use when: "release a Go binary", "set up GoReleaser", "cross-compile", "reproducible build", "sign the release", "generate an SBOM", "build provenance", "publish a container image", "version command shows (devel)". Not for: test and lint pipelines (go-ci), shrinking the binary or image (go-binary-size), auditing dependencies (go-dependency-audit).
/go-ciContinuous integration for Go projects: GitHub Actions pipelines, caching, golangci-lint setup, test/coverage gates, vulnerability scanning, SAST (CodeQL, gosec), Dependabot, action pinning, build matrices, Makefile targets. Use when: "set up CI", "GitHub Actions for Go", "add lint to the pipeline", "CI is slow", "coverage gate", "build matrix", "write a Makefile", "run govulncheck in CI". Not for: commit conventions (git-commit), choosing or auditing dependencies (go-dependency-audit), writing the tests themselves (go-test-quality), releases and signing (go-build-release).
Other plugins' skills for the same job