[BUG] claude -p "/rename foo" errors with "Unknown skill: rename"

Resolved 💬 3 comments Opened Mar 30, 2026 by ColinKennedy Closed May 2, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

I wanted to programmatically initialize and rename the claude session but it didn't work. It errors with "Unknown skill: rename"

What Should Happen?

Claude should call rename and then exit, as it does with other -p examples.

Error Messages/Logs

Unknown skill: rename

Steps to Reproduce

  1. Run claude -p "/rename foo"
  2. The error will show
  3. (There are no other steps)

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

(Claude Code)

  • 2.1.50
  • 2.1.87

Platform

Other

Operating System

Ubuntu/Debian Linux

Terminal/Shell

WSL (Windows Subsystem for Linux)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