agentleFS
studiogadgetstudiogadget/skills/pr-creator/SKILL.md

pr-creator

Skill3 starsChanged 6 months agoApache-2.0View on GitHub

Git運用規則に準拠したドラフトPRを作成する。「PR作成」「ドラフトPR」「プルリクエスト作成」時に使用。差分分析→本文生成→gh pr create --draft の3ステップで進める。

  • Commits and pushes

22 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-draft-release-notes, rstack-docs-writer and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • rstackjsSkill

    create-draft-release-notes

    Create or update draft GitHub release notes, or output organized Markdown when draft creation is unavailable. Use for release notes, draft releases, release PR checks, npm staged publishing checks, and optional highlights.

    Also in 5 projects that use this

  • rstackjsSkill

    rstack-docs-writer

    Write or revise Markdown and MDX documentation, including READMEs, guides, and Rspress-based docs.

    Also in 5 projects that use this

  • Muromi-RikkaSkill

    rspress-description-generator

    Generate and maintain description frontmatter for Rspress documentation files (.md/.mdx). Use when a user wants to add SEO descriptions, improve search engine snippets, generate llms.txt metadata, prepare docs for AI summarization, or batch-update frontmatter across an Rspress doc site. Also use when adding new documentation pages to an Rspress project — every new doc file needs a description.

    Also in 3 projects that use this

  • youzanSkill

    rstack-cli-docs

    Consult installed, version-matched Rstack docs only for user-facing `rs` command behavior, `rstack.config.*` semantics, or public `rstack` APIs. Do not use for purely internal implementation, tests, performance, or repository maintenance.

    Also in 3 projects that use this

  • mm-mazharSkill

    cache-components

    Expert guidance for Next.js Cache Components and Partial Prerendering (PPR).

    Also in 3 projects that use this

  • chendongqiSkill

    frontend-code-review

    Trigger when the user requests a review of frontend files (e.g., `.tsx`, `.ts`, `.js`). Support both pending-change reviews and focused file reviews while applying the checklist rules.

    Also in 5 projects that use this

  • +1 more from rstackjs

The file

Files
SKILL.md

PR Creator

Git運用規則に準拠したドラフトPRを作成するスキル。

厳守事項(Hard Rules)

作業開始前に以下4点を必ず復唱すること:

  1. テンプレート保持: PR本文冒頭のAIレビュールールセクションを完全にそのまま含める(省略・変更禁止)
  2. PR原則: 1PR = 1目的、差分400行以内(テスト除く)
  3. ドラフト形式: 必ず --draft オプション付きで作成
  4. 本文構成: 概要(WHAT/WHY/IMPACT)→ 変更内容 → テスト → 影響範囲 → 確認項目の順

Git操作許可範囲: gh pr create --draft のみ実行可(コミット・プッシュ禁止)

入力

パラメーター既定値説明
basemainベースブランチ
compare現在のブランチ比較ブランチ
issueなし関連Issue番号

手順

Step 1: 差分分析

  1. git diff <base>...<compare> --stat で変更ファイルと行数を確認
  2. 差分が400行超過(テスト除く)の場合 → 警告を表示(PR作成は続行可能)
  3. git log <base>..HEAD --oneline でコミット履歴を確認し、WHAT/WHYを抽出

Step 2: PR本文生成

PR本文テンプレート を読み込み、以下のルールで本文を生成する。

タイトル

  • 日本語簡潔、72文字以内
  • 「ドラフト」「WIP」等のプレフィックスは付けない
  • コミットメッセージと変更内容から自動生成

本文

  1. 最優先: テンプレート冒頭のAIレビュールールセクションをそのまま含める
  2. 概要(WHAT / WHY / IMPACT)を記載
  3. 変更内容を箇条書きで記載、変更種類にチェック
  4. テスト内容を記載(未実装ならチェックボックス付きTODO)
  5. 影響範囲を記載(後方互換性の有無含む)
  6. 確認項目のチェックボックスはすべて未チェック状態で残す
  7. 関連Issueがあれば Closes #<issue> を追加

Step 3: PR作成

確認なしで即座に実行する(ユーザーへの提示・確認は不要)。

gh pr create --draft --base <base> --head <compare> --title "<title>" --body "<body>"

完了時の出力

**PR作成結果**:
- PR番号: #<PR番号>
- PR URL: <URL>
- タイトル: <タイトル>
- 実行コマンド: [再現用コマンド]

エラーハンドリング

状況対応
差分400行超過警告表示、分割提案(PR作成は続行可)
ブランチ名がGit規則に非準拠警告表示(PR作成は続行可)
関連Issueが見つからない警告表示(PR作成は続行可)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.