Git Workflow and Versioning
addyosmani/agent-skills
Sets git habits for every change: short-lived branches, atomic commits with descriptive messages, clean pull requests, plus versioning, tagging and changelogs for releases.
Apply when committing, pushing, opening or updating a PR, writing a pull request, creating release notes, or closing out remote CI.
$ npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ZaxbyHub/opencode-swarm commit-pr --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/commit-pr .claude/skills/commit-pr && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "commit-pr" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.claude/skills/commit-pr into .claude/skills/commit-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "commit-pr", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/ZaxbyHub/opencode-swarm/tree/main/.claude/skills/commit-prType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ZaxbyHub/opencode-swarm commit-pr --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/commit-pr .agents/skills/commit-pr && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "commit-pr" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.claude/skills/commit-pr into .agents/skills/commit-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "commit-pr", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ZaxbyHub/opencode-swarm commit-pr --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/commit-pr .cursor/skills/commit-pr && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "commit-pr" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.claude/skills/commit-pr into .cursor/skills/commit-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "commit-pr", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/ZaxbyHub/opencode-swarm.git --path .claude/skills/commit-pr--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ZaxbyHub/opencode-swarm commit-pr --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/commit-pr .gemini/skills/commit-pr && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "commit-pr" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.claude/skills/commit-pr into .gemini/skills/commit-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "commit-pr", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install ZaxbyHub/opencode-swarm commit-prInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/commit-pr .github/skills/commit-pr && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "commit-pr" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.claude/skills/commit-pr into .github/skills/commit-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "commit-pr", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ZaxbyHub/opencode-swarm commit-pr --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/commit-pr .opencode/skills/commit-pr && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "commit-pr" agent skill from https://github.com/ZaxbyHub/opencode-swarm/tree/main/.claude/skills/commit-pr into .opencode/skills/commit-pr/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "commit-pr", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
commit-prApply when committing, pushing, opening or updating a PR, writing a pull request, creating release notes, or closing out remote CI.
Commit PR is an agent skill from ZaxbyHub/opencode-swarm. Apply when committing, pushing, opening or updating a PR, writing a pull request, creating release notes, or closing out remote CI. Enforces the opencode-swarm invariant audit, release-note fragment workflow, full validation suite, issue comment requirement, and post-PR lifecycle rules.
Its SKILL.md is about 6.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/pr-incident-playbook.md`).
It sits in Development, covering Changelog and release notes and Pull requests. It works with Git. The repository describes itself as: Architect-centric agentic swarm plugin for OpenCode. Hub-and-spoke orchestration with SME consultation, code generation, and QA review. The licence is MIT.
11 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 624cb60. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
bungitghnodebunxnpmFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, gh, bunx and npm, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Commit PR loads about 6.2k tokens when it runs, and up to ~7.4k if it reads all its reference files. Until then it costs about 74 tokens; SKILL.md has 2,519 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from ZaxbyHub/opencode-swarm at commit 624cb60, republished under its MIT licence (© ZaxbyHub). 2,519 words, ~6,198 tokens.
.claude/skills/commit-pr/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Before publication, use repo_map diff_context and impact_cone as a final drift check, then verify the direct source, Git diff, and tests. Graph evidence is advisory only. If freshness is stale or inconclusive, confidence is low, source is missing, the language is unsupported/dynamic, the graph is absent, or an action fails, publication decisions rely on the direct evidence.
Follow every step in order. Do not skip steps.
Before any build, test, push, or PR action, read:
For every touched invariant, prepare concrete evidence for the PR body. The PR body must include:
## Invariant audit
- 1 (plugin init): touched / not touched - <evidence>
- 2 (runtime portability): touched / not touched - <evidence>
- 3 (subprocesses): touched / not touched - <evidence>
- 4 (.swarm containment): touched / not touched - <evidence>
- 5 (plan durability): touched / not touched - <evidence>
- 6 (test_runner safety): touched / not touched - <evidence>
- 7 (test writing): touched / not touched - <evidence>
- 8 (session state): touched / not touched - <evidence>
- 9 (guardrails/retry): touched / not touched - <evidence>
- 10 (chat/system msg): touched / not touched - <evidence>
- 11 (tool registration): touched / not touched - <evidence>
- 12 (release/cache): touched / not touched - <evidence>If a touched invariant cannot be proven from source and test output, do not push.
If invariants 1, 2, or 3 are touched, run all three:
bun run build
node scripts/repro-704.mjs
node --input-type=module -e "await import('./dist/index.js'); console.log('dist import OK')"If invariant 3 is touched, audit changed source files for subprocess use:
git diff --name-only origin/main..HEAD | xargs -r grep -nE "bunSpawn\(|spawn\(|spawnSync\(" || trueIf invariant 11 is touched, run:
bun --smol test tests/unit/config --timeout 60000
for f in tests/unit/tools/*.test.ts; do bun --smol test "$f" --timeout 30000; doneIf invariant 7 is touched, confirm the writing-tests skill was loaded and that new test seams avoid leaking mock.module.
Run before publication work:
git fetch origin main
rm -f .swarm/evidence/pr_body.md
rm -f .swarm/evidence/commit-pr-validation.md
rm -f .swarm/evidence/publication-evidence.json
git status --shortDelete ONLY those three exact publication-cache files. NEVER broad-delete
.swarm/evidence/*.json — that directory also holds authoritative task/gate
evidence ({taskId}.json), final-council.json, and phase-council records
(issue #2131 finding 4a).
On Windows, prefer temporary save branches over git stash. If you must stash, use git stash push --include-untracked and verify the stash contents.
If this changeset edited any SKILL.md file's wording, also run file:.swarm/bundled-skills/skill-edit-validation/SKILL.md's content-assertion sweep before committing, to catch stale test assertions.
Use conventional commit format <type>(<scope>): <description> exactly.
feat, fix, perf, revert, docs, chore, refactor, test, ci, buildChoose the PR title type by the main change:
featfixThe squash merge commit message must match the PR title exactly.
Note: The PR title MUST follow
<type>(<scope>): <description>exactly — CI runsaction-semantic-pull-requestwhich will fail thecheck-titlejob if the format is wrong. Do not deviate from this format.
Create a pending release fragment and do not calculate a version manually.
Required file shape:
docs/releases/pending/<unique-slug>.mdThe fragment should cover:
Before finalizing a release note fragment, verify every concrete reference against the actual codebase:
grep -r "path/to/file" — confirm each referenced file
exists at the stated path.package.json scripts or scripts/ directory.src/.src/ and config.Remove or correct any reference that does not resolve. AI-generated fragments frequently hallucinate paths and names — this step is not optional.
Bot authors (e.g. [bot], Copilot) and docs/workflow/meta-only changes (no src/, tests/, scripts/, package.json, etc.) are exempt from this requirement by CI; all other PRs that touch code must include a fragment.
Do not manually edit:
package.json versionCHANGELOG.md.release-please-manifest.json — exception: reconciliation when the manifest desyncs from actual releases (see below)For the full release-please manifest desync diagnosis and fix protocol, read references/pr-incident-playbook.md.
Run the full validation stack before pushing. The exact commands may be narrowed only when the repo contract or current task explicitly justifies it in evidence, not by intuition.
dist/ is not committed (#1047) — do not stage it. Confirm the build succeeds:
bun run build
node --input-type=module -e "await import('./dist/index.js'); console.log('dist import OK')"Run both linter AND formatter — e.g., bunx @biomejs/biome@<version> check --write . or equivalent — because CI quality gates reject code that passes tests but fails style validation. Pin the tool version to match the version in package.json (@biomejs/biome); unversioned bunx biome resolves to a different version than the CI gate uses. (the repo script bun run lint:ci runs the pinned Biome version; prefer it over invoking bunx biome directly).
bun run typecheck
bun run lint:ci
bun run scripts/check-tool-registration.ts
bun run check:mock-cleanup
bun run check:invariants
bun run check:cross-contamination
bun run check:test-clock
bun run check:runtime-src-refs
bun run check:events
bun run check:retention
bun run check:registry-citations
bun run check:core-events
bun run check:shell-audit
bun run check:trajectory-store
bun run check:test-file-cap
bun run scripts/check-vacuous-assertions.ts
bun run check:pending-fragment
bun run check:gate-portability
bun run check:bare-spawn
bun run scripts/check-config-consumption.ts
bun run check:test-tmpdir
bun run check:bash-portability
bun run check:error-channel-discard
bun run check:path-identity
bun run check:token-formula
(cd scripts/swarm-model && node --test)
bun run package:smokeThe CI quality job also fails closed when either required dependency is not successful before running the expensive checks:
if [[ "$DETECT_RELEASE_RESULT" != "success" || "$RELEASE_OWNER_RESULT" != "success" ]]; then
echo "::error::required dependency failed: detect-release=$DETECT_RELEASE_RESULT, release-owner-guard=$RELEASE_OWNER_RESULT"
exit 1
fiThis list is the FULL blocking CI quality contract (issue #2131 finding 4c):
every quality-job step in .github/workflows/ci.yml plus the package:smoke
pack check. tests/unit/skills/commit-pr-validation-parity.test.ts derives the
list from the workflow — if CI adds a quality step, the parity test fails until
this skill teaches it.
bun run test:unit:ci # CI-equivalent unit gate (quarantine ledgers + retry budget)
bun run test:unit:ci <file>... # scoped mode: run only the listed repo-relative test filesbun run test:unit:ci runs scripts/ci/run-unit-tests-local.ts, the CI-equivalent unit gate with per-platform quarantine ledgers (scripts/ci/quarantined-tests.txt, quarantined-tests-macos.txt, quarantined-tests-windows.txt) and the retry budget. The full serial run is 45–90 min, so use the scoped mode (bun run test:unit:ci <file>...) when the evidence justifies narrowing (e.g. you only touched one module). This closes the gap the hand-rolled loops left (~40% of CI's colocated src/** tests were uncovered).
bun test tests/integration ./test --timeout 120000bun test tests/security --timeout 120000
bun test tests/adversarial --timeout 120000bun test tests/smoke --timeout 120000If a failure looks unrelated, prove it on clean origin/main before carrying it into the PR body:
git worktree add /tmp/repro-check origin/main
cd /tmp/repro-check
bun install --frozen-lockfile
bun run build
bun --smol test <repo-relative-path-to-failing-test> --timeout 120000
cd ..
git worktree remove /tmp/repro-checkIf the failure reproduces on main, document it under ## Pre-existing failures. Do not silently inherit it.
dist/ is build output and is git-ignored (#1047); do not stage or commit it, and
there is no dist-check drift gate. The authoritative artifact check is package-check,
which runs npm pack and verifies the packed tarball is complete (type declarations,
grammar assets), installs it in a temp project, imports it under Node, and runs the CLI.
A package-check failure is a source / build / package.json#files problem — fix the
source or manifest and rebuild; never "commit dist to make CI green." CI builds dist/
itself (the unit, package-check, and smoke jobs run bun run build), and
release/publish builds from source.
If any .github/workflows/*.yml file changed, every third-party uses: must be pinned to a full 40-character SHA.
Before opening a PR, verify no local-only files are staged:
git diff --name-only HEAD origin/main | grep -E '\.(local\.json|vscode|idea)' || truePrefer a single clean commit for the branch before initial PR publication. Resolve the canonical remote first (see "Canonical remote resolution" below), then squash/push:
git fetch <canonical-remote> <base-branch>
git log --oneline <canonical-remote>/<base-branch>..HEAD
git reset --soft <canonical-remote>/<base-branch>
git commit -m "type(scope): description"
git push --force-with-lease -u <canonical-remote> <branch-name>If a review cycle is already active and inline comments depend on current SHAs, avoid resquashing until threads are resolved.
If pushing to a PR branch owned by another agent or bot, push to the PR's actual head branch:
$prBranch = gh pr view <number> --json headRefName --jq '.headRefName'
git fetch <canonical-remote> $prBranch
git push <canonical-remote> "<your-local-branch>:$prBranch" --force-with-leaseIf the PR is from a fork (head repository differs from base repository), GitHub requires explicit workflow approval after every push. CI jobs will remain in "waiting" status until approved:
# List pending runs
gh run list --repo <upstream-owner>/<upstream-repo> --branch <branch-name> --limit 5
# Approve the pending run
gh api -X POST repos/<upstream-owner>/<upstream-repo>/actions/runs/<run-id>/approveThis requires actions: write permission on the base repository. See the fork-pr-operations skill for the full protocol including race conditions, permission requirements, and stale CI verification.
Before git push, run both checks:
git log origin/main..HEAD -p | grep -E 'sk_live|ghp_|xox[abprs]-|AKIA|eyJ|AIza' || truegit remote -v # identify the org-owned remote
git push -u <canonical-remote> <branch>For full details, patterns, workarounds, and anecdotes, read references/pr-incident-playbook.md.
Before generating the PR body, read .swarm/issue-reference.json. If it exists and
contains a number field, auto-populate Closes #<number> as the first line of the
PR body. If the file does not exist, fall back to the Closes #<issue-number> placeholder.
PR body requirements:
Closes #<issue-number> as the first line when the PR resolves an issue## Summary## Invariant audit## Test planCI enforces both the section ORDER (Summary, then Invariant audit, then Test plan) and that each heading is on its own line with nothing trailing but whitespace (see .github/workflows/pr-standards.yml).
A repository publication gate (.github/hooks/pr-publication-gate.json ->
scripts/copilot-pr-publication-gate.sh) may block gh pr create, gh pr edit,
and gh pr ready until publication evidence exists. Before publishing, write:
.swarm/evidence/pr_body.md — the exact PR body you will publish (must contain
## Summary, ## Invariant audit, and ## Test plan).
.swarm/evidence/commit-pr-validation.md — the validation commands you ran and
their results.
.swarm/evidence/publication-evidence.json — the versioned, freshness-bound
receipt (issue #2131 finding 4b). The gate verifies it against the CURRENT git
state and the EXACT body being published:
BODY_SHA256=$(sha256sum .swarm/evidence/pr_body.md | cut -d' ' -f1)
cat > .swarm/evidence/publication-evidence.json <<EOF
{
"schema_version": 1,
"state": "validated",
"repository": "$(git remote get-url origin)",
"head_sha": "$(git rev-parse HEAD)",
"body_sha256": "$BODY_SHA256",
"validation_commands": ["bun run typecheck", "bun run lint:ci"],
"recorded_at": "$(date -u +%Y-%m-%dT%H:%M:%SZ)"
}
EOFpr_number may be added once the PR exists (for gh pr edit / gh pr ready).
If HEAD changes, the body is edited, or you rerun validation, REGENERATE this
receipt — a stale or mismatched receipt is rejected by the gate.
These files live under .swarm/ (runtime state, never committed) and double as the
evidence the gate checks. Keep them current if you edit the PR body or rerun
validation. The CI pr-standards check enforces the same body contract server-side.
PowerShell-safe pattern:
$refPath = ".swarm/issue-reference.json"
$closesLine = if ((Test-Path $refPath) -and ($ref = Get-Content $refPath -Raw | ConvertFrom-Json) -and $ref.number) {
"Closes #$($ref.number)"
} else {
"Closes #<issue-number>"
}
$body = @"
$closesLine
## Summary
- <bullet 1>
- <bullet 2>
## Invariant audit
- 1 (plugin init): not touched - <evidence>
## Test plan
- [ ] <validation item>
"@
$utf8NoBom = New-Object -TypeName System.Text.UTF8Encoding -ArgumentList $false
$prBodyPath = Join-Path ([System.IO.Path]::GetTempPath()) "pr_body.txt"
[System.IO.File]::WriteAllText($prBodyPath, $body, $utf8NoBom)
gh pr create --title "<type>(<scope>): <description>" --body-file $prBodyPath --base mainIf this session is running an issue trace (/swarm issue --trace), call
record_issue_publication with the issue number, PR number, URL, and HEAD sha immediately
after gh pr create (or after gh pr edit / gh pr ready for an existing PR).
This is what lets the issue-trace workflow reach its terminal published state —
without it the trace stays at publication_handoff and is NOT considered resolved.
After PR creation, if the project uses PR monitoring (pr_monitor.enabled: true
in resolved opencode-swarm config), the new PR must be subscribed for background
monitoring:
pr_monitor.auto_subscribe_on_pr_create is
enabled (default true), the subscription is created automatically after
gh pr create succeeds — no command needed. Verify with /swarm pr status
if in doubt./swarm pr subscribe <pr-url>, which records the subscription and
lazy-starts the polling worker.The post-subscription monitoring protocol — event intake, triage
(fix / ask / skip), bounded-retry escalation, and terminal-state behavior —
lives in the swarm-pr-subscribe skill (../swarm-pr-subscribe/SKILL.md).
If the PR closes an issue, post a comment on the issue. This is mandatory.
The issue comment must include:
Uses the same UTF-8-no-BOM file-write pattern as Step 6 above.
$comment = @"
Fixed in PR #<pr-number>.
## What changed
- <bullet 1>
- <bullet 2>
## How to use
```json
{ "config": "example" }
```
## Migration
No migration required.
"@
$utf8NoBom = New-Object -TypeName System.Text.UTF8Encoding -ArgumentList $false
$issueCommentPath = Join-Path ([System.IO.Path]::GetTempPath()) "issue-comment.txt"
[System.IO.File]::WriteAllText($issueCommentPath, $comment, $utf8NoBom)
gh issue comment <issue-number> --body-file $issueCommentPathIf the PR merged before this was done, post the missing issue comment immediately.
PowerShell parens/brackets/backticks/dollar-signs in git commit -m "..." fail. Use the same UTF-8-no-BOM file-write pattern (see Step 6), then git commit -F <file>.
If a PR already exists for the branch:
../swarm-pr-feedback/SKILL.md when feedback needs fixes before closeoutheadRefOid:gh pr view <number> --json headRefOid,body,isDraft,state,mergeable,mergeStateStatus,statusCheckRollup,urlUseful commands:
gh pr edit <number> --body-file "$env:TEMP\pr_body.txt"
gh pr ready <number>
gh pr checks <number> --watch --fail-fastAfter resolving merge conflicts or syncing a stale branch:
mergeable: MERGEABLE and
mergeStateStatus: CLEAN, not merely that local markers are gone, andIf GitHub still reports DIRTY, BLOCKED, or stale checks after local conflict
resolution, fetch current origin/main again and re-evaluate before claiming the
conflict is resolved.
With a merge queue enabled, prefer queuing over manual freshness rebases. If you encounter "fetch first" errors after a fresh fetch, GitHub may have auto-pushed a merge commit. Recovery: force-push your local commit with --force-with-lease. See references/pr-incident-playbook.md for full diagnosis and recovery steps.
gh pr checks --watch --fail-fast is useful but can lag or flatten matrix and
downstream jobs. When the PR checks view looks stale, missing, or inconsistent,
use the workflow run as the authoritative detail:
MCP environments: When using GitHub MCP tools instead of
gh, preferget_check_runsoverget_status. Theget_statusmethod uses GitHub's legacy commit status API: it returnsstate: "pending"even when all GitHub Actions jobs are green, because Actions creates check-runs (not legacy statuses).get_check_runsreturns the actual job results.
gh run view <run-id> --json headSha,status,conclusion,jobs,urlKeep watching after unit jobs pass; this repository may enqueue integration and
smoke jobs later in the same CI run. Do not call the PR green until the current
headRefOid has all required jobs completed successfully.
If a previous run from an older PR head is still in progress or already failed
and is blocking the current head's workflow through concurrency, inspect it with
gh run view <run-id> --json headSha,status,conclusion,jobs,url. Cancel only
obsolete older-head runs that are no longer relevant to the PR head you are
validating, then wait for the current-head checks to complete.
If you edit the PR body after checks are green, expect PR Standards / title checks to rerun. Re-check before claiming final green or merge-readiness.
Read file:.swarm/bundled-skills/merge-queue-readiness/SKILL.md for the full pre-queue merge-group CI simulation protocol.
When main has a GitHub merge queue enabled, do not rebase or force-push a PR
solely because main advanced. Once required checks and review are green, add the
PR to the merge queue; GitHub re-runs the required workflows against the queued
change on top of the latest main (and any earlier queued PRs) before merging, so
manual "freshness" rebases are unnecessary.
Still rebase/force-push when there is a real reason: a genuine merge conflict,
a stale review thread that depends on current SHAs, or a correctness issue that only
appears against current main. The queue handles up-to-date validation; it does not
resolve conflicts for you.
Required workflows trigger on both pull_request and merge_group. PR-only checks
(title/body validation) no-op to success on merge_group because the PR already
satisfied them before being queued.
If a required GitHub Actions job is cancelled and downstream jobs are skipped:
gh run view <run-id> --json status,conclusion,jobs,urlgh run rerun <run-id> --failedgh pr checks <number> --watch --fail-fastDo not call the PR green or merge-ready while a required job is cancelled, skipped, in_progress, or otherwise non-green unless the user explicitly accepts that state.
test_runner was not used with broad repo-validation scopesdist/ was NOT staged (it is generated output, not committed — #1047)Closes, ## Summary, ## Invariant audit, and ## Test plan© ZaxbyHub, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (references) in .claude/skills/commit-pr of ZaxbyHub/opencode-swarm.
Open the folder on GitHubat commit 624cb60
Commit PR next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Commit PR this skillZaxbyHub/opencode-swarm | 490 | — | ~6.2k | Automated safety check: Pass | MIT | |
| Git Workflow and Versioningaddyosmani/agent-skills | 103k | 2 repos | ~3.5k | Automated safety check: Notes | MIT | |
| Verdaccio Pull Request Workflowverdaccio/verdaccio | 18k | — | ~1.9k | Automated safety check: Pass | MIT | |
| pybind11 Release Preparationpybind/pybind11 | 18k | — | ~1.7k | Automated safety check: Pass | Custom licence | |
| AionUi Version BumpiOfficeAI/AionUi | 33k | — | ~2.1k | Automated safety check: Pass | Apache-2.0 | |
| ScottPlot Changelog EntryScottPlot/ScottPlot | 6.8k | — | ~366 | Automated safety check: Pass | MIT |
addyosmani/agent-skills
Sets git habits for every change: short-lived branches, atomic commits with descriptive messages, clean pull requests, plus versioning, tagging and changelogs for releases.
verdaccio/verdaccio
Takes a change through a verdaccio pull request: branch, local checks, changeset, title and body, labels, CI and review rounds, and ports to other release lines.
pybind/pybind11
Opens the pybind11 release-preparation pull request: picking the release base, bumping the version in common.h and integrating the changelog, following docs/release.rst.
iOfficeAI/AionUi
Automates an AionUi release: checks the latest AionCore release and its artifacts, updates package.json, writes the changelog, opens a PR and tags the release.
ScottPlot/ScottPlot
Adds or updates a single concise changelog bullet in CHANGELOG.md for exactly the current branch's ScottPlot pull request, leaving all other text untouched.
icebear0828/codex-proxy
Package the current working changes into a standards-compliant codex-proxy pull request: branch hygiene, commit message linting, CHANGELOG prompt, conventional commit, push, and gh pr create against…
ZaxbyHub/opencode-swarm
Runs an evidence-gated, quote-grounded audit of a codebase for security, QA, accessibility, performance and more, and writes a verified report without changing source files.
ZaxbyHub/opencode-swarm
Drives a bug report from validation and root-cause tracing through a critic-reviewed plan, an approved minimal fix and a PR-ready closure, never merging without recorded human approval.
ZaxbyHub/opencode-swarm
Codex adapter for opencode-swarm that governs commits, pushes, draft PRs, PR body updates and CI closeout, deferring to the repo's canonical commit-pr protocol.
ZaxbyHub/opencode-swarm
Keeps plans, decisions, evidence and reviewer verdicts in small files so long multi-phase tasks survive context compaction and session resumes.
ZaxbyHub/opencode-swarm
Ingests existing pull request feedback such as review comments and CI failures, verifies each claim, fixes confirmed issues and reports closure status for every item.
ZaxbyHub/opencode-swarm
Monitor a pull request after creation and act autonomously on pushed PR activity.
Works with
Categories
Apply when committing, pushing, opening or updating a PR, writing a pull request, creating release notes, or closing out remote CI. Commit PR is an agent skill from ZaxbyHub/opencode-swarm. Apply when committing, pushing, opening or updating a PR, writing a pull request, creating release notes, or closing out remote CI.
Commit PR fits situations like: tasks that involve Changelog and release notes; tasks that involve Pull requests.
Run `npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a claude-code`. Or copy the skill folder (.claude/skills/commit-pr in ZaxbyHub/opencode-swarm) into .claude/skills/commit-pr in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a codex`. Or copy the skill folder (.claude/skills/commit-pr in ZaxbyHub/opencode-swarm) into .agents/skills/commit-pr in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/commit-pr, .gemini/skills/commit-pr, .github/skills/commit-pr and .opencode/skills/commit-pr in your project.
Going by SKILL.md and its folder, Commit PR needs the command-line tools its instructions call (bun, git, gh, node, bunx and npm).
SKILL.md contains no URLs. Its commands use git, gh and npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Commit PR is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 6.2k tokens (SKILL.md is roughly 25k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.2k tokens, read only when the agent opens those files.
Skills that share tags, products or a category with Commit PR: Git Workflow and Versioning (addyosmani/agent-skills, 103k stars), Verdaccio Pull Request Workflow (verdaccio/verdaccio, 18k stars), pybind11 Release Preparation (pybind/pybind11, 18k stars) and AionUi Version Bump (iOfficeAI/AionUi, 33k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ZaxbyHub (a GitHub organization) maintains it in ZaxbyHub/opencode-swarm, which has 490 GitHub stars. The repository holds 91 skills in this directory. The repository was last updated on October 7, 2026.
Source: ZaxbyHub/opencode-swarm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.