go-release-modules
Review Go module dependencies, minimum versions, compatibility, semantic labels, release-action tags, and proxy discoverability. Use for release preparation, retractions, and major-version migration planning.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- go-release-modules
- description
- Review Go module dependencies, minimum versions, compatibility, semantic labels, release-action tags, and proxy discoverability. Use for release preparation, retractions, and major-version migration planning.
03 SKILL.md 正文
Go release modules
Read Documentation/project-context.md, .cratis/ai/rules/go.md, the repository's
PR rules, and the actual release workflow. Preparing a release does not authorize
pushing, tagging, publishing, or editing a released tag.
Workflow
- Establish the module root/path, current tag, intended next version, minimum
Go version, and release-action configuration. Root modules here use
vX.Y.Z. Nested modules, if ever introduced, require their own subdirectory tag prefix. - Review signatures, interface methods, struct comparability, wrapped errors,
defaults, wire formats, and behavior. Use available pinned
goreleaseorapidifftooling, but retain consumer and protocol tests. - Apply exactly one release-intent label:
major,minor,patch, orno-release. While v0, breaking changes bump the minor (v0.3tov0.4), require migration notes, and must not hide behindpatch. Verify that the action interprets the chosen label accordingly before merging. - At v1+, incompatible public changes require an explicitly planned major.
Never introduce
/v2without a migration/support plan: module directive, all affected imports, documentation, examples, downstream consumers, and parallel-maintenance policy must agree. Moving to v1 adds no/v1suffix. - For authorized dependency changes, run
go mod tidy, inspectgo.modandgo.sum, check dependency minimums/licenses, and rungovulncheck ./.... No local-onlyreplaceor workspace may be necessary for downstream users. - Run
GOWORK=off go build ./..., tests including race detection, lint, and the exact repository release gates. Verify generated contracts and examples. Test the minimum Go version, not just a newer auto-selected toolchain. - Let the configured
Cratis/release-actionworkflow createvX.Y.Ztags. Do not manually duplicate its tag/release step. Check the action's actual inputs and workflow rather than assuming a label automatically publishes. - After an authorized release, verify the exact version can be downloaded without local replacements. A root tag plus a public repository is the Go publication mechanism; there is no separate package upload to invent.
- Confirm proxy/pkg.go.dev indexing separately from source availability. Indexing can lag; never move a tag to fix caching or force rediscovery.
Small example: verify a published version
Replace the illustrative version with the actual released tag. The first command checks module metadata/content retrieval, not an external-consumer compilation. Run a consumer build separately when verifying imported API usability.
GOWORK=off GOPROXY=https://proxy.golang.org \
go mod download -json github.com/cratis/fundamentals.go@v0.1.0
Use an actual released Fundamentals.Go version. Inspect the command's exit status and module/version fields; a cached local workspace build is not publication evidence.
Bad release recovery
Never delete, overwrite, or retag a published version; proxies and checksum
infrastructure make tags effectively immutable. Release a correction. If the
bad version should no longer be selected, add a documented retract directive
in a newer published version, explaining the affected range and replacement:
retract v0.1.1 // Incorrect scalar encoding; use v0.1.2 or later.
This is illustrative syntax, not a claim about any actual release. Retraction does not erase downloads or prevent explicit selection; communicate migration.
Stop conditions and references
Stop for an unclear breaking-change classification, v0 label/action mismatch,
missing required check, unapproved publishing action, or an unresolved /v2
migration. Report incomplete indexing without claiming a release failed.
Original Cratis release workflow guidance informed by official Go documentation.
04 同仓库更多 Skills
spf13-go
Review Go library APIs, package boundaries, tests, iterators and standard-library choices. Load for broad design or idiom reviews after the repository-owned Go skills.
samber-golang-error-handling
Review Go error creation, wrapping, inspection and logging boundaries. Load when changing caller-visible failures after go-errors-and-context.
samber-golang-context
Design Go context propagation, cancellation, deadlines and request metadata. Load for operation-lifetime changes or context-related leaks after go-errors-and-context.
jetbrains-go-modern-guidelines
Choose version-compatible modern Go syntax and standard-library APIs. Load when modernizing touched Go code after reading go.mod and build constraints.
go-testing
Write and review Go unit, contract, transport, race, fuzz, and deterministic concurrency tests. Use for new behavior, bug fixes, flaky tests, and public API parity evidence.
go-library-api-design
Design or review exported Go APIs, constructors, interfaces, generics, iteration, ownership, and compatibility. Use when adding or changing public Go library surface.