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 1mo 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 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.

.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. 1mo ago Changed · -24 lines · -5 tokens per session 91f5f6cf3a7e
  2. 1mo 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 12d 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

Other skills, from other repositories

bark-notify

Use this skill whenever the user wants Claude Code on a Mac to notify an iPhone through Bark when a task, turn, or coding session finishes. Trigger on requests about Bark notifications, Claude completion alerts, iPhone push reminders, macOS to iPhone completion messages, Bark hook setup, or Bark troubleshooting, even…

RUIIIOVO/claude-code-bark-notify · 79 tokens

bark-notify-setup

Set up Bark completion notifications for Claude Code on macOS by safely writing the local Bark sender script and merging a Stop hook into /.claude/settings.json. Use when the user explicitly asks to configure Bark for them or to directly install the completion notification flow.

RUIIIOVO/claude-code-bark-notify · 58 tokens

conventional-commit

Rules for writing Conventional Commits messages in this project. MUST be invoked every time a commit is created.

JanDeDobbeleer/oh-my-posh · 26 tokens

python-release

Handle Python SDK release, build, bump, packaging metadata, PyPI client pin, uv.lock, nox/build workflow, and publish verification changes. Use for Python release process work or dependency pin bumps; do not use for ordinary Python feature implementation.

ComposioHQ/composio · 53 tokens

release-notes

Generate and publish concise, evidence-based notes in the body of the latest existing GitHub Release. Use only when the user explicitly invokes $release-notes or explicitly asks to update the latest existing GitHub Release body. Do not invoke for general release planning, changelog, tag, or version tasks.

kenryu42/cc-safety-net · 65 tokens

ai-visibility-writing

Audit, question, suggest, or fact-preservingly revise a press release, blog post, contributed article, or expert explainer so AI answer systems can more easily retrieve, understand, quote, and cite its useful information. Use when someone asks for AI visibility, AI search, answer-engine, AEO, GEO, AI Overview, or…

elvisun/newsjack · 137 tokens