ship
変更をコミットし、Pull Requestを作成。差分を分析し、コミット→プッシュ→PR作成を一括実行する。
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
Ship
変更をコミットし、リモートにプッシュして Pull Request を作成します。
ベースブランチは develop。main への PR は禁止。
Phase 0: ブランチ確認
git branch --show-current
main / master / develop にいる場合:
- diff から変更内容を分析
- ブランチ名を生成(
feat/xxx,fix/xxx等) -
git checkout -b <ブランチ名>
Phase 1: Commit
1-1. 状態確認
以下を並列実行:
git status
git diff
git diff --cached
git log -10 --oneline --no-decorate
1-2. ステージング
git add <files>
除外対象: シークレット、一時ファイル
1-3. 変更内容の理解
-
git diff --cached --name-onlyで変更ファイル確認 - 主要ファイルを Read で確認
- 変更の目的・影響範囲を把握
1-4. コミット
git commit -m "$(cat <<'EOF'
<prefix>: <簡潔な説明>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet <noreply@anthropic.com>
EOF
)"
1-5. 確認
git status
git log -1 --stat
コミット失敗時は Phase 2 をスキップして終了。
Phase 2: Create PR
2-1. プッシュ
git push -u origin HEAD
2-2. PR作成
gh pr create --draft --assignee @me --base develop \
--title "<タイトル>" \
--body "$(cat <<'EOF'
## Summary
<変更内容の要約>
## Test plan
<テスト方法>
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
2-3. ブラウザで開く
gh pr view --web
完了報告
- コミットメッセージ
- PR URL
- 次のアクション
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-01-20
- Index updated
- 2026-01-26
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!