push-and-pr

push-and-pr is a skill for Claude Code from DefaultPerson/agent-setup. It costs 56 tokens per session (308 once invoked), scanned A, original, MIT.

A Git workflow for pushing the current branch and opening a GitHub pull request, which is a request to review and merge code. It follows a rebase-based workflow and prepares a structured pull request.

In plain words
What is it for?
Use it to check that work is committed, rebase a feature branch onto main, push it safely, check for an existing pull request, and create or update one with testing and risk details.
Why use it?
It removes repetitive checks around branch state, synchronization, pushing, and pull-request creation while guarding against accidental work on the main branch.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the NotebookEdit tool.

Good fit Use it to check that work is committed, rebase a feature branch onto main, push it safely, check for an existing pull request, and create or update one with testing and risk details.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/defaultperson/agent-setup/push-and-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.

Any agent
npx skills add DefaultPerson/agent-setup --skill push-and-pr
Clone the repo
git clone --depth 1 https://github.com/DefaultPerson/agent-setup

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 push-and-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/defaultperson/agent-setup/push-and-pr/github.svg)](https://agentmods.dev/skills/defaultperson/agent-setup/push-and-pr)
Your own site
<a href="https://agentmods.dev/skills/defaultperson/agent-setup/push-and-pr"><img src="https://agentmods.dev/badge/skills/defaultperson/agent-setup/push-and-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 push-and-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/defaultperson/agent-setup/push-and-pr"><img src="https://agentmods.dev/badge/skills/defaultperson/agent-setup/push-and-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 308 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.00056 $0.00308
Opus 5.5 $0.00022 $0.00123
Sonnet 5.5 $0.00011 $0.00062
Haiku 4.5 $0.00006 $0.00031

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

Security

Grade A, and why

push-and-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 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/skills/push-and-pr/SKILL.md · 25 lines

What it actually says

State

!git status -sb 2>&1 | head -20

$ARGUMENTS

Conventions

  • Use gh. The base is the repository's default branch (gh repo view --json defaultBranchRef), never an assumed main.
  • Rebase onto the base before pushing to keep history linear. Force-push only your own feature branch, and only with --force-with-lease.
  • If the branch already has a PR, push to it instead of opening another one.
  • PR title in Conventional Commit format, ≤72 chars; body sections: What, Why, How to test, Risks.
  • Wait for checks only when the repository has them, and fix failures before merging.
  • Merge only when the user asked for it: rebase-merge, delete the branch locally and on the remote, then update the local default branch with git pull --rebase — rebase-merge rewrites commit SHAs.
  • On the default branch there is nothing to open a PR from: push directly only if the user asked to.
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 Changed · -24 lines · -5 tokens per session 91f5f6cf3a7e
  2. 3mo ago First seen · 49 lines · 61 tokens per session scan A ab4a597b4832

Subscribe to this mod's changes

push-and-pr is a skill published in the GitHub repository DefaultPerson/agent-setup (11 stars, last pushed 1mo ago), licensed MIT. It adds 56 tokens to every session and 308 once invoked, about $0.0002 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-30.

Related

push-and-pr compared with skills from other repositories

push-and-pr next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
push-and-prDefaultPerson/agent-setupSkill111mo agoMITA56Claude Code
carryonao92265/claude-code-playbookSkill1318d agoMITA180Claude Code
bark-notifyRUIIIOVO/claude-code-bark-notifySkill42mo agoMITA79Claude Code
bark-notify-setupRUIIIOVO/claude-code-bark-notifySkill42mo agoMITB58Claude Code
Dotfilesdanielmiessler/LifeOSSkill21k17d agoMITA125Claude Code, Codex
python-releaseComposioHQ/composioSkill31ktodayMITA53Claude Code, Codex
about-thinkrailJetBrains/thinkrailSkill8.6ktodayApache-2.0A153Claude Code, Codex