Runs CodeRabbit review on staged changes, then commits if approved.
Flow
Check for staged changes
Run CodeRabbit review (cr review --plain for headless/Claude compatibility)
Show review results
If review passes → prompt for commit message → commit
If review fails → show issues → ask user if they want to proceed anyway
Usage
# Stage your changes first
git add <files>
# Standard commit
/commit
# Ralph mode — atomic commit + mark story criterion
/commit --story=US-106 --message="feat: US-106 description"
What This Skill Does
When invoked, Claude will:
Check staged changes: Run git diff --staged --stat to show what's staged
Run CodeRabbit: Execute cr review --plain (headless mode, works from Claude)
Evaluate results:
If CR passes (no critical issues): proceed to commit
If CR fails: show issues and ask user for decision
Commit: Generate commit message based on changes, commit with co-author
Ralph Mode (Story Commits)
When --story is provided, this skill does atomic commit + criterion marking:
Stages files (specified or auto-detected)
Commits (pre-commit hook runs all tests)
If commit succeeds → marks the commit criterion as checked in story JSON
If commit fails → neither happens, reports failure
Ralph Mode Flags
Flag
Description
--story=ID
Story ID (e.g., US-106, BUG-028) — triggers Ralph mode
--message=MSG
Commit message (required in Ralph mode)
--files=PATHS
Files to stage (default: prd-json/ + modified files)
--dry-run
Show what would happen without doing it
Why Ralph Mode Exists
Atomic: Either both happen (commit + check) or neither
No double-testing: Uses pre-commit hook, doesn't run tests twice
Clean failure: If tests fail, criterion stays unchecked for retry
Requirements
cr CLI installed (CodeRabbit)
Changes staged with git add
After Committing
Committing is ONE step in the full workflow. After commit:
Push → git push -u origin <branch>
PR + Review + Merge → /pr-loop (the full loop)
Do NOT stop at commit. The mission is MERGED, not committed.
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: etanhey-golems-commit3description: Commit with Code Review4---56# Commit with Code Review78Runs CodeRabbit review on staged changes, then commits if approved.910## Flow11121. Check for staged changes132. Run CodeRabbit review (`cr review --plain` for headless/Claude compatibility)143. Show review results154. If review passes → prompt for commit message → commit165. If review fails → show issues → ask user if they want to proceed anyway1718## Usage1920```bash21# Stage your changes first22git add <files>2324# Standard commit25/commit2627# Ralph mode — atomic commit + mark story criterion28/commit --story=US-106 --message="feat: US-106 description"29```3031## What This Skill Does3233When invoked, Claude will:34351. **Check staged changes**: Run `git diff --staged --stat` to show what's staged362. **Run CodeRabbit**: Execute `cr review --plain` (headless mode, works from Claude)373. **Evaluate results**:38 - If CR passes (no critical issues): proceed to commit39 - If CR fails: show issues and ask user for decision404. **Commit**: Generate commit message based on changes, commit with co-author4142## Ralph Mode (Story Commits)4344When `--story` is provided, this skill does atomic commit + criterion marking:45461. **Stages files** (specified or auto-detected)472. **Commits** (pre-commit hook runs all tests)483. **If commit succeeds** → marks the commit criterion as checked in story JSON494. **If commit fails** → neither happens, reports failure5051### Ralph Mode Flags5253| Flag | Description |54|------|-------------|55| `--story=ID` | Story ID (e.g., US-106, BUG-028) — triggers Ralph mode |56| `--message=MSG` | Commit message (required in Ralph mode) |57| `--files=PATHS` | Files to stage (default: prd-json/ + modified files) |58| `--dry-run` | Show what would happen without doing it |5960### Why Ralph Mode Exists6162- **Atomic**: Either both happen (commit + check) or neither63- **No double-testing**: Uses pre-commit hook, doesn't run tests twice64- **Clean failure**: If tests fail, criterion stays unchecked for retry6566## Requirements6768- `cr` CLI installed (CodeRabbit)69- Changes staged with `git add`7071## After Committing7273Committing is ONE step in the full workflow. After commit:741. **Push** → `git push -u origin <branch>`752. **PR + Review + Merge** → `/pr-loop` (the full loop)7677**Do NOT stop at commit.** The mission is MERGED, not committed.7879---80> Converted and distributed by [TomeVault](https://tomevault.io/claim/etanhey) — claim your Tome and manage your conversions.81<!-- tomevault:4.0:skill_md:2026-04-14 -->
Run npx skillmds@latest add tomevault-io/etanhey-golems-commit in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Commit with Code Review It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.