Skip to main content

How to Use the /skill Command - Step by Step Guide

Step-by-Step Usage Guide

Step 1: Check Available Commands
First, see what the /skill command can do:
Output:
Step 2: Create Your First Skill
You can create skills in two ways:
Option A: Using the Command (Quick Setup)
Create a new skill for a specific domain (e.g., frontend development):
Output:
Option B: Using Natural Language (Detailed Setup)
You can also ask the AI agent to create a skill with detailed content using natural language:
Benefits of Natural Language Creation:
  • More detailed and customized skill content
  • AI generates relevant examples and best practices
  • Faster than manually writing everything
  • Can specify exact requirements and conventions
What happens (both methods):
  • A new directory is created: .blackbox/skills/frontend/
  • A template SKILL.md file is created with:
    • YAML frontmatter (name and description)
    • Markdown sections for instructions, examples, and best practices
Step 3: Edit the Skill File
Open and edit the created skill file: Location: .blackbox/skills/frontend/SKILL.md Template content:
Edit it to add your knowledge:
Step 4: List All Skills
See all available skills in your workspace:
Output:
Step 5: View Skill Details
View the complete content of a specific skill:
Output:
Step 6: Let the AI Agent Use Your Skills
Once you’ve created and edited skills, the AI agent will automatically:
  1. Discover skills when you start a new CLI session
  2. Evaluate relevance based on your task and skill descriptions
  3. Load skills automatically when they’re relevant to your task
  4. Apply knowledge from the skill to complete your task
Example interaction:

Common Use Cases

Use Case 1: Domain-Specific Knowledge
Create skills for specific domains: Using Commands:
Using Natural Language:
Use Case 2: Project-Specific Conventions
Create skills for your project’s specific patterns: Using Commands:
Using Natural Language:
Use Case 3: Technology-Specific Guides
Create skills for specific technologies: Using Commands:
Using Natural Language:
Use Case 4: Quick Skill Generation with AI
Let the AI agent handle the entire skill creation process:
This approach is ideal when:
  • You want to quickly bootstrap a skill
  • You need comprehensive coverage of a topic
  • You want the AI to suggest best practices you might not know
  • You’re creating skills for technologies you’re learning

Tips and Best Practices

1. Use Natural Language for Complex Skills
For comprehensive skills, let the AI agent do the heavy lifting:
Benefits:
  • Saves time on initial skill creation
  • AI suggests industry best practices
  • Comprehensive examples included automatically
  • Easy to refine and customize afterward
2. Write Clear Descriptions
The description in the YAML frontmatter is crucial: Good:
Bad:
3. Include Concrete Examples
Always provide code examples:
4. Keep Skills Focused
Each skill should cover one specific domain:
  • frontend-components - Component patterns
  • frontend-state - State management
  • frontend-everything - Too broad
5. Update Skills Regularly
As your project evolves, update your skills:
6. Skill Naming Conventions
Use lowercase with hyphens:
  • python-testing
  • api-design
  • react-hooks
  • PythonTesting
  • api_design

Troubleshooting

Problem: Skill not found
Solution:
  • Check the skill name with /skill list
  • Ensure the skill directory exists in .blackbox/skills/
  • Verify SKILL.md file exists in the skill directory
Problem: AI agent not using skills
Solution:
  • Restart the CLI session to reload skills
  • Make sure the skill description clearly indicates when to use it
  • Verify the YAML frontmatter is properly formatted
  • Check that the skill is relevant to your task
Problem: Invalid skill name error
Solution: Use only lowercase letters, numbers, and hyphens:

Advanced Usage

Creating Multiple Related Skills
For complex projects, create a skill hierarchy:
Skill Templates
Create template skills for common patterns:
Team Collaboration
Share skills with your team:
  1. Commit .blackbox/skills/ to version control
  2. Team members get skills when they clone the repo
  3. Everyone benefits from shared knowledge

Quick Reference

Next Steps

  1. Create your first skill for your most common tasks
  2. Edit the skill with your team’s best practices
  3. Test it by asking the AI agent to perform related tasks
  4. Iterate based on what works well
  5. Share successful skills with your team
For more detailed information about BLACKBOX CLI features, see the Key Features documentation.