create-command

create-command is a command for Claude Code from basher83/lunar-claude. It costs 5 tokens per session (569 once invoked), scanned A, original, MIT.

A command-building assistant for creating a new slash command, which is a named instruction users run inside Claude Code.

In plain words
What is it for?
Use it to define command arguments, references, allowed tools, and where the command should live.
Why use it?
It helps turn a command idea into a correctly structured file that follows the project’s command rules.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the plugin-dev plugin — 7 skills, 5 commands, 3 agents shipped together

Good fit Use it to define command arguments, references, allowed tools, and where the…

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add basher83/lunar-claude
Claude Code
/plugin install plugin-dev

Made for: Claude Code.

Or install plugin-dev, the plugin that ships this one along with the rest of its 7 skills, 5 commands, 3 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for create-command

README.md
[![agentmods](https://agentmods.dev/badge/commands/basher83/lunar-claude/create-command.svg)](https://agentmods.dev/commands/basher83/lunar-claude/create-command)
Your own site
<a href="https://agentmods.dev/commands/basher83/lunar-claude/create-command"><img src="https://agentmods.dev/badge/commands/basher83/lunar-claude/create-command.svg" alt="Measured on agentmods" height="20"></a>
Per session 5 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 569 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00005 $0.00569
Opus 5 $0.00003 $0.00284
Sonnet 5 $0.00001 $0.00114
Haiku 4.5 $0.00001 $0.00057

Measured 3d ago against content hash 38e7b4ee2cfe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

create-command 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 3d 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.

plugins/meta/plugin-dev/commands/create-command.md · 106 lines

How it starts

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

Create Slash Command

Phase 1: Skill Requirements Extraction (BLOCKING)

Read these files NOW before proceeding:

  1. ${CLAUDE_PLUGIN_ROOT}/skills/command-development/SKILL.md
  2. ${CLAUDE_PLUGIN_ROOT}/skills/command-development/references/testing-strategies.md

After reading, output a Requirements Summary with these exact sections:

Frontmatter Fields

Field Purpose Valid Values
[extract each field from skill]

Argument Syntax Rules

  • $ARGUMENTS: [when/how to use]
  • Positional ($1, $2): [when/how to use]
  • argument-hint: [format requirement]

File Reference Syntax

  • @ syntax: [correct usage]
  • Static vs dynamic: [difference]

Bash Execution Syntax

  • Inline execution syntax: [exact format from skill]
  • allowed-tools requirement: [pattern]

Command Location Rules

  • Project commands: [path]
  • Personal commands: [path]
  • Plugin commands: [path]

Anti-Patterns (from "Critical: Commands are Instructions FOR Claude")

  • Incorrect approach: [what to avoid]
  • Correct approach: [what to do]

Do not proceed until this summary is complete with skill-specific content.


Phase 2: Command Specification

Command name: Purpose: Location: [project/personal/plugin] Arguments (if any): Tools needed (if any): File references (if any):


Phase 3: Implementation

Create the command file applying ALL requirements from Phase 1.


Phase 4: Testing Plan (from testing-strategies.md)

Generate a testing checklist for this specific command:

Level 1-2: Structural Validation

# [generate validation commands for this command]

Level 4: Argument Testing

Test Case Command Expected
[generate test matrix for this command's arguments]

Edge Cases

  • [list 3-5 edge cases specific to this command]

Phase 5: Self-Verification

Skill Requirement Implemented? Evidence
Instructions written FOR Claude (not TO user)
description < 60 chars
argument-hint matches actual arguments
allowed-tools if bash used
@ syntax correct for file refs
Single responsibility

Read the full file on GitHub · 106 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. 3d ago First seen · 106 lines · 5 tokens per session scan A 38e7b4ee2cfe

Subscribe to this mod's changes

create-command is a command published in the GitHub repository basher83/lunar-claude (22 stars, last pushed today), licensed MIT. It adds 5 tokens to every session and 569 once invoked, about $0.0000 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-09-03.