Skip to content
Back to skills

Commit

ASecurity

Commit changes with well-crafted messages, grouping related files into separate commits

  • 37 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added May 26, 2026
developmentgitapi

Works with

  • api

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add Weaverse/.agents --skill commit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Commit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Commit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/weaverse-commit/badge)](https://www.skillsdirectory.com/skills/weaverse-commit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Commit changes with well-crafted messages, grouping related files into separate commits
argument-hint: "[optional commit message or instructions]"
---

## Workflow

1. Run these commands in parallel to understand the current state:
   - `git status` — see all tracked/untracked files and staging state
   - `git diff` — see unstaged changes

2. Analyze ALL changes (staged + unstaged) and determine what should be committed:
   - If there are no changes at all, inform the user and stop
   - Do NOT commit files that likely contain secrets (`.env`, credentials, tokens, API keys). Warn the user if such files are present.

3. Group related file changes into logical commits:
   - Do NOT lump all changes into a single commit
   - Examine each changed file and understand what it does
   - Group files that are part of the same logical change together (e.g., a component + its styles + its test = one commit)
   - Each group becomes its own commit
   - If only one logical change exists, one commit is fine

4. For each group, draft a commit message:
   - Write natural, concise descriptions of what changed and why
   - Do NOT use conventional commits format (no `feat:`, `fix:`, `chore:` prefixes)
   - Keep the subject line under 72 characters
   - If the user provided a message or instructions via arguments, incorporate or use that for the relevant commit(s)

5. For each group, stage and commit:
   - `git add <specific files>` for that group only
   - `git commit -m "message"`
   - Repeat for each group in a logical order (foundational changes first)

6. Run `git status` after all commits to verify everything is clean.

7. Report the result: show each commit hash and summary.

## User Arguments

$ARGUMENTS

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.