Agent skill

Commit And PR

by 302ai in 302ai/302-AI-Studio

A skill your agent uses whenever the user wants to commit changes and create a Pull Request (e.g., 'commit and PR', 'push my changes', 'create a PR').

AGPL-3.0Auto-check passedDevelopment

Install Commit And PR

skills CLI
$ npx skills add 302ai/302-AI-Studio --skill commit-and-pr -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install 302ai/302-AI-Studio commit-and-pr --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/302ai/302-AI-Studio.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/commit-and-pr .claude/skills/commit-and-pr && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
commit-and-pr
GitHub stars
132
Token cost
~700 tokens
SKILL.md length
363 words
Files
3
Skills in repo
5
Repo updated
First seen
Licence
AGPL-3.0

At a glance

A skill your agent uses whenever the user wants to commit changes and create a Pull Request (e.g., 'commit and PR', 'push my changes', 'create a PR').

  • Works in 7 steps: Verify State & Ask for Information → Checkout Branch (CRITICAL) → Commit Code → …
  • The user wants to commit changes and create a Pull Request (e.g.
  • SKILL.md covers Mandatory Constraint, Important Rule and Process Steps
  • Calls git

What it does

Commit And PR is an agent skill from 302ai/302-AI-Studio. Use this skill whenever the user wants to commit changes and create a Pull Request (e.g., 'commit and PR', 'push my changes', 'create a PR'). It automates branch checkout, conventional commits, and uses the create-github-pull-request-from-specification skill to open a PR.

Its SKILL.md is about 700 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `eval_set.json`).

It sits in Development, covering Commit messages and Pull requests. It works with GitHub and Git. The licence is AGPL-3.0.

When your agent uses it

  • The user wants to commit changes and create a Pull Request (e.g.
  • Push my changes

Example prompts

  • “commit and PR”
  • “push my changes”
  • “create a PR”
  • “/commit-and-pr”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Verify State & Ask for Information
  2. Checkout Branch (CRITICAL)
  3. Commit Code
  4. Push Code
  5. Create the PR using Specification Skill
  6. Cleanup (MANDATORY)
  7. Completion

What it can do on your machine

Read from SKILL.md and the folder at commit 8b11163. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Commit And PR loads about 700 tokens when it runs. Until then it costs about 72 tokens; SKILL.md has 363 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~72
When it runs · the whole SKILL.md, loaded when a task matches
~700

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from 302ai/302-AI-Studio at commit 8b11163, republished under its AGPL-3.0 licence (© 302ai). 363 words, ~700 tokens.

Download SKILL.mdSave it as .claude/skills/commit-and-pr/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
commit-and-pr
description
Use this skill whenever the user wants to commit changes and create a Pull Request (e.g., 'commit and PR', 'push my changes', 'create a PR'). It automates branch checkout, conventional commits, and uses the create-github-pull-request-from-specification skill to open a PR.

Commit and Pull Request Workflow

This skill automates the process of committing local changes, pushing to a new branch, and opening a Pull Request using the project's PR template.

Mandatory Constraint

You MUST switch back to the original branch at the end of the process. This is non-negotiable and ensures the developer's workspace remains consistent.

Important Rule

NEVER proceed without asking the user for the target base branch. Even if the user provides a prompt like "commit and PR this", you must stop and ask them for the target branch (e.g., dev/26.16, master) before doing any Git operations.

Process Steps

Follow these steps exactly in order:

  1. Verify State & Ask for Information:

    • Run `git branch --show-current` to save the name of the original branch.
    • Run `git status` and `git diff` to understand the current changes.
    • Ask the user: "What should the target base branch be for this PR? (And optionally, what do you want to name the new branch?)"
    • WAIT for the user's response. Do not proceed to step 2 until they answer.
  2. Checkout Branch (CRITICAL):

    • If the user did not provide a branch name, generate one based on the changes using conventional prefixes (e.g., `feat/xxx`, `fix/xxx`, `chore/xxx`).
    • CRITICAL RULE: If the current branch is the same as the target base branch the user specified, you MUST checkout a new branch (e.g., `git checkout -b <new-branch-name>`). You must NEVER commit and push directly to the target base branch.
    • Run `git checkout -b <branch-name>` (or `git checkout <branch-name>` if the user provided an existing one and it's not the base branch).
  3. Commit Code:

    • Write a conventional commit message describing the changes.
    • Run `git commit -m "..."`.
  4. Push Code:

    • Run `git push -u origin <branch-name>`.
  5. Create the PR using Specification Skill:

    • Once the code is pushed, you must use the `create-github-pull-request-from-specification` skill to create the PR.
    • Invoke the skill tool passing the target base branch the user provided: `Tool call: Skill (skill: "create-github-pull-request-from-specification", args: "--base <target-branch>")`
  6. Cleanup (MANDATORY):

    • Switch back to the original branch captured in step 1: `git checkout <original-branch>`.
  7. Completion:

    • Inform the user that the PR has been created and you have switched back to the original branch.

© 302ai, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files in .agents/skills/commit-and-pr of 302ai/302-AI-Studio.

  • SKILL.md
  • SKILL.md.bak
  • eval_set.json

Open the folder on GitHubat commit 8b11163

Compare with similar skills

Commit And PR next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Commit And PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Commit And PR this skill302ai/302-AI-Studio132—~700Automated safety check: PassAGPL-3.0
React Router Pull Request Creatorremix-run/react-router57k—~2.5kAutomated safety check: PassMIT
Verdaccio Pull Request Workflowverdaccio/verdaccio18k—~1.9kAutomated safety check: PassMIT
Draft Pull Request Creatorwordpress-mobile/WordPress-Android3.2k—~881Automated safety check: NotesGPL-2.0
Submit PRtisfeng/Easydict15k—~595Automated safety check: PassGPL-3.0
Create PREmiyaaaaa/HiveMind1.1k—~1.7kAutomated safety check: PassCustom licence

Similar skills

  • React Router Pull Request Creator

    remix-run/react-router

    Packages finished React Router work into a draft pull request: branch, commit, push, a written PR body and the right GitHub labels.

    57k GitHub stars~2.5k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Takes a change through a verdaccio pull request: branch, local checks, changeset, title and body, labels, CI and review rounds, and ports to other release lines.

    18k GitHub stars~1.9k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Draft Pull Request Creator

    wordpress-mobile/WordPress-Android

    Commits and pushes current changes, writes a pull request title and body from the branch history and template, and opens a draft PR on GitHub after you approve it.

    3.2k GitHub stars~881 tokensUpdated today
    DevelopmentAuto-check: notes
  • Submit PR

    tisfeng/Easydict

    创建或复用当前 checkout 已提交变更的 GitHub PR,必要时推送任务分支。PR 审查使用 review-pr;仅本地提交使用 git-commit。

    15k GitHub stars~595 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Create PR

    Emiyaaaaa/HiveMind

    Create a GitHub pull request with gh pr create. An agent skill from Emiyaaaaa/HiveMind.

    1.1k GitHub stars~1.7k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Publishes a GitHub PR for the checked-out branch with a Conventional Commits style title, a description backed by commands run, and screenshots when the UI changed.

    5.9k GitHub stars~1.2k tokensUpdated 8 days ago
    DevelopmentAuto-check passed

More from 302ai/302-AI-Studio

  • Adversarial Reviewer

    302ai/302-AI-Studio

    Adversarial code review that breaks the self-review monoculture.

    132 GitHub starsUsed in 1 repo~3k tokens
    Auto-check passed
  • Electron

    302ai/302-AI-Studio

    Provides comprehensive guidance for Electron framework including main process, renderer process, IPC communication, window management, and desktop app development.

    132 GitHub stars~1.8k tokensUpdated 1 mo ago
    Auto-check passed
  • Comprehensive integration skill for building sites with SvelteKit 2, Svelte 5, and Tailwind CSS v4

    132 GitHub stars~3.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Create GitHub Pull Request for feature request from specification file using pullrequesttemplate.md template.

    132 GitHub starsUsed in 1 repo~406 tokens
    Auto-check passed

Works with

Categories

Questions about Commit And PR

What does Commit And PR do?

A skill your agent uses whenever the user wants to commit changes and create a Pull Request (e.g., 'commit and PR', 'push my changes', 'create a PR'). Commit And PR is an agent skill from 302ai/302-AI-Studio., 'commit and PR', 'push my changes', 'create a PR').

When should I use Commit And PR?

Commit And PR fits situations like: the user wants to commit changes and create a Pull Request (e.g; push my changes.

How do I install Commit And PR in Claude Code?

Run `npx skills add 302ai/302-AI-Studio --skill commit-and-pr -a claude-code`. Or copy the skill folder (.agents/skills/commit-and-pr in 302ai/302-AI-Studio) into .claude/skills/commit-and-pr in your project. Claude Code loads it when a task matches its description.

How do I install Commit And PR in Codex?

Run `npx skills add 302ai/302-AI-Studio --skill commit-and-pr -a codex`. Or copy the skill folder (.agents/skills/commit-and-pr in 302ai/302-AI-Studio) into .agents/skills/commit-and-pr in your project. Codex loads it when a task matches its description.

Can I use Commit And PR in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add 302ai/302-AI-Studio --skill commit-and-pr -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/commit-and-pr, .gemini/skills/commit-and-pr, .github/skills/commit-and-pr and .opencode/skills/commit-and-pr in your project.

What does Commit And PR need to run?

Going by SKILL.md and its folder, Commit And PR needs the command-line tools its instructions call (git).

Does Commit And PR access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Commit And PR safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Commit And PR use?

Commit And PR is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Commit And PR use?

About 700 tokens (SKILL.md is roughly 2.8k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Commit And PR?

Skills that share tags, products or a category with Commit And PR: React Router Pull Request Creator (remix-run/react-router, 57k stars), Verdaccio Pull Request Workflow (verdaccio/verdaccio, 18k stars), Draft Pull Request Creator (wordpress-mobile/WordPress-Android, 3.2k stars) and Submit PR (tisfeng/Easydict, 15k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Commit And PR?

302ai (a GitHub organization) maintains it in 302ai/302-AI-Studio, which has 132 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on August 31, 2026.

Source: 302ai/302-AI-Studio on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.