Skip to content

Extend /pre-commit with CodeRabbit review and clean up /pre-release #554

@nanotaboada

Description

@nanotaboada

Problem

/pre-commit has no automated code review step. Separately, /pre-release Phase 3 currently gates on CodeRabbit as a manual confirmation item — now that the review moves to the commit flow, that reference is redundant.

Proposed Solution

  1. Rename .claude/commands/precommit.md to .claude/commands/pre-commit.md and .claude/commands/prerelease.md to .claude/commands/pre-release.md.

  2. Add a CodeRabbit review step to .claude/commands/pre-commit.md after all checks pass: run coderabbit review --type uncommitted --prompt-only.

    • If actionable/serious findings are reported, stop and address them before proposing the commit.
    • If only nitpick-level findings, report them and continue to the commit proposal.
    • Skip gracefully with a note if the CodeRabbit CLI is not installed.
  3. Update the internal /pre-commit reference inside .claude/commands/pre-release.md (Phase 2).

  4. Remove the CodeRabbit confirmation item from Phase 3 of .claude/commands/pre-release.md. By the time a release is being tagged, all commits have already passed the /pre-commit review gate.

Acceptance Criteria

  • Both command files renamed to use hyphenated convention
  • /pre-commit runs coderabbit review --type uncommitted --prompt-only after checks pass; blocks on serious findings, continues on nitpicks
  • /pre-release Phase 3 no longer references CodeRabbit as a manual gate
  • /pre-release Phase 2 references /pre-commit by its new name

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions