command-creation

Create production-ready custom slash commands with frontmatter configuration and argument handling.

18|1|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/andisab/swe-marketplace --skill command-creation-andisab
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: command-creation
Source: https://github.com/andisab/swe-marketplace/tree/main/plugins/context-engineering/skills/command-creation
Command: npx skills add https://github.com/andisab/swe-marketplace --skill command-creation-andisab

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps create production-ready custom slash commands that are user-invoked, parametrizable, and frontmatter-driven.

Core Features & Use Cases

  • Frontmatter-driven command metadata (description, argument-hint, allowed-tools, model)
  • Argument handling with $ARGUMENTS and positional parameters
  • File references and Bash execution patterns
  • Clear usage and error-handling guidelines

Quick Start

Create a command like security-review.md with proper frontmatter and content, then invoke via /security-review.

Frequently Asked Questions about command-creation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a custom slash command for Claude Code?

Create a slash command by writing a markdown file with frontmatter metadata (description, argument-hint, allowed-tools, model) followed by the command logic. Frontmatter-driven commands are production-ready, parametrizable, and user-invoked; save as command-name.md and invoke via /command-name.

What syntax and argument handling do custom slash commands support?

Slash commands support argument expansion using $ARGUMENTS and positional parameters, file references, and bash execution patterns. Frontmatter enforces tool restrictions, model selection, and disable-model-invocation controls for secure, robust command definitions.

Can I restrict which tools a slash command can use?

Yes, the allowed-tools frontmatter configuration lets you restrict which tools your slash command can invoke. This enforces security boundaries and prevents unintended tool access during command execution.

How do I pass arguments to a custom slash command?

Define arguments in the argument-hint frontmatter field, then reference them in your command using $ARGUMENTS for full arguments or positional parameters like $1, $2 for individual values. This enables reusable, parametrized command templates.

What frontmatter configuration is required for a slash command?

Required frontmatter includes description, argument-hint, allowed-tools, and model selection. This configuration drives the command metadata, parameter hints, tool access, and model behavior, making commands production-ready and explicit about their constraints.

Do slash commands support file references and bash execution?

Yes, slash commands support file references and bash execution patterns within the command body. Combined with argument expansion and tool restrictions, this enables complex workflows like security reviews or automated analysis across project files.