/hane:commitfrom hane
Generate a Conventional Commits message from staged git changes and commit. Trigger when the user says: "commit", "コミット", "変更をコミット", "コミットメッセージを作って", "commit changes", or similar phrases requesting to create a git commit.
Ships in hane. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
変更を関心事ごとに分離し、それぞれ Conventional Commits 形式でコミットする。
git branch --show-current で現在のブランチを確認する
main または master の場合は「mainブランチへの直接コミットは禁止されています。/start-dev スキルを使って worktree を作成してください。」と伝えて終了するgit status と git diff(ステージ済み+未ステージ)を確認するgit add でステージする
b. Conventional Commits 形式のメッセージを生成する
c. コミットを実行する<type>(<scope>): <subject>
[body]
[footer]
| type | 使う場面 |
|---|---|
feat | 新機能の追加 |
fix | バグ修正 |
docs | ドキュメントのみの変更 |
style | コードの意味に影響しない変更(フォーマット等) |
refactor | バグ修正でも機能追加でもないコード変更 |
test | テストの追加・修正 |
chore | ビルドプロセス・補助ツール・設定の変更 |
perf | パフォーマンス改善 |
ci | CI 設定の変更 |
build | ビルドシステムや外部依存の変更 |
revert | 過去のコミットの取り消し |
subject は命令形・現在形で、先頭を小文字に、末尾にピリオドを付けないscope はオプション。変更対象のモジュール・パッケージ名(例: parser, build, api)! を type の後に付ける(例: feat!:)か、footer に BREAKING CHANGE: を記載グループごとに以下の形式でコミットする:
# 1. 該当ファイルのみステージ
git add <file1> <file2> ...
# 2. コミット
git commit -m "$(cat <<'EOF'
<type>(<scope>): <subject>
<body(必要な場合)>
EOF
)"
グループ分け結果をユーザーに提示する際の形式:
### コミット計画
1. `feat(parser): add token position tracking`
- src/lexer.ts
- src/parser.ts
- tests/lexer.test.ts
2. `chore(build): update bundler config`
- build.config.ts
計画を提示した後、ユーザーの返答を待たず即座にコミットを実行する。
What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/acceptance-testCreate acceptance test records in docs/acceptance/. Trigger when the user says: "アクセプタンステスト", "受け入れテスト", "ATを作成", "acceptance test", "create AT", or similar phrases requesting acceptance test documentation.
/dependabotDependabot の依存更新 PR を一括でトリアージするワークフロー。各 PR の更新内容を upstream リポジトリまで遡ってサプライチェーン観点でリスク分析し、マージ推奨可否を Design Doc にまとめてユーザーに返す。ユーザーの判断後、承認分をマージ・却下分を クローズし、判断結果と根拠を ADR に記録する。 Trigger when the user says: "dependabot", "依存更新", "依存関係の更新", "Dependabot PR", "dependabot対応", "依存をまとめて更新", "handle dependabot", "triage dependabot", "review dependabot PRs", or similar phrases requesting to process Dependabot update PRs.
/design-docCreate design documents in docs/design/ for brainstorming and exploring architectural ideas. Trigger when the user says: "設計ドキュメント", "デザインドキュメント", "設計を残す", "壁打ち", "design doc", "create design doc", or similar phrases requesting design documentation.
/initScaffold the host-repo conventions the hane skills expect — doc directories, document templates, a process.md skeleton, and optionally status labels and a rules directory. Trigger when the user says: "hane init", "init", "初期設定", "セットアップ", "scaffold", "hane を導入", "ディレクトリ構造をセットアップ", "set up hane", or similar phrases requesting host-repo setup for the hane skills.
/open-prOpen the pull request for the branch you are working on in the browser via `gh pr view --web`. Trigger when the user says: "PRを開いて", "PRをブラウザで", "PRを見せて", "open pr", "open the PR", "show me the PR", or similar phrases requesting to open the working pull request in the browser.
/pick-issue着手できる次の Issue を探して提示し、選んだら start-dev に引き継ぐ。 作業中(status: implementing / designing)の Issue は別セッションが動いている 可能性が高いため候補から除外する。 Trigger when the user says: "次のIssue", "着手できるIssue", "Issueを探して", "次に何をやる", "pick issue", "next issue", "find an issue to work on", "what should I work on next", or similar phrases requesting to choose the next Issue.
npx claudepluginhub kompiro/hane --plugin hane