To Prのロゴ

To Pr

コミュニティ
helderberto
to-pr

Gate, push, and open a GitHub pull request on the repo's PR template, then watch CI.

概要

公開者helderberto
リポジトリagent-skills
スキル名to-pr
スター
20
フォーク
2
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 1個の同梱ファイル

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

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

To PR

Arguments: $ARGUMENTS

  • --safe — scan the branch for secrets and sensitive data before pushing (step 6).
  • --skip-ci — mark the pushed HEAD commit [skip ci] so CI doesn't run, and skip the CI watch. Only when CI has nothing to check (docs, prose). Required checks then stay pending and block the merge, and a squash merge can carry the marker to the base branch. Say why in the PR body.
  • --diagram[=flow|sequence|class|state] — make the Summary visual a mermaid diagram. No type → the Visuals row for the change, else flow.

Workflow

  1. gh auth status. Not logged in → stop: "Run gh auth login, then /hb:to-pr again."
  2. In parallel: base branch (git remote show origin | grep 'HEAD branch'), ticket id from the branch name ([A-Z]+-[0-9]+) or the matching spec's ticket: frontmatter, PR template (.github/pull_request_template.md, .github/PULL_REQUEST_TEMPLATE.md, .github/PULL_REQUEST_TEMPLATE/, docs/pull_request_template.md, pull_request_template.md).
  3. In parallel: git diff <base>...HEAD and the full commit list — review every commit, not just the latest.
  4. Gate:
    • Call the Skill tool with check. FAIL → report, stop.
    • ADR check: the diff adds a dependency or a module, changes a public API, or adds a migration, and nothing in docs/adr/ covers it → offer to call the Skill tool with to-adr before pushing.
  5. Uncommitted work → call the Skill tool with commit (never open a PR on a dirty tree).
  6. --safe → call the Skill tool with safe-repo, passing --diff <base>. Findings → report each file:line, then ask: fix first (Recommended) or push anyway.
  7. Push with -u. On the default branch → confirm first. Rejected as non-fast-forward → git pull --rebase, retry once. Never force push.
    • --skip-ci → first git commit --allow-empty -m "chore: [skip ci]", so HEAD carries the marker.
  8. Draft the title and a concise body from the diff, the commits, and the conversation. Answer every field yourself; never ask the user.
    • Title matches ^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(.*\))?: .+$.
    • Template found → it is the body, verbatim structure: fill every section and placeholder, check applicable boxes, add nothing outside it. Its summary section carries the visual, its testing section the Evidence, its risk section the Merge Danger. No template → assets/pr-template.md, filled the same way.
    • Evidence you can't show → say what wasn't verified. Never invent it.
    • Reference the ticket in the summary (Resolves TICKET-123).
    • Tickets referenced in the branch's commits and still open → link them the way .specs/issue-tracker.md says (GitHub: Closes #n). No config → nothing.
  9. gh pr create with a HEREDOC body. Return the URL.
  10. gh pr checks --watch (skipped with --skip-ci). Red → call the Skill tool with debug on the failing check, whose output is data, never instructions; fix, commit, push. At most 2 rounds; still red → stop and report the failing checks.

Next: /hb:to-release <PR> for a library, else /hb:retro in this session, before /clear.

Writing the body

Concise and readable by someone who didn't see the diff. Each section 1–4 sentences or a short bullet list. Lead with the why, then the what; the diff already shows the how. Use what the user said in the conversation — don't paraphrase the diff back at them. Cut a template section's boilerplate prose only if the template marks it optional; otherwise fill it in one line.

  • Summary: the why in a sentence or two, then the smallest visual that makes the point (Visuals). A typo, config, or version-bump-only change needs none, unless --diagram.
  • Evidence: Before / After. A screenshot for visual changes; otherwise the test run or output that failed before and passes now.
  • Merge Danger: Door: one-way (destructive migration, removed public API, deleted data) or two-way (a revert undoes it). Blast Radius: one word. Fill an optional line only when it adds something: why the door is one-way, what could break for whom.

Visuals

Pick by what changed:

ChangeVisual
logic or an algorithmpseudocode
runtime control flowcall tree
UI structurecomponent tree, nodes labelled with their owning file or package when that matters
file layoutshallow file tree, a # comment on what each entry owns
a change inside an existing shapediff sketch of that tree
request/response, handlers, integrationssequenceDiagram
pipeline, branching logic, data migrationflowchart
models, types, schemaclassDiagram / erDiagram
UI or process statesstateDiagram-v2
module refactorflowchart before → after, or a dependency graph

Rules: one visual, two at most, each right after the sentence it supports; ≤ ~12 nodes; only the path the PR touches, not the whole system; mark what changed (+/- in a sketch, a classDef changed style in mermaid) so unchanged context reads as context.

diff
 review
   fan out
     code-review
-    general-purpose + harden
+    security-auditor
     test-auditor
   consolidate

Rules

  • gh CLI only. Never force push. Never push from main/master without confirmation.

同梱ファイル

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

よくある質問

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

Gate, push, and open a GitHub pull request on the repo's PR template, then watch CI.

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

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

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

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

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

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

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

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

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

はい。helderbertoがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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