Helps prepare and create standardized git commits that enable automated versioning and changelogs.
Install
mkdir -p .claude/skills/commit-davej && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9540" && unzip -o skill.zip -d .claude/skills/commit-davej && rm skill.zipInstalls to .claude/skills/commit-davej
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.
Use when asked to prepare, review, or create a git commit for this repository. Follow the local commit policy, keep commits scoped to the intended changes, run the fast required checks, and write Conventional Commits that work with release-please.Key capabilities
- →Inspect worktree
- →Validate commit policy
- →Stage files
- →Create Conventional Commits
How it works
Validates changes against repo policy and creates a Conventional Commit message.
Inputs & outputs
When to use commit
- →Committing changes
- →Writing standardized release notes
- →Preparing PR commits
About this skill
Commit
Overview
Use this skill when a user asks for a commit or asks how a commit should be written for Pocodex. The goal is to produce a clean, policy-compliant git commit that matches the actual diff and works with release-please.
Workflow
- Inspect the worktree with
git status --shortandgit diff --stat, then read the diff for the files that are actually part of the requested change. - Exclude unrelated user changes. Do not stage or commit files outside the requested scope.
- Run
pnpm run check:commitbefore committing. If it fails, fix the issues or report the blocker instead of committing a broken tree. - Stage only the intended files with
git add <path>.... - Write a Conventional Commit message that accurately describes the staged diff.
- Commit with
git commit. Prefer a single-msubject for small changes, or add a body when the why matters.
Commit Rules
- Use Conventional Commits because
release-pleasederives release notes and version bumps from merged commit history. - Preferred types in this repo:
feat,fix,refactor,docs,test,build,ci,chore. - Use an optional scope when it improves clarity, for example
feat(server): ...orfix(bootstrap): .... - Use the imperative mood in the subject line.
- Keep the subject specific to the staged diff. Do not write broad summaries that cover unstaged work.
- Mark breaking changes with
!in the header and include aBREAKING CHANGE:footer in the body. - Avoid placeholder types such as
update,misc, orchanges.
Message Shape
Use this shape:
type(scope): short summary
Optional explanatory body.
BREAKING CHANGE: required when behavior or API compatibility changes.
Choosing The Type
feat: user-visible behavior or capability addedfix: bug fix or regression fixrefactor: internal restructuring without intended behavior changedocs: README, CONTRIBUTING, skills, or other documentation-only changestest: test-only changesbuild: packaging, dependencies, or build toolingci: GitHub Actions or other automation pipeline changeschore: maintenance that does not fit the above and should not usually trigger a release note highlight
Examples
feat: add LAN URL fallback for remote browser sessionsfix(server): ignore malformed ipc payloadsbuild: add release-please automationdocs(commit): document conventional commit policyrefactor(app-server-bridge): inline typed event overloads
Guardrails
- Do not commit unrelated local edits just because they are present in the worktree.
- Do not bypass the
commit-msgorpre-commithooks unless the user explicitly asks. - If the diff contains multiple unrelated concerns, split them into separate commits instead of forcing one message to cover everything.
- If you are unsure whether a change is release-relevant, still use the most accurate Conventional Commit type.
release-pleasecan decide whether it should cut a release.
Command Pattern
For a normal commit flow in this repo:
git status --short
git diff --stat
pnpm run check:commit
git add <intended files>
git commit -m "type(scope): summary"
Run pnpm run check separately when you want the full validation pass, including tests. Add a second -m body when the rationale, migration notes, or breaking-change context matters.
When not to use it
- →Committing unrelated changes
- →Bypassing hooks
Prerequisites
Limitations
- →Must follow Conventional Commit format
- →Requires pnpm run check:commit
How it compares
Enforces standardized commit messages and pre-commit checks automatically.
Compared to similar skills
commit side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| commit (this skill) | 0 | 4mo | 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対応を依頼された時に使用。