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

Resolved 💬 2 comments Opened Feb 23, 2026 by ColinKennedy Closed Mar 23, 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

claude -p "/rename foo"`

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.50 (Claude Code)

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 2 comments on GitHub. Read the full discussion on GitHub ↗