open-pr

open-pr is a command for Claude Code from carloshpdoc/ios-workflow-claude. It costs 0 tokens per session (2,624 once invoked), scanned A, original, Apache-2.0.

A command for creating a GitHub pull request, which asks others to review and merge the current branch's code changes, using the team's standard template.

In plain words
What is it for?
Use it to choose the base branch, create a draft, add reviewers, and apply labels when opening the pull request.
Why use it?
It gathers common pull-request settings into one command instead of requiring you to configure them separately.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Part of the ios-workflow plugin — 22 commands, 3 agents shipped together

Good fit Use it to choose the base branch, create a draft, add reviewers, and apply labels when opening the pull request.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/carloshpdoc/ios-workflow-claude/open-pr
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/carloshpdoc/ios-workflow-claude

Made for: Claude Code.

Or install ios-workflow, the plugin that ships this one along with the rest of its 22 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for open-pr

README.md
[![agentmods](https://agentmods.dev/badge/commands/carloshpdoc/ios-workflow-claude/open-pr.svg)](https://agentmods.dev/commands/carloshpdoc/ios-workflow-claude/open-pr)
Your own site
<a href="https://agentmods.dev/commands/carloshpdoc/ios-workflow-claude/open-pr"><img src="https://agentmods.dev/badge/commands/carloshpdoc/ios-workflow-claude/open-pr.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,624 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02624
Opus 5 $0.00000 $0.01312
Sonnet 5 $0.00000 $0.00525
Haiku 4.5 $0.00000 $0.00262

Measured 7d ago against content hash 614741c472b8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

open-pr scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/ios-workflow/commands/open-pr.md · 238 lines

How it starts

The opening of the file, as written. The whole thing — 238 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Create Pull Request

Project context: Values in angle brackets below (e.g. <scheme>, <JIRA_KEY>, <flag-key-enum>) are resolved at runtime — detect them from the project (xcodebuild -list -json for the scheme, git/gh for repo & owner, the branch name for the Jira key, a codebase search for flag/font files), or ask if they cannot be inferred. This plugin ships no per-project config.

Create a pull request for the current branch following the the team's standard PR template.

$ARGUMENTS (optional): space-separated options. All are optional and can be combined in any order.

Argument Description Default
--base <branch> Base branch for the PR dev
--draft Create as draft PR off
--reviewer <user> Add reviewer(s). Can repeat: --reviewer user1 --reviewer user2 none
--label <name> Add label(s). Can repeat: --label bug --label urgent none

For convenience, a bare value (no -- prefix) is treated as --base <value>.

Examples:

  • /open-pr - PR to dev
  • /open-pr main - PR to main (shorthand for --base main)
  • /open-pr --base feature/<JIRA_KEY>-XXXX-some-feature - PR to another feature branch
  • /open-pr --draft - Draft PR to dev
  • /open-pr --base feature/<JIRA_KEY>-XXXX --draft --reviewer jvlcapi - Draft PR to a feature branch with reviewer
  • /open-pr --label bug --reviewer jvlcapi --reviewer other-dev - PR to dev with label and two reviewers

Steps

1. Parse Arguments

Parse $ARGUMENTS to extract:

  • --base : the target base branch, or dev if not provided. A bare value (no -- prefix) is also treated as the base branch for convenience (e.g., main is equivalent to --base main)
  • --draft: if present, add --draft flag to gh pr create
  • --reviewer : collect all --reviewer values, add each as --reviewer <user> to gh pr create
  • --label : collect all --label values, add each as --label <name> to gh pr create

Read the full file on GitHub · 238 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 238 lines · 0 tokens per session scan A 614741c472b8

Subscribe to this mod's changes

open-pr is a command published in the GitHub repository carloshpdoc/ios-workflow-claude (7 stars, last pushed 3mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,624 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.