Formats code and checks for temporary developer comments. Used to maintain code quality before committing changes.
Install
mkdir -p .claude/skills/prepare-commit && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/8994" && unzip -o skill.zip -d .claude/skills/prepare-commit && rm skill.zipInstalls to .claude/skills/prepare-commit
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Prepares the codebase for a commit by formatting code and helping identify temporary comments.Key capabilities
- →Run automated code formatting
- →Identify temporary development comments
- →Standardize code style
How it works
It executes a Python script that applies formatting rules to the codebase and prompts the user to review temporary comments.
Inputs & outputs
When to use prepare-commit
- →Format code before committing
- →Clean up temporary comments
- →Enforce project formatting rules
- →Standardize code style
About this skill
Prepare Commit
Use this skill before every commit to ensure your code is formatted and clean.
Usage
This skill performs the following:
- Runs standard formatting (
ktfmtFormat). - (Optional/Manual) Reminds you to check for temporary comments.
Command
python3 .agent/skills/prepare_commit/scripts/prepare.py
When not to use it
- →When the environment lacks the necessary formatting scripts
Prerequisites
Limitations
- →Formatting rules are fixed by the script
- →Comment identification is manual
How it compares
It provides a centralized command to ensure code cleanliness before committing, rather than relying on manual formatting checks.
Compared to similar skills
prepare-commit side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| prepare-commit (this skill) | 0 | 6mo | Review | Beginner |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| dependency-upgrade | 26 | 5mo | Review | Intermediate |
| git-commits | 21 | 4mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by google
View all by google →You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
dependency-upgrade
wshobson
Manage major dependency version upgrades with compatibility analysis, staged rollout, and comprehensive testing. Use when upgrading framework versions, updating major dependencies, or managing breaking changes in libraries.
git-commits
bonny
Create well-structured git commits in logical chunks following best practices
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.
github-multi-repo
ruvnet
Multi-repository coordination, synchronization, and architecture management with AI swarm orchestration
git-workflow-enforcer
CrazyDubya
Ensures commits follow conventional commits, branch naming conventions, and PR templates. Use when creating commits, branches, or PRs, or when user mentions git workflow.