Create Slash Commands
Expert guide for writing Claude Code slash commands with XML structure, YAML frontmatter, and argument handling.
- CCM score
- 60 of 100
- skills.sh installs
- 169
- GitHub stars
- 2K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers command file locations, naming, and invocation as
/command-name, for both project and personal scopes - Includes required XML tags (
<objective>,<process>,<success_criteria>) plus conditional tags for context, verification, testing, and output - Explains YAML frontmatter fields such as
description,argument-hint, andallowed-tools, with$ARGUMENTSand positional$1/$2patterns - Designed for authors creating reusable team or personal prompt commands that load dynamic state with bash and file references
Install
$ npx -y skills add glittercowboy/taches-cc-resources --skill create-slash-commands -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
<quick_start>
1. Create `.claude/commands/` directory (project) or use `~/.claude/commands/` (personal) 2. Create `command-name.md` file 3. Add YAML frontmatter (at minimum: `description`) 4. Write command prompt 5. Test with `/command-name [args]` **File**: `.claude/commands/optimize.md`---
description: Analyze this code for performance issues and suggest optimizations
---
Analyze the performance of this code and suggest three specific optimizations:
Usage: /optimize
Claude receives the expanded prompt and analyzes the code in context. </quick_start>
<xml_structure> All generated slash commands should use XML tags in the body (after YAML frontmatter) for clarity and consistency.
<required_tags>
Details
- Repository
- github.com/glittercowboy/taches-cc-resources
- Categories
- Skill & Plugin Building, Technical Documentation
- First seen
- Jun 3, 2026
Questions
What does the create-slash-commands skill do?
The create-slash-commands skill gives expert guidance for building Claude Code slash commands, the reusable prompts triggered with /command-name syntax. It teaches the XML tag structure, YAML frontmatter, dynamic context loading and argument handling a command needs.
How do I install the create-slash-commands skill?
Run npx -y skills add glittercowboy/taches-cc-resources --skill create-slash-commands -y in a project. Once installed, the agent can help you write new slash commands that follow the recommended structure.
Which skills lead the Skill & Plugin Building category?
create-slash-commands sits in the Skill & Plugin Building category, alongside find-skills, writing-for-agents, lark-skill-maker, skill-creator and discover-azure-skills. This skill focuses narrowly on command structure, so it suits projects that need custom slash commands rather than general skill authoring.
Where do slash commands created with this skill get saved?
Project commands go in .claude/commands/ and are shared with the team through version control. Personal commands go in ~/.claude/commands/ and are available across all your projects.
More from glittercowboy/taches-cc-resources
All 6Similar to Create Slash Commands
More Skill & Plugin Buildingcommand-developmentSkillanthropics/claude-plugins-official8.3K installsGuide for writing Claude Code slash commands, with frontmatter fields, dynamic arguments, and file references.
slash-commandsSkillparcadei/continuous-claude-v3493 installsReference guide for creating Claude Code slash commands with arguments, bash execution, and file references.
command-creatorSkillsoftaworks/agent-toolkit4.1K installsGuided creation of Claude Code slash commands with auto-detected file location, pattern selection, and agent-executable templates.
create-commandSkillneolabhq/context-engineering-kit1.3K installsInteractive assistant that creates new Claude commands with proper frontmatter, category patterns, and MCP tool usage.
create-subagentsSkillglittercowboy/taches-cc-resources271 installsExpert guide for creating Claude Code subagents, writing their system prompts, and using the Task tool.
authoringPluginCaptainCrouton89/crouton-kit25 starsGuides for authoring Claude Code artifacts — CLAUDE.md, hooks, rules, skills, commands, and scripts