skills/commit/SKILL.md
Detect the repo's commit convention (Conventional Commits, Gitmoji, or a custom template) and create commits. Use when asked to commit, write a commit message, stage and commit changes, or commit and push work.
npx skillsauth add nbsp1221/agent-skills commitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Follow the repo's existing convention, create the commit, verify, and push when requested. Use the reference docs for detailed rules.
Identify the convention
AGENTS.md, CLAUDE.md, etc.CONTRIBUTING.md, README.md, commit templates, etc.git log -n 50 --pretty=%sPull if requested
--pull is set, run git pull before reviewing changes.Review changes
git status -sbgit diff --statgit diff (or git diff --staged)Stage intentionally
git add -p or git add <files>Run verify steps
--no-verify.Compose the message
references/conventional-commits.md.references/gitmoji.md.Commit, inspect, and push
git commit directly):
{baseDir} (the installed skill root) before running:
./.claude/skills/commit, ./.codex/skills/commit, ./.opencode/skills/commit~/.claude/skills/commit, ~/.codex/skills/commit, ~/.opencode/skills/commit{baseDir}/scripts/commit-guard.py:
python {baseDir}/scripts/commit-guard.py --convention <conventional|gitmoji|custom> --message "subject"python {baseDir}/scripts/commit-guard.py --convention <conventional|gitmoji|custom> --file <path>{baseDir} cannot be found, pause and ask the user for the exact skill install path.git log -1 --format="%h %s"git show --stat--push is set, push to the current branch after commit.Use the guard script to validate and create commits.
Run python {baseDir}/scripts/commit-guard.py --help for full usage (after resolving {baseDir}).
--convention (required): conventional, gitmoji, or custom--message (required unless --file): commit message string--file (required unless --message): path to commit message file--dry-run (optional): validate only; do not run git commitIf you cannot proceed, pause and ask. Examples include: ambiguous convention, unresolved conflicts, failed checks, or a failed push.
These options can be expressed in natural language, not just the flag form.
Honor the user's explicit request even if it does not use --flag syntax.
--dry-run: analyze changes and recommend a commit message, but do not commit or push--no-verify: skip tests, lint, and format checks even if they exist--pull: run git pull before reviewing changes; attempt conflict resolution--push: push to the current branch after commit--no-verify.scripts/commit-guard.py to create commits.git commit directly.--push or natural language).references/conventional-commits.mdreferences/gitmoji.mdtesting
Use when deciding whether to split a coding task into parallel exploration, bounded review fan-out, or single-writer delegated work instead of keeping it in one agent.
testing
Use when investigating a repository that is not already available locally and the user needs repository-specific understanding of its structure, implementation, maintenance, or relevant files.
testing
Use when a founder has a rough product idea and wants autonomous deep validation, market and competitor research, and an evidence-based MVP decision with minimal back-and-forth.
testing
Write and review Docker Compose files with consistent best practices and conventions (file naming, override strategy, service naming, key ordering, env handling, ports, and healthchecks). Use when creating or standardizing compose.yaml/docker-compose.yml.