ask-matt
MAmattpocock/skills336k近 7 天新增 5,004 个 star
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends the CLI's capabilities with specialized knowledge, workflows, or tool integrations.
This skill provides guidance for creating effective skills.
Skills are modular, self-contained packages that extend Qwen Code's capabilities by providing specialized knowledge, workflows, and tools. Think of them as "onboarding guides" for specific domains or tasks. They transform the Qwen Code from a general-purpose agent into a specialized agent equipped with procedural knowledge that no model can fully possess.
The context window is a public good. Skills share the context window with everything else Qwen Code needs: system prompt, conversation history, other Skills' metadata, and the actual user request.
Default assumption: Qwen Code is already very smart. Only add context Qwen Code doesn't already have. Challenge each piece of information: "Does Qwen Code really need this explanation?" and "Does this paragraph justify its token cost?"
Prefer concise examples over verbose explanations.
Match the level of specificity to the task's fragility and variability:
High freedom (text-based instructions): Use when multiple approaches are valid, decisions depend on context, or heuristics guide the approach.
Medium freedom (pseudocode or scripts with parameters): Use when a preferred pattern exists, some variation is acceptable, or configuration affects behavior.
Low freedom (specific scripts, few parameters): Use when operations are fragile and error-prone, consistency is critical, or a specific sequence must be followed.
Every skill consists of a required SKILL.md file and optional bundled resources:
skill-name/
├── SKILL.md (required)
│ ├── YAML frontmatter metadata (required)
│ │ ├── name: (required)
│ │ ├── description: (required)
│ │ └── model/tools/when_to_use/... (optional)
│ └── Markdown instructions (required)
└── Bundled Resources (optional)
├── scripts/ - Executable code (Node.js/Python/Bash/etc.)
├── references/ - Documentation intended to be loaded into context as needed
└── assets/ - Files used in output (templates, icons, fonts, etc.)
Every SKILL.md consists of:
name and description fields. These are
the only fields that Qwen Code reads to determine when the skill gets used,
thus it is very important to be clear and comprehensive in describing what the
skill is, and when it should be used.scripts/)Executable code (Node.js/Python/Bash/etc.) for tasks that require deterministic reliability or are repeatedly rewritten.
scripts/rotate_pdf.cjs for PDF rotation tasksreferences/)Documentation and reference material intended to be loaded as needed into context to inform Qwen Code's process and thinking.
references/finance.md for financial schemas,
references/api_docs.md for API specificationsassets/)Files not intended to be loaded into context, but rather used within the output Qwen Code produces.
assets/logo.png for brand assets, assets/slides.pptx for
PowerPoint templatesDo NOT create extraneous documentation or auxiliary files like README.md, CHANGELOG.md, INSTALLATION_GUIDE.md, etc. The skill should only contain the information needed for an AI agent to do the job.
Skills use a three-level loading system to manage context efficiently:
Keep SKILL.md body under 500 lines. Split content into separate reference files when approaching this limit.
Follow these steps in order.
plan-mode).To create an effective skill, clearly understand concrete examples of how the skill will be used. Ask users:
Avoid interrogation loops: Do not ask more than one or two clarifying questions at a time. Bias toward action: propose a concrete list of features based on your initial understanding, and ask the user to refine them.
Analyze each concrete example to identify reusable resources:
rotate_pdf.cjs)schema.md)Create the skill directory structure directly. Ask the user for the target location:
${QWEN_CONFIG_DIR}/skills/<skill-name>/~/${QWEN_USER_CONFIG_DIR}/skills/<skill-name>/Create the following directory structure:
<skill-name>/
├── SKILL.md
├── scripts/ (if needed)
├── references/ (if needed)
└── assets/ (if needed)
Write the initial SKILL.md with this template:
---
name: <skill-name>
description: <Complete explanation of what the skill does and when to use it. Include specific scenarios, file types, or tasks that trigger it.>
---
# <Skill Title>
## Overview
[1-2 sentences explaining what this skill enables]
## [Main section based on chosen structure]
[Skill instructions and guidance]
## Resources
[Reference any bundled scripts, references, or assets here]
Only create the resource directories (scripts/, references/, assets/)
that are actually needed for this skill. Do not create empty placeholder
directories.
When editing the skill, remember it is being created for another Qwen Code session to use. Include information that would be beneficial and non-obvious.
Implement the resources identified in Step 2. This may require user input (e.g., brand assets, documentation to store).
Scripts must be tested by actually running them to ensure they work correctly.
Writing Guidelines: Always use imperative/infinitive form.
Required fields:
name: The skill name (hyphen-case, lowercase)description: Primary triggering mechanism. Include both what the Skill does
and specific triggers/contexts for when to use it. Must be a single-line
string (max 1024 characters).
description: Data ingestion, cleaning, and transformation for tabular data. Use when working with CSV/TSV files to analyze large datasets, normalize schemas, or merge sources.Optional fields:
model: Override the model used when this skill is activetools: List of tools this skill is allowed to use (supports glob patterns)when_to_use: Concise hint for automatic skill selectionargument-hint: Short hint for expected arguments (e.g., <file-path>)arguments: Structured argument definitions for complex skillsWrite instructions for using the skill and its bundled resources.
After writing the skill, verify it meets these requirements:
Checklist:
SKILL.md exists in the skill directory--- and ends with ---name field is present and uses hyphen-case (/^[a-z0-9-]+$/)description field is present, single-line, and ≤ 1024 charactersTODO: strings remain in any filename fieldIf any check fails, fix the issue before proceeding.
Tell the user their skill is ready. They can use it by:
/skills reload/<skill-name>/skills listIteration: After testing, users may request improvements. Use the skill on real tasks, notice struggles or inefficiencies, and update accordingly.
MAmattpocock/skills336k近 7 天新增 5,004 个 star
MAmattpocock/skills336k近 7 天新增 5,004 个 star
MAmattpocock/skills336k近 7 天新增 5,004 个 star
OBobra/superpowers331k近 7 天新增 5,757 个 star
AFaffaan-m/ECC314k近 7 天新增 4,125 个 star
AFaffaan-m/ECC314k近 7 天新增 4,125 个 star