From general-dev-skills
Git操作(add, commit, switch, push)とGitHub CLI(PR作成・編集、Issue作成、コメント取得)を実行。コミット作成、ブランチ管理、プルリクエスト作成・編集、Issue管理が必要な場合に使用。「コミットして」「PRを作成」「Issueを作成」「ブランチを切って」などのリクエストで起動。
How this skill is triggered — by the user, by Claude, or both
Slash command
/general-dev-skills:managing-git-github-workflowThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
1. ブランチ作成
日本語で簡潔に。タイプ例: feat, fix, refactor, docs, test, chore
git commit -m "feat: 新機能の概要"
詳細なテンプレートは references/commit-templates.md を参照。
# mainは保護されているため新ブランチで作業
git switch -c feature-<機能名>
git add .
git commit -m "feat: 変更内容"
# コミット後の確認
git log -1
git push -u origin feature-<機能名>
# プッシュ後の確認
git status
HEREDOCで複数行のボディを作成:
gh pr create --title "feat: 機能追加" --body "$(cat <<'EOF'
## 概要
変更の概要
## 変更内容
- 詳細1
- 詳細2
🤖 Generated with [Claude Code](https://claude.com/claude-code)
EOF
)"
詳細なPRテンプレートは references/pr-templates.md を参照。
# PR確認
gh pr view <PR番号>
gh pr view <PR番号> --comments
# ボディ編集
gh pr edit <PR番号> --body "$(cat <<'EOF'
更新内容
EOF
)"
# コメント詳細取得
gh api repos/{owner}/{repo}/pulls/<PR番号>/comments
gh issue create --title "タイトル" --body "$(cat <<'EOF'
## 問題の説明
詳細
## 再現手順
1. ステップ1
2. ステップ2
EOF
)"
詳細なIssueテンプレートは references/issue-templates.md を参照。
npx claudepluginhub suntory-n-water/suntory-n-water-marketplace --plugin general-dev-skillsAutomates GitHub workflow: branching, committing, pushing, PRs, issues, and code review. Use when managing git operations or GitHub development lifecycle.
Automates Git workflow from branch creation to PR: generates branches from latest base/develop/main, commits with co-authors, pushes, creates/updates GitHub PRs using shell scripts. Use for quick feature-to-PR cycles.
Guides Git operations with Conventional Commits, PR formats, workflows including local CI and squash merges. Use for commits, branches, pull requests, and merge conflicts.