AGENT SKILL

commit-push-pr

Commit, push, and open a reviewable PR, or execute an explicitly authorized merge. Use for delivery requests; --no-pr stops after push.

License 许可
MIT
最近更新
2026-11-14
Stars
★ 4
Forks
1

01 前言 Front Matter

name
commit-push-pr
description
Commit, push, and open a reviewable PR, or execute an explicitly authorized merge. Use for delivery requests; --no-pr stops after push.
argument-hint
[--no-pr]

02 资源文件 4

03 SKILL.md 正文

Read Poteto.

Use REFERENCE.md and dependencies.

Explicit merge only: contract.

Preflight

  1. Check status/diff/branch/log/PR; push/PR auto-rebase behind owned PRs.
  2. Resolve endpoint: commit only, push (--no-pr), or PR. Commit-only skips remote and gh preflight.
  3. Push/PR: auto-setup safeguards; honor narrower endpoints.
  4. For PR, run gh stack view --json. Own one layer; never implicit gh stack submit.
  5. Review with owning skills; authorized council preserves coverage; do not block merely over skill invocation.
  6. Load dogfood for runnable PR work; require current PASS. BLOCKED needs user waiver.
  7. Stage by purpose; ask on unclear ownership.

Commit

With Changesets, load changesets after checks.

  1. Keep feature branches; on default, create type/description.
  2. Per coherent group, git add <explicit paths> then type(scope): description: lowercase, 5-72 chars, no period.
  3. Explicit commit-only intent stops here after clean-tree check.
  4. Push/PR, any CI fix or rebase: show origin/<branch>..HEAD, then push with tracking.
  5. User-owned feature rewrites use --force-with-lease without another permission prompt. Never plain-force; default/shared/foreign/concurrent rewrites need explicit permission.

Pull request

--no-pr never creates a PR. After push: existing PR upkeep, then check tree. Prepare evidence.

  1. Base: "${CLAUDE_PLUGIN_ROOT:-.}/scripts/resolve-pr-base.sh". Keep follow-up in current PR and metadata, including draft state. Draft PRs open without approval; stacks: /stacked-prs.
  2. Every PR: load PR, impact and body separately; keep drafts/value.
  3. Require visual evidence or a scoped exception.
  4. Public repo (gh repo view --json visibility): scrub internal org, repo, product, person names and private links from commits, title, body, and evidence before push.
  5. Summarize checks/limits and dogfood inline; read back body/media access. Refresh invalidated evidence; no separate evidence file.

Upkeep: maintenance owner, select native transport before watching; no duplicate dispatcher.

Do not run /visual-recap or /make-pr-easy-to-review unless the user explicitly requests.

Completion

  1. Read CI: gh pr checks <number>; absent/pending/skipped is not green.
  2. Automatically fix applicable feedback/CI/conflicts; verify/push; continue one authorized transport.
  3. Report head/PR/checks/review gaps and continuation/blocker; honor narrower stops.
  4. Follow CLAUDE.md: intent/impact/status and full PR URL on final status line, including updates.

Preserve unrelated work; expose failures/recovery.

04 同仓库更多 Skills