Create High-Quality Git Commits

VerifiedCaution

Create high-quality Git commits by gathering context, running relevant agents, and splitting changes into logical commits.

Sby Skills Guide Bot
DevelopmentIntermediate
7/31/2026
Claude Code
#git#commit-messages#changelog#code-review#workflow

Recommended for

Automated summary

Guides the creation of clean Git commits by gathering diff, repository state and recent message style, then delegating review and changelog agents before splitting changes into logical commits.

Strengths

  • Specifies a concrete parallel context-gathering step (diff, diff --cached, status, filtered log)
  • Gives explicit rules for splitting by component and for handling incidental files like CHANGELOG.md
  • Recognises the cruft/Wiswa regeneration case with a single commit and no agents run
  • Ties changelog updates to genuinely user-facing changes, with a clear skip list

Limitations

  • Tightly coupled to one repository (kate_wakatime, Wiswa, .claude/agents/*.md); agent names and paths do not transfer as-is
  • Assumes the referenced agent files exist and that the Agent tool with subagent_type general-purpose is available
  • Says nothing about commit signing, pushing, or message bodies beyond a couple of examples
When to use it

Use it when pending changes need to become one or more coherent, well-labelled Git commits.

When not to use it

Avoid it in repositories without .claude/agents files or component-prefix conventions, where the agent and splitting steps do not apply.

Security analysis

Caution
Quality score74/100

The skill is a conventional commit-workflow guide built on routine git operations and contains no destructive, obfuscated, or exfiltrating steps. The main concerns are the explicit instruction to commit 'without using the sandbox' and the use of GPG signing plus general-purpose subagents, which expand the execution surface beyond a plain sandboxed commit. These look legitimate for the stated purpose, so it rates caution rather than risky.

Findings
  • •Step 5 instructs the agent to run `git commit -S -s -F <tempfile>` 'without using the sandbox', i.e. explicitly escaping the sandbox boundary; this may be motivated by GPG signing needs but it is an explicit sandbox-bypass directive that should be reviewed.
  • •Uses GPG signing (`-S`), which requires access to the user's private signing keys and any pinentry/agent outside the sandbox.
  • •Spawns `general-purpose` subagents that follow arbitrary `.claude/agents/*.md` files, which can modify working-tree files and run their own tooling; risk depends on those agent definitions, which are not included here.
  • •Leaves generated temp commit-message files in `.wiswa-ci/` (low impact, but persistent artifacts in the repo).
  • •Otherwise uses only ordinary git commands (diff, status, log, add, commit); no destructive commands, no `curl|sh`, no credential/secret exfiltration, and it explicitly forbids `--no-verify` and `--no-gpg-sign`.
  • •Step 5 instructs committing 'without using the sandbox', i.e. deliberately bypassing the agent's sandboxing for the git commit invocation — a mild safety-control bypass that should be flagged.
  • •The skill delegates execution to repo-local instruction files (`.claude/agents/<name>.md` via the Agent tool) whose contents are not part of this skill and are not validated here; a malicious repo could substitute arbitrary instructions (file rewriting, etc.).
  • •It directs history rewriting (`git commit --amend`) and GPG-signed commits; amend of an already-pushed commit would be destructive (no push is performed by this skill, which limits the risk).
  • •Writes persistent temp files under `.wiswa-ci/` that the skill says may be left behind, accumulating untracked artifacts.
How this analysis is made

Examples

Commit all pending work
Commit my pending changes with a good message.
Split mixed changes
Review my staged and unstaged changes and split them into logical commits by component.
Check changelog need
Commit these changes and update CHANGELOG.md only if they are user-facing.

Commit

Create high-quality Git commits for all pending changes.

Gathering context

Run these in parallel:

  1. git diff - unstaged changes.
  2. git diff --cached - staged changes.
  3. git status - untracked files and overall state.
  4. git log --no-merges --format='%s%n%b---' -20 | grep -v '^bump:' | grep -iv dependabot - recent commit message style examples.

Running agents

After gathering context but before committing, determine which agents to run based on the changed files. Launch each agent sequentially using the Agent tool with subagent_type general-purpose, telling it to follow the corresponding .claude/agents/<name>.md file. Scope each agent to only the changed files, not the entire project.

You must skip any agents that are not relevant to the changed files (e.g. if no Click command files changed, skip the click-auditor).

When C/C++ code is being committed

If any changed files are under src/ or include/, run the following agents in order:

  1. copy-editor - fix prose in comments and strings.
  2. qa-fixer - format and fix lint/spelling issues.

When user-facing changes are being committed

  • changelog - update CHANGELOG.md only for user-facing changes (behaviour, CLI, public API, security, or meaningful dependency constraints that affect installs). After it completes, check if CHANGELOG.md was modified (git diff CHANGELOG.md). If it was, stage it with the relevant commit. Follow .claude/agents/changelog.md, including its skip list.

    Files under kate_wakatime/, src/, include/, or dependency/version changes in CMakeLists.txt or vcpkg.json are candidates for the changelog agent only when they change what users see or how the software behaves. Editing those paths is not sufficient on its own.

    Skip the changelog agent for workflows, CI config, .claude/, documentation-only churn, cruft or generator clean-up (for example replacing template placeholders such as unknown in repository URLs, badges, packaging metadata, or CODEOWNERS with the real project identity), internal refactors with no behaviour change, and other non-user-facing work.

Analysing changes

Group changed files by component. Determine if one commit or multiple logical commits are needed.

Incidental files

The following files do not count when determining the component prefix, unless they are the only file in a commit:

  • CHANGELOG.md
  • .vscode/dictionary.txt

For example, if a commit contains src/main.cpp, and CHANGELOG.md, the component is determined by the source files only. CHANGELOG.md is simply staged alongside them.

If CHANGELOG.md is the only file being committed, use the changelog: prefix. If .vscode/dictionary.txt is the only file, use dictionary: prefix.

When to split into multiple commits

  • Changes span unrelated components.
  • A refactor and a bug fix in the same file should be separate commits.
  • New tests for existing code should be separate from the code changes they test only if the code changes are themselves separate.
  • Dictionary updates (.vscode/dictionary.txt) should be committed first with message dictionary: update.

Cruft updates

When all changes are from re-running Wiswa (the project generator) and no hand-written code changed, this is a cruft update. Indicators:

  • Only Wiswa-managed files changed (workflows, package.json, CMakeLists.txt, .pre-commit-config.yaml, .claude/agents/, .claude/rules/, CITATION.cff, .vscode/dictionary.txt, .wiswa.jsonnet, etc.).
  • No files under the primary module or src/ changed.

Commit everything in a single commit with the subject cruft: update. Include a body summarising what changed (e.g. new/updated workflows, updated agent files, dependency version bumps, new managed files). Do not run any agents. Do not split into multiple commits. Do not update the changelog.

When a single commit is fine

  • All changes serve the same purpose within a closely related set of files.
  • A bug fix and its test.

Commit message format

component.name: short description

Optional longer description explaining the why, not the what. Wrap at 72
characters.

Signed-off-by: Author Name <email>
Closes: #123

Subject line rules

  • Format: component.name: short description. Component name must be lowercase and must skip the first period if present (vscode not .vscode, README.md -> readme not README), and must omit the period with extension.
  • Lowercase after the colon (unless a proper noun).
  • No period at the end.
  • Maximum 72 characters.
  • Use imperative mood: 'add', 'fix', 'update', 'remove', not 'added', 'fixes', 'updated'.

Component prefix rules

For source files, strip the src/ prefix and use the file name (without extension) as the component.

  • Source file src/main.cpp → main:.
  • Header file include/kate_wakatime/util.h → util:.
  • Multiple files under src/ → src:.
  • Workflow file .github/workflows/qa.yml → workflows/qa:.
  • Multiple workflows → workflows/*:.
  • Agent files .claude/agents/*.md → .claude: or specific agent name.
  • Instruction files across all 3 locations → project: (since they span Copilot/Cursor/Claude).
  • Dictionary .vscode/dictionary.txt → dictionary: (only when committed alone).
  • Top-level config (CMakeLists.txt, package.json) → project:.
  • If changes span many unrelated areas → project:.
  • CHANGELOG.md → changelog: (only when committed alone).
  • CONTRIBUTING.md → contributing:.

Trailers

  • Closes: #N - when a commit closes an issue. If it is another project, use the full URI.
  • Fixes: #N - when a commit fixes a bug reported in an issue. If it is another project, use the full URI.
  • Related: #N - when a commit is related to an issue but does not fully close or fix it. If it is another project, use the full URI.
  • Reviewed-by: - if applicable.
  • Co-authored-by: - if applicable.
  • Reported-by:: - if applicable. Could get this information from a bug report that led to the fix if the issue ID/URL is known.
  • Signed-off-by: - always included on every commit. This will be added with -s.

Making commits

Run commands separately. Do not chain commands with && or ;. Do not use scripts.

  1. Stage files for each logical commit using git add with specific file paths.
  2. If CHANGELOG.md was updated by the changelog agent, stage it with the relevant commit.
  3. Create the directory if it does not exist: mkdir -p .wiswa-ci. Skip if it already exists.
  4. Create a unique temp file with mktemp .wiswa-ci/message-XXXXXXXX. Write the commit message there using the Write tool (not Bash echo or cat)
  5. Commit with git commit -S -s -F <tempfile> without using the sandbox.
  6. If a pre-commit hook fails, fix the issue, re-stage (use appropriate agent if there is one), and try to commit again.
  7. After all commits, run git status to verify clean state.

Temp commit message files under .wiswa-ci/ do not need to be deleted after a successful commit; you may leave them in place.

Rules

  • Never use --no-verify or --no-gpg-sign.
  • Amend the previous commit when the new change is logically part of it (e.g. same file, same topic, fixing something just committed). Create a new commit when the change is distinct.
  • Never push unless explicitly asked.
  • Always use -S for GPG signing and -s for sign-off.
  • If there are no changes, do nothing.
  • Stage specific files, never use git add -A or git add ..

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/create-high-quality-git-commits-ms8gxn0f/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/create-high-quality-git-commits-ms8gxn0f' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-high-quality-git-commits-ms8gxn0f/download' --output '.skill-downloads/create-high-quality-git-commits-ms8gxn0f/SKILL.md.part' && mv '.skill-downloads/create-high-quality-git-commits-ms8gxn0f/SKILL.md.part' '.skill-downloads/create-high-quality-git-commits-ms8gxn0f/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/create-high-quality-git-commits-ms8gxn0f/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills