mcpField
C
commit-work

commit-work

github.com/klausborgesDevelopment1111 installsUpdated 2w ago
Repository

About commit-work

commit-work is a repository skill for inspecting changes and preparing or creating Git commits. It follows git-conventions and provides guidance on staging, commit messages, checks, and reporting results.

Key features

  1. 01Inspect staged and unstaged changes
  2. 02Review recent commit history
  3. 03Format commit messages
  4. 04Recommend splitting unrelated changes
  5. 05Run checks before committing

Use cases

  1. 01Preparing a commit message
  2. 02Deciding which changes to stage
  3. 03Committing after requested checks

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/klausborges/workflow-skills --skill commit-work

After installing, type/commit-workin Claude Code to confirm it loaded.

Bundled filesagents/openai.yamlskill.toml

Details

From the project README

Commit Work

Message shape and style follow the git-conventions skill.

Workflow

  1. Inspect staged changes first: git diff --staged --stat, then the diff itself. When nothing is staged, inspect git status --short and the working-tree diff, and name what you would stage.
  2. Check git log --oneline -10 for scope and phrasing precedent.
  3. Write the first line as type(scope): description. Add a body only when the why is not obvious from the diff; wrap it near 90 columns and use repeated -m flags or --file so paragraphs stay separate.
  4. Recommend a split only when the diff contains clearly unrelated changes.
  5. Commit when the user asked for a commit; otherwise deliver the message and the staging suggestion.

Guardrails

  • Stage files only when the user asks.
  • Run the repo's fast checks before committing when they exist; let hooks run and report a failure instead of bypassing it.
  • Describe the change itself; plan and milestone context stays out of the message.

Output

The commit SHA and first line, or the proposed message plus what to stage.

Comments

Markdown supported