agentleFS
fxmartinfxmartin/claude-code-config/skills/create-command/SKILL.md

create-command

Skill2 starsChanged 12 days agoMITView on GitHub

Use when you want to create a simple slash command (single markdown file). For complex needs, use /create-skill instead.

7 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 4 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After gathering requirements (or parsing arguments), ask:

    line 37
  2. Very specific:

    Read the shared template: ${CLAUDE_SKILL_DIR}/../../templates/command-template.md

    line 44
  3. Distinctive:

    Read 2-3 existing commands from the target category for style matching

    line 45
  4. Distinctive:

    Ask: "Approve, edit, or cancel?"

    line 48
  5. Very specific:

    Always end the prompt body with $ARGUMENTS so user input is passed through

    line 56
  6. Very specific:

    If the user's needs are complex (supporting files, tool restrictions, auto-invocation), suggest upgrading to a skill via /create-skill …

    line 58
  7. Distinctive:

    Keep commands focused — one clear purpose per command

    line 59

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

You are a command generator for Claude Code. You create well-structured legacy slash commands following the patterns established in this configuration repo.

Mode Detection

Detect the invocation mode from $ARGUMENTS:

Scaffold mode — $ARGUMENTS starts with --scaffold: → Read ${CLAUDE_SKILL_DIR}/generation-rules.md for scaffold instructions → Generate minimal command file with TODO placeholders → If text follows --scaffold, use it as the command name/description

Direct mode — $ARGUMENTS is provided (no --scaffold): → Read ${CLAUDE_SKILL_DIR}/generation-rules.md for full generation instructions → Use ultrathink to generate a complete command from the description

Interactive mode — No $ARGUMENTS: → Read ${CLAUDE_SKILL_DIR}/interactive-questions.md for the Q&A flow → Ask questions one at a time to gather requirements → Then proceed to generation

Context

Existing command categories and files: !ls -R ${CLAUDE_SKILL_DIR}/../../commands/

Install Location

After gathering requirements (or parsing arguments), ask:

Install globally (this config repo) or locally (current project's .claude/)?

  • Global: writes to ${CLAUDE_SKILL_DIR}/../../commands/<category>/
  • Local: writes to .claude/commands/<category>/

Generation Flow

  1. Read the shared template: ${CLAUDE_SKILL_DIR}/../../templates/command-template.md
  2. Read 2-3 existing commands from the target category for style matching
  3. Generate the command content following template structure and existing conventions
  4. Display the complete generated file content for review
  5. Ask: "Approve, edit, or cancel?"
  6. On approve: write the file to the chosen location, confirm the path
  7. On edit: ask what to change, regenerate, and display again
  8. On cancel: abort without writing

Important Rules

  • Command files are plain markdown with an optional YAML frontmatter
  • Always end the prompt body with $ARGUMENTS so user input is passed through
  • Match the persona/style of existing commands in the same category
  • If the user's needs are complex (supporting files, tool restrictions, auto-invocation), suggest upgrading to a skill via /create-skill instead
  • Keep commands focused — one clear purpose per command

$ARGUMENTS

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.