Agent skill

commit-safe

Skill for safe commits. Reviews changes before selective commits. Proposes file-specific commits for large changes, prevents use of git add -A.

Stars 1
Forks 0

Install this agent skill to your Project

npx add-skill https://github.com/dobachi/AI_Instruction_Kits/tree/main/templates/claude-skills/en/commit-safe

SKILL.md

Safe Commit Skill

A skill for reviewing changes and performing selective commits.

Auto-Suggestion Triggers

Situation Suggestion
After code changes "Shall I commit the changes?"
Multiple file changes "Shall I commit specific files?"
git add -A usage "Recommend specifying files for commit"

Procedure

1. Review Changes

bash
git status --short
git diff --stat

2. File-Specific Commit

bash
# Stage specific files
git add [specified files...]

# Commit with message
bash scripts/commit.sh "commit message"

3. Commit Message Convention

<type>: <description>

- feat: New feature
- fix: Bug fix
- docs: Documentation update
- refactor: Refactoring
- test: Test additions/modifications

Examples

bash
# Commit specific files only
git add src/main.py src/utils.py
bash scripts/commit.sh "feat: Add new feature"

# Commit documentation only
git add README.md docs/guide.md
bash scripts/commit.sh "docs: Update README"

Recommended Workflow

  1. Check changes with git status
  2. Group related changes together
  3. Commit with specific files
  4. Split large changes into multiple small commits

Notes

  • Avoid using git add -A or git add .
  • Use scripts/commit.sh for commits (prevents AI signatures)
  • Never commit sensitive files (.env, credentials, etc.)
  • Always review with git diff --staged before committing

Expand your agent's capabilities with these related and highly-rated skills.

dobachi/AI_Instruction_Kits

auto-build

プロジェクトタイプを自動検出してビルドを実行するスキル。コード変更後にビルドを提案、エラー発生時は修正案を提示。Node.js、Rust、Python、Go、Makefileプロジェクトに対応。

1 0
Explore
dobachi/AI_Instruction_Kits

checkpoint-manager

タスクの進捗を追跡・管理するスキル。会話開始時に未完了タスクを確認、新規タスク依頼時にタスク開始を提案、作業完了時に完了報告を提案。チェックポイントシステムと連携。

1 0
Explore
dobachi/AI_Instruction_Kits

commit-safe

安全なコミットを支援するスキル。変更内容を確認してから選択的にコミット。大きな変更時にファイル指定コミットを提案、git add -Aの使用を防止。

1 0
Explore
dobachi/AI_Instruction_Kits

worktree-manager

Git worktreeの作成・管理を行うスキル。複雑なタスクや複数ファイル変更時にworktree作成を提案、タスク完了時にマージ・クリーンアップを案内。checkpoint-managerと連携。

1 0
Explore
dobachi/AI_Instruction_Kits

auto-build

Skill for auto-detecting project type and executing builds. Suggests builds after code changes, proposes fixes for build errors. Supports Node.js, Rust, Python, Go, and Makefile projects.

1 0
Explore
dobachi/AI_Instruction_Kits

checkpoint-manager

Skill for tracking and managing task progress. Checks pending tasks at conversation start, proposes task creation for new requests, suggests completion reports when work is done. Integrates with checkpoint system.

1 0
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results