workflow-commit-and-pr

workflow-commit-and-pr is a skill for Claude Code, Codex from lugassawan/swe-workbench. It costs 68 tokens per session (4,799 once invoked), scanned A, original, MIT.

A Git workflow for committing staged changes and creating GitHub pull requests. It follows a required commit format, checks branch names, and distinguishes previews, commits, drafts, and ready-to-merge pull requests.

In plain words
What is it for?
Use it to commit staged work, open a draft or ready pull request, check for a pull-request template, and handle ticket context when provided.
Why use it?
It prevents unclear trigger phrases and inconsistent pull-request preparation from causing the wrong action or incomplete review setup.

Skill for Claude CodeCodex

Part of the swe-workbench plugin — 60 skills, 25 commands, 32 agents, 4 hooks shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/lugassawan/swe-workbench/workflow-commit-and-pr
Any agent
npx skills add lugassawan/swe-workbench --skill workflow-commit-and-pr
Clone the repo
git clone --depth 1 https://github.com/lugassawan/swe-workbench

Made for: Claude Code, Codex.

Or install swe-workbench, the plugin that ships this one along with the rest of its 60 skills, 25 commands, 32 agents, 4 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for workflow-commit-and-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/lugassawan/swe-workbench/workflow-commit-and-pr.svg)](https://agentmods.dev/skills/lugassawan/swe-workbench/workflow-commit-and-pr)
Your own site
<a href="https://agentmods.dev/skills/lugassawan/swe-workbench/workflow-commit-and-pr"><img src="https://agentmods.dev/badge/skills/lugassawan/swe-workbench/workflow-commit-and-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,799 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00068 $0.04799
Opus 5 $0.00034 $0.02400
Sonnet 5 $0.00014 $0.00960
Haiku 4.5 $0.00007 $0.00480

Measured yesterday against content hash 4b191a57cfc7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

workflow-commit-and-pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/workflow-commit-and-pr/SKILL.md · 258 lines

How it starts

The opening of the file, as written. The whole thing — 258 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Workflow: Commit and PR (pre-merge orchestration)

Announce at start: "I'm using the workflow-commit-and-pr skill to {commit / draft a PR / ship this branch}."

When to invoke

  • The user wants to commit staged changes ("commit this", "make a commit").
  • The user wants to create a PR ("open a PR", "ship this", "create a pull request").
  • The user announces feature completion ("I'm done", "I finished the feature", "feature is complete") — preview-only mode.
  • The user references a ticket key ([A-Z]+-\d+, atlassian/Confluence/GitHub URL) AND wants to commit/PR — chains swe-workbench:ticket-context first.

When NOT to invoke

  • The PR is already merged → use swe-workbench:workflow-cleanup-merged for post-merge cleanup.
  • The user wants to amend or rebase an existing commit → out of scope; do not amend or force-push.
  • The user is staging files only (git add) with no commit intent → no skill needed.
  • swe-workbench:workflow-development Phase 5 is currently driving the flow → that path invokes swe-workbench:workflow-commit-and-pr directly (do not interpose).

Trigger-phrase discipline

The user's exact phrasing determines what action you take. Never escalate without explicit user words.

Phrase class Examples Action
Preview only "I finished the feature", "I'm done", "feature is complete", "ready to commit" Show: diff summary, drafted commit message, current branch name, doc-only [no ci] check. Do NOT commit. Wait for user to escalate to "commit this" or "ship this".
Commit only "commit this", "make a commit", "commit these changes" Run git commit with the drafted message. Stop. Do NOT push. Do NOT create a PR. Tell the user: "Committed. Reply push to push, or ship to push and open a PR."
One-shot ship "commit and create a PR", "ship this", "ship it", "ship this branch" Run commit → push → gh pr create. No intermediate pause. Run draft-vs-ready prompt before gh pr create.
Push only "push this", "push it", "push my branch" git push -u origin <branch>. Stop. No commit. No PR.
PR only "open a PR for what I just pushed", "create a PR" (no staged changes) Skip commit. Run existing-PR check → draft/ready prompt → gh pr create.

Read the full file on GitHub · 258 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 258 lines · 68 tokens per session scan A 4b191a57cfc7

Subscribe to this mod's changes

workflow-commit-and-pr is a skill published in the GitHub repository lugassawan/swe-workbench (2 stars, last pushed 2d ago), licensed MIT. It adds 68 tokens to every session and 4,799 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.