一键导入
conventional-commit
Conventional Commits形式のコミットメッセージ作成・種類選定、submodule のコミット先判断 (サブモジュール vs 親リポ)、worktree CWD 検証時に使用。git commit / worktree / submodule の文脈で発火。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Conventional Commits形式のコミットメッセージ作成・種類選定、submodule のコミット先判断 (サブモジュール vs 親リポ)、worktree CWD 検証時に使用。git commit / worktree / submodule の文脈で発火。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
1Password CLI (op) でサインイン・vault 確認・secret 注入を行う時に使う。Claude セッションでは service account token (OP_SERVICE_ACCOUNT_TOKEN) をtoken ファイル (~/.config/op/service-account-token) から直前注入する方式を使い、op read の stdout を Claude context に流さない方針を強制する。「op signin」「op service-account」「op read」「op run」「op inject」「1Password から取って」などで発火。
Browser automation for opening sites, forms, clicks, screenshots, scraping, login, and web app testing.
Run browser automation on AWS Bedrock AgentCore cloud browsers or AWS-hosted sessions.
Capture architecture decisions as ADRs with context, alternatives, and rationale.
不具合修正のワークフロー(調査→再現→修正→検証)を controller がオーケストレーションするための指揮書。バグ・不具合・障害の修正で使う。explorer で原因特定、implementer で再現テスト→修正、verifier で検証。「バグを直して」「不具合修正」「この障害を調査して直す」などで参照。
Create CodeTour `.tour` walkthroughs with file/line anchors.
| name | conventional-commit |
| description | Conventional Commits形式のコミットメッセージ作成・種類選定、submodule のコミット先判断 (サブモジュール vs 親リポ)、worktree CWD 検証時に使用。git commit / worktree / submodule の文脈で発火。 |
| ecc-imports | [{"upstream-commit":"4e66b2882da9afb9747468b08a253ca2f09c85f3","upstream-path":"skills/git-workflow/SKILL.md","sections-merged":["Commit Messages"],"conflicts":["When to Activate","Branching Strategies","Merge vs Rebase","Pull Request Workflow","What","Why","How","Testing","Screenshots (if applicable)","Checklist","Conflict Resolution","Branch Management","Release Management","Git Configuration","Common Workflows","Git Hooks","Anti-Patterns","Quick Reference"],"imported-at":"2026-04-26T15:00:00.000Z"}] |
git statusgit diff --cachedgit log --oneline -20<type>(<scope>): <subject>
<scope> は任意。対象が明確なら指定し、迷う場合は省略する。BREAKING CHANGE: legacy auth endpoints are removed
feat / fix / docs / style (フォーマットや空白などの修正、動作変更なし) / refactor / perf / test / build (ビルドや依存関係) / ci / chore (雑務やメタ作業) / revert。用例は下記「#### Types」テーブルを参照。
<subject> は命令形で書く。feat(api): add batch export endpoint
fix(ui): handle empty state rendering
docs: update install instructions
refactor(auth): split token validation
perf(db): reduce query round trips
test: cover edge cases in parser
build: bump pnpm to 9.0
ci: add lint job
chore: clean up temp scripts
revert: revert "feat: add oauth login"
BREAKING CHANGE: で明示している。ECC base commit
4e66b2882da9afb9747468b08a253ca2f09c85f3のskills/git-workflow/SKILL.mdからCommit Messagesセクションのみ採用。 残り 18 H2(Branching Strategies, Merge vs Rebase, PR Workflow 等)は本 skill のスコープ外につき conflicts として記録(採用せず)。git workflow 全般は別 skill / 別 spec で扱う。 Conventional Commits Format / Types は既存の §形式 / §type一覧 と内容が重複。英語例の Type 一覧、Good vs Bad Examples、.gitmessageTemplate が ECC 由来の追加価値。
<type>(<scope>): <subject>
[optional body]
[optional footer(s)]
| Type | Use For | Example |
|---|---|---|
feat | New feature | feat(auth): add OAuth2 login |
fix | Bug fix | fix(api): handle null response in user endpoint |
docs | Documentation | docs(readme): update installation instructions |
style | Formatting, no code change | style: fix indentation in login component |
refactor | Code refactoring | refactor(db): extract connection pool to module |
test | Adding/updating tests | test(auth): add unit tests for token validation |
chore | Maintenance tasks | chore(deps): update dependencies |
perf | Performance improvement | perf(query): add index to users table |
ci | CI/CD changes | ci: add PostgreSQL service to test workflow |
revert | Revert previous commit | revert: revert "feat(auth): add OAuth2 login" |
# BAD: Vague, no context
git commit -m "fixed stuff"
git commit -m "updates"
git commit -m "WIP"
# GOOD: Clear, specific, explains why
git commit -m "fix(api): retry requests on 503 Service Unavailable
The external API occasionally returns 503 errors during peak hours.
Added exponential backoff retry logic with max 3 attempts.
Closes #123"
Create .gitmessage in repo root:
# <type>(<scope>): <subject>
#
# Types: feat, fix, docs, style, refactor, test, chore, perf, ci, revert
# Scope: api, ui, db, auth, etc.
# Subject: imperative mood, no period, max 50 chars
#
# [optional body] - explain why, not what
# [optional footer] - Breaking changes, closes #issue
Enable with: git config commit.template .gitmessage
サブモジュールを含むリポジトリで作業する場合、今どちらのリポジトリでコミットすべきかを意識する。
| やりたいこと | コミット場所 |
|---|---|
| サブモジュール内のコードを変更した | サブモジュールディレクトリ内で git commit |
| サブモジュールのポインタ (参照先 commit) を更新したい | 親リポジトリのルートで git add <submodule-path> → git commit |
よくある間違い:
確認手順: pwd → git rev-parse --show-toplevel でどのリポジトリにいるか確認してからコミット。
Git worktree で作業する場合、ファイル編集前に必ず以下を確認する。
pwd で現在のディレクトリを確認する~/worktrees/<ブランチ名>/<リポジトリ名>) と一致しない場合、編集を開始せずユーザーに確認する確認すべきタイミング: セッション開始時に worktree パス言及 / wt switch 等の直後 / 別 worktree への切替時。
確認不要: ユーザーが明示的にメインリポでの作業を指示 / セッション CWD が最初から worktree 内 (gitStatus で確認可能)。