Prepare Prのロゴ

Prepare Pr

組織
greenfield-inc
prepare-pr

範囲を絞った変更をコミットし、mainにリベースしてビルドを実行し、プルリクエストを作成または更新して、ブランチをレビューに出せる状態にします。ユーザーがブランチをPRレビューに出せる状態にしたい場合に使用します。既存PRの説明を、現在の差分と根拠に基づいて書き直す場合にも使用します。

Add to TypingMind

概要

公開者greenfield-inc
リポジトリPane
スキル名prepare-pr
スター
529
フォーク
227
同梱ファイル
2
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    greenfield-incがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Prepare Pr」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/greenfield-inc/Pane/tree/main/main/src/services/paneChatBundle/skills/prepare-pr
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/greenfield-inc/Pane.git /tmp/Pane
mkdir -p .claude/skills
cp -r /tmp/Pane/main/src/services/paneChatBundle/skills/prepare-pr .claude/skills/prepare-pr
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでPrepare Prを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にPrepare Prを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Prepare Prは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Prepare PR

This is a high-trust workflow. Surface any destructive or ambiguous step before proceeding.

Detect and rewrite an existing PR

On invocation, resolve any supplied PR URL or query the current branch for an existing PR. If one exists, default to rewriting its description unless the user explicitly requests code/branch preparation; read the existing title/body, current diff, source ticket/discussion and available review/QA/check evidence; use the writing contract and reference to rewrite the requested narrative and refresh its Grain companion when connected. Preserve valid closing lines, relevant human context and honest tested-SHA/QA/publication limits; the request authorizes rewriting the requested prose. This mode runs only writing, visual/evidence verification and persisted-body readback: leave code, commits, branch history, labels and draft/ready state unchanged, and do not rerun application QA solely for an editorial rewrite. Report the description update separately from the PR's current readiness. Use the full workflow below when preparing code for review.

Workflow:

  1. Group current changes into logical commits, ideally by done-plan.
  2. Create focused commits without staging unrelated work.
  3. Fetch and rebase onto origin/main.
  4. Resolve obvious conflicts directly. Ask the user about semantic conflicts.
  5. Run the relevant build steps and fix straightforward failures.
  6. Create a visual PR diagram before opening/updating the PR:
    • Use the excalidraw-pr-diagrams skill.
    • Keep all generated diagram working files under /tmp, usually /tmp/codex-pr-diagrams/<branch-or-pr>/.
    • Add a ## Visual Overview section to the PR body.
    • Include explicit Before and After diagrams in the visual overview.
    • Use the rendered Excalidraw image as the primary visual. Add Mermaid only when the user requests a text-rendered fallback.
    • Reuse a repository-owned long-lived release such as pr-assets, and follow the diagram skill's unique naming, collision, manifest, and metadata/direct-content verification rules. Creating that release is a separate hard stop requiring an exact grant such as {"action":"create_release","repo":"owner/name","tag":"pr-assets"}; generic GitHub, PR, comment, or asset-upload authorization does not grant it. Otherwise prepare the exact commands and marked Markdown and report the blocker.
  7. Audit existing PR body/comment image references. Replace dead, expiring, temporary, or local-only URLs with verified durable assets. Update agent-owned marked sections in place, preserve author text outside them, and change only a broken URL when it sits in author-owned prose.
  8. Push the branch. Use --force-with-lease only when the rebase made it necessary.
  9. Create or update the PR with a summary built from the plans, current diff, and a visual overview bounded by <!-- pr-visual-overview:start --> / <!-- pr-visual-overview:end --> that embeds the verified image inline. Read the PR back and confirm it is non-draft when the requested outcome is a ready PR.
  10. Run the cold-read skill on the PR title and body and apply its improvements before reporting done. Human review has not been requested yet, so its creative freedom applies in full.
  11. Size the PR with git diff origin/main...HEAD --numstat, counting hand-written files and lines only (exclude lockfiles, generated and vendored files). If it exceeds 10 files or 300 lines, end the report with one line offering refactor (the blind simple + deep pass that merges once and stops before applying). Under that size say nothing. Offer, never run; use the bundled skill through the parent's configured native roles only when the user requests it.

Rules:

  • Before drafting, read references/writing-guide.md for the completed example and fidelity check; when Grain is connected, adapt its bundled visual template.
  • Write for a zero-context junior SWE: lead with the source discussion/ticket's motivation and intended outcome, then introduce core concepts and explain the diff in dependency order; flag missing rationale rather than inventing it.
  • Cover every changed area, why it changes, tradeoffs, validation and limitations; use ample concrete before/after examples and diagrams, regardless of Grain availability.
  • When Grain is connected, save and visually verify a rich version of the final PR body with section navigation, rendered diagrams and hyperlinks to code/evidence; the PR must remain understandable without opening Grain.
  • When Grain is available, use grain to discover/reuse the repository-and-PR (or branch) workspace, creating one if absent; store diagrams, QA media and reports there and link verified evidence in a self-contained PR, overriding release uploads and inline-asset requirements.
  • When that Grain workspace exists and the session-trace skill is installed, attach this session's trace to it and link it from the PR companion.
  • Extend the linked intent brief with the final PR explanation, before/after behavior, and verified results; retain intent and decision history.
  • New workspaces default to Development Artifacts/<org>/<repo>; explicit destinations win. Clarify ambiguity, name for the task/PR, verify organization/folder/audience, and return the location. Preserve local and tracker/evidence contracts.
  • Never use blanket staging.
  • Treat secrets and credentials as stop conditions.
  • Keep build-fix commits separate when they are distinct from the feature work.
  • If GitHub CLI or network access is unavailable, report exactly where the flow stopped.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Prepare Pr」では何ができますか?

範囲を絞った変更をコミットし、mainにリベースしてビルドを実行し、プルリクエストを作成または更新して、ブランチをレビューに出せる状態にします。ユーザーがブランチをPRレビューに出せる状態にしたい場合に使用します。既存PRの説明を、現在の差分と根拠に基づいて書き直す場合にも使用します。

TypingMindでPrepare Prを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Prepare Prはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにPrepare Prをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/greenfield-inc/Pane/tree/main/main/src/services/paneChatBundle/skills/prepare-prを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Prepare Prを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Prepare Prで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもPrepare Prを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Prepare Pr」は無料ですか?

greenfield-incがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