Agent skill

Commit PR

by ZaxbyHub in ZaxbyHub/opencode-swarm

Apply when committing, pushing, opening or updating a pull request, or closing out CI.

MITAuto-check: notesDevelopment

Install Commit PR

skills CLI
$ npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ZaxbyHub/opencode-swarm commit-pr --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ZaxbyHub/opencode-swarm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.opencode/skills/commit-pr .claude/skills/commit-pr && rm -rf skills-src

Use ~/.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/

Facts

Skill name
commit-pr
GitHub stars
488
Token cost
~1.2k tokens
SKILL.md length
675 words
Files
1
Skills in repo
91
Repo updated
First seen
Licence
MIT

At a glance

Apply when committing, pushing, opening or updating a pull request, or closing out CI.

  • Works in 7 steps: Working-tree hygiene → Discover the project's checks → Verify before you push → …
  • Tasks that involve Pull requests
  • SKILL.md covers Graph-first evidence contract, Step 0 — Working-tree hygiene, Step 1 — Discover the… and Step 2 — Verify before you push, plus 4 more sections
  • Calls git

What it does

Commit PR is an agent skill from ZaxbyHub/opencode-swarm. Apply when committing, pushing, opening or updating a pull request, or closing out CI. A portable, project-agnostic commit and PR workflow: verify before you push, write conventional commits and a clear PR body, and never commit generated or secret files.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Pull requests and Commit messages. 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.

When your agent uses it

  • Tasks that involve Pull requests
  • Tasks that involve Commit messages

Example prompts

  • “/commit-pr”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Working-tree hygiene
  2. Discover the project's checks
  3. Verify before you push
  4. Commit
  5. Push
  6. Open or update the PR
  7. Close out CI

What it can do on your machine

Read from SKILL.md and the folder at commit 766e873. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Commit PR loads about 1.2k tokens when it runs. Until then it costs about 66 tokens; SKILL.md has 675 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~66
When it runs · the whole SKILL.md, loaded when a task matches
~1.2k

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.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:32
    tput, `node_modules`/`target`/`vendor`, `.env`,

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.

SKILL.md

The full file from ZaxbyHub/opencode-swarm at commit 766e873, republished under its MIT licence (© ZaxbyHub). 675 words, ~1,216 tokens.

