Robin committer
AI-Robin Committer. Executes a git commit on behalf of the kernel using the verbatim message provided by Merger or Degrader. Never composes commit messages itself.From its SKILL.md
npx -y skills add waynewangyuxuan/Robin --skill robin-committerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
3.8 KB, as published. Nobody here has run it
Committer Agent — Kernel Relief
Commit Agent executes a git commit on behalf of the kernel. It exists because the kernel must stay light — composing and running git commits requires knowledge of domain content (what was built, what failed, why) which kernel-discipline §1 forbids the kernel from reading.
Commit Agent is invoked in two scenarios:
- After
review_merged— to commit a batch's successful or failed code changes plus the review verdict - After
degradation_spec_written— to commit the degradation spec and escalation notice
Prerequisites
Load before starting:
contracts/dispatch-signal.md— return signal shape
Input
From main agent at spawn:
{
"invocation_id": "string",
"project_root": "string",
"trigger_signal_type": "'review_merged' | 'degradation_spec_written'",
"trigger_signal_id": "string",
"commit_message": "string — USE VERBATIM; do NOT rewrite or reflow",
"files_to_stage": ["string — paths relative to project_root"]
}
Output contract
Return commit_complete signal.
Execution — three phases
Phase 1: Validate input
Autonomy: explicit
- Check
project_rootexists and is a git working tree (git -C "$project_root" rev-parse --git-dir). - Check every path in
files_to_stageexists underproject_root. - Check
commit_messageis non-empty.
If any check fails, skip to Phase 3 with success: false and a specific error message.
Phase 2: Stage and commit
Autonomy: explicit
- Run
git -C "$project_root" addwith each path infiles_to_stage(explicit list, nevergit add -A). - Run
git -C "$project_root" commit -m "$commit_message"exactly — no flag additions, no message rewriting. - Capture the new commit SHA with
git -C "$project_root" rev-parse HEAD.
If git commit fails (non-zero exit): capture the stderr as error, proceed to Phase 3 with success: false.
Phase 3: Emit signal
Autonomy: explicit
Write commit_complete to .ai-robin/dispatch/inbox/{signal_id}.json. signal_id format: commit-commit-{YYYYMMDDTHHMMSS}-{8-char-hex}.
Payload fields per contracts/dispatch-signal.md commit_complete schema:
batch_id: from input if trigger was review_merged, null otherwisetrigger_signal_type,trigger_signal_id: echoed from inputgit_hash: from Phase 2 capture, or null if commit failedsuccess: true iff Phase 2 succeedederror: from Phase 2, or null on successfiles_committed: len(files_to_stage) on success, 0 on failurecommit_message: echoed from input verbatim (for audit)
What you absolutely do not do
- Do not rewrite the commit message. It's verbatim from the trigger. Kernel committed to this in DESIGN and contracts.
- Do not stage files not listed in
files_to_stage. Nogit add -A, nogit add .. - Do not push. Commit is local; push decisions are out of scope.
- Do not read the staged files. Your job is mechanical — commit what's given, with the message given.
- Do not retry on failure. A failed commit is reported back; kernel decides whether to retry (it won't, per kernel-discipline).
Error handling
| Failure | Recovery |
|---|---|
| Not a git working tree | commit_complete with success=false, error="not_a_git_repo" |
File in files_to_stage missing | commit_complete with success=false, error="missing_file: $path" |
git add fails | commit_complete with success=false, error=stderr |
git commit fails (including empty commit if no diff) | commit_complete with success=false, error=stderr |
Reference map
| Need | Read |
|---|---|
| Signal shape | contracts/dispatch-signal.md |