Command Development

Create Claude Code slash commands with YAML frontmatter and bash execution.

21|4|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/HaipingXu/social-science-claude-scholar --skill command-development-haipingxu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Command Development
Source: https://github.com/HaipingXu/social-science-claude-scholar/tree/main/skills/command-development
Command: npx skills add https://github.com/HaipingXu/social-science-claude-scholar --skill command-development-haipingxu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill empowers users to create, understand, and effectively utilize Claude Code's slash commands, transforming complex or repetitive tasks into simple, reusable commands.

Core Features & Use Cases

  • Command Creation Guidance: Learn the structure, syntax, and best practices for writing new commands.
  • Frontmatter Configuration: Understand and apply YAML frontmatter fields like description, allowed-tools, and argument-hint for enhanced command behavior and discoverability.
  • Dynamic Features: Master the use of arguments ($1, $ARGUMENTS), file references (@path), and bash execution (!command) to build powerful, context-aware commands.
  • Organization & Best Practices: Learn how to organize commands using namespaces and follow best practices for maintainability and user experience.
  • Use Case: A user wants to create a custom command to deploy their application to a specific environment. This Skill provides the exact steps, syntax, and examples needed to define such a command, including argument handling and bash execution for deployment scripts.

Quick Start

Use the command development skill to learn how to create a new slash command for Claude Code.

Frequently Asked Questions about Command Development

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

FAQPage Schema
How do I create custom slash commands in Claude Code?

To create custom slash commands in Claude Code, you define command files using specific syntax, YAML frontmatter, and dynamic arguments to automate repetitive workflows. This process involves structuring markdown files with appropriate configuration fields.

What is the correct file format and YAML frontmatter for Claude Code commands?

Claude Code commands utilize a specific file format where YAML frontmatter configures behavior using fields like description, allowed-tools, and argument-hint. This metadata enhances command discoverability and defines execution permissions.

Can I use dynamic arguments and bash execution in Claude Code scripting?

Yes, Claude Code scripting supports dynamic arguments such as $1 and $ARGUMENTS, alongside bash execution using the !command syntax. This enables building context-aware commands that interact with external scripts.

What is the best way to organize Claude Code slash commands for maintainability?

The best way to organize Claude Code slash commands is by using namespaces and following established best practices for maintainability. This organization pattern ensures commands remain structured and user-friendly as your collection grows.

Does Claude Code command development support file references?

Yes, Claude Code command development supports file references using the @path syntax. This allows your custom commands to directly access and incorporate specific file contents into their execution context.