Skip to content
Agentmart
Submit a tool

push-pr

Canonical repo workflow for publishing one branch or PR: confirm scope, validate, commit, push, create or update the PR with preserved Markdown, and…

Skill by kaeawc

IndexedApache-2.0★ 52
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/kaeawc-push-pr

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Canonical repo workflow for publishing one branch or PR: confirm scope, validate, commit, push, create or update the PR with preserved Markdown, and optionally enable automerge. Prefer this over generic publish skills such as github:yeet inside this repo.

Use cases: documents, productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/push-pr

What's inside

Skill name
push-pr
Description
Canonical repo workflow for publishing one branch or PR: confirm scope, validate, commit, push, create or update the PR with preserved Markdown, and optionally enable automerge. Prefer this over generic publish skills such as github:yeet inside this repo.
License
Apache-2.0
Instructions
57 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Push PR

Use this when local work is ready to publish. This is the canonical publish workflow for this repo and replaces the old `gh-pr-workflow` helper plus any generic `github:yeet` defaults.

- Prefer `push-pr` for one branch or one PR.
- Prefer `push-my-prs` only when the user wants a batch loop across many PRs.
- Use generic plugin publish skills only when this repo-local skill is unavailable.

## Workflow

1. Confirm scope before staging.
   - Inspect `git status --short`, `git diff --stat`, and recent commit style.
   - If the worktree contains unrelated or user-owned changes, stage only explicit paths that belong to the PR.
   - Use `git add -A` only when the whole worktree is confirmed in scope.
2. Determine the branch strategy.
   - Stay on the current branch when it is already a work branch.
   - If publishing from `main`, `master`, or the remote default branch, create a repo-appropriate `work/...` branch unless the user requested a different name.
3. Run the relevant validation before pushing.
   - Prefer repo scripts and documented validation commands.
   - Do not skip validation unless the user explicitly accepts that risk.
4. Commit intentionally with a repository-appropriate message.
   - Keep the commit message terse and descriptive.
   - Do not amend or rewrite unrelated commits unless the user explicitly asks.
5. Push the current branch, setting upstream if needed.
6. Create or update exactly one PR.
   - Prefer `gh pr view --json number,url` to detect an existing PR for the current branch.
   - If no PR exists, create one with `gh pr create`.
   - If a PR exists, update it with `gh pr edit` only when the title/body/base needs to change.
   - Use the GitHub app for PR creation only when the surrounding tool environment already provides it and the repository, base, and head can be resolved unambiguously; otherwise use `gh`.
7. Preserve PR body formatting.
   - Write multiline PR bodies to `scratch/pr-body.md` or another temporary body file.
   - Use `gh pr create --body-file scratch/pr-body.md` or `gh pr edit --body-file scratch/pr-body.md`.
   - Avoid `--body "..."` for multiline Markdown because shell quoting can mangle newlines.
8. Set PR readiness and automerge deliberately.
   - Default to a ready PR when the user asked to publish completed work.
   - Use a draft PR when the user asks for draft status or the work is intentionally incomplete.
   - Enable squash automerge only when that matches the branch's intended workflow and the PR is ready.
9. Summarize branch, commit, PR URL, validation, and any remaining risk.

## Repo Rules

- Use `github-cli` and `validate` conventions.
- Never use destructive git commands.
- Prefer squash automerge unless the repo or existing PR says otherwise.
- Do not create recurring automations, feedback monitors, reminders, or follow-up cron jobs as part of publishing unless the user explicitly asks for ongoing monitoring.

## PR Body Expectations

The PR body should use real Markdown prose and cover:

- what changed
- why it changed
- user or developer impact
- root cause when the PR is a fix
- checks used to validate it

From kaeawc/auto-mobile, Apache-2.0.

More from kaeawc/auto-mobile

Signals

Stars
52
Forks
7
Open issues
510
Contributors
20
Last commit (this folder)
Jul 23, 2026 (3 months ago)
Last release
Oct 19, 2026 (9 days ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from kaeawc

Cite this page

push-pr skill. Agent Mart. https://agentmart.dev/skills/kaeawc-push-pr (last updated 2026-10-24)