babylonjs/babylon.js/create-pr
Claude Code and agent skill by babylonjs/babylon.js
- community
Checking that the SKILL.md file is still in the repository.
Orchestrates the full PR lifecycle: merge upstream, self code review locally, create a standard PR, monitor, and iterate on fixes. Can also monitor and iterate on an existing PR. Input: [--push-remote <fork>] [--upstream-remote <remote>] [--base <branch>] [--merge] [--mode automatic|interactive] [--review-lens instructions|agnostic|both] [--pr <number>]
Install
npx vskill@latest install babylonjs/babylon.js/create-prSKILL.md
The same SKILL.md was published earlier as babylonjs/babylon.js/create-pr.
Create PR
Orchestrator skill that creates a PR and shepherds it through review. It invokes other skills as sub-agents and does its own work between them.
Input
Parse $ARGUMENTS:
| Argument | Description | |
|---|---|---|
--push-remote <fork> | Git remote (user's fork) to push the branch to. If omitted, detect and prompt. | |
--upstream-remote <name> | Git remote pointing at the PR target repo (e.g. upstream, origin). If omitted, detect and prompt. | |
--base <branch> | Base branch the PR merges into (e.g. master). If omitted, use the upstream's default branch and prompt to confirm. | |
--merge | Merge upstream base into the feature branch before creating the PR. If omitted, prompt. | |
--mode automatic | Fixes are applied, committed, pushed, and comments resolved automatically. | |
--mode interactive | Fixes are staged; skill pauses before commit/push/resolve so the user can review. | |
--review-lens <lens> | Self code review lens passed to code-review: instructions, agnostic, or both. If omitted, use both. | |
--pr <number> | Monitor and iterate on an existing PR. Resolves --mode, then skips the remaining Step 1 inputs and Steps 2–4. --review-lens is ignored. |
If --mode is not specified, ask the user.
If --review-lens is invalid, stop and ask the user to choose a valid value. Do not silently reinterpret misspelled options.
If --pr is provided, resolve --mode, then continue directly to Step 5 (monitor) and Step 6 (iteration loop). Do not prompt for remote, merge, title, body, reviewers, labels, or self code review options; --review-lens has no effect because self code review only runs when creating a new PR.
Prerequisites
- Verify
ghis installed and authenticated (gh auth status). If not,
link to https://github.com/cli/cli#installation and stop.
- Check if PowerShell is available for dialog notifications. If
unavailable, fall back to text-only alerts.
- The merge step in Step 2 requires the
babylon-skills:merge-and-resolve
skill. Do not try to pre-check its availability — the agent's available skills list may be truncated, which causes false negatives. Always offer the merge option in Step 1a; if invocation in Step 2 fails because the skill isn't installed, warn the user and skip.
⚠️ Always pass `--no-pager` to `git` (e.g.git --no-pager log,git --no-pager diff,git --no-pager show). Without it, commands canlaunch an interactive pager (less) that blocks the shell. Thisapplies to everygitinvocation in this skill, not just the examplesshown below.
Step 1: Gather all inputs up front
If `--pr` was provided, only resolve--modein this step. Skip theremaining Step 1 inputs and Steps 2–4, then jump to Step 5.
Every user prompt in this skill MUST use the `ask_user` tool — notplain chat text. Provide multiple-choice options where possible (e.g.yes/no, automatic/interactive, detected-remote/other). Ask one questionat a time and wait for the answer before proceeding.If the user replies with freeform feedback (e.g. "also add reviewer X","change the title to X"), apply the change and **re-ask the samequestion** with the updated options. Only continue once the userpicks a final option without further changes.
Collect everything before starting the workflow so it doesn't stop midway.
1a. Remotes, base branch, and merge
- Detect git remotes (
git remote -v). - Push remote (user's fork) — the remote whose URL contains the user's
GitHub login (gh api user --jq ".login"). If --push-remote is specified, use it; otherwise present the detected fork and ask the user to confirm or change it.
- Upstream remote (PR target) — the remote pointing at
BabylonJS/Babylon.js (often named upstream or origin). If --upstream-remote is specified, use it; otherwise present the detected remote and ask the user to confirm or change it.
- Base branch — if
--baseis specified, use it; otherwise default
to the upstream's default branch (gh repo view BabylonJS/Babylon.js --json "defaultBranchRef" --jq ".defaultBranchRef.name", typically master) and prompt the user to confirm.
- Once the upstream remote and base branch are confirmed, fetch so the
base reference is current: git fetch <upstream-remote> <base-branch>.
- If `--merge` not specified, ask:
_"Would you like to merge and resolve before creating the PR?"_ The babylon-skills:merge-and-resolve skill handles merging the upstream base into the feature branch.
Remember <push-remote>, <upstream-remote>, <base-branch>, and <self-login> (from gh api user --jq ".login") — they are reused in 1c, 1d, Step 2, Step 3, and Step 4.
1b. Mode
If `--mode` not specified, ask:
- Automatic — everything happens without pausing.
- Interactive — pauses at key points so you can review before changes
are committed/pushed.
Resolve the self code review lens without prompting unless the user supplied an invalid value:
<review-lens>from--review-lens, defaulting toboth.
1c. PR title and body
- Analyze only branch-specific changes using three-dot diff against
<upstream-remote>/<base-branch> (resolved in 1a):
```bash # Branch commits with full messages (not just --oneline) so you can # read author intent, not just code deltas git --no-pager log <upstream-remote>/<base-branch>...HEAD
# Files changed by the branch only (excludes merged-in upstream changes) git --no-pager diff <upstream-remote>/<base-branch>...HEAD --stat ```
> ⚠️ Do not use two-dot .. or compare against local master — > either can include unrelated upstream commits or miss recent > upstream work, inflating the file count.
- Generate a proposed title and body **using both the code diff and
the commit messages** — the messages often describe intent, motivation, and linked issues that the diff alone doesn't convey. The body should start with: > 🤖 *This PR was created by the create-pr skill.* Include a clear explanation of the changes, motivation, and any behavioral changes. Include links to related PRs or issues if referenced in commit messages.
- Present to the user — they can accept, modify, or provide their own.
1d. Reviewers
Suggest the top 1–2 upstream-org members who authored or reviewed previous PRs touching the files/folders changed by this PR. Do the whole pipeline non-interactively. Reuse <upstream-remote>, <upstream-owner>, <upstream-repo>, <base-branch>, and <self-login> from Step 1a.
- Collect recent commit SHAs on the base that touched the PR's
changed files:
``bash git --no-pager diff --name-only <upstream-remote>/<base-branch>...HEAD git --no-pager log <upstream-remote>/<base-branch> --format="%H" -n 30 -- <file1> <file2> ... ``
- For each SHA, map to its PR and collect author + review-submitters.
Each appearance = +1 score for that login. Skip commits with no associated PR.
``bash gh api "/repos/<upstream-owner>/<upstream-repo>/commits/<sha>/pulls" --jq ".[0].number" gh api "/repos/<upstream-owner>/<upstream-repo>/pulls/<pr>" --jq ".user.login" gh api "/repos/<upstream-owner>/<upstream-repo>/pulls/<pr>/reviews" --jq "[.[].user.login] | unique | .[]" ``
- Rank by score (highest first).
- Walk the ranked list and filter. Drop and continue for:
<self-login>- Bots (logins ending in
[bot]) - Non-members of the upstream org:
gh api "/orgs/<upstream-owner>/members/<login>" --silent (exit 0 = member). Fallback for user-owned repos: gh api "/repos/<upstream-owner>/<upstream-repo>/collaborators/<login>" --silent.
Stop after the first 1–2 survivors.
- Present the 1–2 candidates. Ask the user to confirm or change.
If none survive, skip --reviewer on gh pr create.
Loop over commits explicitly — don't try to one-line the whole pipeline.
1e. Labels
Determine labels from the changed files using the rules in `.github/instructions/pr-labels.md`.
Present suggested labels and ask the user to confirm or change.
1f. Summary and plan
Present the summary and wait for confirmation:
Step 2: Merge and resolve (optional)
If the user opted to merge, invoke as a sub-agent, passing the resolved base branch and upstream remote from Step 1a:
If invocation fails because the skill is not installed, warn the user _"The babylon-skills:merge-and-resolve skill was not found — skipping merge step."_ and continue.
Step 3: Self code review
Complete the self review and validation locally before pushing the branch or creating a PR. This avoids triggering CI for code that the self review will immediately change.
- Invoke the code-review skill, passing through the resolved base, mode,
and review lens:
`` /code-review --base <upstream-remote>/<base-branch> --mode <automatic|interactive> --lens <instructions|agnostic|both> ``
- If interactive: pause after code-review completes and ask the user
to review the changes before committing.
- Run the Quality commands from
.github/copilot-instructions.md, plus
any tests relevant to the changed code. Apply any necessary fixes and iterate locally until they pass.
- Commit all reviewed, uncommitted changes before pushing. If the worktree
contained only fixes produced by code-review or validation, use:
``` Code review fixes (automated by code-review skill)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> ```
If the worktree also contained the original feature changes, use a concise commit message derived from the accepted PR title and body instead of describing the entire commit as review fixes.
- Confirm the worktree is clean. Do not push in this step. The branch is pushed once, after local
review and validation are complete, in Step 4.
Step 4: Create the PR
Use <push-remote>, <upstream-remote>, and <base-branch> from 1a.
- Push the branch:
``bash git push -u <push-remote> HEAD ``
- Get the current branch name and user login:
``bash git rev-parse --abbrev-ref HEAD gh api user --jq ".login" ``
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/create-pr/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/babylonjs/babylon.js/create-pr)