borderlint: Command for Claude Code

.claude/commands/pr-open.md

pr-open is a command for Claude Code from iolairus/borderlint. It costs 17 tokens per session (489 once invoked), scanned A, original, MIT.

A command that opens a pull request, a review page for proposed code changes, against the repository’s integration branch.

In plain words
What is it for?
Use it to verify the working tree and task checklist, run the change review, prepare the English description, and open the pull or merge request.
Why use it?
It gathers the required project settings and checks before opening the request, reducing missed tasks or incorrect branch targets.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

This is iolairus/borderlint's own configuration. It tells Claude Code how to work on borderlint itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything borderlint configures →

Reuse

Borrowing it

Nothing to install: this file belongs to iolairus/borderlint. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/iolairus/borderlint/main/.claude/commands/pr-open.md
Clone the repo
git clone --depth 1 https://github.com/iolairus/borderlint

Made for: Claude Code.

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 pr-open

README.md
[![agentmods](https://agentmods.dev/badge/commands/iolairus/borderlint/pr-open/github.svg)](https://agentmods.dev/commands/iolairus/borderlint/pr-open)
Your own site
<a href="https://agentmods.dev/commands/iolairus/borderlint/pr-open"><img src="https://agentmods.dev/badge/commands/iolairus/borderlint/pr-open/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pr-open

Your own site · 80×15
<a href="https://agentmods.dev/commands/iolairus/borderlint/pr-open"><img src="https://agentmods.dev/badge/commands/iolairus/borderlint/pr-open.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 489 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.00017 $0.00489
Opus 5.5 $0.00007 $0.00196
Sonnet 5.5 $0.00003 $0.00098
Haiku 4.5 $0.00002 $0.00049

Measured 2mo ago against content hash 88f7d0aebd01, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pr-open 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 2mo 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.

.claude/commands/pr-open.md · 25 lines

What it actually says

Open a pull/merge request for the change $ARGUMENTS (or the one inferred from the current branch — strip a leading Jira key like PROJ-123- from the branch name before matching against openspec/changes/).

Steps

  1. Read workflow.yaml (git.integration_branch, git.work_mode, platform.provider). Verify: working tree clean, all tasks in tasks.md checked. If tasks remain, list them and ask whether to continue as draft.

    If the current branch IS the integration branch (flexible mode), there is nothing to open a PR against: tell the user, and offer either (a) skip the PR and go straight to /ship, or (b) move the unpushed commits to a new feature branch (named feature/<task id>-<change> if the change is linked to a task with a real Jira key, else feature/<change>) via git branch <name> && git reset --hard origin/<integration> to get a reviewed PR.

  2. Run /review-change <change> (spec-reviewer). On REVISE, show findings and stop unless the user overrides.

  3. Write the PR description in English (the repo's only content language).

  4. Build the PR description from templates/pr-description.md, filling it from proposal.md, the delta specs, the branch's commit log, and the linked task (frontmatter change: match in backlog/tasks/).

  5. Detect the platform:

    • provider: auto → parse git remote get-url origin; github.com → gh, gitlab → glab. Check the CLI exists (command -v).
    • With a CLI: push the branch and create the PR targeting the integration branch, title <type>(<change>): <proposal title>.
    • Without CLI or provider: none: push the branch, write the description to backlog/exports/pr/<change>.md, and print the compare URL so the user can open the PR manually.
  6. Update the linked task frontmatter to status: in-progress if not already. Print the PR URL (or export path) and suggest /ship <change> once approved.

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. 2mo ago First seen · 25 lines · 17 tokens per session scan A 88f7d0aebd01

Subscribe to this mod's changes

pr-open is a command published in the GitHub repository iolairus/borderlint (10 stars, last pushed 7d ago), licensed MIT. It adds 17 tokens to every session and 489 once invoked, about $0.0001 per session on Opus 5.5. 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.

Related

pr-open compared with commands from other repositories

pr-open next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pr-openiolairus/borderlintCommand107d agoMITA17Claude Code
merge-conflict-analysisrjmurillo/ai-agentsCommand49yesterdayMITA0GitHub Copilot
release-notesOpenHands/extensionsCommand176yesterdayMITA44Claude Code
commitechoVic/blade-codeCommand18124d agoMITA8Claude Code
repo-audittractorjuice/arc-kitCommand2.3k2d agononeA29Claude Code
propsmill/infrahub-mcpCommand10yesterdayApache-2.0A18Claude Code
codex-reviewoalders/kitchen-sinkCommand53d agoMITA41Claude Code