Commits staged or intended changes with a Conventional Prefix or Natural Language message. Supports --all, --staged, --push, and --close flags for atomic commits.
How this skill is triggered — by the user, by Claude, or both
Slash command
/paulrberg-agent-skills:commit [--all] [--staged] [--natural] [--push] [--close <issue_numbers>][--all] [--staged] [--natural] [--push] [--close <issue_numbers>]The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create atomic commits by staging the right files, analyzing the staged diff, composing a commit message, and optionally pushing.
Create atomic commits by staging the right files, analyzing the staged diff, composing a commit message, and optionally pushing.
Arguments: $ARGUMENTS
--all commit all changes--staged commit exactly the current index; do not auto-stage or unstage (conflicts with --all)--natural force Natural Language Format--push push after commit--close <issue_numbers> append Closes #N trailers for listed issues (comma/space-separated)Pass --natural through to the prepare helper when requested. The helper resolves the message format from the target repository cwd.
Run the portable helper from the target repository cwd. Never cd into the skill directory, and never use dynamic ! shell injection.
Resolve <skill-dir> from the loaded SKILL.md path:
bash "<skill-dir>/scripts/prepare-commit.sh" [--all] [--staged] [--natural] [--diff summary|full] -- [session_modified_paths...]
Use --diff summary by default. Use --diff full only when the intent is ambiguous.
The helper performs Git preflight checks, stages --all or the session-modified paths (or, with --staged, leaves the current index untouched), unstages unrelated pre-staged paths, rejects empty staged diffs, and prints the message format, branch, staged name-status, shortstat, and optional full diff. If it fails, stop with its error and a concise suggested fix.
--all:
--staged:
--all.--git checkout unrelated changes.Read the helper output and produce the commit message in a single pass.
Message format — use the ## message format value from the helper output.
conventional: read references/conventional-prefix-format.md.natural: read references/natural-language-format.md.Read only the selected format reference before composing the message.
Unrelated hunks — ignore pre-existing changes when determining type/scope/description. If unrelated changes are in the same file as session changes, they are included in the commit scope but should not influence the message.
Issue linking — scan the chat transcript for GitHub issue references (e.g. #123, owner/repo#123, issue URLs) that the current changes resolve. For each match, append a Closes #N trailer. Skip issues merely mentioned in passing; include only ones the commit actually closes.
Analysis — perform semantic analysis of the staged diff:
If --close:
Closes #N line for each issue number providedCloses #N per line in the body/trailergit commit -m "subject" (add -m "body" only if body is non-empty)N files changed summary. Nothing else.git commit --no-verify — do not ask. Report the bypass in one line, noting the failure was unrelated to the staged changes. Never bypass hooks for failures caused by the session's own changes; fix those or surface the error instead.--push)git pushgit push -u origin HEADnpx claudepluginhub paulrberg/agent-skillsCreates local Git commits with conventional messages and GitHub issue references. Handles staging, pre-commit hooks, and automatic issue detection from changes.
Executes git commits with conventional commit message analysis, intelligent staging, and message generation. Use when asked to commit changes or when /commit is invoked.
Guides git commits with atomic change analysis, conventional commit messages, and interactive staging options. Flags non-atomic commits and suggests splits for better maintainability.