Select and review Go library integrations for API fit, pinned-version behavior, lifecycle, compatibility, maintenance, security, licensing, and migration cost.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Golang Popular Libraries?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/aiproxer-golang-popular-libraries)
---
name: golang-popular-libraries
description: "Select and review Go library integrations for API fit, pinned-version behavior, lifecycle, compatibility, maintenance, security, licensing, and migration cost."
---
# Go library selection
Library popularity is not a correctness signal. Start with the standard library and the module's existing dependencies. Add a dependency when it removes meaningful risk or complexity and its maintenance, license, transitive graph, and operational behavior are acceptable.
Before recommending a package, verify its current module path, latest compatible release, supported Go versions, license, repository activity, security advisories, and the API in the exact version the project will pin. Do not infer a maintainer or lifecycle guarantee from a README badge.
## Focused review
For a review, keep the work read-only unless fixes are requested. Establish the review base, supported versions, and relevant contract; inspect changed code plus the callers and tests needed to assess it. Stay within this skill’s lens.
- Evaluate the specific pinned module and used APIs, not a popularity ranking. Connect added/transitive dependencies to a capability the current standard library or stack lacks.
- Inspect context, retry, timeout, concurrency, cleanup, serialization, and error contracts at actual call sites; README feature claims do not prove integration correctness.
- Check target Go versions/platforms, CGO, licensing, provenance, advisories, and maintenance evidence from primary sources.
- Estimate the adapter/migration burden and test substitutability. Preserve an explicitly chosen library unless a concrete incompatibility or defect warrants a change.
Report each actionable finding with severity, confidence, file/symbol, trigger, consequence, and smallest remedy. Separate introduced/worsened defects from pre-existing debt, and state executed checks versus inference. If none survives validation, say so and identify coverage gaps.
## Practical evaluation
Compare candidates against the actual constraint:
- standard-library capability and missing behavior;
- API fit and whether context/cancellation are supported;
- failure, retry, timeout, and resource-ownership semantics;
- compatibility with the project's Go version and build targets;
- transitive dependencies, generated code, CGO, and binary size;
- release cadence, issue responsiveness, license, and known vulnerabilities;
- migration and exit cost.
Prefer a small, direct dependency to an abstraction stack. Keep third-party calls behind a narrow adapter when the library is volatile or external. Pin versions through normal Go module review; run go mod tidy and tests after changes. Never use go get -u as an unreviewed bulk upgrade.
## Useful baselines
- HTTP: net/http, httptest, and standard URL/encoding packages cover many clients and servers.
- JSON: encoding/json is the stable baseline. Do not use old golang.org/x/exp/json guidance as if it were a released encoding/json/v2 API; verify the target Go release and module path.
- Logging: log/slog with a handler selected for the deployment.
- SQL: database/sql plus a driver; sqlx or pgx when their explicit features justify them.
- RPC: google.golang.org/grpc or net/http according to the wire contract.
- Tests: testing, fuzzing, and benchmark support; testify is optional.
- CLI: flag for small tools, then a command framework when command-tree features justify it.
- Schema/migrations: use the project's reviewed migration tool and driver conventions.
Examples in this skill are categories, not a mandated stack. Check pkg.go.dev and the upstream repository for exact symbols, versions, and security notices before writing code.