kit-commit
Skill0 starsChanged 20 days agoMITView on GitHub
Create git commits with messages that follow the repository's existing conventions, committing only the intended changes. Use when the user asks to commit, make a commit, or write a commit message for current changes. Do not use for pushing, opening pull or merge requests, rewriting history, or reviewing code.
- Reads credentials
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Commit only when the user asked for a commit.
- Distinctive: line 12
Run git status and git diff (staged and unstaged).
- Distinctive: line 13
If the user named what to commit, commit only that.
- Very specific: line 14
Never stage secrets, credentials, .env files, large generated artifacts, or files that .gitignore should cover.
- Very specific: line 18
Read recent history (git log --oneline -20 and one or two full messages) and follow what it uses: Conventional Commits (type(scope): …
- Very specific: line 19
Check for documented rules in CONTRIBUTING.md, commitlint configuration, or commit hooks.
- Distinctive: line 20
If there is no convention, write a concise imperative subject of at most 72 characters, a blank line, and a body explaining what changed …
- Distinctive: line 27
Do not change git configuration or author identity.
- Distinctive: line 35
Use: "Commit these changes." "Write a commit message for what I staged."
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Commit
Commit only when the user asked for a commit. Never push, amend published commits, or rewrite history unless the user explicitly asks.
1. Inspect the changes
- Run
git statusandgit diff(staged and unstaged). Read the changes; do not commit what you have not looked at. - If the user named what to commit, commit only that. Otherwise determine whether the changes form one logical change. If they mix unrelated work, ask whether to split them or propose separate commits.
- Never stage secrets, credentials,
.envfiles, large generated artifacts, or files that.gitignoreshould cover. Stop and tell the user if any are part of the changes.
2. Match the repository's message convention
- Read recent history (
git log --oneline -20and one or two full messages) and follow what it uses: Conventional Commits (type(scope): subject), ticket prefixes, capitalization, tense, line length, and trailers such asSigned-off-by. - Check for documented rules in
CONTRIBUTING.md, commitlint configuration, or commit hooks. - If there is no convention, write a concise imperative subject of at most 72 characters, a blank line, and a body explaining what changed and why. Skip the body for trivial changes.
- Describe the change accurately. Do not claim tests passed unless they ran.
3. Commit
- Stage the intended paths explicitly (
git add <paths>), not everything by default. - Respect hooks. If a pre-commit hook fails, fix the reported problem when it is within the change, or report it. Never bypass hooks with
--no-verifyunless the user asks. - Do not change git configuration or author identity.
4. Report
Show the commit hash and subject, list what was committed, and mention anything intentionally left uncommitted.
Examples
- Use: "Commit these changes." "Write a commit message for what I staged."
- Skip: "Push my branch." "Open a PR." "Squash the last three commits." (history rewrite needs explicit instructions)
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- kit-code-reviewSkill
- kit-debuggingSkill
- kit-documentationSkill
- kit-feature-implementationSkill
- kit-pull-requestSkill
- kit-refactoringSkill
- kit-security-auditSkill
- kit-testing-rulesSkill
- kit-test-writingSkill
- kit-typescript-rulesSkill
- kit-code-reviewSkill
- kit-commitSkill
- kit-debuggingSkill
- kit-documentationSkill
- kit-feature-implementationSkill
- kit-pull-requestSkill
- kit-refactoringSkill
- kit-security-auditSkill
- kit-test-writingSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

