Craft Command

How to craft a Slash Command trigger.

attac-t Updated 1 repo stars

File contents

Skill: Craft Command

"Thin commands. Fat skills."

The Philosophy

Commands are triggers, not logic containers. If you're writing prose or instructions in a command body, stop. That belongs in a skill.

The Spec

Read first: https://code.claude.com/docs/en/slash-commands

The Pattern

---
description: One-line purpose.
argument-hint: <what user provides>
---

/skills/skill-name "$ARGUMENTS"

Frontmatter Reference

Field Purpose
description Brief purpose (shown in autocomplete)
argument-hint Expected arguments
allowed-tools Restrict tool access
model Override model for this command

Arguments

  • $ARGUMENTS — all arguments as single string
  • $1, $2, etc. — positional access

See Also

  • examples.md — patterns and anti-patterns

attac-t/the-foundry commit ad66b58361

Frequently asked questions

npx get-skill add attac-t/craft-command