Agent skill

Codex PR

by tbhb in tbhb/vale-ai-tells

Open or update a pull request for the current branch with an independently drafted and reviewed PRAGENTDESC.md.

MITAuto-check passedDevelopment

Install Codex PR

skills CLI
$ npx skills add tbhb/vale-ai-tells --skill codex-pr -a claude-code

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

GitHub CLI
$ gh skill install tbhb/vale-ai-tells codex-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/tbhb/vale-ai-tells.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/codex-pr .claude/skills/codex-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
codex-pr
GitHub stars
115
Token cost
~846 tokens
SKILL.md length
369 words
Files
7 (incl. scripts)
Skills in repo
27
Repo updated
First seen
Licence
MIT

At a glance

Open or update a pull request for the current branch with an independently drafted and reviewed PRAGENTDESC.md.

  • The user asks Codex to open
  • SKILL.md covers Preflight, Draft with a delegated writer, Review with a fresh delegated… and Get confirmation in default mode, plus 2 more sections
  • Runs Shell scripts from its folder; calls mise, bash and gh
  • Draft a pull request in a tbhb repository

What it does

Codex PR is an agent skill from tbhb/vale-ai-tells. Open or update a pull request for the current branch with an independently drafted and reviewed PRAGENTDESC.md. Use whenever the user asks Codex to open or draft a pull request in a tbhb repository, or when a completed task should end in a pull request. Routes later CI work to codex-watch-pr and codex-fix-pr.

Its SKILL.md is about 850 tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including scripts (for example `scripts/create-pr.sh`, `scripts/preflight.sh` and `scripts/record-review.sh`).

It sits in Development, covering Pull requests. The repository describes itself as: In today's rapidly evolving landscape, vale-ai-tells is a comprehensive, cutting-edge Vale style package that empowers writers to seamlessly delve into the rich tapestry of AI…. The licence is MIT.

When your agent uses it

  • The user asks Codex to open
  • Draft a pull request in a tbhb repository
  • A completed task should end in a pull request

Example prompts

  • “/codex-pr”

Requirements

  • A Bash shell

What it can do on your machine

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

    Ships 5 files in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • mise
    • bash
    • gh

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

  • Network

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

Codex PR loads about 846 tokens when it runs. Until then it costs about 80 tokens; SKILL.md has 369 words of instructions outside code blocks.

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

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); the scripts in this folder are not scanned.

SKILL.md

The full file from tbhb/vale-ai-tells at commit 4c7abc9, republished under its MIT licence (© tbhb). 369 words, ~846 tokens.

Download SKILL.mdSave it as .claude/skills/codex-pr/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
codex-pr
description
Open or update a pull request for the current branch with an independently drafted and reviewed PR_AGENTDESC.md. Use whenever the user asks Codex to open or draft a pull request in a tbhb repository, or when a completed task should end in a pull request. Routes later CI work to codex-watch-pr and codex-fix-pr.

Open a pull request

Use update_plan for these phases: preflight, draft, prose gates, independent review, confirmation, publication, and requested follow-through. Keep only one phase in_progress.

Preflight

Run:

bash
bash .agents/skills/codex-pr/scripts/preflight.sh

Stop on a missing prerequisite or an interrupted Git operation. If the branch is behind its base, use codex-rebase first. Tell the user about uncommitted changes before continuing. The preflight scaffolds PR_AGENTDESC.md and reports an existing pull request.

Draft with a delegated writer

Spawn one subagent with this bounded task:

text
Use the codex-write-pr-description skill in <repo root>. Write or revise PR_AGENTDESC.md, run its validator, and return only its DRAFT result.

Don't draft the file in the calling context. If the writer reports DRAFT: BLOCKED, report the blocker and stop.

Run the prose workflow over PR_AGENTDESC.md with mise run lint-pr-description when codex-fix-prose is available. Otherwise run that task directly and resolve only mechanical findings.

Review with a fresh delegated agent

Spawn a different subagent:

text
Use the codex-review-pr-description skill in <repo root>. Review PR_AGENTDESC.md against the branch and return its verdict.

On CHANGES REQUIRED, send the findings verbatim to a fresh writer, then review again with a fresh reviewer. Bound finding-driven revisions at three. After PASS, the reviewer records the reviewed digest through record-review.sh. Don't run that script from the calling agent.

Run mise run lint-pr-description after review. Any edit invalidates the digest, so repeat the independent review after a change.

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

Get confirmation in default mode

Show the branch, base, commit count, and complete draft. Unless preflight reports pr: GRANTED, ask before publication by putting this question and its choices in the final response when using Default mode:

  • open, fix, and merge
  • open, watch, and fix
  • open and watch
  • open only

Also ask whether fixes should be separate commits or amendments. A pre-approval chooses separate commits and routes through merge only when merge: GRANTED. Stop there: don't publish in the turn that asks for confirmation.

