jpskill.com
🛠️ 開発・MCP コミュニティ

ac-commit-manager

自律的なコーディングにおけるGitコミットを管理し、機能実装のコミットや説明的なコミットの作成、Gitワークフローの管理、バージョン管理などを効率的に行うSkill。

📜 元の英語説明(参考)

Manage git commits for autonomous coding. Use when committing feature implementations, creating descriptive commits, managing git workflow, or handling version control.

🇯🇵 日本人クリエイター向け解説

一言でいうと

自律的なコーディングにおけるGitコミットを管理し、機能実装のコミットや説明的なコミットの作成、Gitワークフローの管理、バージョン管理などを効率的に行うSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o ac-commit-manager.zip https://jpskill.com/download/9322.zip && unzip -o ac-commit-manager.zip && rm ac-commit-manager.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/9322.zip -OutFile "$d\ac-commit-manager.zip"; Expand-Archive "$d\ac-commit-manager.zip" -DestinationPath $d -Force; ri "$d\ac-commit-manager.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して ac-commit-manager.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → ac-commit-manager フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

AC Commit Manager

完了した機能実装に対する git コミットを管理します。

目的

各機能の完了後に、適切に構造化された git コミットを作成し、適切なバージョン管理と明確なプロジェクト履歴を保証します。

クイックスタート

from scripts.commit_manager import CommitManager

manager = CommitManager(project_dir)
result = await manager.commit_feature("auth-001")

コミットワークフロー

1. VALIDATE → コミットしても安全であることを確認
2. STAGE    → 関連ファイルをステージ
3. MESSAGE  → 説明的なコミットメッセージを生成
4. COMMIT   → コミットを作成
5. VERIFY   → コミットが作成されたことを検証
6. TAG      → オプション: マイルストーンコミットにタグ付け

コミットメッセージの形式

feat(auth): implement user registration (#auth-001)

- Add registration endpoint with email/password
- Implement password hashing with bcrypt
- Add input validation for email format
- Create user model and database migration

Test: All 5 acceptance criteria passing
Coverage: 92%

Feature: auth-001
Status: passes

コミット結果

{
  "success": true,
  "commit_hash": "abc123def456",
  "feature_id": "auth-001",
  "message": "feat(auth): implement user registration",
  "files_changed": [
    "src/auth/register.py",
    "src/models/user.py",
    "tests/test_auth_001.py"
  ],
  "stats": {
    "insertions": 145,
    "deletions": 12,
    "files_changed": 3
  }
}

コミットカテゴリ

機能カテゴリに基づきます。

  • feat: 新機能
  • fix: バグ修正
  • refactor: コードリファクタリング
  • test: テストの追加/変更
  • docs: ドキュメント
  • chore: メンテナンス作業
  • perf: パフォーマンス改善

コミット前のチェック

# コミット前に検証を実行
validation = await manager.pre_commit_check()
if validation.can_commit:
    await manager.commit_feature(feature_id)

チェックには以下が含まれます。

  • コミットされていない機密ファイルがないこと
  • すべてのテストに合格すること
  • Linting に合格すること
  • マージコンフリクトがないこと

アトミックコミット

各機能は正確に 1 つのコミットを取得します。

  • 実装 + テストが含まれます
  • 自己完結型で、元に戻すことができます
  • コンテキストを含む説明的なメッセージ

設定

{
  "require_tests_pass": true,
  "require_lint_pass": true,
  "auto_stage_tests": true,
  "message_template": "{{type}}({{scope}}): {{description}}",
  "protected_files": [".env", "credentials.*"],
  "sign_commits": false
}

ロールバックのサポート

# 最後のコミットをロールバック
await manager.rollback_last_commit()

# 特定の機能までロールバック
await manager.rollback_to_feature("auth-003")

統合

  • 使用: コミット前のチェックには ac-code-validator を使用
  • 入力: ac-task-executor からの完了した機能
  • 更新: コミット情報で ac-state-tracker を更新

API リファレンス

完全な実装については、scripts/commit_manager.py を参照してください。

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

AC Commit Manager

Manage git commits for completed feature implementations.

Purpose

Creates well-structured git commits after each feature completion, ensuring proper version control and clear project history.

Quick Start

from scripts.commit_manager import CommitManager

manager = CommitManager(project_dir)
result = await manager.commit_feature("auth-001")

Commit Workflow

1. VALIDATE → Ensure changes are safe to commit
2. STAGE    → Stage relevant files
3. MESSAGE  → Generate descriptive commit message
4. COMMIT   → Create the commit
5. VERIFY   → Verify commit was created
6. TAG      → Optional: tag milestone commits

Commit Message Format

feat(auth): implement user registration (#auth-001)

- Add registration endpoint with email/password
- Implement password hashing with bcrypt
- Add input validation for email format
- Create user model and database migration

Test: All 5 acceptance criteria passing
Coverage: 92%

Feature: auth-001
Status: passes

Commit Result

{
  "success": true,
  "commit_hash": "abc123def456",
  "feature_id": "auth-001",
  "message": "feat(auth): implement user registration",
  "files_changed": [
    "src/auth/register.py",
    "src/models/user.py",
    "tests/test_auth_001.py"
  ],
  "stats": {
    "insertions": 145,
    "deletions": 12,
    "files_changed": 3
  }
}

Commit Categories

Based on feature category:

  • feat: New features
  • fix: Bug fixes
  • refactor: Code refactoring
  • test: Test additions/changes
  • docs: Documentation
  • chore: Maintenance tasks
  • perf: Performance improvements

Pre-Commit Checks

# Run validation before commit
validation = await manager.pre_commit_check()
if validation.can_commit:
    await manager.commit_feature(feature_id)

Checks include:

  • No uncommitted sensitive files
  • All tests pass
  • Linting passes
  • No merge conflicts

Atomic Commits

Each feature gets exactly one commit:

  • Includes implementation + tests
  • Self-contained and revertable
  • Descriptive message with context

Configuration

{
  "require_tests_pass": true,
  "require_lint_pass": true,
  "auto_stage_tests": true,
  "message_template": "{{type}}({{scope}}): {{description}}",
  "protected_files": [".env", "credentials.*"],
  "sign_commits": false
}

Rollback Support

# Rollback last commit
await manager.rollback_last_commit()

# Rollback to specific feature
await manager.rollback_to_feature("auth-003")

Integration

  • Uses: ac-code-validator for pre-commit checks
  • Input: Completed features from ac-task-executor
  • Updates: ac-state-tracker with commit info

API Reference

See scripts/commit_manager.py for full implementation.