Agent skill

Prepare PR

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

Prepare all work before creating a pull request, optionally for the issue provided as argument

GPL-3.0Auto-check passedDevelopment

Install Prepare PR

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

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

GitHub CLI
$ gh skill install mengxi-ream/read-frog prepare-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/prepare-pr .claude/skills/prepare-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
prepare-pr
GitHub stars
10k
Token cost
~1.3k tokens
SKILL.md length
666 words
Files
1
Skills in repo
9
Repo updated
First seen
Licence
GPL-3.0

At a glance

Prepare all work before creating a pull request, optionally for the issue provided as argument

  • Works in 8 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, pnpm and gh

What it does

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

Its SKILL.md is about 1.3k 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

  • “/prepare-pr”

Workflow steps

8 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. Add changeset record if necessary
  5. Ensure all changes are committed
  6. Push the branch to remote
  7. Record a demo for user-visible frontend changes
  8. Create Markdown for PR Description

What it can do on your machine

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

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

  • Network

    No URLs in SKILL.md. Its commands use git, pnpm and gh, 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

Prepare PR loads about 1.3k tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 666 words of instructions outside code blocks.

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

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 56f29ed, republished under its GPL-3.0 licence (© mengxi-ream). 666 words, ~1,308 tokens.

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

Prepare Pull Request

Prepare all work before creating 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. 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.

  5. Ensure all changes are committed

    • Stage and commit any uncommitted changes
    • Do not commit the PR description markdown created under docs/; it is for local copy/paste only
    • If a docs/pr-*.md file was accidentally staged, remove it from the index before committing while keeping the local file
    • Branch should be ready for PR
  6. Push the branch to remote

    • Run git push -u origin <branch-name> if needed
  7. Record a demo for user-visible frontend changes

    • Same rule as /create-pr step 4: a demo is required when the diff changes user-visible behavior, and not required for implementation-only changes.
    • When one is required, invoke the record-extension-demo skill, keep the recording in the scratchpad, and upload it with gh image "<file>" --repo mengxi-ream/read-frog before writing the description. When none is required, skip straight to the next step — there is nothing to record or upload.
  8. Create Markdown for PR Description

    • Create a markdown file in docs/ folder which only contains the description of the PR and for me later to copy paste:
      • 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
      • Leave the file uncommitted; it should stay local even after the branch is pushed
      • Put the uploaded user-attachments URL and the demonstrated scenes in the ## Screenshots section between <!-- read-frog-pr-demo:start --> and <!-- read-frog-pr-demo:end -->, or write Not applicable — no user-visible change.
Show full SKILL.md (60 more words)Show less

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/prepare-pr of mengxi-ream/read-frog.

Open the folder on GitHubat commit 56f29ed

Compare with similar skills

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

Prepare PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Prepare PR this skillmengxi-ream/read-frog10k—~1.3kAutomated safety check: PassGPL-3.0
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Understand Diff AnalysisEgonex-AI/Understand-Anything86k1 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.

    86k 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 3 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
  • Create PR

    mengxi-ream/read-frog

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

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

Categories

Questions about Prepare PR

What does Prepare PR do?

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

When should I use Prepare PR?

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

How do I install Prepare PR in Claude Code?

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

How do I install Prepare PR in Codex?

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

Can I use Prepare 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 prepare-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/prepare-pr, .gemini/skills/prepare-pr, .github/skills/prepare-pr and .opencode/skills/prepare-pr in your project.

What does Prepare PR need to run?

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

Does Prepare PR access the network?

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

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

Prepare 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 Prepare PR use?

About 1.3k tokens (SKILL.md is roughly 5.2k 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 Prepare PR?

Skills that share tags, products or a category with Prepare PR: Finishing a Development Branch (obra/superpowers, 296k stars), Understand Diff Analysis (Egonex-AI/Understand-Anything, 86k 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 Prepare PR?

mengxi-ream (a GitHub user) maintains it in mengxi-ream/read-frog, which has 9,993 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 8, 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.