Skip to main content

Overview

Skills are reusable prompt templates that encapsulate:
  • Instructions: Specific guidance for the AI
  • Context: Background information and resources
  • Tool configuration: Which tools to enable/disable
  • Examples: Sample inputs and expected outputs
  • Workflows: Multi-step procedures
Think of skills as templates or playbooks that can be invoked by name.

Using Skills

List Available Skills

Example output:

Invoke a Skill

Skill Structure

Skills are defined in SKILL.md files:
~/.qwen/skills/ ├── code-review/ │ └── SKILL.md ├── debug-assistant/ │ └── SKILL.md └── my-workflow/ └── SKILL.md
.qwen/skills/ ├── review-api/ │ └── SKILL.md └── deploy-checklist/ └── SKILL.md
node_modules/@qwen-code/extension-react/skills/ ├── react-component/ │ └── SKILL.md └── react-hooks/ └── SKILL.md

Advanced Skill with Configuration

References

Invoke with variables:

Bundled Resources

Include files with your skill:
Reference in SKILL.md:

Skill Composition

Skills can invoke other skills:

Conditional Logic

Use conditional instructions:

Built-in Skills

Qwen Code includes several built-in skills:
Comprehensive code review covering:
  • Security vulnerabilities
  • Performance issues
  • Best practices
  • Code style
  • Test coverage
Usage: /skills code-review
Systematic debugging workflow:
  • Gather symptoms
  • Reproduce issue
  • Form hypothesis
  • Test hypothesis
  • Implement fix
  • Verify fix
Usage: /skills debug-assistant
Creates comprehensive tests:
  • Unit tests
  • Integration tests
  • Edge cases
  • Error scenarios
  • Mocking strategies
Usage: /skills test-generator
Generates documentation:
  • API docs
  • README files
  • Usage examples
  • Architecture diagrams
  • Inline comments
Usage: /skills doc-writer
Safe refactoring workflow:
  • Add tests first
  • Identify code smells
  • Plan refactoring steps
  • Refactor incrementally
  • Verify behavior preserved
Usage: /skills refactor-guide

Skill Configuration

Per-Skill Settings

Configure individual skills:

Global Skill Settings

Skill Discovery

Qwen Code finds skills by:
  1. Scanning configured locations
  2. Looking for directories with SKILL.md files
  3. Parsing the markdown for structure
  4. Validating required sections
  5. Caching for fast access
Refresh skill cache:

Advanced Patterns

Multi-Phase Skills

Skills with Subagents

Interactive Skills

Skills that ask questions:

Sharing Skills

Export Skill

Import Skill

Skill Marketplace

Community skills:

Troubleshooting

Problem: /skills my-skill says skill not found.Solutions:
  • Check skill is in correct location
  • Verify SKILL.md filename (case-sensitive)
  • Refresh cache with /memory refresh
  • Check permissions on skill directory
Problem: AI not following skill instructions precisely.Solutions:
  • Make instructions more specific and numbered
  • Add examples of desired behavior
  • Use imperatives (“Do X”) not suggestions (“You might want to X”)
  • Test with a more powerful model
Problem: Skill generates too much output.Solutions:
  • Add instruction: “Be concise”
  • Lower temperature in skill config
  • Set maxTokens limit
  • Use more specific prompts when invoking
Problem: Skill tries to use a disabled tool.Solutions:
  • Add tool to skill’s “Tools” section
  • Enable tool in skill config.json
  • Check global tool settings
  • Verify tool is installed (for MCP/extension tools)

Best Practices

  1. Be specific: Detailed instructions produce better results
  2. Include examples: Show the AI what good output looks like
  3. Define deliverables: Clearly state what the skill should produce
  4. Set approval modes: Configure appropriate safety for the skill’s actions
  5. Version control: Keep project skills in git for team collaboration
  6. Test thoroughly: Try skills with various inputs before relying on them
  7. Document variables: List all required and optional variables
  8. Provide context: Include relevant files and references
  9. Keep focused: One skill = one purpose
  10. Iterate: Refine skills based on usage and results

Next Steps

Subagents

Combine skills with subagents for powerful workflows

Session Commands

Use /skills and other commands

Extensions

Create extensions that provide skills

Examples

Browse skill examples and templates