Stages files and creates git commits using conventional message standards based on repo history.
Install
mkdir -p .claude/skills/commit-cosmevalera && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/12039" && unzip -o skill.zip -d .claude/skills/commit-cosmevalera && rm skill.zipInstalls to .claude/skills/commit-cosmevalera
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Stage relevant changes and create a git commit with a conventional-style message. Only runs when the user explicitly invokes /commit.Key capabilities
- →Identify relevant files for staging
- →Draft a concise commit message based on project style
- →Stage selected files by name
- →Confirm successful staging with git status
- →Avoid committing secret files
How it works
The skill analyzes git status and diff to identify changes, drafts a commit message following project style, and stages files by name while avoiding secrets.
Inputs & outputs
When to use commit
- →Stage selected files for a commit
- →Generate conventional commit messages
- →Review changes before finalizing a commit
About this skill
/commit
Create a git commit for the current changes.
Steps
- Run in parallel:
git status(no-uall)git diff(staged + unstaged)git log -n 10 --onelineto match the repo's commit style
- Review what would be committed:
- Skip files that likely hold secrets (
.env, credentials, keys). - Do not blanket-add with
git add -A/git add .— stage files by name. - If
$ARGUMENTSis non-empty, treat it as the commit message (or message hint) from the user.
- Skip files that likely hold secrets (
- Draft a concise 1–2 sentence commit message focused on the why. Follow this repo's existing style from
git log(the project uses short imperative subjects like "Improve SEO", "Add CLAUDE.md file"). - Stage the intended files:
- Run
git statusafter to confirm success. - Do not push. Do not amend. If a pre-commit hook fails, fix the root cause and create a new commit.
Guardrails
- Never use
--no-verify,--amend, or force flags. - Never commit
.env, credentials, or large binaries — warn the user instead. - If there is nothing to commit, say so and stop — do not create empty commits.
- Do not add a
Co-Authored-By: Claudetrailer. Commits should look authored solely by the user.
When not to use it
- →When there is nothing to commit
- →When the user wants to amend an existing commit
- →When the user wants to push changes
Limitations
- →Does not push commits to a remote repository
- →Does not amend existing commits
- →Does not use `--no-verify` or force flags
How it compares
This skill automates the selection of relevant files and the drafting of a conventional commit message, unlike a manual process that requires explicit file selection and message composition.
Compared to similar skills
commit side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| commit (this skill) | 0 | 3mo | Review | Beginner |
| run-nx-generator | 5 | 3mo | Review | Intermediate |
| git-commit | 11 | 6mo | Review | Beginner |
| morph-search | 9 | 7mo | Review | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
run-nx-generator
nrwl
Run Nx generators with prioritization for workspace-plugin generators. Use this when generating code, scaffolding new features, or automating repetitive tasks in the monorepo.
git-commit
github
Execute git commit with conventional commit message analysis, intelligent staging, and message generation. Use when user asks to commit changes, create a git commit, or mentions "/commit". Supports: (1) Auto-detecting type and scope from changes, (2) Generating conventional commit messages from diff, (3) Interactive commit with optional type/scope/description overrides, (4) Intelligent file staging for logical grouping
morph-search
parcadei
Fast codebase search via WarpGrep (20x faster than grep)
upgrading-expo
sickn33
Upgrade Expo SDK versions
continue-implementation
LibPDF-js
Continue implementing a spec from a previous session
fix-dependabot-prs
bannzai
dependabotから上がってきた複数のPRを一括で解決し、まとめPRを作成する。dependabotのPR対応を依頼された時に使用。