Skip to content

Skill named code-review collides with Claude Code's built-in /code-review command #18

Description

@tylerlaprade

Summary

This plugin's skills/code-review/SKILL.md declares name: code-review, which is identical to the name of Claude Code's built-in /code-review command (shipped in the CLI itself). The result is a slash-command collision that makes the built-in command unreachable while this plugin is installed.

Why it happens

Claude Code namespaces plugin commands as /<plugin>:<command> (this plugin's coderabbit-review correctly appears as /coderabbit:coderabbit-review). But plugin skills register their slash command under their bare frontmatter name. So the code-review skill registers /code-review with no namespace, directly shadowing the first-party command of the same name.

Symptoms

Typing /code-review shows two identical /code-review rows in the picker:

  • /code-reviewReview the current diff for correctness bugs and reuse/simplification/efficiency cleanups… (built-in)
  • /code-review(coderabbit) AI-powered code review using CodeRabbit. Default code-review skill…

Both rows insert the same text /code-review, and resolution lands on the CodeRabbit skill. Selecting the built-in row runs CodeRabbit anyway — there is no way to reach the built-in /code-review while this plugin is installed.

Suggested fix

Rename the skill so it doesn't squat the first-party command name — e.g. name: coderabbit-code-review (consistent with this plugin's existing coderabbit-review command), renaming the skills/code-review/ directory to match. It would then be available as /coderabbit:coderabbit-code-review without shadowing the built-in.

Environment

  • coderabbit plugin: 1.1.1 (claude-plugins-official marketplace)
  • Claude Code: 2.1.159 (macOS)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions