fix(skills): rename code-review skill to coderabbit-review to stop shadowing Claude Code's built-in /code-review#19
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
🔗 Linked repositories identifiedCodeRabbit considers these linked repositories for cross-repo context during reviews:
✅ Files skipped from review due to trivial changes (3)
📜 Recent review details
|
| Layer / File(s) | Summary |
|---|---|
Skill metadata, docs, and changelog update skills/coderabbit-review/SKILL.md, README.md, CHANGELOG.md |
Frontmatter name updates to coderabbit-review with a version bump to 0.1.1; the README skill listing and Claude Code section reference the new name and path; the changelog adds the rename note under Unreleased → Fixed. |
Estimated code review effort
🎯 1 (Trivial) | ⏱️ ~2 minutes
Poem
🐰 I hopped through the changelog, neat and bright,
Renamed the skill and set the docs aright.
One little bump, one tidy new refrain,
coderabbit-reviewnow sings in the lane.
🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
| Check name | Status | Explanation |
|---|---|---|
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title clearly and accurately describes the main change: renaming the skill to avoid shadowing Claude Code’s built-in command. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create PR with unit tests
✨ Simplify code
- Create PR with simplified code
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
The code-review skill registers a bare /code-review slash command (via its frontmatter name), which shadows Claude Code's built-in /code-review and makes it unreachable. Renaming to coderabbit-review is collision-free on both the 'npx skills add' (bare) and Claude Code plugin (/coderabbit:) install paths, and mirrors the existing /coderabbit:coderabbit-review command. Upstream cause: anthropics/claude-code#22063 (name bypasses plugin namespacing). Closes coderabbitai#18.
a34fbb2 to
f39a53b
Compare
|
Rebased onto latest |
The problem
Installing the
code-reviewskill in Claude Code breaks Claude Code's own built-in/code-reviewcommand. The skill registers its slash command from thename:field, soname: code-reviewclaims the global/code-reviewand silently shadows the built-in — it just becomes unreachable, with no warning. Reported in #18, and a second user hit it too.Why it happens
A skill's
name:is meant to register under the plugin namespace (/coderabbit:code-review), but a current Claude Code regression makesname:bypass the namespace and grab the bare global name (upstream: anthropics/claude-code#22063). And on thenpx skills addpath the skill installs with no namespace at all, so it's/code-revieweither way.The fix
Rename the skill
code-review→coderabbit-review(name:+ directory). This is collision-free on both install paths —/coderabbit-review(skills package) and/coderabbit:coderabbit-review(plugin) — mirrors the existing/coderabbit:coderabbit-reviewcommand, and stays correct once #22063 is fixed upstream. Kept thename:field, since every skill here has one (e.g.autofix).Changes
skills/code-review/→skills/coderabbit-review/(name:+ version bump)Natural-language triggers ("review my code") are unchanged — only the explicit slash command moves from
/code-reviewto/coderabbit-review.Closes #18.
Summary by CodeRabbit
Bug Fixes
code-reviewskill tocoderabbit-reviewto avoid conflict with the built-in/code-reviewcommandDocumentation
0.1.1)