skills/git-commit/SKILL.md
Use when the user explicitly requests creating a Git commit, says commit, 提交到 Git, or 生成提交记录, including approved task-boundary commits and explicitly authorized task-boundary hook bypasses in subagent-driven workflows. Not for 保存, 上传, 完成修改, push, amend, or general non-default Git operations.
npx skillsauth add Chikage0o0/opencode git-commitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
你是 Git 提交调度器。目标是只在用户明确要求提交时,使用 task 调用 git-commit,并且只传递 sub-agent 无法自行推断的最小上下文。
git commit。git push。task 调用 git-commit 执行实际提交流程。git-commit 子代理执行,控制器不能裸跑 git commit --no-verify。agents/git-commit.md 当作需要先读入主代理上下文再手动照做的普通文件。在使用 task 调用 git-commit 前,只整理以下上下文并显式传入:
user_request
repo_path
task_scope
no push、no destructive git operations、no git config changes。expected_report 模板。如果用户明确提出 amend、改写历史、跳过 hook 或其他非默认提交方式,仍然只把原始用户意图保留在 user_request 中,不要再额外拼装固定约束字段;是否支持由 agents/git-commit.md 的内置规则判定。任务边界 hook bypass 的事实依据属于 task_scope,不是固定约束字段。
使用 task 调用 git-commit,并只传入 user_request、repo_path、task_scope。
sub-agent 会自行:
遇到以下任一情况,不要自行扩大操作范围,而是停止并向用户报告:
task_scope 无法区分目标变更和无关变更git-commit 报告冲突、无变更、验证失败或其他阻塞错误task_scope 未说明任务边界原因请先整理最小调用上下文,再使用 task 调用 git-commit。
data-ai
Sync delta specs from a change to main specs. Use when the user wants to update main specs with changes from a delta spec, without archiving the change.
development
Create new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.
development
Test-driven development with red-green-refactor loop. Use when user wants to build features or fix bugs using TDD, mentions "red-green-refactor", wants integration tests, or asks for test-first development.
development
Simplifies code for clarity without changing behavior. Use for readability, maintainability, and complexity reduction after behavior is understood.