gh-oss-go-bump
Skill15 starsChanged 9 days agoMITView on GitHub
Bump Go version across multiple OSS repositories. Use when the user wants to update Go across repos, says "bump go version", "update go", "go version bump", "upgrade go", or mentions updating Go in their projects. Also triggers on "go 1.x", "latest go", "go security update", "/go-bump".
- Deletes or force-pushes
- Commits and pushes
In this repository31 other files it gives its agents.
- claude-permissions-auditSkill
- claude-skill-orchestration-auditSkill
- claude-skill-prereq-auditSkill
- claude-skill-spec-auditSkill
- dev-cli-consistency-auditSkill
- dev-code-qualitySkill
- dev-new-toolSkill
- dev-software-designSkill
- gh-dep-pr-triageSkill
- gh-issue-reportSkill
- gh-org-chartSkill
- gh-oss-release-prepSkill
- gh-oss-releaseSkill
- gh-review-triageSkill
- git-conventional-commitSkill
- gws-meeting-schedulerSkill
- p-activity-digestSkill
- p-blog-post-miningSkill
- p-blog-writerSkill
- p-clipboard-copySkill
- p-daily-reflectionSkill
- p-daily-reportSkill
- p-daily-standupSkill
- p-ego-searchSkill
- p-md-to-slidesSkill
- p-meeting-prepSkill
- p-news-briefingSkill
- project-namerSkill
- p-slack-triageSkill
- p-violentmonkey-userscript-syncSkill
- restaurant-searchSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 25
Run these two commands in parallel:
- Distinctive: line 66
No tests (higher risk)
- Distinctive: line 72
After user confirms the repo list, dispatch one agent per repo.
- Distinctive: line 91
If any repo fails:
- Distinctive: line 96
Ask the user to confirm: before creating PRs. This is the last gate before irreversible actions.
- Very specific: line 100
Only after explicit user confirmation.
- Distinctive: line 123
Never auto-merge. Only proceed when the user explicitly asks to merge.
- Distinctive: line 135
After all checks pass and user confirms:
- Very specific: line 141
If --squash fails (repo settings), try --merge.
- Distinctive: line 147
After all PRs are merged (or the workflow is done):
- Distinctive: line 163
Never skip these gates. If the user says "do everything", still present the investigation summary (Gate 1) — but you may proceed through …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Go Version Bump
Batch workflow for bumping Go versions across multiple OSS repositories. Follows the three-phase pattern: discover and investigate, test locally, then create PRs — with user confirmation gates before every irreversible action.
Step 1: Discover Go Repos and Latest Go Version
Run these two commands in parallel:
- List Go repos:
Filter to repos where the language column is "Go".gh oss-watch list - Find latest Go version: Web search for the latest stable Go release. Identify both the latest minor (e.g., 1.26) and latest patch (e.g., 1.26.1).
Present findings to the user:
- Number of Go repos found
- Latest stable Go version
- Key highlights of the new version (security fixes, notable features)
Step 2: Investigate Each Repo (parallelize if possible)
For each Go repo, dispatch one agent to check:
- Current Go version — fetch
go.modviagh api repos/<owner>/<repo>/contents/go.mod - CI version strategy — check if workflows use
go-version-file: go.modor hardcoded versions - Open PRs/issues — check for conflicts with
gh pr listandgh issue list - Test coverage — check for presence of
_test.gofiles - Deprecated patterns — scan for
io/ioutil,reflect.SliceHeader, or other patterns removed in the target Go version
Each agent returns a structured assessment: repo name, current version, CI strategy, has tests, safe-to-bump verdict, and any concerns.
Present Investigation Summary
Show a table to the user:
| Repo | Current Go | CI Strategy | Has Tests? | Safe? | Notes |
|------|-----------|-------------|-----------|-------|-------|Flag any repos with:
- Large version jumps (2+ minor versions)
- Old dependencies that may need updating
- Hardcoded Go versions in CI (requires extra file changes)
- No tests (higher risk)
Ask the user to confirm which repos to proceed with before moving to Step 3.
Step 3: Test Locally (parallelize if possible)
After user confirms the repo list, dispatch one agent per repo. Each agent:
- Clones the repo to
/tmp/go-bump/<repo-name> - Edits
go.modto set the new Go version - Runs
go mod tidy - Runs
go test ./... - Reports: success/failure, any test output, any dependency changes from tidy
Important: these are local-only operations — no branches pushed, no PRs created. This phase is purely for verification.
Present Test Results
Show a results table:
| Repo | Old → New | mod tidy | tests | verdict |
|------|-----------|----------|-------|---------|If any repo fails:
- Show the failure details
- Suggest whether it's fixable (e.g., dependency needs updating) or should be skipped
- Let the user decide
Ask the user to confirm before creating PRs. This is the last gate before irreversible actions.
Step 4: Create PRs (parallelize if possible)
Only after explicit user confirmation. Dispatch one agent per repo using the already-cloned repos in /tmp/go-bump/. Each agent:
- Creates branch
chore/bump-go-<version>(e.g.,chore/bump-go-1.26.1) - Stages
go.modandgo.sum - Commits:
chore: bump Go version from <old> to <new> - Pushes with
-uflag - Creates PR via
gh pr create:- Title:
chore: bump Go version to <new> - Body includes: version change, key improvements (security fixes, performance), and local test results
- Title:
Each agent returns the PR URL.
Present PR Summary
Show all created PRs in a table:
| Repo | PR URL |
|------|--------|Step 5: Merge (only if user explicitly requests)
Never auto-merge. Only proceed when the user explicitly asks to merge.
Check CI First
gh pr checks <number> --repo <owner>/<repo>Present CI status for all PRs. If any are still running, wait and re-check.
Merge
After all checks pass and user confirms:
gh pr merge <number> --repo <owner>/<repo> --squash --delete-branchIf --squash fails (repo settings), try --merge. If that also fails, try --rebase.
Present final status table showing all merged PRs.
Step 6: Cleanup
After all PRs are merged (or the workflow is done):
rm -rf /tmp/go-bump/Confirmation Gates
This workflow has three user confirmation points before irreversible actions:
| Gate | Before | Why |
| Gate 1 | Local testing (Step 3) | User reviews investigation and chooses which repos to test |
| Gate 2 | PR creation (Step 4) | User reviews test results before any pushes to remote |
| Gate 3 | Merging (Step 5) | User reviews CI status before merging to main |
Never skip these gates. If the user says "do everything", still present the investigation summary (Gate 1) — but you may proceed through Gates 2 and 3 without pausing if the user explicitly asked for full automation.
Key Principles
- Maximize parallelism — investigate, test, and create PRs concurrently across repos
- Test before pushing — always verify locally with
go mod tidyandgo test ./... - Confirm before irreversible actions — PRs and merges require explicit user approval
- Skip gracefully — if a repo fails testing, skip it and continue with the rest
- Clean up — remove
/tmp/go-bump/clones when done - Detect merge strategy — repos may require squash, merge, or rebase; try squash first
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

