From issue-flow
PR 作成前の検証パイプライン。format / lint / typecheck / test を一括実行し、全て通過した場合のみ PR を作成する。
How this skill is triggered — by the user, by Claude, or both
Slash command
/issue-flow:ship-prThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
このスキルは `/issue-flow:issue-next` の PR 前検証を単独で実行するためのもの。
このスキルは /issue-flow:issue-next の PR 前検証を単独で実行するためのもの。
pnpm を使うワークスペース前提。コマンド名・スクリプト名はプロジェクトに合わせて読み替える。
以下を順番に実行し、失敗したステップで止めてエラーを提示する。全てが通過したら PR を作成する。
pnpm format
変更があれば自動修正される。修正されたファイルがあれば git add でステージに加える。
pnpm lint
エラーが出た場合は修正してから次へ進む。警告のみで進めてよいかユーザーに確認する。
プロジェクトに typecheck スクリプトがあれば実行する(モノレポの場合は対象パッケージで実行):
pnpm typecheck
# または
pnpm -C <package> typecheck
packages を触っていない場合はスキップしてよい。エラーが出た場合は修正してから次へ進む。
package.json に変更がある場合のみ実行:
pnpm install
pnpm-lock.yaml が更新された場合は git add pnpm-lock.yaml でステージに加える。
pnpm test
# または
pnpm -C <package> test
失敗したテストがあれば修正してから次へ進む。
全ステップ通過後:
git add <変更ファイル>
git commit -m "feat/fix/...: {タイトル} (#{番号})"
git push -u origin {ブランチ名}
mcp__github__create_pull_request) を使用する。gh pr create などの CLI には依存しない。
owner / repo は git remote get-url origin から取得する。head は現在のブランチ名(git rev-parse --abbrev-ref HEAD)。base は main(プロジェクトのデフォルトブランチが異なる場合は読み替える)。title は Conventional Commits 形式(例: feat(scope): 概要 (#番号))。body には背景・変更点・テスト計画を記載し、Closes #{番号} を含める。mcp__github__create_pull_request({
owner: "<owner>",
repo: "<repo>",
base: "main",
head: "<ブランチ名>",
title: "<タイトル>",
body: "...\n\nCloses #<番号>"
})
gh pr create などの CLI には依存しない。MCP サーバーが使用不可の場合はその旨をユーザーに報告して停止する。mcp__github__create_pull_request → format & lint)が PR 作成直前にも走るため、本スキルの format/lint と二重実行になる。これは早期エラー検知のための意図的な冗長性。npx claudepluginhub a-1ro/issue-flow --plugin issue-flowGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.