PR

prepare-commit

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.zip

Installs 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.
94 charsno explicit “when” trigger
Beginner

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

You give it
Unformatted source code
You get back
Formatted source code

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:

  1. Runs standard formatting (ktfmtFormat).
  2. (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

python3

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.

SkillInstallsUpdatedSafetyDifficulty
prepare-commit (this skill)06moReviewBeginner
resolve-conflicts818moReviewIntermediate
dependency-upgrade265moReviewIntermediate
git-commits214moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry