Create PR from uncommitted changes

VerifiedCaution

Create a feature branch, commit changes, push, and open a PR against iopsystems/rezolus.

Sby Skills Guide Bot
DevelopmentIntermediate
7/22/2026
Claude Code
#git#pull-request#github-cli#conventional-commits#branch-management

Recommended for

Automated summary

Automates opening a pull request against the iopsystems/rezolus repo: creates a branch, commits in conventional style, pushes to the fork, and opens a draft PR via gh.

Strengths

  • Runs the whole git flow end to end, from diff analysis to the final PR URL
  • Reads the diff and recent commit history to pick a fitting branch name and match the repo's message conventions
  • Honors project rules: only the alpha pre-release revision in Cargo.toml is bumped, titles stay short, PRs open as drafts
  • Checks prerequisites (uncommitted changes present, no stray unpushed commits) and runs clippy/test/fmt when they haven't been run yet

Limitations

  • Tightly coupled to the iopsystems/rezolus repo: upstream remote, sync-docs-version.sh script and Cargo.toml version format are hardcoded
  • Requires an authenticated gh CLI and a fork configured as origin
  • Does not cover harder cases such as merge conflicts, rebases, or amending existing commits
When to use it

Use it when uncommitted changes are ready to become a draft pull request against the rezolus upstream repository.

When not to use it

Avoid it on other projects, or when you need to edit, amend, or force-push commits that already exist.

Security analysis

Caution
Quality score92/100

The skill automates standard git and GitHub PR workflows. It does not exfiltrate secrets or perform destructive operations, but it does run a local shell script, build/test commands, and push to a remote, so it should be used with awareness of repository trustworthiness.

Findings
  • •Runs repository-local script ./scripts/sync-docs-version.sh without prior inspection; if the repository is compromised or malicious, this could execute arbitrary code.
  • •Uses git push and gh pr create, which modify remote state and require GitHub authentication.
  • •Executes cargo commands (clippy, test, fmt) that compile and run code from the working tree.
How this analysis is made

Examples

Named branch PR
/pr fix-socket-perms
Auto-named branch PR
Turn my uncommitted changes into a draft PR against upstream
Ship current work
Commit what I've changed, push it to my fork, and open a draft PR on iopsystems/rezolus with a summary and test plan

name: pr description: Create a feature branch, commit changes, push, and open a PR against iopsystems/rezolus

Create a PR from the current uncommitted changes. Handles branching, committing, pushing, and opening the PR against the upstream repo.

Arguments

The skill accepts an optional branch name argument:

  • If provided, use it as the branch name (e.g., /pr fix-socket-perms)
  • If not provided, generate a descriptive kebab-case branch name from the changes

Steps

  1. Verify prerequisites:

    • Working directory must have uncommitted changes (staged or unstaged)
    • Must not already be on a feature branch with unpushed commits for a different change
    git status
    git diff
    git diff --staged
    

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

  2. Analyze the changes:

    • Read the diff to understand what changed
    • Check recent commit messages for style conventions:
      git log --oneline -10
      
  3. Create feature branch:

    • If currently on main, create a new branch:
      git checkout -b <branch-name>
      
    • If already on a feature branch, use the current branch
  4. Sync docs version label (idempotent — runs every PR):

    ./scripts/sync-docs-version.sh
    

    Updates site/docs/*.html's sidebar version label to the latest stable release tag. If it modifies any file, include the change in the same commit. If nothing changes, no-op.

  5. Stage and commit:

    • Stage the relevant changed files by name (avoid git add -A)
    • Write a commit message following the repo's conventional commit style (type(scope): description)
    • Common types: feat, fix, refactor, chore, docs, test
    • Include Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> trailer
    • Use a HEREDOC for the commit message
  6. Push to origin:

    git push -u origin <branch-name>
    
  7. Open PR against upstream:

    • The upstream repo is iopsystems/rezolus
    • The fork remote is origin (determine the owner from git remote -v)
    • Use gh pr create with --repo iopsystems/rezolus and --head <fork-owner>:<branch-name>
    gh pr create \
      --repo iopsystems/rezolus \
      --head <fork-owner>:<branch-name> \
      --draft \
      --title "<conventional commit style title>" \
      --body "$(cat <<'EOF'
    ## Summary
    <1-3 bullet points describing the changes>
    
    ## Test plan
    <bulleted checklist of testing done or needed>
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    EOF
    )"
    
  8. Report the PR URL to the user.

Version bumps

Non-release PRs must never bump the major, minor, or patch version. Instead, bump only the pre-release revision number in Cargo.toml:

  • Format: <major>.<minor>.<patch>-alpha.<revision>
  • Example: 5.8.3-alpha.0 → 5.8.3-alpha.1 → 5.8.3-alpha.2
  • Increment the revision (-alpha.N) by 1 from the current main branch version
  • Check the current main branch version before committing:
    git show main:Cargo.toml | grep '^version'
    

Notes

  • Keep PR titles under 70 characters
  • PR title should follow the same conventional commit format as the commit message
  • If cargo clippy, cargo test, or cargo fmt --check haven't been run yet during this session, run them before committing
  • Never force push or amend existing commits
  • The fork owner can be determined from the origin remote URL (e.g., git@github.com:brayniac/rezolus → brayniac)
  • PRs are created as drafts by default. Mark ready via GitHub UI or gh pr ready

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-pr-from-uncommitted-changes-mrwak8q0/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-pr-from-uncommitted-changes-mrwak8q0' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-pr-from-uncommitted-changes-mrwak8q0/download' --output '.skill-downloads/create-pr-from-uncommitted-changes-mrwak8q0/SKILL.md.part' && mv '.skill-downloads/create-pr-from-uncommitted-changes-mrwak8q0/SKILL.md.part' '.skill-downloads/create-pr-from-uncommitted-changes-mrwak8q0/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.

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-pr-from-uncommitted-changes-mrwak8q0/SKILL.md' && test -s '.skill-downloads/create-pr-from-uncommitted-changes-mrwak8q0/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/pr' && cp -R '.skill-downloads/create-pr-from-uncommitted-changes-mrwak8q0' '.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-pr-from-uncommitted-changes-mrwak8q0'

openskills read 'create-pr-from-uncommitted-changes-mrwak8q0'

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-pr-from-uncommitted-changes-mrwak8q0/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