command-creator

A guide for creating slash commands for Claude Code plugins. A slash command is a user-typed shortcut that expands into detailed instructions for Claude.

In plain words
What is it for?
Use it when adding a command to a plugin, choosing a command name, writing its YAML header, or defining what the command should ask for and produce.
Why use it?
It helps ensure command files have the required location, naming, frontmatter, arguments, and instructions.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/basher83/agent-auditor/command-creator
Any agent
npx skills add basher83/agent-auditor --skill command-creator
Clone the repo
git clone --depth 1 https://github.com/basher83/agent-auditor

Made for: Claude Code, Codex.

Per session 96 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 935 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00096 $0.00935
Opus 5 $0.00048 $0.00467
Sonnet 5 $0.00019 $0.00187
Haiku 4.5 $0.00010 $0.00093

Measured 2d ago against content hash a272e4dcad16, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

command-creator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/command-creator/SKILL.md · 184 lines

How it starts

The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Command Creator

Overview

Creates slash commands for Claude Code plugins. Commands are user-invoked prompts that expand into detailed instructions for Claude.

When to use: User wants to create a command, add command to plugin, or needs command structure help.

References: See plugins/meta/claude-docs/skills/claude-docs/reference/plugins-reference.md for command specifications.

Command Structure Requirements

Every command MUST:

  1. Be a .md file in commands/ directory
  2. Include frontmatter with description
  3. Contain clear instructions for Claude
  4. Use descriptive kebab-case filename
  5. Instructions written from Claude's perspective

Creation Process

Step 1: Define Command Purpose

Ask the user:

  • What should this command do?
  • What inputs/context does it need?
  • What should Claude produce?

Step 2: Choose Command Name

Create concise kebab-case name:

  • "generate tests" → generate-tests.md
  • "review pr" → review-pr.md
  • "deploy app" → deploy-app.md

Name becomes the command: /generate-tests

Step 3: Write Frontmatter

Required frontmatter:

---
description: Brief description of what command does
---

Step 4: Write Instructions

Write clear instructions for Claude:

# Command Title

Detailed instructions telling Claude exactly what to do when this command is invoked.

## Steps

1. First action Claude should take
2. Second action
3. Final action

## Output Format

Describe how Claude should present results.

## Examples

Show example scenarios if helpful.

Step 5: Verify Against Official Docs

Check plugins/meta/claude-docs/skills/claude-docs/reference/plugins-reference.md for command specifications.

Key Principles

  • Clarity: Instructions must be unambiguous
  • Completeness: Include all steps Claude needs
  • Perspective: Write as if instructing Claude directly
  • Frontmatter: Always include description

Examples

Example 1: Test Generator Command

Read the full file on GitHub · 184 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 184 lines · 96 tokens per session scan A a272e4dcad16

Subscribe to this mod's changes

command-creator is a skill published in the GitHub repository basher83/agent-auditor (5 stars, last pushed 6mo ago), licensed MIT. It adds 96 tokens to every session and 935 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.