Agent skill

Create A PR

by octanejs in octanejs/octane

Open a pull request for octane work. An agent skill from octanejs/octane.

MITAuto-check passedDevelopment

Install Create A PR

skills CLI
$ npx skills add octanejs/octane --skill create-a-pr -a claude-code

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

GitHub CLI
$ gh skill install octanejs/octane create-a-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/octanejs/octane.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/create-a-pr .claude/skills/create-a-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-a-pr
GitHub stars
1.5k
Token cost
~2.3k tokens
SKILL.md length
1,240 words
Files
1
Skills in repo
19
Repo updated
First seen
Licence
MIT

At a glance

Open a pull request for octane work. An agent skill from octanejs/octane.

  • Works in 5 steps: Ensure working tree state is understood → Read AGENTS.md and docs/packages.md. → For a new task, fetch the remote default… → …
  • Tasks that involve Pull requests
  • SKILL.md covers Preflight, Branch and implementation…, Validation checklist and Performance review gate, plus 8 more sections
  • Calls pnpm, git and gh

What it does

Create A PR is an agent skill from octanejs/octane. Open a pull request for octane work. Load before creating the branch, commit, changeset, or PR, including when opening a PR is the tail step of a task that was about something else.

Its SKILL.md is about 2.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. The repository describes itself as: React’s programming model, compiled. The successor to Inferno. The licence is MIT.

When your agent uses it

  • Tasks that involve Pull requests

Example prompts

  • “/create-a-pr”

Workflow steps

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

  1. Ensure working tree state is understood
  2. Read AGENTS.md and docs/packages.md.
  3. For a new task, fetch the remote default branch and create a dedicated new
  4. Verify the task worktree is not the primary checkout and its current branch
  5. Confirm no unrelated local changes are included.

What it can do on your machine

Read from SKILL.md and the folder at commit 961638e. 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:

    • pnpm
    • git
    • gh

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

  • Network

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

Create A PR loads about 2.3k tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 1,240 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~48
When it runs · the whole SKILL.md, loaded when a task matches
~2.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 octanejs/octane at commit 961638e, republished under its MIT licence (© octanejs). 1,240 words, ~2,255 tokens.

Download SKILL.mdSave it as .claude/skills/create-a-pr/SKILL.md (or your agent's skills folder).
name
create-a-pr
description
Open a pull request for octane work. Load before creating the branch, commit, changeset, or PR, including when opening a PR is the tail step of a task that was about something else.

Skill: Create an Octane PR

Use this when asked to prepare a branch and pull request for an Octane change.

Preflight

  1. Ensure working tree state is understood:
    bash
    git status --short --branch
    git diff --stat
  2. Read AGENTS.md and docs/packages.md.
  3. For a new task, fetch the remote default branch and create a dedicated new worktree and non-default branch from it. For an existing pull request, use its already-dedicated worktree.
  4. Verify the task worktree is not the primary checkout and its current branch is neither main nor master.
  5. Confirm no unrelated local changes are included.

The primary checkout and local default branches are read-only. Never implement, install dependencies, generate artifacts, test with commands that write files, stage, or commit there. Preserve any state already present and move to the task worktree before doing work.

Branch and implementation hygiene

  • Branch names: fix/<short-topic>, feat/<short-topic>, docs/<short-topic>, or test/<short-topic>.
  • Keep commits focused.
  • Add changesets for user-facing package changes; skip docs-only/test-only/internal tooling.
  • If changing RuleSync source, edit .rulesync/rules/* or .rulesync/skills/* and run pnpm rules:generate.

Validation checklist

During iteration, format or check one or more changed files/directories without scanning the repository:

bash
pnpm format:files <path...>
pnpm format:files:check <path...>

Then run the smallest meaningful final set and record results:

bash
pnpm format:check
pnpm typecheck
pnpm test

Targeted alternatives are acceptable for small changes, but PR body must say what was and was not run.

Performance review gate

Load the perf-review skill and run it on the final diff before the first gh pr ready whenever the diff touches any of:

  • packages/octane/src/: runtime, signals, hydration, server, or compiler;
  • code that changes compiled output, such as vite-plugin-octane or rspack-plugin-octane transforms;
  • a binding's hot path: code that runs per render, per event, per store or signal notification, or per layout measurement.

Put its report in the PR body under Validation. Resolve every must-fix finding. Each needs-evidence finding needs its evidence in the PR, or an entry under Risk / follow-ups that says why it is missing. For a diff outside these paths, write perf-review: not applicable.

Concision gate

Load the concise-code skill and run its simplification pass on the final diff before the first gh pr ready, for every PR with authored code. Put its report line in the PR body under Validation, including the smaller alternatives you rejected and why.

PR body template

md
## Summary
- ...

## Why
- ...

## Changes
- ...

## Validation
- [ ] `pnpm format:check`
- [ ] `pnpm typecheck`
- [ ] `pnpm test`
- [ ] targeted tests: ...
- [ ] `perf-review`: <findings and evidence, or not applicable>
- [ ] `concise-code`: <size, alternatives, bytes>

## Risk / follow-ups
- ...

Preserve managed sections when updating an existing PR

The template above is for creating a new pull request. Before editing an existing pull request body, fetch its current body with gh pr view and merge the desired changes into that body. Never replace it from a newly generated template.

Treat paired bot-managed HTML comment regions as opaque and preserve them byte-for-byte. In particular, Cursor Bugbot owns this region:

md
<!-- CURSOR_SUMMARY -->
...
<!-- /CURSOR_SUMMARY -->

Refetch the body immediately before writing because a bot can update it after a commit is pushed. After gh pr edit, fetch it again and verify that every managed region remains. If an edit races with a bot and removes one, recover the latest region from the pull request's edit history and restore it before ending the task. Adding or checking provenance is never a reason to discard an existing summary, description, comment region, or maintainer-authored text.

Create PR with GitHub CLI

Immediately before committing and pushing, synchronize the repository and review the resulting diff. Include every relevant generated change in the commit:

bash
git branch --show-current
pnpm sync
git status --short
git add <files>
git commit -m "<type>: <summary>"
git push -u origin <branch>
gh pr create --draft --body-file <file>

Write the body to a temp file and pass it explicitly. Do not use --fill: it builds the body from your commits and drops the template, which would falsely classify an agent-produced diff as human-authored.

Apply no labels, and never pass --label. Your token has no rights to label at all when the PR comes from a fork, and .github/workflows/label-pr.yml applies both labels as a bot, which does.

Show full SKILL.md (637 more words)Show less

Draft and readiness gates

Open every PR as a draft. Nothing has run against the pushed diff yet, and the draft state is what says so. A request to create a PR through completion authorizes the agent to mark it ready after every non-CI gate below and all relevant local validation pass, unless the user explicitly asks to leave it as a draft. The required-check gate has this bootstrap exception: when Actions has produced no required checks for the current head because the PR is still a draft, the first transition to ready is allowed after every non-CI gate passes. That transition starts CI; it is not evidence that CI passed.

  • every required and relevant CI check is terminal and successful;
  • every actionable review comment and review thread is resolved on the current head;
  • when the performance review gate applies, its report is in the PR body with no unresolved must-fix finding;
  • no reviewer or bot review is still in progress or expected for an older head;
  • the head contains the live base branch, not merely the base SHA cached when the PR opened;
  • GitHub reports the PR mergeable with no conflict or branch-currency blocker; and
  • the final pnpm sync and relevant local validation leave the worktree clean.

These are independent gates. Green checks do not prove that review feedback is resolved, and resolved feedback does not prove that the branch still merges. After the bootstrap transition, keep the PR ready while required checks run. Do not describe the work as done, complete, fully ready, or merge-ready until every required and relevant CI check for the current pushed head is terminal and successful; if a check fails, address it, push the fix, and restart the gates. Re-check mergeability and the live base after the last push and immediately before gh pr ready. If the base moved, incorporate it without rewriting a published branch, rerun sync and validation, push, and start the gates again.

Monitor required and relevant CI checks after the PR is ready and continue through failures until the current pushed head is green. Use bounded polling intervals so status updates can still be shared. Repository CI intentionally skips every job while the pull request is a draft and starts on the ready_for_review event, so a draft-only skipped result is not green. Cursor Bugbot still reviews every pull request, including drafts, outside Actions; Vercel may also report separately.

Declare provenance in the PR body

Keep the provenance section from .github/pull_request_template.md in the body you write, and tick the box, because an agent produced the diff:

md
## Provenance

- [x] An agent produced this diff (`agent-authored`)

Leaving the box clear or omitting the section is a positive claim that a human wrote the diff, so neither is safe when an agent produced it. An agent commits under a human's credentials, which is why nothing else in the PR can tell the two apart.

.github/workflows/label-pr.yml applies agent-authored only for a checked box. An empty box or missing section is human-authored, removes a stale agent label, and leaves the label check successful. The workflow runs as a bot with the repository's own token, so this works identically from a fork and needs nothing from a maintainer.

Labels

Do not apply labels. Both are applied by the bot above: the type label (feat, fix, docs, test, perf, refactor, chore, ci) from the PR title, with the type-prefixed head branch as a fallback, and agent-authored from the box. Retitling to another supported type moves the type label. A title and branch the parser cannot read leave the PR unlabelled. bug and enhancement belong to issues.

Final response

Return PR URL, branch, commit summary, provenance declared, and validation evidence, including required and relevant CI results for the current pushed head and the PR's final draft/readiness state. Do not say the work is done or complete unless required and relevant CI is green.

© octanejs, MIT. 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-a-pr of octanejs/octane.

Open the folder on GitHubat commit 961638e

Compare with similar skills

Create A 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 A PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Create A PR this skilloctanejs/octane1.5k—~2.3kAutomated safety check: PassMIT
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Check PRonyx-dot-app/onyx32k2 repos~2.3kAutomated safety check: PassMIT
PR Design DocOpenHands/OpenHands90k—~2.4kAutomated safety check: PassMIT
WooCommerce Code Reviewwoocommerce/woocommerce11k3 repos~1.1kAutomated safety check: PassCustom licence

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.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Check PR

    onyx-dot-app/onyx

    Checks a GitHub, GitLab, or Perforce (p4) pull request (or merge request, or shelved changelist) for unresolved review comments, failing status checks, and incomplete PR descriptions.

    32k GitHub starsUsed in 2 repos~2.3k tokens
    DevelopmentAuto-check passed
  • PR Design Doc

    OpenHands/OpenHands

    For a non-trivial pull request, write a self-contained HTML design doc under the temporary .pr/ directory and link a visibility-appropriate preview in the PR description, so maintainers grasp the…

    90k GitHub stars~2.4k tokensUpdated today
    DevelopmentAuto-check passed
  • WooCommerce Code Review

    woocommerce/woocommerce

    Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.

    11k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Record PR Demo

    payloadcms/payload

    A skill your agent uses when a Payload pull request needs a concise visual walkthrough for reviewers.

    45k GitHub stars~1k tokensUpdated today
    DevelopmentAuto-check passed

More from octanejs/octane

All 19 skills in this repo
  • Performance Audit

    octanejs/octane

    Audit or defend Octane performance. An agent skill from octanejs/octane.

    1.5k GitHub stars~2.8k tokensUpdated today
    Auto-check passed
  • Update Bindings

    octanejs/octane

    Audit one, several, or all existing Octane bindings; implement selected maintenance findings or remove redundant copied files with evidence matched to source ownership.

    1.5k GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Concise Code

    octanejs/octane

    Keep a change small and in the existing idiom - size the plan and weigh smaller alternatives before writing it, reuse the mechanism that already owns the behavior instead of adding a parallel one…

    1.5k GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Handle Issue

    octanejs/octane

    Work a GitHub issue in the octane repo. An agent skill from octanejs/octane.

    1.5k GitHub stars~638 tokensUpdated today
    Auto-check passed
  • Migrate V8 To V9

    octanejs/octane

    Perform a complete @tanstack/react-table v8-to-v9 migration: hook and feature architecture, row-model slots, React state and subscriptions, rendering, composable tables, type helpers, and every…

    1.5k GitHub stars~4.7k tokensUpdated today
    Auto-check passed
  • Implement and verify new React-library ports or copied/rewritten React surfaces in Octane bindings from npm names or npm/GitHub links/lists.

    1.5k GitHub stars~2.5k tokensUpdated today
    Auto-check passed

Categories

Questions about Create A PR

What does Create A PR do?

Open a pull request for octane work. An agent skill from octanejs/octane. Create A PR is an agent skill from octanejs/octane. Open a pull request for octane work.

When should I use Create A PR?

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

How do I install Create A PR in Claude Code?

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

How do I install Create A PR in Codex?

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

Can I use Create A 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 octanejs/octane --skill create-a-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-a-pr, .gemini/skills/create-a-pr, .github/skills/create-a-pr and .opencode/skills/create-a-pr in your project.

What does Create A PR need to run?

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

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

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

How many tokens does Create A PR use?

About 2.3k tokens (SKILL.md is roughly 9k 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 A PR?

Skills that share tags, products or a category with Create A PR: Finishing a Development Branch (obra/superpowers, 297k stars), PR Babysitter (openinterpreter/openinterpreter, 69k stars), Check PR (onyx-dot-app/onyx, 32k stars) and PR Design Doc (OpenHands/OpenHands, 90k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Create A PR?

octanejs (a GitHub organization) maintains it in octanejs/octane, which has 1,452 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 9, 2026.

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