Download SKILL.mdSave it as .claude/skills/commit-pr/SKILL.md (or your agent's skills folder).
name
commit-pr
description
Apply when committing, pushing, opening or updating a pull request, or closing out CI. A portable, project-agnostic commit and PR workflow: verify before you push, write conventional commits and a clear PR body, and never commit generated or secret files.
audience
swarm-plugin
effort
medium

Commit & PR Protocol (portable)

Graph-first evidence contract

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.

A project-agnostic workflow for landing a change safely. It makes no assumptions about the language, build tool, or hosting provider — discover each project's own conventions and follow them. Do every step in order.

If the repository ships its own commit/PR contract (a CONTRIBUTING.md, a pull-request template, a contributor-guide file, or a project-specific commit-pr skill), that contract wins over this generic guidance. Read it first.

Step 0 — Working-tree hygiene

  1. git status and git diff — know exactly what you are about to commit.
  2. Confirm you are on a feature branch, not the default branch. If you are on main/master, create a branch first.
  3. Do not stage generated output, dependency directories, local caches, or secrets (build/dist output, node_modules/target/vendor, .env, credentials, keys). If any are tracked or unignored, fix .gitignore instead of committing them.

Step 1 — Discover the project's checks

Find the project's own validation commands rather than guessing:

  • A package manifest's script section (e.g. package.json scripts, Makefile targets, pyproject.toml, Cargo.toml, justfile, Taskfile).
  • CI workflow files under .github/workflows/ (or the provider's config) — these are the checks that must pass to merge.

Run the project's build, test, lint, type-check, and format checks — whatever exists. Pin tool versions to what the project declares so local results match CI. If a check fails, fix the cause; do not weaken, skip, or delete the check.

Step 2 — Verify before you push

Run the discovered checks and confirm they pass. Report the exact commands and their results — never claim a check passed without having run it. Passing tests mean the change is plausible, not automatically correct: make sure the change actually does what the task intended.

Step 3 — Commit

Write a clear, conventional commit message:

  • Title: <type>(<scope>): <summary> where <type> is one of feat, fix, perf, refactor, docs, test, build, ci, chore, revert.
  • Keep the title short and imperative; put detail in the body.
  • One logical change per commit where practical.
Show full SKILL.md (296 more words)Show less

Step 4 — Push

  1. Identify the correct remote. If the repo has several remotes, push to the one the PR targets (the upstream you are contributing to), not an unrelated fork.
  2. git push -u <remote> <branch> for a new branch.
  3. If a push is rejected because you rebased, use git push --force-with-lease — never a plain, unconditional force push. --force-with-lease refuses to overwrite commits the remote gained since your last fetch, so it cannot silently clobber a teammate's work.

Step 5 — Open or update the PR

Search the repo for a PR template (.github/PULL_REQUEST_TEMPLATE.md or .github/PULL_REQUEST_TEMPLATE/). If one exists, fill in its sections. Otherwise write a body with at least:

  • Summary — what changed and why.
  • Test plan — the checks you ran and their results.
  • A linking keyword (Closes #<issue>) when the PR resolves an issue.

Use a PR title in the same conventional-commit form as your commit.

Before generating the PR body, check if .swarm/issue-reference.json exists. If it does 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 Closes #<issue-number>.

Step 6 — Close out CI

After the PR is open, watch its checks. If CI fails, read the logs, reproduce locally, fix the real cause, and push again. A PR is not done until its required checks are green and any review feedback is addressed. Do not merge over failing required checks or disable a check to go green.

If this session is running an issue trace (/swarm issue --trace), call record_issue_publication (issue number, PR number, canonical PR URL, HEAD sha) right after the PR is opened so the issue-trace workflow can reach its terminal published state — without it the trace stays at publication_handoff and is NOT considered resolved.

© ZaxbyHub, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .opencode/skills/commit-pr of ZaxbyHub/opencode-swarm.

Open the folder on GitHubat commit 766e873

Compare with similar skills

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.

Commit PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Commit PR this skillZaxbyHub/opencode-swarm488—~1.2kAutomated safety check: NotesMIT
Git Workflow and Versioningaddyosmani/agent-skills102k2 repos~3.5kAutomated safety check: NotesMIT
React Router Pull Request Creatorremix-run/react-router57k—~2.5kAutomated safety check: PassMIT
Verdaccio Pull Request Workflowverdaccio/verdaccio18k—~1.9kAutomated safety check: PassMIT
Emoji Commit ConventionsbaptisteArno/typebot.io11k—~424Automated safety check: PassCustom licence
Draft Pull Request Creatorwordpress-mobile/WordPress-Android3.2k—~881Automated safety check: NotesGPL-2.0

Similar skills

  • 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.

    102k GitHub starsUsed in 2 repos~3.5k tokens
    DevelopmentAuto-check: notes
  • React Router Pull Request Creator

    remix-run/react-router

    Packages finished React Router work into a draft pull request: branch, commit, push, a written PR body and the right GitHub labels.

    57k GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check passed
  • 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.

    18k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Emoji Commit Conventions

    baptisteArno/typebot.io

    Sets the repository's convention for commit messages and pull request titles: one emoji prefix for the main intent, a concise title and clean follow-up commits.

    11k GitHub stars~424 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Draft Pull Request Creator

    wordpress-mobile/WordPress-Android

    Commits and pushes current changes, writes a pull request title and body from the branch history and template, and opens a draft PR on GitHub after you approve it.

    3.2k GitHub stars~881 tokensUpdated today
    DevelopmentAuto-check: notes
  • Submit PR

    tisfeng/Easydict

    创建或复用当前 checkout 已提交变更的 GitHub PR,必要时推送任务分支。PR 审查使用 review-pr;仅本地提交使用 git-commit。

    15k GitHub stars~595 tokensUpdated yesterday
    DevelopmentAuto-check passed

More from ZaxbyHub/opencode-swarm

All 91 skills in this repo
  • Codebase Review Swarm

    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.

    488 GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Issue Tracer

    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.

    488 GitHub stars~4.4k tokensUpdated today
    Auto-check passed
  • Commit and PR Publishing for Codex

    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.

    488 GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Durable Session State

    ZaxbyHub/opencode-swarm

    Keeps plans, decisions, evidence and reviewer verdicts in small files so long multi-phase tasks survive context compaction and session resumes.

    488 GitHub stars~896 tokensUpdated today
    Auto-check passed
  • Swarm PR Feedback Closer

    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.

    488 GitHub stars~14k tokensUpdated today
    Auto-check passed
  • Swarm PR Subscribe

    ZaxbyHub/opencode-swarm

    Monitor a pull request after creation and act autonomously on pushed PR activity.

    488 GitHub stars~2.2k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Commit PR

What does Commit PR do?

Apply when committing, pushing, opening or updating a pull request, or closing out CI. Commit PR is an agent skill from ZaxbyHub/opencode-swarm. Apply when committing, pushing, opening or updating a pull request, or closing out CI.

When should I use Commit PR?

Commit PR fits situations like: tasks that involve Pull requests; tasks that involve Commit messages.

How do I install Commit PR in Claude Code?

Run `npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a claude-code`. Or copy the skill folder (.opencode/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.

How do I install Commit PR in Codex?

Run `npx skills add ZaxbyHub/opencode-swarm --skill commit-pr -a codex`. Or copy the skill folder (.opencode/skills/commit-pr in ZaxbyHub/opencode-swarm) into .agents/skills/commit-pr in your project. Codex loads it when a task matches its description.

Can I use Commit PR in Cursor, Gemini CLI or GitHub Copilot?

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.

What does Commit PR need to run?

Going by SKILL.md and its folder, Commit PR needs the command-line tools its instructions call (git).

Does Commit PR access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Commit PR safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Commit PR use?

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.

How many tokens does Commit PR use?

About 1.2k tokens (SKILL.md is roughly 4.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Commit PR?

Skills that share tags, products or a category with Commit PR: Git Workflow and Versioning (addyosmani/agent-skills, 102k stars), React Router Pull Request Creator (remix-run/react-router, 57k stars), Verdaccio Pull Request Workflow (verdaccio/verdaccio, 18k stars) and Emoji Commit Conventions (baptisteArno/typebot.io, 11k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Commit PR?

ZaxbyHub (a GitHub organization) maintains it in ZaxbyHub/opencode-swarm, which has 488 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.