Skip to content
Skill

PR ruancat repo

Batch-edit cloned ruan-cat repos with local commits, opening PRs only on request

PR ruancat repo is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
TypeScript
Platforms
Claude Code, Codex, Cursor
GitHub stars
5
Last commit
License
MIT
Listing updated

Similar skills

About PR ruancat repo

This skill applies one shared change across several locally cloned ruan-cat repositories. Its default route is a local commit on the branch that is already checked out, with no new branch and no pull request. A pull request workflow is used only when the user explicitly asks for one, and then the agent also watches GitHub Actions, Cloudflare Workers and Vercel after the PR is opened.

The workflow scopes the target repositories, drafts a commit message through the git-commit skill, and can generate a Node-based batch script with dry-run and per-repo overrides. When the request is ambiguous, the agent is told to ask a single clarifying question before touching any files.

It expects the repositories to be cloned locally, the GitHub CLI for PR work, and Node.js to run the generated script. The reference files are written in Chinese and the commit conventions it follows are Chinese Conventional Commits with emoji.

When your agent uses it

对已克隆的 ruan-cat 仓库做批量修改。默认只在当前分支做本地 git commit,不新建分支,不开 GitHub PR。只有用户明确要求 PR 时才进入批量 PR,并在开 PR 后跟踪 GitHub Actions、Cloudflare Worker 和 Vercel。意图无法判断时先用 grill-me 提问,不得动手。触发关键词包括“pr-ruancat-repo” “批量改仓库”“本地提交”“批量 PR”“对 ruan-cat 的仓库发 PR”。

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 6 files (85 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the common-tools plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add ruan-cat/monorepo
/plugin install common-tools@ruan-cat-tools

Or copy only this skill to ~/.claude/skills/pr-ruancat-repo:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/pr-ruancat-repo &&
cp -R "$tmp/ai-plugins/common-tools/skills/pr-ruancat-repo" ~/.claude/skills/pr-ruancat-repo &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/pr-ruancat-repo inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/pr-ruancat-repo to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/pr-ruancat-repo &&
cp -R "$tmp/ai-plugins/common-tools/skills/pr-ruancat-repo" ~/.agents/skills/pr-ruancat-repo &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/pr-ruancat-repo inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/pr-ruancat-repo to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/pr-ruancat-repo &&
cp -R "$tmp/ai-plugins/common-tools/skills/pr-ruancat-repo" ~/.cursor/skills/pr-ruancat-repo &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/pr-ruancat-repo inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/ruan-cat/monorepo.git --path ai-plugins/common-tools/skills/pr-ruancat-repo

Or copy the folder to ~/.gemini/skills/pr-ruancat-repo yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/pr-ruancat-repo:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/ruan-cat/monorepo.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/pr-ruancat-repo &&
cp -R "$tmp/ai-plugins/common-tools/skills/pr-ruancat-repo" ~/.copilot/skills/pr-ruancat-repo &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/pr-ruancat-repo inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/ruan-cat/monorepo.git

Then copy monorepo/ai-plugins/common-tools/skills/pr-ruancat-repo into your agent's skills folder as pr-ruancat-repo. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Default local commit route
Commits changes on the current branch without switching branches or opening a pull request.
Explicit pull request mode
Runs a batch PR flow only when the user clearly asks for pull requests.
Repository scope analysis
Scans target repositories for matching files and records occurrences and special cases before editing.
Generated batch script
Produces a TypeScript script with dry-run, workdir options and a per-run summary file.
CI and deploy tracking
Checks GitHub Actions, Cloudflare Workers and Vercel results for opened pull requests.
Clarification before action
Asks one question about delivery method when the intent could mean either a commit or a PR.

Good for

  • Apply the same config change to several cloned repositories and commit locally
  • Run a dry-run preview of a batch edit across ruan-cat projects
  • Open coordinated pull requests across a set of repositories and check their pipelines
  • Update the Node version in CI workflow files across multiple repos

PR ruancat repo FAQ

Will PR ruancat repo open a pull request by default?

No. The default route is a local commit on the currently checked-out branch. A pull request is created only when the user explicitly asks for one.

What does PR ruancat repo need to run?

The repositories must be cloned locally. The pull request mode uses the GitHub CLI, and the generated script requires Node.js 18 or newer.

Which tools does PR ruancat repo watch after opening a PR?

It checks GitHub Actions, Cloudflare Workers and Vercel for each repository that uses them, as documented in that repository.

How do I install PR ruancat repo in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/pr-ruancat-repo to use it in all your projects, or to .claude/skills/pr-ruancat-repo in one project. Or install the common-tools plugin, which includes it: /plugin marketplace add ruan-cat/monorepo, then /plugin install common-tools@ruan-cat-tools.

Does PR ruancat repo run scripts?

Yes. It runs TypeScript scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use PR ruancat repo?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to PR ruancat repo?

The closest alternatives to PR ruancat repo are Make PR, Commit push PR, Clone ruancat repo, PR review and Create PR.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from ruan-cat/monorepo

  1. Works through an OpenSpec change's task list, implementing and checking off each task

    • Open source
    • 5 GitHub stars
    • Developer tools
  2. Finalizes a completed OpenSpec change, syncing its specs and moving it to the archive

    • Open source
    • 5 GitHub stars
    • Developer tools
  3. Generates all OpenSpec planning artifacts for a change in one pass

    • Open source
    • 5 GitHub stars
    • Developer tools
  4. Starts a new OpenSpec change and shows its first artifact template for review

    • Open source
    • 5 GitHub stars
    • Developer tools
  5. Checks and normalizes package.json, tsup and tsconfig setup for monorepo Node packages

    • Open source
    • 5 GitHub stars
    • Developer tools
  6. Turns incident reports and repeated failures into durable, verifiable agent skill rules

    • Open source
    • 5 GitHub stars
    • Developer tools