AgentSkillsCN

commit

提交更改。按照常规提交格式生成提交信息。

SKILL.md
--- frontmatter
name: commit
description: 変更をコミットします。Conventional Commits形式でコミットメッセージを生成します。
argument-hint: "[message]"
allowed-tools: Bash, Read, Glob, Grep

Commit Skill

Git コミットを実行します。

使用方法

text
/commit                    # 自動でコミットメッセージ生成
/commit "fix: bug修正"     # 指定メッセージでコミット

Conventional Commits 形式

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

Type 一覧

  • feat: 新機能
  • fix: バグ修正
  • docs: ドキュメント
  • refactor: リファクタリング
  • test: テスト追加・修正
  • chore: ビルド・ツール変更

Scope 例

  • api, web, admin, db, ui

実行手順

  1. git status で変更ファイルを確認
  2. git diff で変更内容を確認
  3. 変更内容からコミットメッセージを生成
  4. git add で必要なファイルをステージング
  5. git commit でコミット実行

注意事項

  • .env, credentials などの機密ファイルはコミットしない
  • デバッグログは削除してからコミット
  • --no-verify は使用しない