plugin-slash-command
Skill355 starsChanged 13 months agoMITView on GitHub
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".
1 other project uses a version of this.
Adopted by
Most recently taken up by
- alekspetrov/navigatorword for word, first seen Oct 31, 2025
Other versions1 project uses a version of this.
Word for word · 1
- alekspetrov/navigator★ 355100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- templates/CLAUDE.mdCLAUDE.md
- backend-endpointSkill
- backend-testSkill
- database-migrationSkill
- frontend-componentSkill
- frontend-testSkill
- nav-briefSkill
- nav-compactSkill
- nav-deep-researchSkill
- nav-diagnoseSkill
- nav-featuresSkill
- nav-graphSkill
- nav-initSkill
- nav-loopSkill
- nav-markerSkill
- nav-onboardSkill
- nav-pilotSkill
- nav-profileSkill
- nav-releaseSkill
- nav-simplifySkill
- nav-skill-creatorSkill
- nav-sopSkill
- nav-startSkill
- nav-statsSkill
- nav-sync-claudeSkill
- nav-taskSkill
- nav-trizSkill
- nav-upgradeSkill
- nav-workflowSkill
- product-designSkill
- visual-regressionSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 15 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 48
Use Task agent to find similar commands:
- Distinctive: line 360
Use kebab-case (marker, update-doc, archive-tasks)
- Distinctive: line 363
Avoid abbreviations unless very common
- Distinctive: line 372
Start with user perspective ("You are...")
- Distinctive: line 373
Use 2nd person ("your task", "you can")
- Distinctive: line 380
Use emojis for visual markers (✅❌📖🚀)
- Distinctive: line 432
Add more scenarios to "When to Use"
- Distinctive: line 434
Add Best Practices section
- Distinctive: line 443
Check emoji usage (should match existing patterns)
- Distinctive: line 444
Verify 2nd person perspective ("You are...")
- Distinctive: line 445
Ensure conversational tone (not technical manual)
- Distinctive: line 446
Add personality to closing statement
- Distinctive: line 453
Check YAML syntax (proper indentation)
- Very specific: line 454
Ensure description field exists
- Distinctive: line 455
Verify no special characters break parsing
- Distinctive: line 464
Use real file paths (not /path/to/file)
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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
- Asks for command details (name, purpose, complexity)
- Analyzes existing commands for pattern matching
- Generates command markdown file with proper structure
- Validates YAML frontmatter and formatting
- 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 statementMedium 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 statementComplex 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 statementStep 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:
- YAML frontmatter with description
- Title (# Command Name - Navigator Context)
- Overview paragraph (what user is doing)
- Content sections (based on complexity)
- 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 neededExample Workflows
Example 1: Simple Command
User: "Add a slash command for showing Navigator version"
Execution:
- Gather requirements:
Name: version Purpose: Display current Navigator plugin version Complexity: Simple Type: User-facing - Analyze similar (via Task agent):
Found similar: marker.md (simple, informational) Pattern: Short description → Usage → When to use → Output - Design structure:
- Frontmatter - Title: "Navigator Version Info" - What This Does: 1 paragraph - Usage: Basic syntax - When to Use: 2-3 scenarios - Output Format: Example - Closing statement Generate:
commands/version.md--- description: Display Navigator plugin version and system info --- # Navigator Version Info Check which version of Navigator you're running. ## What This Does Displays the current Navigator plugin version, Claude Code version, and system configuration. ## Usage ```bash /nav:versionWhen to Use
Reporting issues:
- Include version info in bug reports
- Help maintainers reproduce issues
Checking updates:
- See if you're on latest version
- Compare with marketplace version
System diagnostics:
- Verify plugin installed correctly
- Check configuration loaded
Output Format
Navigator Plugin ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Version: 2.2.0 Installed: /Users/you/.claude/plugins/navigator Config: .agent/.nav-config.json System: - Claude Code: 1.5.0 - Project: /Users/you/project - Platform: darwinKeep your Navigator up to date for latest features 🚀
- Validate: ✅ All checks pass
- Show usage:
✅ Slash Command Created: /nav:version File: commands/version.md Lines: 45 Complexity: Simple Try it: /nav:version
Example 2: Medium Command
User: "Create a command for archiving old task documentation"
Execution:
- Gather requirements:
Name: archive-tasks Purpose: Move completed tasks to archive directory Complexity: Medium (file operations, validation) Type: User-facing - Analyze similar:
Found: markers.md (file management, user selection) Found: compact.md (multi-step process) Pattern: Overview → Execution Plan → Steps → Validation - Design structure:
- Frontmatter - Title + overview - What This Does (comparison with manual approach) - When to Use (5 scenarios) - Execution Plan (Step 1-4) - Output Format - Troubleshooting (4 issues) - Best Practices - Closing - Generate:
commands/archive-tasks.md(full content) - Validate: ✅ All checks pass
- Show usage: Command ready to use
Output Format
After generating command, show:
✅ Slash Command Created: /nav:[name]
Structure:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📄 commands/[name].md
Sections:
✅ YAML frontmatter
✅ Title and overview
✅ What This Does
✅ When to Use ([N] scenarios)
✅ Usage / Execution Plan
✅ [Additional sections based on complexity]
✅ Troubleshooting
✅ Closing statement
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Command: /nav:[name]
Purpose: [brief description]
Lines: [count]
Test it:
/nav:[name]
Documentation:
- Add to README.md if user-facing
- Update CLAUDE.md command list
- Add to plugin.json if neededBest Practices
Command Naming
- Use kebab-case (marker, update-doc, archive-tasks)
- Be specific but concise (not too generic, not too verbose)
- Match feature purpose (nav:compact for compacting)
- Avoid abbreviations unless very common
Description Writing
- One sentence, clear purpose
- Action-oriented ("Create", "Display", "Update")
- Mention key benefit or what it does
- Under 100 characters
Content Structure
- Start with user perspective ("You are...")
- Use 2nd person ("your task", "you can")
- Include realistic examples
- Show expected output
- Address common issues in troubleshooting
Tone and Style
- Conversational and helpful
- Use emojis for visual markers (✅❌📖🚀)
- Bold key terms and actions
- Code blocks for all commands/output
- Bullet lists for readability
Examples Quality
- Real-world scenarios (not toy examples)
- Show before/after when relevant
- Include expected output
- Cover common use cases
- Demonstrate Navigator benefits
Troubleshooting Section
- Address real issues users might encounter
- Provide specific solutions (not generic advice)
- Include verification commands
- Link to related docs if helpful
Common Command Patterns
Informational Commands
Pattern: Simple structure, quick output Examples: version, status, list Sections: Description → Usage → Output
Action Commands
Pattern: Execute something, show result Examples: marker, compact, archive Sections: Description → Execution → Validation → Result
Setup/Configuration Commands
Pattern: Multi-step process, checks Examples: init, migrate, setup Sections: Pre-flight → Steps → Validation → Troubleshooting
Management Commands
Pattern: User selection, operations, feedback Examples: markers (list/load), tasks (list/select) Sections: Overview → Modes → Operations → Results
Troubleshooting
Generated Command Too Short
Problem: Command content is sparse, missing sections
Solutions:
- Increase complexity level (simple → medium)
- Add more scenarios to "When to Use"
- Expand troubleshooting section (more common issues)
- Add Best Practices section
- Include more examples
Command Doesn't Match Navigator Style
Problem: Tone or structure feels off
Solutions:
- Re-analyze example commands (marker.md, compact.md)
- Check emoji usage (should match existing patterns)
- Verify 2nd person perspective ("You are...")
- Ensure conversational tone (not technical manual)
- Add personality to closing statement
YAML Validation Fails
Problem: Invalid frontmatter
Solutions:
- Check YAML syntax (proper indentation)
- Ensure
descriptionfield exists - Verify no special characters break parsing
- Test with:
python -c "import yaml; yaml.safe_load(open('commands/[name].md').read().split('---')[1])"
Examples Are Too Generic
Problem: Examples don't feel realistic
Solutions:
- Base examples on actual Navigator usage
- Use real file paths (not /path/to/file)
- Show actual output format (not [output here])
- Include context (why user would run this)
Success Criteria
This skill succeeds when:
- Generated command file is syntactically valid
- YAML frontmatter passes validation
- All required sections present
- Tone matches Navigator style (conversational, helpful)
- Examples are realistic and useful
- Troubleshooting addresses real issues
- Command can be invoked in Claude Code
- Minimal manual editing needed (<10% of content)
The plugin-slash-command skill automates Navigator command creation, ensuring consistency and saving development time 🔧
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

