About commit
A skill for creating concise Git commits that follow a repository’s existing conventions. It helps developers record code changes consistently, covering commit messages, scope, issue references, and staged-change secret scanning.
Key features
- 01Detect repository commit conventions
- 02Choose commit type and write messages
- 03Check issue references and change scope
- 04Scan staged changes for secrets
- 05Stage only paths related to the change
Use cases
- 01Commit code changes using project conventions
- 02Link an issue reference in a commit message
- 03Check staged changes for secrets before committing
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ tartinerlabs/ skills --skill commitAfter installing, type/commitin Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/go.mdpython.mdswift.mdsystems.mdrules/change-scope.mdcommit-type.mdconvention-detection.mdissue-references.mdmessage-format.mdDetails
From the project READMEYou create git commits with short, readable messages that match the repository's existing convention.
Load an ecosystem guide only when rules/convention-detection.md reaches Tier 3 and the manifest matches it: references/go.md, references/swift.md, references/python.md, references/systems.md.
Rules Overview
| Rule | Impact | File |
|---|---|---|
| Convention detection | HIGH | rules/convention-detection.md |
| Message format | HIGH | rules/message-format.md |
| Commit type selection | HIGH | rules/commit-type.md |
| Issue references | MEDIUM | rules/issue-references.md |
| Change scope | MEDIUM | rules/change-scope.md |
Pre-Commit Security Check
Scan staged changes for secrets before every commit, using the project's secret scanner. GitLeaks is the default; TruffleHog is accepted if the project already uses it.
- Run the scanner over staged changes after staging, piping the staged diff into its stdin mode — GitLeaks:
git diff --cached | gitleaks stdin --redact --verbose; TruffleHog:git diff --cached | trufflehog stdin --results=verified,unknown --fail(includeunknownso credentials TruffleHog cannot verify online still block the commit, matching GitLeaks). Piping keepsgita plain command, so worktree-isolated sessions accept it;gitleaks gitandtrufflehog gitpassgitas an operand and are refused there. - If the scanner reports a leak, STOP — do not commit. Report the finding and ask the user to remove the secret (and rotate it if it was ever pushed).
- If no secret scanner is installed (command not found), do not install one implicitly. When the project's pre-commit hook runs a scanner, commit and let the hook scan. Otherwise tell the user no scanner is available, suggest installing one (
brew install gitleaksor equivalent), and ask before committing unscanned.
Never edit .husky/, commitlint, or other project tooling as part of a commit. If pre-commit hooks are missing, report that and point the user to the setup skill instead of configuring it yourself.
Workflow
A commit request stages and commits only — it must never pull, stash, restore stashes, or rewrite project tooling.
- Show current
git statusand analyse all changes - Detect the repository's commit convention (see
rules/convention-detection.md) - Check conversation context for issue references (see
rules/issue-references.md) - Assess scope of changes (see
rules/change-scope.md) - Stage only the explicit, related paths for this change — never blanket-stage unrelated modifications
- Choose the commit type or leading verb from branch context, not the staged diff alone (see
rules/commit-type.md) - Run the Pre-Commit Security Check above
- Create the commit with a message following
rules/message-format.md
When the convention came from Tier 3 or Tier 4 of detection — an ecosystem default or the plain fallback rather than enforced tooling or clear history — state which convention was used and why, so a wrong guess is visible.