command-development

Develop custom Claude Code slash commands with YAML frontmatter and inline Bash.

Updated Nov 3, 2016
One-click install
npx skills add https://github.com/xleliberty/mydotfiles --skill command-development-xleliberty
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: command-development
Source: https://github.com/xleliberty/mydotfiles/tree/main/.config/.claude/plugins/marketplaces/claude-plugins-official/plugins/plugin-dev/skills/command-development
Command: npx skills add https://github.com/xleliberty/mydotfiles --skill command-development-xleliberty

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill resolves the complexity of building, organizing, and maintaining custom slash commands for Claude Code, ensuring your workflows are efficient, reusable, and well-documented.

Core Features & Use Cases

  • Command Structure: Learn the exact Markdown and YAML frontmatter format required for functional commands.
  • Dynamic Workflows: Implement dynamic arguments, file references, and inline Bash execution to create context-aware automation.
  • Use Case: Create a custom /review-pr command that automatically fetches PR details, runs security checks, and formats a report for your team.

Quick Start

Use the command-development skill to help me create a new slash command that reviews my current git branch for security vulnerabilities.

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 for Claude Code?

To create custom slash commands for Claude Code, you define the command structure using Markdown with YAML frontmatter. This format enables reusable automation workflows by specifying dynamic arguments, file references, and inline Bash execution.

How does YAML frontmatter work when building automation workflows?

YAML frontmatter configures automation workflows by defining metadata, dynamic arguments, and execution rules at the top of a Markdown file. This structure allows Claude Code to parse and execute context-aware commands with inline Bash integration.

Can I use inline Bash execution and file references in Claude Code commands?

Yes, you can integrate inline Bash execution and file references directly into Claude Code commands. This enables context-aware automation by allowing the command to fetch system details, run scripts, and process file contents dynamically.

What is the best way to organize and namespace custom Claude Code commands?

The best way to organize custom Claude Code commands is by using namespacing and plugin-specific components. This ensures command discovery is structured, maintainable, and prevents naming conflicts across different automation workflows.

Do I need any dependencies to develop custom slash commands?

No external dependencies are required to develop custom slash commands. The skill provides comprehensive guidance on using standard YAML and Markdown formats to build functional commands within the Claude Code environment.

Why are my custom slash commands not working in Claude Code?

Custom slash commands may not work if the YAML frontmatter or Markdown structure is incorrectly formatted. Ensuring exact syntax for dynamic arguments and inline Bash execution is critical for Claude Code to properly discover and run the command.