Individual skill

commit-push-pr

Use when asked to commit and push a feature branch, with or without a pull request. Its no-PR mode publishes without a PR. Not for a PR body alone: use create-pull-request.

.devin/skills/commit-push-pr/SKILL.md

Read pinned source

Source commit b0e8ce89a19fac880251dc3ea1babfeb4503a4fe

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
No
Repository scan complete
No
Skill scan complete
No
Observed behavior
Not checked yet
Last checked
Nov 4, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.

Repository context

Repository stars (not skill ratings)
55
Repository last updated
Sep 28, 2026
License
Apache-2.0

Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# Commit, push, and optionally open a pull request

Commit the working tree and push the feature branch to `origin`. In pull-request mode, open or update the pull request with `gh`; in no-PR mode, stop after the push. Commit authoring belongs to `commit`. Title and body authoring belongs to `create-pull-request`. This skill adds branch placement, the PR target resolution when a PR is requested, the push, and the `gh` call when a PR is requested.

## Contract

| Field | Bound contract |
|---|---|
| Trigger | User asks to commit and push a feature branch, either with a pull request or without one. |
| Authority | Human-gated: both modes write local commits, at most one local feature branch, and one push to `origin/<branch>`. Pull-request mode also creates or edits one pull request through `gh`; no-PR mode creates no pull request. The skill states the mutation set before each remote mutation. Rollback is `git reset --hard <prior-HEAD>` for new commits, `git branch -D <branch>` for a branch this skill created, and, in pull-request mode, `gh pr close` or `gh pr edit` restoring the prior body for the PR. No remote mutation without the gate. |
| Side effect | Local commits, at most one local feature branch, and one `git push` to `origin`. Pull-request mode also creates or edits one PR on GitHub; no-PR mode does not create or edit a PR. No force push. |
| Done | No-PR mode: the branch is pushed with `git status --porcelain` empty and `git rev-list --left-right --count origin/<branch>...HEAD` printing `0 0`. Pull-request mode: those checks pass and `gh pr view --json url,title,state` returns the PR as `OPEN`. |

## Inputs