@qwen-code/qwen-code 0.14.0-preview.0 → 0.14.0-preview.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +19 -9
  2. package/bundled/qc-helper/SKILL.md +151 -0
  3. package/bundled/qc-helper/docs/_meta.ts +30 -0
  4. package/bundled/qc-helper/docs/common-workflow.md +571 -0
  5. package/bundled/qc-helper/docs/configuration/_meta.ts +10 -0
  6. package/bundled/qc-helper/docs/configuration/auth.md +366 -0
  7. package/bundled/qc-helper/docs/configuration/memory.md +0 -0
  8. package/bundled/qc-helper/docs/configuration/model-providers.md +542 -0
  9. package/bundled/qc-helper/docs/configuration/qwen-ignore.md +55 -0
  10. package/bundled/qc-helper/docs/configuration/settings.md +655 -0
  11. package/bundled/qc-helper/docs/configuration/themes.md +160 -0
  12. package/bundled/qc-helper/docs/configuration/trusted-folders.md +61 -0
  13. package/bundled/qc-helper/docs/extension/_meta.ts +9 -0
  14. package/bundled/qc-helper/docs/extension/extension-releasing.md +121 -0
  15. package/bundled/qc-helper/docs/extension/getting-started-extensions.md +299 -0
  16. package/bundled/qc-helper/docs/extension/introduction.md +310 -0
  17. package/bundled/qc-helper/docs/features/_meta.ts +18 -0
  18. package/bundled/qc-helper/docs/features/approval-mode.md +263 -0
  19. package/bundled/qc-helper/docs/features/arena.md +218 -0
  20. package/bundled/qc-helper/docs/features/channels/_meta.ts +7 -0
  21. package/bundled/qc-helper/docs/features/channels/dingtalk.md +134 -0
  22. package/bundled/qc-helper/docs/features/channels/overview.md +336 -0
  23. package/bundled/qc-helper/docs/features/channels/plugins.md +87 -0
  24. package/bundled/qc-helper/docs/features/channels/telegram.md +120 -0
  25. package/bundled/qc-helper/docs/features/channels/weixin.md +106 -0
  26. package/bundled/qc-helper/docs/features/checkpointing.md +77 -0
  27. package/bundled/qc-helper/docs/features/commands.md +312 -0
  28. package/bundled/qc-helper/docs/features/headless.md +318 -0
  29. package/bundled/qc-helper/docs/features/hooks.md +715 -0
  30. package/bundled/qc-helper/docs/features/language.md +139 -0
  31. package/bundled/qc-helper/docs/features/lsp.md +417 -0
  32. package/bundled/qc-helper/docs/features/mcp.md +281 -0
  33. package/bundled/qc-helper/docs/features/sandbox.md +241 -0
  34. package/bundled/qc-helper/docs/features/skills.md +289 -0
  35. package/bundled/qc-helper/docs/features/sub-agents.md +511 -0
  36. package/bundled/qc-helper/docs/features/token-caching.md +29 -0
  37. package/bundled/qc-helper/docs/ide-integration/_meta.ts +4 -0
  38. package/bundled/qc-helper/docs/ide-integration/ide-companion-spec.md +182 -0
  39. package/bundled/qc-helper/docs/ide-integration/ide-integration.md +144 -0
  40. package/bundled/qc-helper/docs/integration-github-action.md +241 -0
  41. package/bundled/qc-helper/docs/integration-jetbrains.md +81 -0
  42. package/bundled/qc-helper/docs/integration-vscode.md +39 -0
  43. package/bundled/qc-helper/docs/integration-zed.md +72 -0
  44. package/bundled/qc-helper/docs/overview.md +64 -0
  45. package/bundled/qc-helper/docs/quickstart.md +273 -0
  46. package/bundled/qc-helper/docs/reference/_meta.ts +3 -0
  47. package/bundled/qc-helper/docs/reference/keyboard-shortcuts.md +72 -0
  48. package/bundled/qc-helper/docs/support/Uninstall.md +42 -0
  49. package/bundled/qc-helper/docs/support/_meta.ts +6 -0
  50. package/bundled/qc-helper/docs/support/tos-privacy.md +112 -0
  51. package/bundled/qc-helper/docs/support/troubleshooting.md +123 -0
  52. package/cli.js +55261 -35814
  53. package/locales/de.js +121 -5
  54. package/locales/en.js +118 -5
  55. package/locales/ja.js +117 -5
  56. package/locales/pt.js +120 -5
  57. package/locales/ru.js +119 -5
  58. package/locales/zh.js +111 -4
  59. package/package.json +2 -2
