Skip to content
Development
Skill

/push-and-pr

Push the current branch, open or update its pull request, and merge it when asked. Triggers: "push-and-pr", "/push-and-pr", "push and pr", "create pr", "сделай пр", "запушь"

From plugin
agent-setup
114 skills
Install
$ npx -y skills add DefaultPerson/agent-setup --skill push-and-pr --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/push-and-pr

Context preview

The summary Claude sees to decide when to auto-load this skill.

Push the current branch, open or update its pull request, and merge it when asked. Triggers: "push-and-pr", "/push-and-pr", "push and pr", "create pr", "сделай пр", "запушь"

SKILL.md

push-and-pr.SKILL.md
name: push-and-pr
description: >
  Push the current branch, open or update its pull request, and merge it when asked.
  Triggers: "push-and-pr", "/push-and-pr", "push and pr", "create pr", "сделай пр", "запушь"
allowed-tools: [Bash]
disallowed-tools: [Edit, Write, MultiEdit, NotebookEdit]

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.
Ships withagent-setup

Universal setup for Claude Code and OpenAI Codex CLI — security hooks, notifications, status line, and skills.

Get the whole plugin
Stats
11
Stars
1
Forks
Active
Maintenance
Python
Language
MIT
License
1d ago
Last commit
9mo ago
Created

Repo: DefaultPerson/agent-setup

Other skills on agent-setup.