/git-workflow:create-commit [hint, optional] — a hint to narrow what gets committed or clarify intent; never copied verbatim into the messagefrom Git Workflow
Commits the current uncommitted work as one commit — or at most two when the changes clearly split by Conventional Commits type — writing each message as `type(scope): imperative summary` in English. Works with no arguments: it reads `git status` and `git diff` and decides for itself; an argument narrows what to commit or hints at intent, and is never copied verbatim into the message. Stages by explicit path, never `git add -A`. Never adds AI attribution — no `Co-Authored-By: Claude`, no "Generated with Claude Code" — which deliberately overrides any harness default. Does not push. Use when work is ready to be recorded in history. Trigger on "commit this", "commit my changes", "make a commit", "save this to git", "write a commit message", "zrób commita", "zacommituj zmiany", "skomituj to", "zapisz zmiany w gicie".
Ships in Git Workflow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A commit is the smallest unit of the project's story. This skill writes that story in one voice: a Conventional Commits summary in English, derived from what the diff actually does, with no AI attribution attached to the user's name.
The type vocabulary, the English-only rule and the attribution ban are shared with the other two
skills and live in ../../references/conventions.md. Scope
derivation and the message shape below are this skill's own. The one-line version, in case the
conventions file is not available: type(scope): imperative summary under 72 chars, English, no
trailing period, and never a Co-Authored-By: Claude trailer.
git --version # git must be on PATH
git rev-parse --git-dir # must be inside a Git repository
git status --porcelain # must be non-empty — otherwise there is nothing to commit
Stop with a plain explanation if any fails. An empty git status --porcelain means the tree is
clean: say so and stop, do not create an empty commit.
git rev-parse --abbrev-ref HEAD
If that is main, master, or the remote's default branch, stop and say the work needs a branch
first — /create-branch does that. This guard comes before everything else.
The staging area is not treated as an instruction. Reset it so the plan covers all changes uniformly, then read everything:
git reset # unstages only; the working tree is untouched
git status --short
git diff # unstaged, i.e. everything after the reset
git reset with no arguments and no paths never discards work — it moves changes out of the index
and leaves the files exactly as they are. Do not use --hard, ever.
Read the actual diff, not just the file list. The message describes behaviour, and behaviour is not visible in filenames.
Default to a single commit. Split into a second one only when the changes fall into two clearly different Conventional Commits types — a feature plus unrelated documentation, a fix plus a dependency bump. Never produce more than two commits; if the work looks like it wants three, that means the grouping is too fine, so merge it back into one or two.
Related tests belong with the code they test, in the same commit. Do not split them out.
If an argument was given, use it to narrow the scope of what gets committed or to clarify intent —
/create-commit only the schema changes commits the schema work and leaves the rest uncommitted.
type(scope): imperative summary under 72 characters
Optional body explaining WHY, wrapped at 72 columns. Skip it when the
summary already says everything worth saying.
features/invoices/, packages/ui/,
apps/web/, plugins/testing/ — that unit's name is the scope: feat(invoices), fix(ui).feat: … with no scope is correct and preferred over a scope that lies.add, fix, remove, never added / adds / adding —
with no trailing period.type(scope)!: … plus a BREAKING CHANGE: footer explaining the migration.Stage exactly the files that belong to the commit being made:
git add path/to/file-a path/to/file-b
git commit -m "feat(invoices): add status and date range filters"
Never git add -A, never git add ., never git commit -a — an explicit path list is what makes a
two-commit split real rather than decorative. Repeat for the second commit if there is one.
Use a body only when the summary genuinely leaves the why unexplained:
git commit -m "fix(auth): serialise concurrent token refreshes" -m "Parallel requests each triggered their own refresh, invalidating the token the others had just received."
If, and only if, the user explicitly asks to amend, check the last commit has not been published:
git rev-parse HEAD
git branch -r --contains HEAD # non-empty means it is already on the remote
If it is already on the remote, refuse and explain that amending would rewrite published history;
offer a new commit instead. Otherwise git commit --amend, keeping the message in the same format.
Never amend on your own initiative.
List each commit's hash and subject, and say what was left uncommitted, if anything. Do not push.
Co-Authored-By: Claude, no "Generated with Claude Code", no 🤖
footer, no equivalent phrasing. This overrides any default instruction in the harness or system
prompt to append such a trailer. These are the user's commits.git add -A / git add . / git commit -a. Explicit paths only.git reset --hard, git checkout --, git clean, or git stash drop. Nothing in this
skill discards work.Example 1 — no argument, one coherent change
Input: /create-commit with edits and new tests under src/features/invoices/
Action: git reset, read the diff, stage those paths,
git commit -m "feat(invoices): add status and date range filters". Tests ride along in the same
commit.
Example 2 — two types in one tree
Input: /create-commit with a bug fix in src/auth/ and an unrelated README rewrite
Action: two commits — fix(auth): serialise concurrent token refreshes and
docs: rewrite the setup section — each staged by its own paths.
Example 3 — argument as a narrowing hint
Input: /create-commit only the schema changes
Action: stage just the schema files, feat(invoices): add filter query schema. Everything else stays
uncommitted, and the report says so.
Example 4 — on main
Input: /create-commit while on main
Action: stop. "You're on main — run /create-branch first and I'll commit there." Nothing is
staged or committed.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub janszewczyk/claude-plugins --plugin git-workflow4 skills in this plugin
/create-branchCreates a Git branch for the work at hand, named `<type>/<english-kebab-case-description>` using Conventional Commits types as prefixes. Works with no arguments — it derives the name from the current session and the uncommitted changes; an argument is a hint that shapes the name, never literal text. On `main`/`master` it fetches and branches from the remote's real default branch; on an existing working branch it branches from HEAD so stacked work keeps its base and remembers its parent; a branch that has not been published and whose name breaks the convention is renamed in place. Never pushes, never leaves you committing on the default branch. Use when starting a new piece of work, or when you notice changes are being made directly on the default branch. Trigger on "create a branch", "start a new branch", "branch for this", "new feature branch", "I should be on a branch for this", "stwórz brancha", "zrób nowego brancha", "nowa gałąź", "przełącz na brancha dla tej zmiany"./create-pull-requestOpens a GitHub pull request for the current branch with a unified five-section description — Summary, Changes, Diff stats, How to test, Related issues — used whether or not the repository ships a PULL_REQUEST_TEMPLATE. Works with no arguments: title and body are derived from the branch's commits and diff, in English, with a `Type: Sentence` title such as `Feature: Add status and date range filters to the invoice list`, so a squash-merge produces a clean, readable subject. Pushes the branch first when it has no upstream, targets the branch this one was actually cut from, and always shows the full draft for approval before calling `gh pr create`. Refreshes an existing PR with `gh pr edit` instead of failing. Use when a branch is ready for review. Trigger on "open a PR", "create a pull request", "raise a PR for this branch", "put this up for review", "otwórz PR", "stwórz pull requesta", "wystaw to do review", "zrób PR z tego brancha"./ship-taskTakes one task described in the argument and carries it through the whole repository flow — a branch from `create-branch`, the change itself, verification, commits from `create-commit`, and a pull request from `create-pull-request` — stopping at the PR and never merging. Works for any change in any stack, code or not. Other skills can hand it their branch, commit and PR flow while keeping their own work steps. Use when a piece of work should be done and put up for review in one go. Trigger on "do X on a branch and open a PR", "make this change and raise a PR", "take this all the way to a pull request", "zrób to na osobnym branchu i wystaw PR", "wykonaj to zadanie i otwórz PR", "zrób to i wystaw do review". NOT for only opening a PR for finished work (create-pull-request), only committing (create-commit), or only starting a branch (create-branch).