Skip to content
cccskills
FreePublished on GitHub

git-workflow

ブランチ作成、コミット、PR作成までのGitワークフローを支援する

The English summary is being prepared. Showing the original description.

See how to install

Files included (5)

  • SKILL.md9.0 KB
  • scripts/commit.sh1.2 KB
  • scripts/create-branch.sh1.5 KB
  • scripts/create-pr.sh1015 B
  • scripts/full-workflow.sh3.4 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Git Workflow Helper

ブランチ作成 → コミット → PR作成 までのGitワークフローを支援する。

シェルスクリプト一覧

すべての操作は .claude/skills/git-workflow/scripts/ のシェルスクリプトを使用すること。

スクリプト用途例
full-workflow.sh(新ブランチ →) commit → push → PR.claude/skills/git-workflow/scripts/full-workflow.sh "msg" "title" "body" [branch]
create-branch.shブランチ作成(最新 pull + 自動検出).claude/skills/git-workflow/scripts/create-branch.sh feat/add-login
commit.shコミット(Co-Author 付き).claude/skills/git-workflow/scripts/commit.sh "feat(web): add login"
create-pr.shPR作成(base: 自動検出).claude/skills/git-workflow/scripts/create-pr.sh "title" "body"

Usage

/git-workflow <command> [options]

Commands

Command説明例
(なし)フルワークフロー: commit → push → PR/git-workflow
branch新しいブランチを作成/git-workflow branch feat/add-login
commitステージした変更をコミット/git-workflow commit
prPRを作成/git-workflow pr

0. Full Workflow - フルワークフロー(デフォルト)

引数なしで /git-workflow を実行した場合、以下を ノンストップで自動実行 する:

Instructions

  1. git status で変更を確認
  2. 変更があればステージング (git add)
  3. コミットメッセージ、PRタイトル、PRボディを生成 (必ず英語で生成すること)
  4. 現在のブランチが main/develop、または別タスクのブランチにいる場合は 新ブランチ名を4番目の引数に指定
  5. .claude/skills/git-workflow/scripts/full-workflow.sh を実行
# 現在のフィーチャーブランチからそのままコミット → push → PR
.claude/skills/git-workflow/scripts/full-workflow.sh "<commit message>" "<pr title>" "<pr body>"

# 新しいブランチを切ってからコミット → push → PR(main/develop にいるとき、または別ブランチから独立させたいとき)
.claude/skills/git-workflow/scripts/full-workflow.sh "<commit message>" "<pr title>" "<pr body>" "feat/new-feature"

スクリプトが自動で以下を実行:

  1. git fetch origin でリモートの最新を取得
  2. ベースブランチを自動検出(develop or main)
  3. 新ブランチ名が指定された場合: stash → ベースブランチを pull → 新ブランチ作成 → stash pop
  4. commit → push → PR作成(既存PRがあれば更新のみ)

Notes

  • main/develop ブランチでは新ブランチ名の指定が必須
  • ベースブランチは自動検出(develop があれば develop、なければ main)
  • 既存PRがあれば新規作成せず push のみ
  • Co-Authored-By は自動付与

1. Branch - ブランチ作成

Instructions

  1. ブランチ名を決定(タスク内容から提案)
  2. .claude/skills/git-workflow/scripts/create-branch.sh を実行
# ベースブランチから最新を pull して新しいブランチを作成
.claude/skills/git-workflow/scripts/create-branch.sh <branch-name>

スクリプトが自動で以下を実行:

  1. git fetch origin でリモートの最新を取得
  2. develop ブランチが存在するか確認 → なければ main をベースに
  3. ベースブランチに checkout して git pull
  4. 新しいブランチを作成

Branch Naming Convention

<type>/<short-description>
Type用途例
feat新機能feat/add-user-auth
fixバグ修正fix/login-error
refactorリファクタリングrefactor/api-structure
docsドキュメントdocs/api-readme
chore雑務・設定chore/update-deps
perfパフォーマンス改善perf/optimize-queries
update既存機能の改善update/improve-logging

Base Branch

  • ベースブランチは自動検出: develop があれば develop、なければ main
  • ブランチ作成前に必ず最新を pull する

2. Commit - コミット作成

Instructions

  1. git status でステージされた変更を確認
  2. git diff --cached で変更内容を分析
  3. 変更ファイルから適切な type と scope を決定
  4. Conventional Commits 形式のメッセージを生成
  5. .claude/skills/git-workflow/scripts/commit.sh を実行
# Co-Authored-By 付きでコミット
.claude/skills/git-workflow/scripts/commit.sh "<commit message>"

Commit Message Format

<type>(<scope>): <subject>

Types (必須)

Type説明例
feat新機能追加新しいAPI、コンポーネント
fixバグ修正エラー修正、不具合対応
docsドキュメントのみREADME、コメント
styleコードスタイルフォーマット、セミコロン
refactorリファクタリング機能変更なしの改善
perfパフォーマンス改善速度向上、最適化
testテストテスト追加・修正
chore雑務ビルド、依存関係、設定
ciCI/CDGitHub Actions等
revertリバート過去コミットの取消

Scope (任意)

Scope対象
serverpackages/server
webpackages/web
sharedpackages/shared
dbデータベース関連
apiAPIエンドポイント
uiUIコンポーネント
config設定ファイル

File → Scope Mapping

