Agent Skills
› FradSer/dotclaude
› commit
commit
GitHub利用 git-agent 创建原子化、符合规范语义的 Git 提交。支持自动推导意图、指定协作者及处理预暂存文件,具备认证失败重试和二进制缺失回退机制,简化 AI 辅助代码提交流程。
Trigger Scenarios
用户请求 commit 或 git commit
希望使用 AI 进行原子化提交
Install
npx skills add FradSer/dotclaude --skill commit -g -y
SKILL.md
Frontmatter
{
"name": "commit",
"description": "Creates atomic conventional git commits using git-agent. This skill should be used when the user requests \"commit\", \"git commit\", \"create commit\", or wants to commit changes using AI atomic commits.",
"allowed-tools": [
"Bash(git-agent:*)",
"Bash(git:*)"
],
"argument-hint": "[intent or --co-author]",
"user-invocable": true
}
CRITICAL:
- Do NOT run
git status,git diff,git log, or any other read commands beforegit-agent commit. - Execute
git-agent commitdirectly.git-agent(v0.7.0+) automatically detects active model attribution from session environment variables (PI_MODEL, etc.).
Execution
- Derive a concise one-sentence intent from the conversation or
$ARGUMENTS. - Pass
--co-author "<co-author>"if explicitly specified in$ARGUMENTSor user instructions. - Run primary commit command:
git-agent commit --intent "<intent>" - If specific files are already staged, pass
--no-stage:git-agent commit --no-stage --intent "<intent>" - On auth error (401), retry with
--free:git-agent commit --free --intent "<intent>" - Fallback (if
git-agentbinary is not found): report the error and ask the user to install git-agent or run git commands manually.
CLI Reference: ../../references/cli.md
Deterministic messages: When an exact commit message is required (e.g. version bump
chore: bump version to 0.11.0), pass the full conventional message as the--intentvalue. The intent is used as the commit subject verbatim.
Version History
- 6f2a0b2 Current 2026-08-20 10:58


