pr

pr is a command for Claude Code from owainlewis/youtube-tutorials. It costs 0 tokens per session (306 once invoked), scanned A, original, MIT.

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 for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md).

Good fit 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.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/owainlewis/youtube-tutorials/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/owainlewis/youtube-tutorials

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/owainlewis/youtube-tutorials/pr/github.svg)](https://agentmods.dev/commands/owainlewis/youtube-tutorials/pr)
Your own site
<a href="https://agentmods.dev/commands/owainlewis/youtube-tutorials/pr"><img src="https://agentmods.dev/badge/commands/owainlewis/youtube-tutorials/pr/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

Your own site · 80×15
<a href="https://agentmods.dev/commands/owainlewis/youtube-tutorials/pr"><img src="https://agentmods.dev/badge/commands/owainlewis/youtube-tutorials/pr.svg" alt="Reviewed on agentmods" width="80" 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 306 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.00306
Opus 5.5 $0.00000 $0.00122
Sonnet 5.5 $0.00000 $0.00061
Haiku 4.5 $0.00000 $0.00031

Measured 1mo ago against content hash a4caa329911e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (404 stars, last pushed 19d 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.