ファイルパスScope
packages/server/**server
packages/web/**web
packages/shared/**shared
**/db/**, *.dbdb
**/routes/**, **/api/**api
**/components/**ui
*.config.*, tsconfig.*config
docs/**, *.md(scopeなし、type: docs)
**/*.test.*, **/__tests__/**(scopeなし、type: test)

3. PR - Pull Request作成

ベースブランチの自動検出

スクリプトが develop の存在を確認し、なければ main をベースに PR を作成する。

Instructions

  1. 現在のブランチを確認(develop/main でないことを確認)
  2. git log と git diff <base>...HEAD で変更内容を分析(base はスクリプトが自動検出)
  3. PRのタイトルとボディを生成 (必ず英語で生成すること)
  4. .claude/skills/git-workflow/scripts/create-pr.sh を実行
# PR作成(push も含む、base は自動検出)
.claude/skills/git-workflow/scripts/create-pr.sh "<title>" "<body>"

PR Title Format

コミットメッセージと同様、Conventional Commits形式:

<type>(<scope>): <short description>

PR Body Template

IMPORTANT: All PR content (title, summary, test plan) MUST be written in English.

## Summary
- Brief description of changes (1-3 bullet points, in English)

## Test plan
- [ ] Test item 1
- [ ] Test item 2

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Commit Examples

シンプルな機能追加

.claude/skills/git-workflow/scripts/commit.sh "feat(api): add user authentication endpoint"

複数変更を含む機能

.claude/skills/git-workflow/scripts/commit.sh "feat(web): add session management with SQLite

- Implement Drizzle ORM for database operations
- Add session CRUD endpoints
- Create sidebar component for session list"

バグ修正

.claude/skills/git-workflow/scripts/commit.sh "fix(server): resolve streaming timeout issue

Fixes #42"

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

This skill should be used when the user asks to "create a team", "spawn agents", "parallel execution", "delegate tasks to agents", "use a swarm", "team workflow", "split work across agents", "run tasks in parallel", or mentions wanting multiple agents to collaborate on a complex task.

The English summary is being prepared. Showing the original description.

sean-sunagaku/claude-code-plugin38Updated Jul 30, 2026

Agent Teams スキルを設計・構築するためのベストプラクティスガイド。 サブエージェント定義、SendMessage 通信プロトコル、タスク依存管理、 PostToolUse Hook によるログ、MCP ツール統合、コンテキストファイル設計を網羅。 7つの実績あるチームスキル(app-naming, ui-review, logo-design, persona-creation, skill-creator-team, ui-variations, aso-optimize)から抽出したパターン集。 Use when: Agent Teams を使ったスキルを新規作成したい、 既存のチームスキルの品質を改善したい、エージェント間通信のデバッグ、 チームスキルの設計パターンを知りたい。 Triggers: "agent team", "チームスキル", "エージェントチーム", "サブエージェント定義", "SendMessage パターン", "チーム設計", "エージェント間通信", "team skill", "swarm pattern"

The English summary is being prepared. Showing the original description.

sean-sunagaku/claude-code-plugin38Updated Jul 30, 2026

アプリ名・サービス名の命名を、5つの専門エージェントチームで多角的に評価・決定するスキル。 ブランディング、商標/法的リスク、デジタルプレゼンス(SEO/ASO/SNS)、国際展開(多言語/発音)の 4観点から候補を提案・調査・議論し、コンテキストファイルと議事録で次回セッションへ引き継ぐ。 Use when: アプリ名を決めたい、サービス名を変更したい、プロダクト名を検討したい、 ネーミングブレスト、名前の商標チェック、アプリ名のリネーム。 Triggers: "アプリ名", "サービス名", "プロダクト名", "ネーミング", "名前を決め", "リネーム", "rename", "app name", "naming", "ブランド名", "商標チェック"

The English summary is being prepared. Showing the original description.

sean-sunagaku/claude-code-plugin38Updated Jul 30, 2026

App Store プレビュー動画を Remotion (React) で生成する Agent Team スキル。 video-director が構成を設計し、script-writer がナレーション台本を作成し、 motion-designer が Remotion コードを実装し、preview-reviewer がコードレビューし、 frame-inspector がレンダリング結果を目視検証する。 Use when: App Store プレビュー動画を作りたい、アプリのプロモーション動画を作りたい、 Remotion で動画を生成したい。 Triggers: "プレビュー動画", "App Store 動画", "アプリ動画", "preview movie", "Remotion", "動画作成", "app preview"

The English summary is being prepared. Showing the original description.

sean-sunagaku/claude-code-plugin38Updated Jul 30, 2026

アプリのトーン&マナー(トンマナ)を8名のエージェントチームで設計するスキル。 ブランドアーキタイプ・パーソナリティ定義から、カラー・タイポグラフィ・ビジュアルスタイル・ トーン・オブ・ボイスまでを一貫設計し、Pencil (.pen) + Markdown で成果物を出力する。 「デザインテンション」(矛盾ペア)を核に、AIっぽくない独自のブランドアイデンティティを生成する。

The English summary is being prepared. Showing the original description.

sean-sunagaku/claude-code-plugin38Updated Jul 30, 2026

仕様書・要件定義からソフトウェアアーキテクチャを設計するスキル。 5人の専門エージェント(Architecture Lead・Module Designer・Dependency Analyst・ Platform Expert・Devil's Advocate)が協議しながら、 モジュール分割・依存関係・データフロー・インターフェース設計を行う。 成果物は構造化されたアーキテクチャ設計書(Markdown)。 Use when: 仕様書からどう設計するか迷っている時、モジュール分割の方針を決めたい時、 技術スタックに合ったアーキテクチャパターンを選びたい時、 設計書を作成したい時。 Triggers: "アーキテクチャ設計", "arch design", "仕様書から設計", "モジュール分割", "設計書を作りたい", "アーキテクチャを考えて", "コンポーネント設計", "依存関係を設計", "どう設計する", "design the architecture", "design from spec"

The English summary is being prepared. Showing the original description.

sean-sunagaku/claude-code-plugin38Updated Jul 30, 2026

See all skills by sean-sunagaku

Report a problem with this skill