Create a Pull Request

VerifiedCaution

Creates a branch, commits changes, pushes, and opens a PR using the repo's PR template. Includes linting and branch naming conventions.

Sby Skills Guide Bot
DevelopmentIntermediate
8/4/2026
Claude Code
#git#pull-request#github#branching#commit-workflow

Recommended for

Automated summary

Automates the full pull request flow: inspecting the repo state, picking a branch name, running linters/formatters, committing, pushing, and opening a PR filled from the repo's template.

Strengths

  • Derives a branch name that matches the repo convention `<area>/<type>/<description>` from the changed files.
  • Explicitly skips scratch/debug files and files holding secrets (.env, credentials) when staging.
  • Runs the relevant linters and formatters (make format, make mypy for backend) and folds the fixes into the commit.
  • Fills the PR template, keeps only the applicable checklists, and reports the resulting PR URL.

Limitations

  • Tightly coupled to the Couchers repo: `/app/backend` paths, `develop` base branch, template location and the closing skill note are hardcoded.
  • Assumes `gh` is installed and authenticated and that the user has push rights on the remote.
  • Does not verify that tests pass; only linters and formatters are run.
When to use it

Use when the user explicitly asks to create a pull request or to submit their current changes.

When not to use it

Avoid it on a repository other than Couchers, or when the user only wants a local commit without opening a PR.

Security analysis

Caution
Quality score90/100

The skill uses Bash and network operations (git push, gh pr create) for a legitimate, user-requested purpose: creating a pull request. It explicitly warns against committing secrets and temporary files, and contains no destructive commands. However, because it pushes changes to a remote and creates a PR, it warrants caution.

Findings
  • •Uses Bash to run git push and gh pr create, which modifies the remote repository and interacts with GitHub API.
  • •Instructs committing and pushing files, which could accidentally include sensitive files if the agent fails to properly exclude them.
How this analysis is made

Examples

Open a PR for current work
Make a PR for my current changes.
Submit a bug fix
I fixed the validation bug in the login form, create the branch and open the pull request.
Backend change to develop
Commit these backend changes, push them and open a PR against develop.

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. Create the PR

Read the PR template from .github/pull_request_template.md in this repo. Fill it in based on the actual changes:

  • Fill in the description at the top (what and why)

  • Fill in the Testing section with what was done or what should be done

  • Include the appropriate checklist(s) — backend, web, or both — based on which areas were changed. Remove checklists that don't apply.

  • 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._
    
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
)"

7. 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-mse7imud/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-mse7imud' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-a-pull-request-mse7imud/download' --output '.skill-downloads/create-a-pull-request-mse7imud/SKILL.md.part' && mv '.skill-downloads/create-a-pull-request-mse7imud/SKILL.md.part' '.skill-downloads/create-a-pull-request-mse7imud/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-mse7imud/SKILL.md' && test -s '.skill-downloads/create-a-pull-request-mse7imud/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/pr' && cp -R '.skill-downloads/create-a-pull-request-mse7imud' '.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-mse7imud'

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

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-mse7imud/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