Create a Pull Request

VerifiedCaution

Commits all changes, pushes to a new branch, and creates a pull request using the repo's PR template. Use when the user asks to make a PR or submit changes.

Sby Skills Guide Bot
DevelopmentIntermediate
9/6/2026
Claude Code
#git#pull-request#branching#commit-hygiene#code-review

Recommended for

Automated summary

Automates the full submission flow for a change: inspecting repo state, creating a branch, running linters/formatters, committing, pushing, and filling in the pull request description from the repo's template.

Strengths

  • Chains the whole git workflow (status, diff, branch, commit, push) without manual steps
  • Explicitly excludes scratch files and secrets before committing
  • Enforces a short, factual PR description and strictly forbids inventing the motivation behind a change
  • Follows the repository's own branch naming convention and PR template

Limitations

  • Tightly coupled to one repository's layout: `/app/backend` paths, `make format` / `make mypy` targets, and `.github/pull_request_template.md` must be adapted
  • Requires a configured git remote and push permissions; the exact mechanism used to open the PR is not specified
  • Only runs on explicit invocation — the model will not trigger it on its own
When to use it

Use it when a set of changes is ready and you want a branch, commit, and template-compliant pull request produced in one pass.

When not to use it

Avoid it while changes are still exploratory, in repos that don't follow the described branch convention, or when you'd rather write and review the PR description yourself.

Security analysis

Caution
Quality score90/100

The skill performs legitimate version-control and code-quality operations: staging, committing, pushing, and running linters. It does not contain destructive commands, secret exfiltration, or obfuscated payloads. However, it uses Bash and network operations to modify the local working tree and push to a remote, so it warrants a caution rating rather than safe.

Findings
  • •Uses Bash to execute git commands and linters/formatters.
  • •Pushes a new branch to the remote repository (git push -u origin).
  • •Runs repository-specific commands like make format and make mypy which can modify files.
How this analysis is made

Examples

Submit finished work as a PR
Make a PR for these changes.
Push current work to a new branch
Submit my changes as a pull request against main.
PR with template filled in
Open a pull request for this backend refactor, using the repo's PR template.

name: pr description: Commit all changes, push to a new branch, and create a pull request using the repo's PR template. Use when the user says to make a PR or submit changes. disable-model-invocation: true allowed-tools: Bash Read Glob Grep Agent

Create a Pull Request

Create a branch, commit, push, and open a PR for the current changes.

Steps

1. Assess the current state

Run in parallel:

  • git status (never use -uall)
  • git diff and git diff --staged to understand all changes
  • git log --oneline -5 to see recent commit message style

Identify which files should be committed. Do NOT commit files that are:

  • Scratch/debug/temporary files
  • Files containing secrets (.env, credentials, etc.)

If there are no meaningful changes to commit, tell the user and stop.

2. Determine the branch name

Branch names in this repo follow the pattern: <area>/<type>/<short-description>

Where:

  • <area> is one of: backend, web, frontend, mobile, devops, docs, or another area that matches the changed files. For cross-cutting changes spanning multiple areas, pick the one that best describes the change.
  • <type> is one of: feature, bugfix, fix, refactor, or similar
  • <short-description> is a short kebab-case description

Infer area and type from the changed files and the nature of the changes. Never use a username as the area.

3. Run linters and formatters

Before committing, run the appropriate linters and formatters for the changed areas:

  • Backend: make format and make mypy from /app/backend
  • Web/Frontend: lint/format as appropriate

Fix any issues before proceeding. If linters produce changes, include those in the commit.

4. Create the branch and commit

If there are already commits on the current branch and no uncommitted changes remain (e.g. changes were already committed earlier), skip the commit and proceed to pushing.

Otherwise:

git checkout -b <branch-name>
git add <specific files>  # add only the relevant files by name
git commit -m "<message>"

Write a concise commit message (1-2 sentences) that describes what changed and why.

5. Push the branch

git push -u origin <branch-name>

6. Write the PR description

Read the PR template from .github/pull_request_template.md and fill it in.

The description has one job: give a reviewer who context-switches in enough to understand what the change is about and why it exists, without reading the code. Nothing else.

Shape. ONE paragraph. Not two. Not "one short one and then a brief note". One. Open with high-level context — which subsystem this touches, what it is for, why it matters — so a reviewer who may be familiar with this area but did not drive the session is oriented. Then what is wrong, missing, or needed, and what the change does about it. Stop there. Well under 150 words.

A second paragraph is allowed in exactly one case: the user explicitly directed a consequential decision that needs recording (see The one exception below). That case is rare — most PRs will never hit it. Everything else you were tempted to put in a second paragraph — a behaviour change, a stacking or follow-up relationship to another PR, a caveat — either fits as a clause in the one paragraph or does not belong in the description at all. If you have written two paragraphs and the second is not a user-directed decision, delete it; do not merge it in.

