pull-request

pull-request is a skill for Claude Code from WaterplanAI/agentic-config. It costs 31 tokens per session (2,624 once invoked), scanned A, a copy of ac-git-pull-request, MIT.

A command for creating a GitHub pull request, which asks a project to review and merge changes from one branch into another. It verifies GitHub CLI login before preparing the request.

In plain words
What is it for?
Use it to open a pull request against a chosen target branch, using a specified or configured GitHub account.
Why use it?
It standardizes the pull-request setup and catches authentication problems before other work begins.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Part of the ac-git plugin — 7 skills shipped together

Good fit Use it to open a pull request against a chosen target branch, using a specified or configured GitHub account.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/waterplanai/agentic-config/pull-request
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.

Any agent
npx skills add WaterplanAI/agentic-config --skill pull-request
Clone the repo
git clone --depth 1 https://github.com/WaterplanAI/agentic-config

Made for: Claude Code.

Or install ac-git, the plugin that ships this one along with the rest of its 7 skills.

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 pull-request

README.md
[![agentmods](https://agentmods.dev/badge/skills/waterplanai/agentic-config/pull-request/github.svg)](https://agentmods.dev/skills/waterplanai/agentic-config/pull-request)
Your own site
<a href="https://agentmods.dev/skills/waterplanai/agentic-config/pull-request"><img src="https://agentmods.dev/badge/skills/waterplanai/agentic-config/pull-request/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 pull-request

Your own site · 80×15
<a href="https://agentmods.dev/skills/waterplanai/agentic-config/pull-request"><img src="https://agentmods.dev/badge/skills/waterplanai/agentic-config/pull-request.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
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 97% copy Near-identical to another mod 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.00031 $0.02624
Opus 5.5 $0.00012 $0.01050
Sonnet 5.5 $0.00006 $0.00525
Haiku 4.5 $0.00003 $0.00262

Measured 19d ago against content hash 4a4944d6cd06, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pull-request 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 19d 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.

Origin

This is a copy

97% identical to ac-git-pull-request — 18 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugins/ac-git/skills/ac-git/pull-request/SKILL.md · 395 lines

How it starts

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

Pull Request Creator

Creates a comprehensive GitHub Pull Request with authentication validation and structured documentation.

Usage

/pull-request [target_branch] [gh_user]

Arguments:

  • target_branch: Base branch for PR (default: main)
  • gh_user: Expected GitHub username (default: $GH_USER env var)

Examples:

/pull-request                    # Uses main, $GH_USER
/pull-request master             # Target master branch
/pull-request main my-username   # Explicit user override

Workflow Steps

Step 1: Authentication Verification (CRITICAL - DO FIRST)

INSTRUCTION: Verify GitHub CLI authentication before any other operation.

ROOT=$(git rev-parse --show-toplevel)
BRANCH=$(git rev-parse --abbrev-ref HEAD)

# Get authenticated user
echo "Checking GitHub authentication..."
GH_AUTH_OUTPUT=$(gh auth status 2>&1)
echo "$GH_AUTH_OUTPUT"

# Extract authenticated username
AUTH_USER=$(echo "$GH_AUTH_OUTPUT" | grep -oE "Logged in to github.com account [^ ]+ " | sed 's/Logged in to github.com account //' | tr -d ' ' || echo "")
# Alternative extraction if format differs
if [ -z "$AUTH_USER" ]; then
  AUTH_USER=$(echo "$GH_AUTH_OUTPUT" | grep -oE "account [^(]+" | head -1 | sed 's/account //' | tr -d ' ')
fi

echo "Authenticated as: $AUTH_USER"

Validation Logic:

  1. Extract AUTH_USER from gh auth status output
  2. Determine expected user:
    • If gh_user argument provided -> use it
    • Else if $GH_USER env var set -> use it
    • Else -> skip user validation (proceed with warning)
  3. Compare AUTH_USER with expected user
  4. If mismatch: STOP immediately with error:
    ERROR: GitHub authentication mismatch
    - Authenticated as: <AUTH_USER>
    - Expected user: <EXPECTED_USER>
    
    Please run: gh auth login
    Or switch accounts: gh auth switch
    
  5. If match: Proceed with success message

Step 2: Pre-Flight Validation

# Check not on protected branch
if [ "$BRANCH" = "master" ] || [ "$BRANCH" = "main" ]; then
  echo "ERROR: Cannot create PR from protected branch: $BRANCH"
  exit 1
fi

# Determine target branch
TARGET="${1:-main}"  # Default to main

# Verify target exists on remote
if ! git -C "$ROOT" show-ref --verify --quiet "refs/remotes/origin/$TARGET"; then
  echo "ERROR: Target branch 'origin/$TARGET' does not exist"
  echo "Available remote branches:"
  git -C "$ROOT" branch -r | grep -v HEAD
  exit 1
fi

# Check for uncommitted changes
if [ -n "$(git -C "$ROOT" status --porcelain)" ]; then
  echo "WARNING: Uncommitted changes detected"
  git -C "$ROOT" status --short
fi

Read the full file on GitHub · 395 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. 19d ago First seen · 395 lines · 31 tokens per session scan A 4a4944d6cd06

Subscribe to this mod's changes

pull-request is a skill published in the GitHub repository WaterplanAI/agentic-config (31 stars, last pushed 20d ago), licensed MIT. It adds 31 tokens to every session and 2,624 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to ac-git-pull-request, differing in 18 lines, and is treated as a copy.

Related

pull-request compared with skills from other repositories

pull-request next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pull-requestWaterplanAI/agentic-configSkill3120d agoMITA31Claude Code
llm-gaterohitg00/pro-workflowSkill3.0k2mo agononeA38Claude Code
smart-commitrohitg00/pro-workflowSkill3.0k2mo agononeA45Claude Code
autofix-prQwenLM/qwen-codeSkill31ktodayApache-2.0A142Claude Code
gentle-ai-collab-perfectGentleman-Programming/gentle-aiSkill9.7kyesterdayMITA106Claude Code, Codex
work-unit-commitsGentleman-Programming/gentle-aiSkill9.7kyesterdayMITA31Claude Code, Codex
branch-prGentleman-Programming/gentle-aiSkill9.7kyesterdayMITA22Claude Code, Codex