Workflow Shipのロゴ

Workflow Ship

コミュニティ
fimoklei
workflow-ship

Use when the user asks to run workflow:ship, ship a branch, publish a feature branch, open and merge a PR, or push/PR/merge/cleanup completed work.

概要

公開者fimoklei
リポジトリpm-ai-playbook
スキル名workflow-ship
スター
42
フォーク
8
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

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

インストール

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

1

TypingMindにインストール

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

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

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

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

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

TypingMindで使用

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

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

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

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

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

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

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

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

スキルの指示

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

Workflow Ship

Ship the current feature branch by pushing, opening a PR, merging it to main, and cleaning up safely.

Trigger Phrases

  • workflow:ship
  • ship workflow
  • ship this branch
  • publish this branch
  • open and merge a PR
  • push, PR, merge, and clean up

Process

  1. Verify branch state:

    • Run git branch --show-current.
    • Stop if the branch is main or master.
    • Run git status --short --branch.
    • Stop if there are uncommitted changes and suggest workflow:commit.
    • Resolve the base ref: use local main when present, otherwise use origin/main.
    • Run git log <base-ref>..HEAD --oneline and stop if there are no commits ahead of the base ref.
  2. Run Codex review as final gate:

    • Check for docs-only diff first:
      • Run git diff --name-only <base-ref>...HEAD.
      • If every changed path matches the regex (^|.*/)(README|LICENSE)[^/]*$|\.md$|^docs/, the diff is docs-only.
      • Print one line to the user: "Docs-only diff detected — skipping review."
      • Skip the rest of step 2 and continue to step 3.
    • Verify codex is on PATH (command -v codex). If missing, stop with a clear error — do not silently skip.
    • Run codex review --base main in the foreground. Stream the output to the user.
    • If codex exits non-zero, stop and report — do not push.
    • Parse the reviewer stdout for the regex Review comment:|\[P[0-3]\].
    • If there is no match, the review is clean. Continue to step 3 without prompting.
    • If there is a match, halt. Before presenting the options, write a short plain-language summary in Dutch using this exact format:
      Severity: laag / midden / hoog
      Wat er speelt: <1-2 zinnen, plain language>
      Advies: ship / fix eerst / jouw call
      Map codex priority to severity as a soft guideline:
      • P0 present → hoog / fix eerst
      • P1 present (no P0) → midden / jouw call
      • only P2 / P3 / nits → laag / ship Deviating from the mapping is allowed when context warrants it (e.g. P1 in a comment, P2 touching auth) — add one short sentence explaining why. After the summary, present two options to the user (use AskUserQuestion in Claude Code; in Codex or other hosts, prompt the user explicitly and wait for an answer):
      • Abort ship (Recommended) — stop the workflow. The user fixes the findings outside ship (e.g. via workflow:commit) and re-runs workflow:ship. Do not attempt fixes inside this workflow.
      • Ignore findings and ship anyway — continue to step 3.
  3. Push the branch:

    • Detect whether an upstream exists with git rev-parse --abbrev-ref --symbolic-full-name @{u}.
    • If no upstream exists, run git push -u origin <branch>.
    • If upstream exists, run git push.
  4. Summarize the shipment:

    • Run git log <base-ref>..HEAD --oneline.
    • Run git diff --stat <base-ref>...HEAD.
    • Show the commits and a compact summary before creating the PR.
  5. Create the PR:

    • Use gh pr create.
    • Derive the title from the branch name and commits using conventional-commit style.
    • Include a body with ## Summary and ## Test plan.
    • Show the PR URL.
  6. Merge safely:

    • Run gh pr merge <number> --merge --delete-branch.
    • If the merge fails because checks are failing, conflicts exist, or review is required, stop and report the blocker.
    • Never force-merge.
  7. Update local main:

    • Switch to main.
    • Pull the latest main.
  8. Delete the local branch:

    • Run git branch -d <branch>.
    • If safe deletion fails, do not use -D; report the reason and let the user decide.
  9. Confirm final state:

    • Run git status --short --branch.
    • Run git branch --list.
    • Confirm the worktree is clean and on main.

Error Handling

  • If the branch has no commits ahead of main, stop and say there is nothing to ship.
  • If codex is not on PATH, stop with a clear error — do not silently skip the review gate.
  • If codex review exits non-zero, stop and report the failure — do not push.
  • If gh is not authenticated or available, stop and report the exact blocker.
  • If the remote branch was already deleted by the merge step, skip remote deletion silently.

Command Notes

  • Follow the active agent and project shell rules.
  • Use non-interactive git commands whenever possible.
  • Do not run destructive commands unless the user explicitly asks for them.

よくある質問

AIスキル「Workflow Ship」では何ができますか?

Use when the user asks to run workflow:ship, ship a branch, publish a feature branch, open and merge a PR, or push/PR/merge/cleanup completed work.

TypingMindでWorkflow Shipを使うメリットは何ですか?

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

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

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/fimoklei/pm-ai-playbook/tree/main/skills/agentic-skills/workflow-shipを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Workflow Shipを使えるAIモデルはどれですか?

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

Workflow Shipは何個のAIモデルで使えますか?

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

AIスキル「Workflow Ship」は無料ですか?

はい。fimokleiがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

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

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

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

すべて見る

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

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