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.
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
git status --short
git diff --stat
2. File-Specific Commit
# 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
# 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
- Check changes with
git status - Group related changes together
- Commit with specific files
- Split large changes into multiple small commits
Notes
- Avoid using
git add -Aorgit add . - Use
scripts/commit.shfor commits (prevents AI signatures) - Never commit sensitive files (.env, credentials, etc.)
- Always review with
git diff --stagedbefore committing
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
auto-build
プロジェクトタイプを自動検出してビルドを実行するスキル。コード変更後にビルドを提案、エラー発生時は修正案を提示。Node.js、Rust、Python、Go、Makefileプロジェクトに対応。
checkpoint-manager
タスクの進捗を追跡・管理するスキル。会話開始時に未完了タスクを確認、新規タスク依頼時にタスク開始を提案、作業完了時に完了報告を提案。チェックポイントシステムと連携。
commit-safe
安全なコミットを支援するスキル。変更内容を確認してから選択的にコミット。大きな変更時にファイル指定コミットを提案、git add -Aの使用を防止。
worktree-manager
Git worktreeの作成・管理を行うスキル。複雑なタスクや複数ファイル変更時にworktree作成を提案、タスク完了時にマージ・クリーンアップを案内。checkpoint-managerと連携。
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.
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.
Didn't find tool you were looking for?