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:
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):Option B: Using Natural Language (Detailed Setup)
You can also ask the AI agent to create a skill with detailed content using natural language:- More detailed and customized skill content
- AI generates relevant examples and best practices
- Faster than manually writing everything
- Can specify exact requirements and conventions
- A new directory is created:
.blackbox/skills/frontend/ - A template
SKILL.mdfile 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:
Step 4: List All Skills
See all available skills in your workspace:Step 5: View Skill Details
View the complete content of a specific skill:Step 6: Let the AI Agent Use Your Skills
Once you’ve created and edited skills, the AI agent will automatically:- Discover skills when you start a new CLI session
- Evaluate relevance based on your task and skill descriptions
- Load skills automatically when they’re relevant to your task
- Apply knowledge from the skill to complete your task
Common Use Cases
Use Case 1: Domain-Specific Knowledge
Create skills for specific domains: Using Commands:Use Case 2: Project-Specific Conventions
Create skills for your project’s specific patterns: Using Commands:Use Case 3: Technology-Specific Guides
Create skills for specific technologies: Using Commands:Use Case 4: Quick Skill Generation with AI
Let the AI agent handle the entire skill creation process:- 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:- 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: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
- Check the skill name with
/skill list - Ensure the skill directory exists in
.blackbox/skills/ - Verify
SKILL.mdfile 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
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:- Commit
.blackbox/skills/to version control - Team members get skills when they clone the repo
- Everyone benefits from shared knowledge
Quick Reference
| Command | Description | Example |
|---|---|---|
/skill | Show help | /skill |
/skill list | List all skills | /skill list |
/skill create <name> | Create new skill | /skill create frontend |
/skill info <name> | View skill details | /skill info frontend |
Next Steps
- Create your first skill for your most common tasks
- Edit the skill with your team’s best practices
- Test it by asking the AI agent to perform related tasks
- Iterate based on what works well
- Share successful skills with your team
For more detailed information about BLACKBOX CLI features, see the Key Features documentation.