agentleFS
kompirokompiro/hane/skills/commit/SKILL.md

commit

Skill0 starsChanged 6 months agoMITView on GitHub

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.

188 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use validate-plan, act-on-feedback and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • shawn-dumasSkill

    validate-plan

    Validate an orchestration plan after pre-flight certification. Runs adversarial review, deep review (verify prompt data against codebase), and PoC gate for risky approaches. Auto-invoked by orchestrate-* skills at Step 8.

    Also in 5 projects that use this

  • MicrosoftSkill

    act-on-feedback

    Act on user feedback attached to the current session. Use when the user submits feedback on the session's changes via the Submit Feedback button.

    Also in 3 projects that use this

  • decocmsSkill

    add-mcp-tools

    Guide for adding new MCP tools with consistent patterns for schemas, tool definitions, registry updates, and Better Auth integration

    Also in 3 projects that use this

  • MicrosoftSkill

    generate-run-commands

    Generate or modify run commands for the current session. Use when the user wants to set up or update run commands that appear in the session's Run button.

    Also in 3 projects that use this

  • mitsuhikoSkill

    oebb-scotty

    Austrian rail travel planner (ÖBB Scotty). Use when planning train journeys in Austria, checking departures/arrivals at stations, or looking for service disruptions. Covers ÖBB trains, S-Bahn, regional trains, and connections to neighboring countries.

    Also in 3 projects that use this

  • mitsuhikoSkill

    pi-share

    Load and parse session transcripts from shittycodingagent.ai/buildwithpi.ai/buildwithpi.com/pi.dev (pi-share) URLs. Fetches gists, decodes embedded session data, and extracts conversation history.

    Also in 3 projects that use this

The file

Files
SKILL.md

Conventional Commit Skill

変更を関心事ごとに分離し、それぞれ Conventional Commits 形式でコミットする。

手順

  1. git branch --show-current で現在のブランチを確認する
    • main または master の場合は「mainブランチへの直接コミットは禁止されています。/start-dev スキルを使って worktree を作成してください。」と伝えて終了する
  2. git status と git diff(ステージ済み+未ステージ)を確認する
  3. 変更がない場合はその旨を伝えて終了する
  4. 変更内容を分析し、関心事(concern)ごとにグループ分けする
  5. グループ分けの結果をユーザーに提示した後、確認を待たずにそのままコミットを実行する
  6. グループごとに以下を繰り返す: a. 該当ファイルのみを git add でステージする b. Conventional Commits 形式のメッセージを生成する c. コミットを実行する
  7. 全コミット完了後、結果一覧をユーザーに通知する

関心事の分離ルール

  • 機能単位: 同じ機能に関わるファイル群を1コミットにまとめる
  • レイヤー分離: プロダクションコードとテストコードが同じ機能なら同一コミットでよい
  • 設定変更: ビルド設定・依存追加など基盤的な変更は独立コミットにする
  • ドキュメント: ドキュメントのみの変更は独立コミットにする
  • リファクタ: 機能変更を伴わないリファクタは独立コミットにする

判断に迷う場合

  • 1ファイルの変更が複数の関心事にまたがる場合 → 最も主要な関心事に含める(hunk 分割はしない)
  • 関心事が1つしかない場合 → 確認ステップをスキップしてそのままコミットする

Conventional Commits 形式

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

[body]

[footer]

type の選択基準

type使う場面
feat新機能の追加
fixバグ修正
docsドキュメントのみの変更
styleコードの意味に影響しない変更(フォーマット等)
refactorバグ修正でも機能追加でもないコード変更
testテストの追加・修正
choreビルドプロセス・補助ツール・設定の変更
perfパフォーマンス改善
ciCI 設定の変更
buildビルドシステムや外部依存の変更
revert過去のコミットの取り消し

ルール

  • subject は命令形・現在形で、先頭を小文字に、末尾にピリオドを付けない
  • scope はオプション。変更対象のモジュール・パッケージ名(例: parser, build, api)
  • 破壊的変更は ! を type の後に付ける(例: feat!:)か、footer に BREAKING CHANGE: を記載
  • subject は英語で記述する(body/footer は日本語可)
  • 複数の独立した変更が混在する場合は、関心事ごとにコミットを分離する

コミット実行

グループごとに以下の形式でコミットする:

# 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

計画を提示した後、ユーザーの返答を待たず即座にコミットを実行する。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.