本文へ移動
cccskills
無料GitHub で公開

pr

Create or update a pull request with a structured description.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Pull Request

  1. Base: default to main. Override with --base <branch> in $ARGUMENTS.
  2. Preflight: check git log <base>..HEAD --oneline. If nothing to merge, ask the user what they intended.
  3. Push: run git push -u origin $(git branch --show-current). If it fails because the remote has diverged (e.g., after an amend or rebase), tell the user and ask whether to force push (--force-with-lease). Never force push without confirmation.
  4. Detect existing PR: run gh pr view --json number,title,body 2>/dev/null. If a PR already exists, go to step 6.
  5. Create PR:
    • Gather context: read the commit messages (git log <base>..HEAD). Run /diff <branch> for the full diff.
    • Write description: PRs are hierarchical — they aggregate commits.
      • Single commit: the PR description is the commit message body, reformatted with markdown headings.
      • Multiple commits: ask the user whether to (a) include all commits as-is, (b) squash first then PR, or (c) PR only a subset. Then aggregate the included commit messages. Add Goal/Background/Alternatives only when they provide context the individual commits don't.
      • Use the same body format as /commit (Problem + Solution with ## headings). No "Test plan" or "Summary" sections.
      • Follow the project's PR conventions if documented (e.g., CONTRIBUTING.md).
    • Title: conventional commit style, under 70 characters.
    • Create a unique temp file with mktemp /tmp/pr-body.XXXXXX.md, write the description to it, and run gh pr create --base <base> --title "<title>" -F <temp-file>.
  6. Update PR: run /diff <branch> and compare the full diff against the current PR description. If the description no longer accurately reflects the branch's changes, create a unique temp file with mktemp /tmp/pr-body.XXXXXX.md, write the new description to it, and run gh pr edit <number> --title "<title>" -F <temp-file>.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

amend

無料

Amend the last commit with current changes and/or an updated message.

日本語の概要は準備中です。原文の説明を表示しています。

simonepri/ifttt-lint282026年9月29日 更新

commit

無料

Stage changes and create a commit with a conventional commit message.

日本語の概要は準備中です。原文の説明を表示しています。

simonepri/ifttt-lint282026年9月29日 更新

cook

無料

Full autopilot — plan, implement, and polish a task end-to-end.

日本語の概要は準備中です。原文の説明を表示しています。

simonepri/ifttt-lint282026年9月29日 更新

diff

無料

Fetch and display diffs for various scopes (PR, commit, branch, staged, working tree). Used by other skills that need to analyze changes.

日本語の概要は準備中です。原文の説明を表示しています。

simonepri/ifttt-lint282026年9月29日 更新

execute

無料

Execute a plan file — parse phases, spawn parallel subagents, handle failures.

日本語の概要は準備中です。原文の説明を表示しています。

simonepri/ifttt-lint282026年9月29日 更新

fork

無料

Start or end a forked session for exploring rabbit holes without losing the main conversation's context.

日本語の概要は準備中です。原文の説明を表示しています。

simonepri/ifttt-lint282026年9月29日 更新

simonepri のスキルをすべて見る

このスキルの問題を報告する