CRITICAL:
- Do NOT run
git status,git diff,git log, or any other commands beforegit-agent commit. - Always pass
--co-authortogit-agent commit. If$ARGUMENTSis non-empty, use it verbatim. Otherwise self-derive from your own runtime model identity: take the model identifier from your own system prompt, map it to a provider domain via the table below, and build<Display Name> <noreply@<domain>>. Never run a commit without--co-author.
-
Derive a one-sentence intent from the conversation.
-
Resolve
<co-author>: if$ARGUMENTSis non-empty use it verbatim; otherwise pick the row below whose model-prefix matches the model named in your own system prompt, and build<Display Name> <noreply@<domain>>(e.g.Claude Opus 4.7 <noreply@anthropic.com>,Grok 4.5 <noreply@x.ai>,GLM-4.5 <noreply@zhipuai.cn>).| Model prefix | Display Name | noreply domain | |---|---|---| |
claude-/Claude(Fable/Opus/Sonnet/Haiku) | Claude <variant> | anthropic.com | |gpt-/o1-/o3-/openai| GPT <variant> | openai.com | |gemini-/Gemini| Gemini <variant> | google.com | |grok/Grok/xai/xAI| Grok <variant> | x.ai | |glm-/GLM/chatglm| GLM <variant> | zhipuai.cn | |qwen| Qwen <variant> | qwen.ai | |deepseek| DeepSeek <variant> | deepseek.com | |moonshot/kimi| Kimi <variant> | moonshot.ai |If the model name matches no row, default to
Claude <model-identifier> <noreply@anthropic.com>(the host that runs this marketplace), using the raw model identifier as the display name, and proceed — do not block the commit on attribution ambiguity. -
Run:
git-agent commit --intent "<intent>" --co-author "<co-author>" -
On auth error (401), retry the same command with
--freeappended; keep the--co-authorflag. -
Fallback (binary unavailable): manual
git commitwith Conventional Commits format via HEREDOC, including aCo-Authored-By: <co-author>trailer in the message body. Prefix the command with theGIT_SKILL_FALLBACK=1marker (e.g.GIT_SKILL_FALLBACK=1 git add -A && git commit -m "$(cat <<'EOF' ...)") — the plugin's PreToolUse hook denies rawgit add/git commitwithout it. -
git push(add-u origin <branch>if upstream not set).
CLI reference: ${CLAUDE_PLUGIN_ROOT}/references/cli.md