スキル一覧に戻る
kawabeshogo

git-ship

by kawabeshogo

Research Agent using Claude Agent SDK with FastAPI web UI

0🍴 0📅 2026年1月21日
GitHubで見るManusで実行

SKILL.md


name: git-ship description: Automate git workflow including add, commit, push, and PR creation. Use this skill when user says "ship it", "git ship", "/ship", "commit and push", "create PR", or asks to push changes and create a pull request. Handles the complete flow from staging changes to opening a PR on GitHub.

Git Ship

Automate the complete git workflow: stage changes, generate commit message, push to remote, and create a pull request.

Workflow

1. Check Git Status

Run these commands to understand current state:

git status
git diff --stat
git log --oneline -5

2. Ask for Target Branch

Ask the user which branch to target for the PR using AskUserQuestion:

  • Detect available remote branches (main, master, develop) as options
  • Let user specify a custom branch if needed

3. Stage Changes

Stage all changes or ask user to confirm which files to include:

git add -A

For selective staging, show the list of changed files and let user choose.

4. Generate Commit Message

Analyze the diff to generate a meaningful commit message:

git diff --cached

Generate a commit message following conventional commits format:

  • feat: for new features
  • fix: for bug fixes
  • docs: for documentation changes
  • refactor: for code refactoring
  • style: for formatting changes
  • test: for adding tests
  • chore: for maintenance tasks

Commit message structure:

<type>: <short summary>

<detailed description if needed>

Co-Authored-By: Claude <noreply@anthropic.com>

5. Commit Changes

git commit -m "$(cat <<'EOF'
<generated message>

Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"

6. Push to Remote

Check if branch exists on remote and push:

# Check current branch
git branch --show-current

# Push with upstream tracking
git push -u origin HEAD

7. Create Pull Request

Use GitHub CLI to create the PR:

gh pr create --title "<PR title>" --body "$(cat <<'EOF'
## Summary
<bullet points summarizing changes>

## Changes
<list of modified files/features>

## Test Plan
<how to verify the changes>

---
Generated with Claude
EOF
)"

Error Handling

  • No changes: If git status shows nothing to commit, inform user
  • Uncommitted changes on wrong branch: Offer to create a new branch first
  • Push rejected: Pull latest changes and retry, or ask user for guidance
  • PR creation fails: Check if gh CLI is authenticated, guide user through gh auth login

Quick Reference

StepCommand
Statusgit status
Stage allgit add -A
Commitgit commit -m "message"
Pushgit push -u origin HEAD
Create PRgh pr create

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です