Claude
Skills
Sign in
Back

commit

Included with Lifetime
$97 forever

Creates a conventional git commit using git-agent. This skill should be used when the user requests "commit", "git commit", "create commit", or wants to commit staged and unstaged changes following the conventional commits format. The executing AI auto-derives its own co-author string from its runtime model identity (e.g., `Claude Opus 4.7 <[email protected]>`) and passes it to `--co-author`. `$ARGUMENTS`, if provided, overrides the auto-derived value.

AI Agents

What this skill does


CRITICAL:
- Do NOT run `git status`, `git diff`, `git log`, or any other commands before `git-agent commit`.
- Always pass `--co-author` to `git-agent commit`. If `$ARGUMENTS` is non-empty, use it verbatim. Otherwise self-derive from your own runtime model identity (the model named in your own system prompt) plus `<[email protected]>` — e.g., `Claude Opus 4.7 <[email protected]>`. Never run a commit without `--co-author`.

1. Derive a one-sentence intent from the conversation.
2. Resolve `<co-author>`: if `$ARGUMENTS` is non-empty use it verbatim; otherwise build `<your-running-model> <[email protected]>` from your own runtime identity.
3. Run: `git-agent commit --intent "<intent>" --co-author "<co-author>"`
4. On auth error (401), retry the same command with `--free` appended; keep the `--co-author` flag.
5. Fallback (binary unavailable): manual `git commit` with Conventional Commits format via HEREDOC, including a `Co-Authored-By: <co-author>` trailer in the message body.

CLI reference: `${CLAUDE_PLUGIN_ROOT}/references/cli.md`
Files: 1
Size: 1.6 KB
Complexity: 14/100
Category: AI Agents

Related in AI Agents