Never fabricate. This is absolute. Write only what you actually know from the session, the diff, the repo, or the user. You do not get to invent why a change is being made. If the user did not tell you the motivation, and it is not plainly evident from the code or the issue being fixed, then you do not know it — say what the change does and leave the motivation out. Never write a plausible-sounding backstory: no invented user complaints, no invented incidents or bug reports, no invented performance or scale pressures, no invented product goals, no invented prior discussion, no invented future plans, no guessed issue or PR numbers, no attributing a decision to the user that they did not make. A description that is short and says less is always better than one that reads well and contains something you made up. If you are unsure whether you know a rationale or are reconstructing it, you are reconstructing it — leave it out.

Stay above the code. Write in terms a reviewer can follow without opening a file — the authentication system, the notification emails, the search page — rather than the private helpers, local variables and internal functions that implement them. Nobody remembers what those do, including whoever wrote them. Identifiers are fine where a reviewer would recognise them from outside: RPC and service names, database tables, proto messages, settings and env vars, feature flags, URLs.

Tone. You are describing the change and the human's decisions about it. You are not an engineer offering your take. Never write anything that reads as your own engineering judgement or as an invitation to discuss it — no "worth a reviewer's opinion", no "happy to change this", no flagged concerns, no recommendations, no notes to reviewers. If something genuinely needs discussion, raise it with the user instead.

Never include:

  • Anything about tests, formatting, linting, type checking, or CI. It all runs automatically, so there is nothing to report — no test names, no pass counts, no "make mypy clean", no "verified to fail before the fix".
  • How the change is implemented. The diff shows that. No per-file or per-function walkthrough, no lists of the fields/files/keys/symbols added, no tables.
  • Any narration of the session: what you tried first, what you ruled out, what you deliberately left alone, what you couldn't run locally, environment problems.
  • Design or implementation choices that were yours rather than the user's, however much work went into them.
  • Annotations on checklist items. Tick or leave unticked.
  • Headings, tables, or bold sub-headings beyond the template's own.
  • A first sentence that restates the title.
  • Any rationale, history, or context you cannot point to a source for.

The one exception. If the user explicitly directed a design or implementation decision during the session, and it is consequential and looks wrong on its face — or was picked after real work on an alternative — record it in a sentence or two as their decision. Nothing you decided on your own ever qualifies.

Testing section. Leave it out unless a human has to do something by hand to exercise the change that isn't obvious; then give one line of steps. Never test results.

Checklists. Include the checklist(s) — backend, web, or both — matching the areas changed, and remove the ones that don't apply. Tick honestly, annotate never. Keep the "For maintainers" section as-is.

Append the following note as the very last line of the PR body, after the "For maintainers" section (separated by a blank line):

_This PR was created with the Couchers PR skill._

7. Prune the description

Read the draft description once more as if you had no context on the change and were a busy person with other PRs to get through. Ask what could be dropped and what needs clarifying: a sentence they would skip, a phrase they would have to re-read, a term they would have to look up.

Then check the two hard rules explicitly:

  • Count the paragraphs. If there is more than one, and the extra is not a user-directed decision under the exception, delete it.
  • Point at a source for every claim of why. Go sentence by sentence over anything that explains motivation, history, or impact. For each, name where it came from — the user said it, the diff shows it, the issue states it. Anything left over is fabricated: delete it.

Then make one more editing pass for simplification and clarification. You may only prune and reword — the description must not get longer.

8. Create the PR

gh pr create --base develop --title "<short title>" --body "$(cat <<'EOF'
<filled-in PR template>

_This PR was created with the Couchers PR skill._
EOF
)"

9. Report back

Tell the user the PR URL when done.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/create-a-pull-request-mtpag67f/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/create-a-pull-request-mtpag67f' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-a-pull-request-mtpag67f/download' --output '.skill-downloads/create-a-pull-request-mtpag67f/SKILL.md.part' && mv '.skill-downloads/create-a-pull-request-mtpag67f/SKILL.md.part' '.skill-downloads/create-a-pull-request-mtpag67f/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

Tools declared by the author (check availability in your agent): Bash Read Glob Grep Agent

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/create-a-pull-request-mtpag67f/SKILL.md' && test -s '.skill-downloads/create-a-pull-request-mtpag67f/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/pr' && cp -R '.skill-downloads/create-a-pull-request-mtpag67f' '.claude/skills/pr'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/create-a-pull-request-mtpag67f'

openskills read 'create-a-pull-request-mtpag67f'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/create-a-pull-request-mtpag67f/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills