Agent skill

Create PR

by mengxi-ream in mengxi-ream/read-frog

Create a pull request, optionally for the issue provided as argument

GPL-3.0Auto-check passedDevelopment

Install Create PR

skills CLI
$ npx skills add mengxi-ream/read-frog --skill create-pr -a claude-code

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

GitHub CLI
$ gh skill install mengxi-ream/read-frog create-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/mengxi-ream/read-frog.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/create-pr .claude/skills/create-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
create-pr
GitHub stars
10k
Token cost
~2.4k tokens
SKILL.md length
1,309 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
GPL-3.0

At a glance

Create a pull request, optionally for the issue provided as argument

  • Works in 11 steps: Check current git status and branch… → Create branch if needed → Review commit history and code differences → …
  • Tasks that involve Pull requests
  • SKILL.md covers Workflow, Commit Convention and References
  • Calls git, gh and pnpm; reaches github.com

What it does

Create PR is an agent skill from mengxi-ream/read-frog. Create a pull request, optionally for the issue provided as argument

Its SKILL.md is about 2.4k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Pull requests. It works with Chrome Extensions and Git. The repository describes itself as: 🐸 Read Frog - Language Learning & Translate | 🐸 陪读蛙 - 语言学习与翻译. The licence is GPL-3.0.

When your agent uses it

  • Tasks that involve Pull requests

Example prompts

  • “/create-pr”

Workflow steps

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

  1. Check current git status and branch information
  2. Create branch if needed
  3. Review commit history and code differences
  4. Record a demo for user-visible frontend changes
  5. Upload the demo to GitHub attachments — only when step 4 produced a recording
  6. Add changeset record if necessary
  7. Ensure all changes are committed
  8. Push the branch to remote
  9. Create PR with GitHub CLI
  10. Verify the demo embed — only for a PR that has one
  11. Return the PR URL for easy access

What it can do on your machine

Read from SKILL.md and the folder at commit 8a29c04. 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
    • gh
    • pnpm

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

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    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

Create PR loads about 2.4k tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 1,309 words of instructions outside code blocks.

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

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 mengxi-ream/read-frog at commit 8a29c04, republished under its GPL-3.0 licence (© mengxi-ream). 1,309 words, ~2,429 tokens.

Download SKILL.mdSave it as .claude/skills/create-pr/SKILL.md (or your agent's skills folder).
name
create-pr
description
Create a pull request, optionally for the issue provided as argument
metadata.author
read-frog
metadata.version
1.0.0

Create Pull Request

Create a pull request. If an issue number is provided in $ARGUMENTS, use it. If no issue is provided, continue without requiring one.

Workflow

Follow these steps:

  1. Check current git status and branch information

    • Run git status and git branch to understand the current state
  2. Create branch if needed

    • If no branch name is provided and we are on the main branch, create a branch based on the code changes
    • If working on a worktree, create a branch based on the worktree branch, don't change the name
    • Otherwise, work on the current branch
  3. Review commit history and code differences

    • Run git log and git diff main...HEAD to understand all changes from the main branch
  4. Record a demo for user-visible frontend changes

    • Require a demo when the diff changes user-visible behavior: injected page UI, popup / options / side-panel UI, translation output shape, interactions, routing inside extension pages, or loading and error states.

    • Do not require one for implementation-only refactors, types, tests, build or CI config, or anything with no visible effect.

    • When a demo is required, invoke the record-extension-demo skill. If it is unavailable, follow the prompt below with the browser tooling at hand; if faithful recording is not possible, report the limitation instead of fabricating evidence.

      text
      Record a concise PR demo for <feature> on the current branch against <base-branch>. Inspect the diff and the repository instructions first. Turn the behavior into captioned scenes with setup, action, assertion, and end state. Build `.output/chrome-mv3` and drive it in a fresh Chrome profile with the whole config forced from the service worker and `targetCode = 'cmn'`; prefer `microsoft-translate-default` so no API key can reach a frame. Default desktop capture to 1280x800, but choose another explicit viewport when the surface requires it (the popup is small). Gate every transition on a selector or a translated-node count rather than a fixed sleep; after the assertion succeeds, hold the state about two to three seconds. Add caption pills and click highlights marked `notranslate` without modifying extension source. For bug fixes or visual regressions, rebuild the base commit in a separate worktree and capture the same scenario on both builds; for static visual changes, include paired screenshots. Keep automation and media in the scratchpad, remove install and onboarding prelude, and measure any crop from a full-resolution frame. Visually QA the result and return the absolute MP4 path, optional GIF path, scene captions, assertion results, baseline/candidate SHAs when compared, and the functional verification summary. Exclude API keys, tokens, personal tabs, and unrelated notifications. If the environment cannot reproduce the behavior faithfully, stop and report the limitation.
    • Keep the recording in the session scratchpad. Never commit a video or GIF.

    • Treat the recording as verification evidence: do not tick Verified through manual testing unless both the state assertions and the visual QA passed.

    • If no demo is required, write Not applicable — no user-visible change. in the PR template's ## Screenshots section.

  5. Upload the demo to GitHub attachments — only when step 4 produced a recording

    • Skip this step entirely when step 4 decided no demo was required, or when it reported that the environment could not reproduce the behavior faithfully. There is no file to upload, and the ## Screenshots section already says so. Go straight to step 6.

    • Use gh-image so the PR embeds a repository-scoped user-attachments video instead of a third-party asset host.

    • Check before uploading:

      bash
      gh auth status
      gh extension list | grep 'drogers0/gh-image'
      gh image --version
    • Require v1.1.0 or newer. If it is missing or outdated, tell the user to run gh extension install drogers0/gh-image or gh extension upgrade gh-image and wait. Do not install it on their behalf.

    • Never run gh image extract-token, pass --token, or handle a GitHub user_session cookie. The normal gh token is enough for a repository the current account can push to.

    • Confirm the finished recording shows no API keys, tokens, personal tabs, or unrelated information. This repository is public and uploads cannot be undone.

    • Upload the verified MP4 and capture the bare URL printed to stdout. Upload a GIF only when the destination needs one:

      bash
      gh image "/absolute/path/to/demo.mp4" --repo mengxi-ream/read-frog
    • Accept the result only when it is one bare https://github.com/user-attachments/assets/... URL. Put it inside stable markers in the ## Screenshots section so a rerun replaces the section instead of appending a second video:

      markdown
      <!-- read-frog-pr-demo:start -->
      https://github.com/user-attachments/assets/...
      
      - Scene 1: <caption and assertion>
      - Verification: <DOM/storage check and result>
      <!-- read-frog-pr-demo:end -->
    • GitHub renders the bare video URL as an inline player. When updating an existing PR, replace exactly one marked region and leave the rest of the body unchanged. Do not re-upload a file merely because the body update failed.

  6. Add changeset record if necessary

    • Manually add a file in .changeset/ directory following changeset convention

    • The package name is always @read-frog/extension. This is a single-package workspace and changesets matches the header against the name in the root package.json; a bare read-frog is not a workspace package and makes the release plan fail.

    • File shape — fill in the bump level and the summary, leave the package name as written:

      markdown
      ---
      "@read-frog/extension": patch
      ---
      
      fix(subtitles): follow YouTube's own default caption track
    • Changeset summary should use conventional commit style and should match the descriptive PR title

    • Versioning rules:

      • patch (0.0.x) — Users barely notice
        • Bug fixes
        • Small feature enhancements (e.g., drag-and-drop reordering)
        • UI tweaks, performance optimizations
        • Refactors, code cleanup
        • i18n additions
        • Adding a single config toggle
      • minor (0.x.0) — Users can clearly perceive "something new"
        • Independent, complete new features (e.g., subtitle translation, TTS)
        • New AI provider support
        • Major UI overhaul (new pages/panels)
        • New user-facing configuration system (not just a single toggle)
      • major (x.0.0) — Users need to pay attention / adapt. Almost never use. Must ask user for explicit approval before using.
        • Config format incompatibility (cannot auto-migrate)
        • Removal of existing features
        • API/storage structure breaking changes
        • Fundamental migrations (e.g., Manifest V2 → V3)
    • Verify the changeset before committing: pnpm exec changeset status must list the expected bump under @read-frog/extension. A non-zero exit means the changeset is malformed and the release plan will not generate.

  7. Ensure all changes are committed

    • Stage and commit any uncommitted changes
    • Branch should be ready for PR
  8. Push the branch to remote

    • Run git push -u origin <branch-name> if needed
  9. Create PR with GitHub CLI

    • Use gh pr create with:
      • A descriptive title following commit convention
      • Comprehensive PR description following the template at .github/PULL_REQUEST_TEMPLATE.md
      • If an issue number was provided, include it in the PR description using Closes #<issue-number>
      • If no issue number was provided, search for a relevant issue only if it is easy to identify; otherwise leave the issue field empty instead of blocking the workflow
      • Put the uploaded user-attachments URL and the demonstrated scenes in the ## Screenshots section, inside the read-frog-pr-demo markers — or the step 4 sentence saying why there is none
      • Write each paragraph of the body as a single line. GitHub renders a newline inside a PR body as a line break, so a hard-wrapped paragraph arrives on the page broken at the column you wrapped it at.
  10. Verify the demo embed — only for a PR that has one

Show full SKILL.md (137 more words)Show less
  • Skip when no demo was required. Otherwise confirm the attachment survived the body without printing the whole body:

    bash
    gh pr view <pr> --repo mengxi-ream/read-frog --json body -q .body | grep -c 'github.com/user-attachments/'
  • Expect at least one match. If the embed is missing, fix the PR body; do not upload the video again.

  1. Return the PR URL for easy access
  • Also return the demo status: uploaded URL and demonstrated scenes, not applicable, or the exact recording/upload limitation.

Commit Convention

Follow these commit types:

  • feat: New features
  • fix: Bug fixes
  • docs: Documentation changes
  • style: Code style changes
  • refactor: Code refactoring
  • test: Adding or updating tests
  • chore: Maintenance tasks
  • build: Build system changes
  • ci: CI/CD changes
  • perf: Performance improvements
  • revert: Reverting previous commits
  • i18n: Internationalization changes
  • ai: AI-related features

Format: type(scope): description

References

  • PR Template: .github/PULL_REQUEST_TEMPLATE.md
  • Project Guidelines: CLAUDE.md

© mengxi-ream, GPL-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

Just SKILL.md in .agents/skills/create-pr of mengxi-ream/read-frog.

Open the folder on GitHubat commit 8a29c04

Compare with similar skills

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

Create PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Create PR this skillmengxi-ream/read-frog10k—~2.4kAutomated safety check: PassGPL-3.0
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Understand Diff AnalysisEgonex-AI/Understand-Anything85k1 repos~1.4kAutomated safety check: PassMIT
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Open Code Review CLIalibaba/open-code-review44k—~3.1kAutomated safety check: PassApache-2.0
Create Pull Requestcline/cline70k1 repos~1.6kAutomated safety check: PassApache-2.0

Similar skills

  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Understand Diff Analysis

    Egonex-AI/Understand-Anything

    Reads your git changes or a pull request against a prebuilt knowledge graph of the project to explain what changed, which components are affected and what is risky.

    85k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • Open Code Review CLI

    alibaba/open-code-review

    Runs the ocr command-line tool to review Git changes, a commit or a branch comparison with an AI model, returning line-level comments and optionally applying fixes.

    44k GitHub stars~3.1k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.

    70k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Pull Request Title and Body Writer

    openinterpreter/openinterpreter

    Rewrites the title and body of one or more pull requests with gh, leading with why the change was made, then what changed, and describing only the net result.

    69k GitHub starsUsed in 2 repos~1.1k tokens
    DevelopmentAuto-check passed

More from mengxi-ream/read-frog

All 9 skills in this repo
  • Adversarial Review

    mengxi-ream/read-frog

    Adversarial code review using cross-model approach. An agent skill from mengxi-ream/read-frog.

    10k GitHub starsUsed in 1 repo~905 tokens
    Auto-check passed
  • Record Extension Demo

    mengxi-ream/read-frog

    Record polished, evidence-backed demos of the Read Frog extension as MP4 (and optional GIF) by driving real Chrome with the built extension, following captioned scene scripts, asserting extension…

    10k GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Extension Puppeteer Debugging

    mengxi-ream/read-frog

    Debug the built Read Frog extension in real Chrome. An agent skill from mengxi-ream/read-frog.

    10k GitHub stars~2k tokensUpdated today
    Auto-check: notes
  • Webext Core

    mengxi-ream/read-frog

    Utilities for browser extensions - proxy services for cross-context RPC, type-safe messaging, URL match patterns, fake browser for testing, job scheduling, and shadow DOM isolation.

    10k GitHub stars~633 tokensUpdated today
    Auto-check passed
  • Wxt

    mengxi-ream/read-frog

    Build browser extensions with WXT - a next-gen framework with file-based entrypoints, Vite builds, auto-imports, typed storage with migrations, content script UIs, and multi-browser MV2/MV3 support.

    10k GitHub stars~500 tokensUpdated today
    Auto-check passed
  • Migration Scripts

    mengxi-ream/read-frog

    A skill your agent uses when writing or reviewing database/config migration scripts or migration registries.

    10k GitHub stars~589 tokensUpdated today
    Auto-check passed

Categories

Questions about Create PR

What does Create PR do?

Create a pull request, optionally for the issue provided as argument. Create PR is an agent skill from mengxi-ream/read-frog.

When should I use Create PR?

Create PR fits situations like: tasks that involve Pull requests.

How do I install Create PR in Claude Code?

Run `npx skills add mengxi-ream/read-frog --skill create-pr -a claude-code`. Or copy the skill folder (.agents/skills/create-pr in mengxi-ream/read-frog) into .claude/skills/create-pr in your project. Claude Code loads it when a task matches its description.

How do I install Create PR in Codex?

Run `npx skills add mengxi-ream/read-frog --skill create-pr -a codex`. Or copy the skill folder (.agents/skills/create-pr in mengxi-ream/read-frog) into .agents/skills/create-pr in your project. Codex loads it when a task matches its description.

Can I use Create 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 mengxi-ream/read-frog --skill create-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/create-pr, .gemini/skills/create-pr, .github/skills/create-pr and .opencode/skills/create-pr in your project.

What does Create PR need to run?

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

Does Create PR access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Create 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 Create PR use?

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

How many tokens does Create PR use?

About 2.4k tokens (SKILL.md is roughly 9.7k 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 Create PR?

Skills that share tags, products or a category with Create PR: Finishing a Development Branch (obra/superpowers, 296k stars), Understand Diff Analysis (Egonex-AI/Understand-Anything, 85k stars), Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars) and Open Code Review CLI (alibaba/open-code-review, 44k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Create PR?

mengxi-ream (a GitHub user) maintains it in mengxi-ream/read-frog, which has 9,987 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 7, 2026.

Source: mengxi-ream/read-frog on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.