command-creator

Create, validate, and debug Claude Code slash commands with YAML frontmatter and argument parsing.

1|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/hjemmesidekongen/ai --skill command-creator-hjemmesidekongen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: command-creator
Source: https://github.com/hjemmesidekongen/ai/tree/main/plugins/kronen/skills/command-creator
Command: npx skills add https://github.com/hjemmesidekongen/ai --skill command-creator-hjemmesidekongen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation, modification, and debugging of Claude Code slash commands, ensuring they are correctly formatted, functional, and discoverable.

Core Features & Use Cases

  • Command Creation: Generate new slash commands with proper YAML frontmatter, argument definitions, and file references.
  • Debugging & Validation: Identify and fix issues with existing commands, such as incorrect frontmatter, argument resolution problems, or visibility issues in /help.
  • Use Case: You need to add a new command to your plugin that takes a file path as an argument and reads its content. This Skill will help you define the command's frontmatter, argument hint, and ensure the file reference (@$1) works correctly.

Quick Start

Use the command-creator skill to create a new slash command for your plugin that accepts a file path and prints its content.

Frequently Asked Questions about command-creator

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

FAQPage Schema
How do I create a Claude Code slash command that accepts file arguments?

To create a Claude Code slash command, you need to define proper YAML frontmatter and argument hints. This ensures the command correctly parses positional arguments like file paths and references them using syntax such as @$1.

Why is my custom slash command not showing up in the help menu?

Your custom slash command might not be visible in /help due to incorrect frontmatter or validation errors. Debugging the command's YAML structure and ensuring proper formatting will resolve visibility issues.

What is the best way to fix broken Claude commands with argument resolution problems?

The best way to fix broken Claude commands is to validate their YAML frontmatter and argument parsing logic. Identifying and correcting incorrect frontmatter ensures that positional arguments and file references resolve properly during execution.

Can I add new slash commands to an existing Claude plugin?

Yes, you can add new slash commands to any existing Claude plugin. The process involves generating the command with correct frontmatter, defining argument hints, and ensuring bash execution or file referencing works within the plugin structure.

How does argument parsing work for file references in Claude slash commands?

Argument parsing for file references in Claude slash commands works by defining positional arguments in the frontmatter. You can then use syntax like @$1 to automatically read and reference the content of the file path passed as an argument.