commit
FreeNo executable scriptsNot checkedUse when changes in the working tree are ready to be recorded in git on the current branch — staged or unstaged edits that need a conventional-commit message.
by uw-ssec★ 33 GitHub starsAbout this skill
Commit
Commit staged and unstaged changes to the current branch.
Instructions
- Run
git status(never use-uall) andgit diff --statto see all changes. - Run
git log --oneline -5to see the commit message style for this repo. - Analyze ALL changes (staged + unstaged) and determine:
- The conventional commit type:
feat,fix,refactor,docs,chore,style,test,perf,ci,build - An optional scope in parentheses based on what area changed (e.g.,
data,pipeline,io,cli,viz,docs,ci,deps,skills) - A concise imperative description of WHY, not WHAT
- The conventional commit type:
- Do NOT commit files that likely contain secrets (
.env,.env.local, credentials, API keys). Warn if any are staged. - Do NOT commit
.DS_Storefiles. - Stage relevant untracked files by name (never use
git add -Aorgit add .). - Create the commit using this format:
git commit -m "$(cat <<'EOF'
type(scope): short imperative description
Optional body explaining the why, not the what.
Multi-line is fine for complex changes.
Assisted-by: <harness>:<model>
EOF
)"
- Run
git statusafter to verify success. - If a pre-commit hook fails, fix the issue and create a NEW commit (never amend).
AI Attribution
Disclosure is required, lightweight, and shame-free — its purpose is reviewer calibration and later process analysis, not judgment.
This repository follows the Linux kernel's
coding assistants guide.
On an AI-assisted commit, end the message with an Assisted-by: trailer naming
the harness and the model id, joined by a colon:
Assisted-by: <harness>:<model> [TOOL1] [TOOL2]
<harness> is the coding agent as a lowercase, hyphenated slug (claude-code,
codex-cli, copilot-cli, opencode, ...) and <model> is the model
identifier it reports, so <harness>:<model> is a single machine-readable token
with no spaces. [TOOL1] [TOOL2] are optional specialized analysis tools that
contributed to the change (for example mypy when its report drove the fix); do
not list basic development tools such as git, formatters, test runners, or
editors. Examples:
Assisted-by: claude-code:claude-fable-5-1
Assisted-by: codex-cli:gpt-5.3-codex mypy
Use the same harness and model string in the "AI assistance disclosure" section
of .github/pull_request_template.md, so the commits and the PR agree.
An AI agent MUST NOT add a Signed-off-by: trailer; only a human can certify
the Developer Certificate of Origin. A human who signs the commit adds their own
with git commit -s after reviewing every line.
Conventional Commit Types
| Type | When to use |
|---|---|
feat |
New feature or capability |
fix |
Bug fix |
refactor |
Code change that neither fixes a bug nor adds a feature |
docs |
Documentation only |
chore |
Maintenance, deps, config |
style |
Formatting, whitespace (not CSS) |
test |
Adding or updating tests |
perf |
Performance improvement |
ci |
CI/CD changes |
build |
Build system or tooling |
Rules
- Keep the first line under 72 characters
- Use imperative mood ("add" not "added", "fix" not "fixed")
- Scope is optional but preferred when changes are localized
- Never skip hooks (
--no-verify) - Never amend unless explicitly asked
- On an AI-assisted commit, add an
Assisted-by: <harness>:<model>trailer as shown in AI Attribution; neverCo-Authored-By:for a tool, and neverSigned-off-by:from an agent - An
ai-assistedlabel on the PR is an accepted companion or alternative — the workflow takes a label and/or a trailer - NEVER add "Generated with" or similar marketing lines. This is attribution, not promotion
Install commit in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the commit skill do?
Use when changes in the working tree are ready to be recorded in git on the current branch — staged or unstaged edits that need a conventional-commit message.
How do I install the commit skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the commit skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic