Skip to content

Allow CLI to use skills as first token in prompt - Remove "Unrecognized command" #17796

Closed as not planned

Description

@banagale

What version of Codex CLI is running?

codex-cli 0.120.0

What subscription do you have?

Pro

Which model were you using?

No response

What platform is your computer?

No response

What terminal emulator and version are you using (if applicable)?

No response

What issue are you seeing?

If you start a message to codex with a valid command i.e. /babysit-pr it fails with "Unrecognized command"

So you have to add a token in front like, "use" when really that should not be necessary.

Sometimes, I specifically want to start a sentence with a skill like,/test this new feature, which is like a rather large verb behind that but the AI will absolutely get it once it processes the skill.

However, this is not allowed...for seemingly historical reasons when commands and skills had to be treated 100% differently.

What steps can reproduce the bug?

Create a valid skill, invoke it in the middle of a sentence. Do it again at the start. it fails.

What is the expected behavior?

It simply processes the skill as it otherwise would.

Additional information

No response

Activity

  1. added
    bug
    on Apr 14, 2026
  2. added
    enhancement
    CLI
    skills
    on Apr 14, 2026
  3. etraut-openai commented on Apr 14, 2026

    @etraut-openai
    Contributor

    Use $ to specify a skill, not /. We previously supported a feature called "custom prompts", and those could be invoked using /. Those were deprecated and removed because skills provide a superset of the functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIbugenhancementskills

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions