Commit Work

SkillCommunication

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.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Commit Work skill

What this skill tells your AI

The instructions your AI receives, as published by fellipeutaka/kanpeki in .agents/skills/commit-work/SKILL.md and read by ahel’s review.

Goal: commits that are easy to review and safe to ship — only intended changes, logically scoped, with messages that say what changed and why.

Inputs to ask for (if missing)

  • Single commit or multiple commits? (If unsure: default to multiple small commits when there are unrelated changes.)
  • Commit style: Conventional Commits are required.
  • Any rules: max subject length, required scopes.

Workflow

  1. Inspectgit status, git diff, and git diff --stat when the change is large.
  2. Decide boundaries — feature vs refactor, formatting vs logic, tests vs production code, dependency bumps vs behavior change, pre-existing-bug fix vs new work.
  3. Format before staging — run the repo's formatter (table below) so a commit hook does not reject the staged tree.
  4. Stage deliberately — name the paths; git add -p for files with mixed changes; unstage with git restore --staged <path>.
  5. Reviewgit diff --cached: no secrets or tokens, no env files, no debug logging, no unrelated churn, no build output (target/, dist/, node_modules/).
  6. Describe the staged change in 1-2 sentences (what + why). If you cannot, it is too big or mixed — go back to step 2.
  7. Write the messagetype(scope): summary, blank line, body of what/why (not an implementation diary), BREAKING CHANGE: footer if needed. Multi-line: write the text to a file and git commit -F /abs/path/to/msg. Template: references/commit-message-template.md.
  8. Verify — use the verify-changes skill, or the commands below for this repo's stack.
  9. Repeat until the working tree is clean.

Per-language checks — detect by manifest (Read tool)

Manifest presentFormatLintTest
Cargo.toml (+ rustfmt.toml)cargo fmt --all --check (fix: cargo fmt -p <crate>)cargo clippycargo test --lib
package.jsonthe format script / prettierthe lint script, tsc --noEmitthe test script
pyproject.tomlruff format --checkruff checkpytest
Package.swiftswift-format lintswift buildswift test
go.modgofmt -l on changed filesgo vet ./...go test ./...

Read the manifest for the scripts it actually declares; prefer a repo-wide check/ci script when one exists, and scope to the package you touched (-p <crate>, that package's own scripts).

Never

  • git add . / git add -A / git commit -a — stage by path.
  • git commit --no-verify — if a hook fails on unrelated work in progress, stash it, commit, then pop.
  • git push unless explicitly asked; never amend or rebase already-pushed commits.
  • Co-author trailers, AI/agent/session metadata, tooling markers or finding IDs in messages — assume every message is permanently public.
  • Staging env files, credentials, keys, or generated artifacts.

Shell rules

  • One known file: the Read tool, never cat/head/sed -n. Definitions and references: LSP (goToDefinition, findReferences, workspaceSymbol); the Grep/Glob tools only if available.
  • Text search: git grep -n "PATTERN" -- '*.rs' '*.ts' — always with an extension pathspec.
  • Untracked files only: grep -rn "PATTERN" --include='*.rs' /abs/path/to/subtree — an absolute subtree with no env file under it, never the repo root and never ..
  • No cd in any command; every path absolute. Never read or name an env file — ask the user instead.

Deliverable

Provide:

  • the final commit message(s)
  • a short summary per commit (what/why)
  • the commands used to stage/review (at minimum: git diff --cached, plus any tests run)

Signals

GitHub stars
33
Forks
1
Last commit
Aug 2026

Others that do the same job

Advanced
Catalog kind
skill
Gateway key
commit-work
Source
github.com/fellipeutaka/kanpeki