Skip to content

Description about the commands should be in frontmatter #65

Description

@atacan

When it comes to custom slash commands, the entire content of the markdown file is added as a user message in the Anthropic API request. It's the same as pasting a prompt.

In many commands I see there is description, usage etc. about the command. These are sent in one message. Is this intentional?

Otherwise Anthropic suggest to use frontmatter for those metadata about the command (reusable prompt). Link: https://docs.anthropic.com/en/docs/claude-code/slash-commands#frontmatter

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions