with one click
commit
// Triggers on /commit and its subcommands (v, bump, onlybump, onlyv, push, pushbump, pushnbump) to commit changes.
// Triggers on /commit and its subcommands (v, bump, onlybump, onlyv, push, pushbump, pushnbump) to commit changes.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | commit |
| description | Triggers on /commit and its subcommands (v, bump, onlybump, onlyv, push, pushbump, pushnbump) to commit changes. |
| argument-hint | [v|bump|push|pushbump|pushnbump|onlyv|onlybump] |
Commit changes into clean, well-organized commits.
/commit.claude/commit-style.md. If it exists, read it fully and let its rules override the defaults below (prefixes, grouping, message format, etc.). Only read it once per session.git statusgit diff to understand the changesrun-tests skill at .claude/skills/run-tests/SKILL.md. If yes, invoke it and wait for the result. If it fails, abort the commit, print the failing output, and explain to the user exactly why the commit was aborted (which command failed, what it printed, and that they need to fix it or tell you to skip). Do not stage or commit anything until the user either fixes it or explicitly says to skip.If nothing to commit, say so and stop.
/commit v / /commit bumpSame as /commit but also bumps the patch version before committing (e.g. 1.0.0 -> 1.0.1).
Version bump procedure:
package.json in the repo root. If it exists, it is the source of truth - read the version from it, increment the patch number, and write it back..json files in the repo root that contain a top-level "version" field (e.g. tauri.conf.json, manifest.json). Update each one to match the new version.Commit message follows the normal style - no need to mention the version bump.
If no package.json exists, skip the version step and commit normally.
/commit pushSame as /commit but also runs git push after committing.
Do not push if the commit failed or there was nothing to commit.
/commit pushbumpSame as /commit v but also runs git push after committing.
Do not push if the commit failed or there was nothing to commit.
/commit pushnbumpCommits changes and version as two separate commits, then pushes.
Order:
/commit)./commit v).VERSION: <new-version> — where <new-version> is the full version string after bumping. If a build number field (e.g. "build" in package.json or tauri.conf.json) exists alongside the version, append it: VERSION: 1.0.1+21.git push.Do not push if either commit failed or there was nothing to commit.
/commit onlyv / /commit onlybumpOnly bumps the patch version. No other changes staged.
Commit message is always: CHORE: bump to v1.0.1 (with the actual new version).
Version bump procedure: same as /commit v above.
If no package.json exists, say so and stop.
FEAT: - new featureFIX: - bug fixREFACTOR: - code restructure, no behavior changeCHORE: - maintenance, config, toolingDOCS: - readme, comments, documentationTEST: - adding or updating testsSTYLE: - formatting only, no logic changeDATA: - hardcoded data, content, or copy changes.claude/commit-style.md overrides these rules when present.Co-authored-by: Claude or any AI attribution.&&, ;, or |.cd before git commands. Use git -C /absolute/path <command>.git add -A.GIT_COMMITTER_DATE="..." git ... commit --date="..." ....