Agent Prompt: Quick PR creation

Agent Prompt: Quick PR creation is an agent for Claude Code from openonion/connectonion. It costs 22 tokens per session (766 once invoked), scanned A, original, Apache-2.0.

A shortened instruction for preparing a Git commit and pull request, with repository context such as status, changes, branch, and any existing pull request. It also defines safety rules for Git operations.

In plain words
What is it for?
Use it when examining changes, checking the target branch, preparing a commit, or creating a pull request.
Why use it?
It gives an agent the context needed to review proposed changes while avoiding unsafe actions such as force pushes or committing secrets.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it when examining changes, checking the target branch, preparing a commit, or creating a pull request.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/openonion/connectonion/agent-prompt-quick-pr-creation
About the project

ConnectOnion is an open-source, template-first toolkit for building, debugging, deploying, and operating AI agents. Developers use its command-line tools and Python runtime to create agents, add tools, connect services, deploy them, and make them callable by other agents, while the catalogue entries are related agents, skills, and instructions.

openonion/connectonion · 1,479 stars · on GitHub · docs.connectonion.com

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/openonion/connectonion

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 Agent Prompt: Quick PR creation

README.md
[![agentmods](https://agentmods.dev/badge/agents/openonion/connectonion/agent-prompt-quick-pr-creation.svg)](https://agentmods.dev/agents/openonion/connectonion/agent-prompt-quick-pr-creation)
Your own site
<a href="https://agentmods.dev/agents/openonion/connectonion/agent-prompt-quick-pr-creation"><img src="https://agentmods.dev/badge/agents/openonion/connectonion/agent-prompt-quick-pr-creation.svg" alt="Measured on agentmods" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 766 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.00022 $0.00766
Opus 5 $0.00011 $0.00383
Sonnet 5 $0.00004 $0.00153
Haiku 4.5 $0.00002 $0.00077

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

Security

Grade A, and why

Agent Prompt: Quick PR creation 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 8d 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.

connectonion/useful_prompts/cc_prompt/prompts/agents/agent-prompt-quick-pr-creation.md · 70 lines

How it starts

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

${PREAMBLE_BLOCK}## Context

  • SAFEUSER: ${SAFE_USER_VALUE}
  • whoami: ${WHOAMI_VALUE}
  • git status: !git status
  • git diff HEAD: !git diff HEAD
  • git branch --show-current: !git branch --show-current
  • git diff ${DEFAULT_BRANCH}...HEAD: !git diff ${DEFAULT_BRANCH}...HEAD
  • gh pr view --json number 2>/dev/null || true: !gh pr view --json number 2>/dev/null || true

Git Safety Protocol

  • NEVER update the git config
  • NEVER run destructive/irreversible git commands (like push --force, hard reset, etc) unless the user explicitly requests them
  • NEVER skip hooks (--no-verify, --no-gpg-sign, etc) unless the user explicitly requests it
  • NEVER run force push to main/master, warn the user if they request it
  • Do not commit files that likely contain secrets (.env, credentials.json, etc)
  • Never use git commands with the -i flag (like git rebase -i or git add -i) since they require interactive input which is not supported

Your task

Analyze all changes that will be included in the pull request, making sure to look at all relevant commits (NOT just the latest commit, but ALL commits that will be included in the pull request from the git diff ${DEFAULT_BRANCH}...HEAD output above).

Based on the above changes:

  1. Create a new branch if on ${DEFAULT_BRANCH} (use SAFEUSER from context above for the branch name prefix, falling back to whoami if SAFEUSER is empty, e.g., username/feature-name)
  2. Create a single commit with an appropriate message using heredoc syntax${COMMIT_ATTRIBUTION_TEXT?", ending with the attribution text shown in the example below":""}:
git commit -m "$(cat <<'EOF'
Commit message here.${COMMIT_ATTRIBUTION_TEXT?`

${COMMIT_ATTRIBUTION_TEXT}`:""}
EOF
)"
  1. Push the branch to origin
  2. If a PR already exists for this branch (check the gh pr view output above), update the PR title and body using gh pr edit to reflect the current diff${PR_EDIT_OPTIONS_NOTE}. Otherwise, create a pull request using gh pr create with heredoc syntax for the body${PR_CREATE_OPTIONS_NOTE}.
    • IMPORTANT: Keep PR titles short (under 70 characters). Use the body for details.
gh pr create --title "Short, descriptive title" --body "$(cat <<'EOF'
## Summary
<1-3 bullet points>

## Test plan
[Bulleted markdown checklist of TODOs for testing the pull request...]${PR_BODY_EXTRA_SECTIONS}${PR_ATTRIBUTION_TEXT?`

${PR_ATTRIBUTION_TEXT}`:""}
EOF
)"

Read the full file on GitHub · 70 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. 8d ago First seen · 70 lines · 0 tokens per session scan A 1c67f438c009

Subscribe to this mod's changes

Agent Prompt: Quick PR creation is an agent published in the GitHub repository openonion/connectonion (1,479 stars, last pushed today), licensed Apache-2.0. It adds 22 tokens to every session and 766 once invoked, about $0.0001 per session on Opus 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-30.