Command creator

From softspark/ai-toolkit · View interactive version

Command creator is an AI agent skill from the GitHub repository softspark/ai-toolkit. Creates new Claude Code slash commands with frontmatter and validation. Triggers: new slash command, create command, command scaffold.

How to use this skill

Skill file

Command Creator

$ARGUMENTS

Create a new Claude Code slash command following ai-toolkit conventions.

Workflow

  1. Capture intent -- what should the command do and who invokes it?
  2. Pick scope -- project command, user command, or plugin command?
  3. Define frontmatter -- description, argument hint, allowed tools, model if needed
  4. Write command body -- instructions for Claude, not explanation for the user
  5. Add validation context -- expected output, constraints, follow-up checks
  6. Test and iterate -- invoke the command with representative arguments

Command Locations

In ai-toolkit, command-development guidance belongs in skill form and any reusable command templates should live under app/skills/<skill-name>/templates/ or KB docs.

Frontmatter Template

---
description: "One-line help text shown in /help"
argument-hint: "[target]"
allowed-tools: Read, Grep, Bash
model: sonnet
---

Command Authoring Rules

Minimal Template

---
description: "{Third-person description, min 50 chars, with trigger hint like 'Use when...'}"
argument-hint: "[arguments]"
allowed-tools: Read, Grep, Bash
---

# {Command Title}

$ARGUMENTS

Perform the requested task using this workflow:

1. Gather context from the repository.
2. Ask clarifying questions if critical information is missing.
3. Execute the task using the smallest safe set of changes.
4. Validate the result.
5. Summarize outcome and follow-up actions.

## Example

\`\`\`
/{command} example-argument
\`\`\`

## Rules

- **MUST** {non-negotiable rule}
- **NEVER** {forbidden action}

## Gotchas

- {environment-specific trap — only if the command has one; omit the section otherwise}

## When NOT to Use

- For {adjacent use case} -- use `/{other-command}` instead
- If {precondition} is not met

Follow Anthropic's Gotchas guidance: "concrete corrections to mistakes the agent will make without being told otherwise" — not general advice. Omit the section when no domain traps exist.

Validation Checklist

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.