Publish

After confirmation, run only:

bash
bash .agents/skills/codex-pr/scripts/create-pr.sh

The script checks the draft and requires the recorded digest to match its current bytes. It also resolves properties, pushes, and creates or updates the pull request. Don't bypass it with a direct mutating gh pr call. Report the URL.

Route follow-through to codex-watch-pr and codex-fix-pr according to the confirmed choice. Bound repeated fixes of the same check at three. Use codex-merge-pr only when the user explicitly requested merging or pre-approved it.

Preconditions

  • authenticated gh
  • mise run lint-pr-description
  • ignored PR_AGENTDESC.md
  • .github/pull_request_template.md
  • the sibling Codex skills named in the preceding sections

© tbhb, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts) in .claude/skills/codex-pr of tbhb/vale-ai-tells.

  • SKILL.md
  • scripts/create-pr.sh
  • scripts/preflight.sh
  • scripts/record-review.sh
  • scripts/scaffold-description.sh
  • scripts/validate-description.sh
  • tokens.json

Open the folder on GitHubat commit 4c7abc9

Compare with similar skills

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

Codex PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Codex PR this skilltbhb/vale-ai-tells115—~846Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers296k5 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
Understand Diff AnalysisEgonex-AI/Understand-Anything86k1 repos~1.4kAutomated safety check: PassMIT
PR Design DocOpenHands/OpenHands90k—~2.4kAutomated safety check: PassMIT

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

More from tbhb/vale-ai-tells

All 27 skills in this repo
  • Analyze Session

    tbhb/vale-ai-tells

    Query a Claude Code transcript without reading it into context, then write the retrospective to disk so it remains available after the session ends.

    115 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Codex Analyze Session

    tbhb/vale-ai-tells

    Query a Codex transcript without reading it into context, then write the retrospective to disk so it remains available after the session ends.

    115 GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Codex Fix PR

    tbhb/vale-ai-tells

    Diagnose failing pull request checks, reproduce them locally, make focused fixes, commit them through codex-commit, and refresh the published description when needed.

    115 GitHub stars~575 tokensUpdated yesterday
    Auto-check passed
  • Codex Merge PR

    tbhb/vale-ai-tells

    Squash merge a pull request. An agent skill from tbhb/vale-ai-tells.

    115 GitHub stars~3k tokensUpdated yesterday
    Auto-check passed
  • Codex Rebase

    tbhb/vale-ai-tells

    Replay the current branch onto its base and establish that the result is sound.

    115 GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Settle the conflicts a merge-backend rebase left behind. An agent skill from tbhb/vale-ai-tells.

    115 GitHub stars~2.1k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Codex PR

What does Codex PR do?

Open or update a pull request for the current branch with an independently drafted and reviewed PRAGENTDESC.md. Codex PR is an agent skill from tbhb/vale-ai-tells.md.

When should I use Codex PR?

Codex PR fits situations like: the user asks Codex to open; draft a pull request in a tbhb repository; A completed task should end in a pull request.

How do I install Codex PR in Claude Code?

Run `npx skills add tbhb/vale-ai-tells --skill codex-pr -a claude-code`. Or copy the skill folder (.claude/skills/codex-pr in tbhb/vale-ai-tells) into .claude/skills/codex-pr in your project. Claude Code loads it when a task matches its description.

How do I install Codex PR in Codex?

Run `npx skills add tbhb/vale-ai-tells --skill codex-pr -a codex`. Or copy the skill folder (.claude/skills/codex-pr in tbhb/vale-ai-tells) into .agents/skills/codex-pr in your project. Codex loads it when a task matches its description.

Can I use Codex 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 tbhb/vale-ai-tells --skill codex-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/codex-pr, .gemini/skills/codex-pr, .github/skills/codex-pr and .opencode/skills/codex-pr in your project.

What does Codex PR need to run?

Going by SKILL.md and its folder, Codex PR needs a shell for the scripts in its folder and the command-line tools its instructions call (mise, bash and gh). Our summary lists: A Bash shell.

Does Codex PR access the network?

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

Is Codex 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Codex PR use?

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

About 846 tokens (SKILL.md is roughly 3.4k 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 Codex PR?

Skills that share tags, products or a category with Codex PR: Finishing a Development Branch (obra/superpowers, 296k stars), PR Babysitter (openinterpreter/openinterpreter, 69k stars), Check PR (onyx-dot-app/onyx, 32k stars) and Understand Diff Analysis (Egonex-AI/Understand-Anything, 86k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Codex PR?

tbhb (a GitHub user) maintains it in tbhb/vale-ai-tells, which has 115 GitHub stars. The repository holds 27 skills in this directory. The repository was last updated on October 7, 2026.

Source: tbhb/vale-ai-tells on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.