AgentSkillsCN

Supervisor Commit

主管提交

SKILL.md

Supervisor: Commit

Create atomic commit when layer complete.

-> Full workflow in PROCESS.md <- Phase 12

When to Use

All workers for a layer have completed successfully.

Given/When/Then/Should

Given all files ready when committing then run checks first should never commit without quality gates passing

Given commit when formatting then reference Beads task IDs should never use vague messages

Steps

  1. Run quality gates (type checking + tests) - must pass
  2. Stage changed files
  3. Create commit with format below
  4. Close Beads tasks
  5. Update IMPL_PLAN progress

Commit Format

code
feat|fix|docs|refactor(scope): Description

Files: file1.go, file2.go
Task: aura-xxx, aura-yyy
Ratified-Plan: <ratified-plan-id>

Co-Authored-By: Claude <noreply@anthropic.com>

Close Beads Tasks

bash
bd close aura-xxx aura-yyy --reason="Committed in <commit-hash>"

Update IMPL_PLAN

bash
bd update <impl-plan-id> --notes="SLICE-N complete: aura-xxx, aura-yyy"

Follow-up Commits

For follow-up slices, add Followup-Epic: to the commit message trailer:

code
feat|fix(scope): Description (follow-up)

Files: file1.go, file2.go
Task: aura-xxx (FOLLOWUP_SLICE-1)
Followup-Epic: aura-yyy
Ratified-Plan: aura-zzz (FOLLOWUP_PROPOSAL-1)

Co-Authored-By: Claude <noreply@anthropic.com>

Commands

bash
git add <files>
git agent-commit -m "..."