Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

plugin-slash-command

БесплатноЗапускает вложенные скриптыНе проверен

Generate new Navigator slash commands following project conventions. Use when user says "add slash command", "create command", "new /nav command", or "add…

qf-studioот qf-studio★ 358 звёзд на GitHub17 установок в других каталогах

Об этом скилле

Navigator Slash Command Generator

Generate new slash commands for the Navigator plugin following established conventions and patterns.

When to Invoke

Auto-invoke when user says:

  • "Add a slash command for..."
  • "Create a new /nav:[name] command"
  • "Generate slash command..."
  • "Add /nav:[feature] command"
  • "New Navigator command for..."

What This Does

  1. Asks for command details (name, purpose, complexity)
  2. Analyzes existing commands for pattern matching
  3. Generates command markdown file with proper structure
  4. Validates YAML frontmatter and formatting
  5. Shows usage example

Execution Steps

Step 1: Gather Command Requirements

Ask user:

  • Command name (kebab-case, without /nav: prefix)
    • Example: "marker", "compact", "update-doc"
  • Command purpose (one sentence description)
    • Example: "Create context markers to save conversation state"
  • Command complexity:
    • Simple: Single action, minimal steps (e.g., marker)
    • Medium: Multiple steps, some logic (e.g., compact)
    • Complex: Multi-phase execution, integrations (e.g., init, start)
  • User-facing or internal?
    • User-facing: Part of standard Navigator workflow
    • Internal: For plugin development/maintenance

Step 2: Analyze Similar Commands

Use Task agent to find similar commands:

"Find existing Navigator commands similar to [purpose]:
 - Commands in commands/*.md
 - Similar complexity level
 - Common structure patterns
 - Return 2-3 best examples"

What to extract from examples:

  • Section structure (What This Does, When to Use, etc.)
  • Tone and style (conversational, 2nd person)
  • Emoji usage patterns
  • Example format
  • Troubleshooting patterns

Step 3: Design Command Structure

Based on complexity level:

Simple commands:

- YAML frontmatter (description)
- Title
- What This Does (2-3 sentences)
- Usage (basic syntax + examples)
- When to Use (2-3 scenarios)
- Expected Output
- Troubleshooting (2-3 common issues)
- Closing statement

Medium commands:

- YAML frontmatter
- Title + overview
- What This Does (detailed explanation)
- When to Use (5-6 scenarios with examples)
- Usage / Execution Steps
- Output Format
- Integration notes (if applicable)
- Troubleshooting (4-5 issues)
- Best Practices
- Closing statement

Complex commands:

- YAML frontmatter
- Title + comprehensive overview
- What This Does (with comparisons)
- Execution Plan (multi-step)
- Pre-flight checks
- Step-by-step implementation
- Validation steps
- Integration with PM tools (if applicable)
- Success criteria
- Troubleshooting (comprehensive)
- Edge cases
- Performance notes
- Closing statement

Step 4: Generate Command File

Use predefined function: functions/command_generator.py

# Generates command markdown following Navigator conventions
generate_command(
    name="[command-name]",
    description="[one-line purpose]",
    complexity="simple|medium|complex",
    sections={
        "what_this_does": "...",
        "when_to_use": [...],
        "usage": "...",
        "execution_steps": [...],
        "troubleshooting": [...]
    }
)

File location: commands/[command-name].md

Structure:

  1. YAML frontmatter with description
  2. Title (# Command Name - Navigator Context)
  3. Overview paragraph (what user is doing)
  4. Content sections (based on complexity)
  5. Closing statement (emoji + key takeaway)

Step 5: Validate Generated Command

Use predefined function: functions/command_validator.py

Checks:

  • YAML frontmatter is valid
  • Description field exists and is clear
  • Markdown structure is correct
  • All sections have content
  • Code blocks are properly formatted
  • Examples are realistic
  • Troubleshooting addresses real issues
  • Tone matches Navigator style (conversational, helpful)
  • Emoji usage is consistent with other commands
  • File name matches command name (kebab-case)

Step 6: Show Usage Example

Display:

✅ Slash Command Created: /nav:[command-name]

File: commands/[command-name].md
Lines: [count]
Complexity: [simple/medium/complex]

Try it:
/nav:[command-name]

What it does:
[brief description]

Next steps:
1. Test the command manually
2. Update plugin documentation if public-facing
3. Add to CLAUDE.md command list if needed

Example Workflows

Example 1: Simple Command

User: "Add a slash command for showing Navigator version"

Execution:

  1. Gather requirements:

    Name: version
    Purpose: Display current Navigator plugin version
    Complexity: Simple
    Type: User-facing
    
  2. Analyze similar (via Task agent):

    Found similar: marker.md (simple, informational)
    Pattern: Short description → Usage → When to use → Output
    
  3. Design structure:

    - Frontmatter
    - Title: "Navigator Version Info"
    - What This Does: 1 paragraph
    - Usage: Basic syntax
    - When to Use: 2-3 scenarios
    - Output Format: Example
    - C
    
Полный SKILL.md на GitHub

Установить plugin-slash-command в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Grep
Glob
Bash

Вложенные файлы

examples/medium-command-example.mdexamples/simple-command-example.mdfunctions/command_generator.pyfunctions/command_validator.pytemplates/command-template.md

FAQ

Что делает скилл plugin-slash-command?

Generate new Navigator slash commands following project conventions. Use when user says "add slash command", "create command", "new /nav command", or "add /nav:[name] command".

Как установить скилл plugin-slash-command?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл plugin-slash-command запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить plugin-slash-command с