@@ -0,0 +1,289 @@
1
+ # Agent Skills
2
+
3
+ > Create, manage, and share Skills to extend Qwen Code's capabilities.
4
+
5
+ This guide shows you how to create, use, and manage Agent Skills in **Qwen Code**. Skills are modular capabilities that extend the model's effectiveness through organized folders containing instructions (and optionally scripts/resources).
6
+
7
+ ## Prerequisites
8
+
9
+ - Qwen Code (recent version)
10
+ - Basic familiarity with Qwen Code ([Quickstart](../quickstart.md))
11
+
12
+ ## What are Agent Skills?
13
+
14
+ Agent Skills package expertise into discoverable capabilities. Each Skill consists of a `SKILL.md` file with instructions that the model can load when relevant, plus optional supporting files like scripts and templates.
15
+
16
+ ### How Skills are invoked
17
+
18
+ Skills are **model-invoked** — the model autonomously decides when to use them based on your request and the Skill's description. This is different from slash commands, which are **user-invoked** (you explicitly type `/command`).
19
+
20
+ If you want to invoke a Skill explicitly, use the `/skills` slash command:
21
+
22
+ ```bash
23
+ /skills <skill-name>
24
+ ```
25
+
26
+ Use autocomplete to browse available Skills and descriptions.
27
+
28
+ ### Benefits
29
+
30
+ - Extend Qwen Code for your workflows
31
+ - Share expertise across your team via git
32
+ - Reduce repetitive prompting
33
+ - Compose multiple Skills for complex tasks
34
+
35
+ ## Create a Skill
36
+
37
+ Skills are stored as directories containing a `SKILL.md` file.
38
+
39
+ ### Personal Skills
40
+
41
+ Personal Skills are available across all your projects. Store them in `~/.qwen/skills/`:
42
+
43
+ ```bash
44
+ mkdir -p ~/.qwen/skills/my-skill-name
45
+ ```
46
+
47
+ Use personal Skills for:
48
+
49
+ - Your individual workflows and preferences
50
+ - Skills you're developing
51
+ - Personal productivity helpers
52
+
53
+ ### Project Skills
54
+
55
+ Project Skills are shared with your team. Store them in `.qwen/skills/` within your project:
56
+
57
+ ```bash
58
+ mkdir -p .qwen/skills/my-skill-name
59
+ ```
60
+
61
+ Use project Skills for:
62
+
63
+ - Team workflows and conventions
64
+ - Project-specific expertise
65
+ - Shared utilities and scripts
66
+
67
+ Project Skills can be checked into git and automatically become available to teammates.
68
+
69
+ ## Write `SKILL.md`
70
+
71
+ Create a `SKILL.md` file with YAML frontmatter and Markdown content:
72
+
73
+ ```yaml
74
+ ---
75
+ name: your-skill-name
76
+ description: Brief description of what this Skill does and when to use it
77
+ ---
78
+
79
+ # Your Skill Name
80
+
81
+ ## Instructions
82
+ Provide clear, step-by-step guidance for Qwen Code.
83
+
84
+ ## Examples
85
+ Show concrete examples of using this Skill.
86
+ ```
87
+
88
+ ### Field requirements
89
+
90
+ Qwen Code currently validates that:
91
+
92
+ - `name` is a non-empty string
93
+ - `description` is a non-empty string
94
+
95
+ Recommended conventions (not strictly enforced yet):
96
+
97
+ - Use lowercase letters, numbers, and hyphens in `name`
98
+ - Make `description` specific: include both **what** the Skill does and **when** to use it (key words users will naturally mention)
99
+
100
+ ## Add supporting files
101
+
102
+ Create additional files alongside `SKILL.md`:
103
+
104
+ ```text
105
+ my-skill/
106
+ ├── SKILL.md (required)
107
+ ├── reference.md (optional documentation)
108
+ ├── examples.md (optional examples)
109
+ ├── scripts/
110
+ │ └── helper.py (optional utility)
111
+ └── templates/
112
+ └── template.txt (optional template)
113
+ ```
114
+
115
+ Reference these files from `SKILL.md`:
116
+
117
+ ````markdown
118
+ For advanced usage, see [reference.md](reference.md).
119
+
120
+ Run the helper script:
121
+
122
+ ```bash
123
+ python scripts/helper.py input.txt
124
+ ```
125
+ ````
126
+
127
+ ## View available Skills
128
+
129
+ Qwen Code discovers Skills from:
130
+
131
+ - Personal Skills: `~/.qwen/skills/`
132
+ - Project Skills: `.qwen/skills/`
133
+ - Extension Skills: Skills provided by installed extensions
134
+
135
+ ### Extension Skills
136
+
137
+ Extensions can provide custom skills that become available when the extension is enabled. These skills are stored in the extension's `skills/` directory and follow the same format as personal and project skills.
138
+
139
+ Extension skills are automatically discovered and loaded when the extension is installed and enabled.
140
+
141
+ To see which extensions provide skills, check the extension's `qwen-extension.json` file for a `skills` field.
142
+
143
+ To view available Skills, ask Qwen Code directly:
144
+
145
+ ```text
146
+ What Skills are available?
147
+ ```
148
+
149
+ Or inspect the filesystem:
150
+
151
+ ```bash
152
+ # List personal Skills
153
+ ls ~/.qwen/skills/
154
+
155
+ # List project Skills (if in a project directory)
156
+ ls .qwen/skills/
157
+
158
+ # View a specific Skill's content
159
+ cat ~/.qwen/skills/my-skill/SKILL.md
160
+ ```
161
+
162
+ ## Test a Skill
163
+
164
+ After creating a Skill, test it by asking questions that match your description.
165
+
166
+ Example: if your description mentions "PDF files":
167
+
168
+ ```text
169
+ Can you help me extract text from this PDF?
170
+ ```
171
+
172
+ The model autonomously decides to use your Skill if it matches the request — you don't need to explicitly invoke it.
173
+
174
+ ## Debug a Skill
175
+
176
+ If Qwen Code doesn't use your Skill, check these common issues:
177
+
178
+ ### Make the description specific
179
+
180
+ Too vague:
181
+
182
+ ```yaml
183
+ description: Helps with documents
184
+ ```
185
+
186
+ Specific:
187
+
188
+ ```yaml
189
+ description: Extract text and tables from PDF files, fill forms, merge documents. Use when working with PDFs, forms, or document extraction.
190
+ ```
191
+
192
+ ### Verify file path
193
+
194
+ - Personal Skills: `~/.qwen/skills/<skill-name>/SKILL.md`
195
+ - Project Skills: `.qwen/skills/<skill-name>/SKILL.md`
196
+
197
+ ```bash
198
+ # Personal
199
+ ls ~/.qwen/skills/my-skill/SKILL.md
200
+
201
+ # Project
202
+ ls .qwen/skills/my-skill/SKILL.md
203
+ ```
204
+
205
+ ### Check YAML syntax
206
+
207
+ Invalid YAML prevents the Skill metadata from loading correctly.
208
+
209
+ ```bash
210
+ cat SKILL.md | head -n 15
211
+ ```
212
+
213
+ Ensure:
214
+
215
+ - Opening `---` on line 1
216
+ - Closing `---` before Markdown content
217
+ - Valid YAML syntax (no tabs, correct indentation)
218
+
219
+ ### View errors
220
+
221
+ Run Qwen Code with debug mode to see Skill loading errors:
222
+
223
+ ```bash
224
+ qwen --debug
225
+ ```
226
+
227
+ ## Share Skills with your team
228
+
229
+ You can share Skills through project repositories:
230
+
231
+ 1. Add the Skill under `.qwen/skills/`
232
+ 2. Commit and push
233
+ 3. Teammates pull the changes
234
+
235
+ ```bash
236
+ git add .qwen/skills/
237
+ git commit -m "Add team Skill for PDF processing"
238
+ git push
239
+ ```
240
+
241
+ ## Update a Skill
242
+
243
+ Edit `SKILL.md` directly:
244
+
245
+ ```bash
246
+ # Personal Skill
247
+ code ~/.qwen/skills/my-skill/SKILL.md
248
+
249
+ # Project Skill
250
+ code .qwen/skills/my-skill/SKILL.md
251
+ ```
252
+
253
+ Changes take effect the next time you start Qwen Code. If Qwen Code is already running, restart it to load the updates.
254
+
255
+ ## Remove a Skill
256
+
257
+ Delete the Skill directory:
258
+
259
+ ```bash
260
+ # Personal
261
+ rm -rf ~/.qwen/skills/my-skill
262
+
263
+ # Project
264
+ rm -rf .qwen/skills/my-skill
265
+ git commit -m "Remove unused Skill"
266
+ ```
267
+
268
+ ## Best practices
269
+
270
+ ### Keep Skills focused
271
+
272
+ One Skill should address one capability:
273
+
274
+ - Focused: "PDF form filling", "Excel analysis", "Git commit messages"
275
+ - Too broad: "Document processing" (split into smaller Skills)
276
+
277
+ ### Write clear descriptions
278
+
279
+ Help the model discover when to use Skills by including specific triggers:
280
+
281
+ ```yaml
282
+ description: Analyze Excel spreadsheets, create pivot tables, and generate charts. Use when working with Excel files, spreadsheets, or .xlsx data.
283
+ ```
284
+
285
+ ### Test with your team
286
+
287
+ - Does the Skill activate when expected?
288
+ - Are the instructions clear?
289
+ - Are there missing examples or edge cases?