pr

A Git workflow that pushes the current branch and opens a pull request. A pull request is a proposal to merge code changes into another branch, usually after review.

In plain words
What is it for?
Use it to publish a branch, create a pull request against the main branch, and write its title and testing notes from the actual changes.
Why use it?
It organizes the branch changes and test instructions so reviewers can understand what changed, why it changed, and how to verify it.

Command

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.

agentmods
npx agentmods add commands/owainlewis/youtube-tutorials/pr
Clone the repo
git clone --depth 1 https://github.com/owainlewis/youtube-tutorials
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 306 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00306
Opus 5 $0.00000 $0.00153
Sonnet 5 $0.00000 $0.00061
Haiku 4.5 $0.00000 $0.00031

Measured 2d ago against content hash a4caa329911e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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 2d 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.

tutorials/ai-git-workflow/resources/commands/pr.md · 56 lines

What it actually says

Pull Request

Push the current branch and open a pull request.

Instructions

  1. Run git status to check for uncommitted changes — commit them first if needed
  2. Run git log main..HEAD --oneline to see all commits on this branch
  3. Push the branch: git push -u origin <branch-name>
  4. Create the PR using gh pr create

PR format

Title

Follow commit format: type(scope): description

Body

## What
1-2 sentences. What does this PR do?

## Why
The problem this solves or the reason for the change.

## How to test
Step-by-step instructions to verify this works.

Rules

  • Target branch is main unless otherwise specified
  • PR title should be under 72 characters
  • Description should be generated from the actual diff and commit history — not generic
  • Include specific test steps, not just "verify it works"

Example

gh pr create \
  --title "feat(auth): add password reset flow" \
  --body "## What
Adds password reset via email verification tokens.

## Why
Users were permanently locked out after forgetting their password.

## How to test
1. Go to /login and click 'Forgot password'
2. Enter a registered email
3. Check inbox for reset link
4. Follow link and set new password
5. Login with new password"
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. 2d ago First seen · 56 lines · 0 tokens per session scan A a4caa329911e

Subscribe to this mod's changes

pr is a command published in the GitHub repository owainlewis/youtube-tutorials (375 stars, last pushed 10d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 306 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-30.