Agent skill

Create PR GitHub

by oocx in oocx/tfplan2md

Create and (optionally) merge a GitHub pull request using wrapper scripts (preferred) or GitHub CLI (fallback), following the repo policy for rebase and merge.

MITAuto-check passedDevelopment

Install Create PR GitHub

skills CLI
$ npx skills add oocx/tfplan2md --skill create-pr-github -a claude-code

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

GitHub CLI
$ gh skill install oocx/tfplan2md create-pr-github --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/oocx/tfplan2md.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/create-pr-github .claude/skills/create-pr-github && 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
GitHub stars
174
Token cost
~895 tokens
SKILL.md length
315 words
Files
1
Skills in repo
28
Repo updated
First seen
Licence
MIT

At a glance

Create and (optionally) merge a GitHub pull request using wrapper scripts (preferred) or GitHub CLI (fallback), following the repo policy for rebase and merge.

  • Works in 6 steps: Title + Description (Required) → Pre-flight Checks → Push the Branch → …
  • Tasks that involve Pull requests
  • SKILL.md covers Purpose, Hard Rules, Actions and Why Prefer the Wrapper Script?, plus 1 more section
  • Calls git and gh

What it does

Create PR GitHub is an agent skill from oocx/tfplan2md. Create and (optionally) merge a GitHub pull request using wrapper scripts (preferred) or GitHub CLI (fallback), following the repo policy for rebase and merge.

Its SKILL.md is about 900 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Preferred: scripts/pr-github.sh wrapper. Fallback: git + GitHub CLI (gh) authenticated, plus network access.

It sits in Development, covering Pull requests. It works with GitHub. The repository describes itself as: Convert terraform plans (json) into human readable markdown for easier review of changes in pull requests. The licence is MIT.

When your agent uses it

  • Tasks that involve Pull requests

Example prompts

  • “/create-pr-github”

Requirements

  • Compatibility (from SKILL.md): Preferred: scripts/pr-github.sh wrapper. Fallback: git + GitHub CLI (gh) authenticated, plus network access.

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Title + Description (Required)
  2. Pre-flight Checks
  3. Push the Branch
  4. Create the PR
  5. Merge (Only When Explicitly Requested)
  6. If Rebase-Merge Is Blocked (Conflicts)

What it can do on your machine

Read from SKILL.md and the folder at commit 3fa4b5a. 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

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

  • Network

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

  • Compatibility

    Preferred: scripts/pr-github.sh wrapper. Fallback: git + GitHub CLI (gh) authenticated, plus network access.

    From compatibility in the SKILL.md frontmatter.

Context cost

Create PR GitHub loads about 895 tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 315 words of instructions outside code blocks.

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

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 oocx/tfplan2md at commit 3fa4b5a, republished under its MIT licence (© oocx). 315 words, ~895 tokens.

Download SKILL.mdSave it as .claude/skills/create-pr-github/SKILL.md (or your agent's skills folder).
name
create-pr-github
description
Create and (optionally) merge a GitHub pull request using wrapper scripts (preferred) or GitHub CLI (fallback), following the repo policy for rebase and merge.
compatibility
Preferred: scripts/pr-github.sh wrapper. Fallback: git + GitHub CLI (gh) authenticated, plus network access.

Create PR (GitHub)

Purpose

Create a GitHub pull request in a consistent, policy-compliant way, and include the repo's preferred merge method guidance (rebase and merge).

Priority order:

  1. FIRST: Use scripts/pr-github.sh wrapper script (designed for permanent approval)
  2. SECOND: Use GitHub MCP tools (if available and wrapper doesn't fit)
  3. LAST: Use gh CLI as final fallback

Hard Rules

Must
  • Work on a non-main branch
  • Ensure the working tree is clean before creating a PR
  • Push the branch to origin before creating the PR
  • Before creating the PR, post the exact Title and Description in chat
  • Use the standard PR body template (Problem / Change / Verification)
  • Use Rebase and merge for merging PRs to maintain a linear history (see CONTRIBUTING.md)
Must Not
  • Create PRs from main
  • Use "Squash and merge" or "Create a merge commit"
  • Use --fill or any heuristic that guesses title/body (not supported by the wrapper)

Actions

0. Title + Description (Required)

Before running any PR creation command, provide in chat:

  • PR title (exact)
  • PR description (exact), using this template:
markdown
## Problem
<why is this change needed?>

## Change
<what changed?>

## Verification
<how was it validated?>
1. Pre-flight Checks
bash
git branch --show-current
git status --short
2. Push the Branch
bash
git push -u origin HEAD
3. Create the PR
Preferred: Wrapper Script

Create a PR:

bash
echo "## Summary\n\nPR description" | scripts/pr-github.sh create --title "<type(scope): summary>" --body-from-stdin

Create and merge (only when explicitly requested):

bash
echo "## Summary\n\nPR description" | scripts/pr-github.sh create-and-merge --title "<type(scope): summary>" --body-from-stdin
Fallback: gh CLI (if wrapper unavailable)
bash
echo "## Summary\n\nPR description" | PAGER=cat gh pr create \
  --base main \
  --head "$(git branch --show-current)" \
  --title "<type(scope): summary>" \
  --body-file -
4. Merge (Only When Explicitly Requested)

This repository requires rebase and merge.

Preferred: Wrapper Script
bash
scripts/pr-github.sh merge <pr-number>

Or combined create-and-merge:

bash
echo "## Summary\n\nPR description" | scripts/pr-github.sh create-and-merge --title "<type(scope): summary>" --body-from-stdin
Fallback: gh CLI (if wrapper unavailable)
bash
PAGER=cat gh pr merge <pr-number> --rebase --delete-branch
5. If Rebase-Merge Is Blocked (Conflicts)
bash
git pull --rebase origin main
# resolve conflicts

git push --force-with-lease

Then retry the merge.

Why Prefer the Wrapper Script?

  • Designed for permanent approval in VS Code (reduces friction)
  • Enforces repo policies (rebase and merge, standard templates)
  • Handles edge cases consistently
  • Provides clear error messages
  • Can be easily reproduced by Maintainers

Note on GitHub MCP Tools

GitHub MCP tools may be available for PR creation in the future, but currently the wrapper script is the most reliable approach. If GitHub MCP tools add PR creation support, they would become the preferred option (with wrapper as fallback).

© oocx, 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-pr-github of oocx/tfplan2md.

Open the folder on GitHubat commit 3fa4b5a

Compare with similar skills

Create PR GitHub 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 GitHub compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Create PR GitHub this skilloocx/tfplan2md174—~895Automated 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
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Create Pull Requestcline/cline70k1 repos~1.6kAutomated safety check: PassApache-2.0
Pull Request Title and Body Writeropeninterpreter/openinterpreter69k2 repos~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • 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
  • 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
  • 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
  • Official

    Runs a loop on a GitHub pull request: fetch review state, triage comments into actions, implement them and resolve threads, repeating until nothing actionable is left.

    48k GitHub stars~2.2k tokensUpdated yesterday
    DevelopmentAuto-check passed

More from oocx/tfplan2md

All 28 skills in this repo
  • Create Agent Skill

    oocx/tfplan2md

    Create a new Agent Skill following project standards and templates.

    174 GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed
  • Detect and analyze edge crossings and overlaps in SVG workflow diagrams using geometric intersection algorithms and visual analysis.

    174 GitHub stars~4.3k tokensUpdated yesterday
    Auto-check passed
  • Generate PNG screenshots for release notes using the repository's HtmlRenderer and ScreenshotGenerator tools.

    174 GitHub stars~3.7k tokensUpdated yesterday
    Auto-check passed
  • Git Rebase Main

    oocx/tfplan2md

    Safely rebase the current feature branch on top of the latest origin/main.

    174 GitHub stars~456 tokensUpdated yesterday
    Auto-check passed
  • Next Issue Number

    oocx/tfplan2md

    Determine the next available issue number across all change types (feature, fix, workflow, website) by checking both local docs and remote branches, then reserve it by pushing an empty branch.

    174 GitHub stars~1.5k tokensUpdated yesterday
    Auto-check passed
  • Run Uat

    oocx/tfplan2md

    Run User Acceptance Testing by creating a PR with rendered markdown on GitHub or Azure DevOps.

    174 GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Create PR GitHub

What does Create PR GitHub do?

Create and (optionally) merge a GitHub pull request using wrapper scripts (preferred) or GitHub CLI (fallback), following the repo policy for rebase and merge. Create PR GitHub is an agent skill from oocx/tfplan2md. Create and (optionally) merge a GitHub pull request using wrapper scripts (preferred) or GitHub CLI (fallback), following the repo policy for rebase and merge.

When should I use Create PR GitHub?

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

How do I install Create PR GitHub in Claude Code?

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

How do I install Create PR GitHub in Codex?

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

Can I use Create PR GitHub 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 oocx/tfplan2md --skill create-pr-github -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-github, .gemini/skills/create-pr-github, .github/skills/create-pr-github and .opencode/skills/create-pr-github in your project.

What does Create PR GitHub need to run?

Going by SKILL.md and its folder, Create PR GitHub needs the command-line tools its instructions call (git and gh). Compatibility (from SKILL.md): Preferred: scripts/pr-github.sh wrapper. Fallback: git + GitHub CLI (gh) authenticated, plus network access..

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

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

About 895 tokens (SKILL.md is roughly 3.6k 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 GitHub?

Skills that share tags, products or a category with Create PR GitHub: PR Babysitter (openinterpreter/openinterpreter, 69k stars), Check PR (onyx-dot-app/onyx, 32k stars), Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars) and Create Pull Request (cline/cline, 70k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Create PR GitHub?

oocx (a GitHub user) maintains it in oocx/tfplan2md, which has 174 GitHub stars. The repository holds 28 skills in this directory. The repository was last updated on October 6, 2026.

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