Skip to content

Undocumented skill: frontmatter field in commands - does command-to-skill delegation exist? #27570

@nathanvale

Description

@nathanvale

Summary

Several community examples and skill templates use a skill: frontmatter field in command files (.claude/commands/*.md) to delegate execution to a named skill. This field is not documented and does not appear in the official frontmatter field list.

Example

# .claude/commands/dojo.md
---
description: Query the Agentic Dojo for pattern knowledge
argument-hint: "e.g. 'explain wave computation'"
model: sonnet
skill: agentic-dojo
---

$ARGUMENTS

The assumption is that skill: agentic-dojo would delegate execution to .claude/skills/agentic-dojo/SKILL.md.

Questions

  1. Does skill: exist as a frontmatter field? It's not in the documented list (name, description, argument-hint, disable-model-invocation, user-invocable, allowed-tools, model, context, agent, hooks).

  2. Is command-to-skill delegation a supported pattern? The docs state "Custom slash commands have been merged into skills" -- meaning a command file IS a skill. If there's no delegation mechanism, the correct approach is to put all logic directly in the SKILL.md and use name: to control the slash command name.

  3. If skill: is not supported, what's the recommended pattern for a thin wrapper that invokes a richer skill? Current workaround: just use the skill directly with name: dojo in SKILL.md frontmatter to get /dojo.

Documented Frontmatter Fields

From https://code.claude.com/docs/en/skills:

  • name, description, argument-hint, disable-model-invocation, user-invocable, allowed-tools, model, context, agent, hooks

skill: is not in this list.

Environment

  • Claude Code CLI
  • macOS Tahoe 26.2
  • 2026-02-22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions