Skip to content

agent: create make-command to scaffold new Claude Code commands #11

@p-iknow

Description

@p-iknow

Requirement

What agent rule/command needs to be created/updated:

Create a new /make-command slash command that scaffolds new Claude Code commands following the official guide at https://docs.claude.com/en/docs/claude-code/slash-commands

This command should:

  • Generate new command files in .claude/commands/
  • Include proper frontmatter (description, allowed-tools, argument-hint)
  • Follow the structure and best practices from the official guide
  • Support both interactive and argument-based modes

Implementation Plan

Rule/Command type:
Custom slash command

Trigger conditions:
User executes /make-command [command-name] [description]

Expected behavior:

  1. Prompt for command name if not provided (validate format: lowercase, hyphens)
  2. Prompt for description if not provided
  3. Ask for command configuration:
    • Does it accept arguments? (y/n)
    • If yes, what's the argument hint?
    • What tools does it need? (Bash, Read, Edit, etc.)
  4. Generate the command file with:
    • Proper YAML frontmatter
    • Template structure with Usage, Workflow sections
    • Best practice comments and examples
  5. Create the file at .claude/commands/{command-name}.md
  6. Display success message with next steps

Files to be modified:

  • Create: .claude/commands/make-command.md

Should be tested

  • Rule/command should be tested locally
  • Edge cases should be covered (invalid names, existing files)
  • Documentation should be updated (if applicable)
  • Documentation should reference official guide properly

Reference

Metadata

Metadata

Assignees

Labels

agentAgent rules and commands

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions