⏳ This skill is pending AI review.

Scores will appear once the review pipeline completes.

version unknown

commit-work

@ezagent42⭐ 0 stars

Create high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits). Use when the user asks to commit, craft a commit message, stage changes, or split work into multiple commits.

Choose how to use this skill

You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.

1. Native installer

This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.

Do not guess an installer command or replace an existing version without reviewing the diff.

2. Complete package recommended

Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.

No complete ProSkills package is published for this listing yet.

3. Prompt-only

Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.

Need only the instruction file?

Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.

No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.

—/10

// RATINGS

⭐GitHub Stars
⭐ 0 on GitHubGitHub ↗

New / niche

🟢ProSkills Score
—
📍

Not yet listed on ClawHub or SkillsMP

// README

Commit Work

A comprehensive skill for creating high-quality, production-ready git commits that are easy to review, safe to ship, and follow best practices.

Purpose

This skill helps you create well-crafted git commits by:

  • Ensuring only intended changes are included
  • Splitting work into logically scoped commits
  • Writing clear, descriptive commit messages that explain what changed and why
  • Following Conventional Commits format
  • Preventing common mistakes (secrets, debug code, unrelated changes)

When to Use

Use this skill when you need to:

  • Commit your work with proper staging and review
  • Craft meaningful commit messages
  • Split mixed changes into multiple logical commits
  • Follow Conventional Commits format
  • Ensure commits are review-ready and safe to merge

Trigger phrases:

  • "commit this work"
  • "create a commit"
  • "split these changes into commits"
  • "help me commit"
  • "write a commit message"

How It Works

The skill follows a rigorous 8-step workflow:

  1. Inspect - Review working tree with git status and git diff
  2. Decide boundaries - Determine if changes should be split into multiple commits
  3. Stage selectively - Use patch staging (git add -p) for granular control
  4. Review staged changes - Verify with git diff --cached
  5. Describe changes - Articulate what changed and why in 1-2 sentences
  6. Write message - Craft Conventional Commits format message
  7. Verify - Run relevant tests/checks before committing
  8. Repeat - Continue until working tree is clean

Key Features

Smart Commit Splitting

Automatically identifies when to split commits by:

  • Feature vs refactor
  • Backend vs frontend
  • Formatting vs logic
  • Tests vs production code
  • Dependency bumps vs behavior changes

Conventional Commits Format

All commits follow the standard:

type(scope): short summary

Detailed body explaining what changed and why.

BREAKING CHANGE: if applicable

Safety Checks

Reviews staged changes for:

  • Secrets or tokens
  • Accidental debug logging
  • Unrelated formatting changes
  • Mixed or overly broad scope

Patch Staging

Uses git add -p for fine-grained control when changes within a single file need to be split across commits.

Usage Examples

Example 1: Simple Single Commit

# User asks: "commit this bugfix"

# Skill workflow:
git status
git diff
git add src/api/auth.js
git diff --cached
git commit -m "fix(auth): resolve token expiration edge case

Previously tokens would fail validation within 1 second of expiry
due to clock skew. Now includes 5-second grace period."

Example 2: Splitting Mixed Changes

# User has: formatting changes + new feature + test updates

# Skill creates 3 commits:
# Commit 1: chore: format code with prettier
# Commit 2: feat(api): add user profile endpoint
# Commit 3: test: add coverage for profile endpoint

# Uses git add -p to stage selectively

Example 3: Interactive Patch Staging

# Single file has refactor + bugfix mixed

git add -p src/components/Header.js
# Stages only bugfix hunks for first commit

git commit -m "fix(ui): correct mobile menu z-index"

git add src/components/Header.js
# Stages refactor hunks for second commit

git commit -m "refactor(ui): extract menu logic to custom hook"

Inputs

The skill may ask for:

  • Commit strategy: Single commit or multiple logical commits?
  • Commit style: Conventional Commits (required by default)
  • Project rules: Max subject length, required scopes, etc.

If not provided, defaults to:

  • Multiple small commits when changes are unrelated
  • Conventional Commits format
  • Standard best practices

Deliverables

After running, the skill provides:

  • Final commit message(s) used
  • Short summary per commit (what/why)
  • Commands used for staging and review
  • Test/verification results

Best Practices

  1. Review before staging - Always inspect git diff first
  2. Stage intentionally - Never use git add . or git add -A
  3. Use patch mode - Leverage git add -p for mixed changes
  4. Verify staged changes - Check git diff --cached before committing
  5. Keep commits focused - One logical change per commit
  6. Write for reviewers - Explain what/why, not implementation details
  7. Test before committing - Run relevant checks after each commit

Related Resources

  • See references/commit-message-template.md for message templates
  • Uses Conventional Commits specification: https://www.conventionalcommits.org/
  • Integrates with standard git workflow and hooks

Notes

  • This skill enforces Conventional Commits format
  • It encourages small, focused commits over large monolithic ones
  • Patch staging (git add -p) is used extensively for granular control
  • Each commit should pass basic verification (tests, lint, build)
  • The goal is commits that are safe to review, bisect, and cherry-pick

// HOW IT'S BUILT

KEY FILES

.claude/skills/commit-work/SKILL.mdREADME.md

// REPO STATS

0 stars