进阶 zcode.z.ai 2026-11-25 14:51:22 · 0 阅读
第44章 Skill
Core FeaturesSkill
A skill is a reusable set of working instructions, usually written as a SKILL.md file that describes when to use it, the steps to follow, and the expected output. Once a skill is enabled, ZCode Agent follows its instructions whenever a matching task comes up, so similar work is handled to the same standard.
1Switch scope2Import, refresh, and create3Enable, disable, or deleteThe first item is omitted at the dashed line
Entry point: open Settings → Skills. Skills are also available on the "Skills" tab of Settings → Plugins.
How Skills Work
Skills come from three places: your personal folder, the project folder, and enabled plugins. When a session starts, ZCode Agent only gets the name and description of each enabled skill. It reads the matching SKILL.md body and follows its steps when you pick a skill with $ in the composer, or when the task matches a skill's description.
Where skills come fromPersonal~/.zcode/skills/Project.zcode/skills/Pluginsfollow the plugin's stateWhat ZCode Agent sees firstcode-reviewReview changes with a checklistrelease-notesWrite release notes from commitsdocxCreate and edit Word documentsNames and descriptions only; the body is read when neededWhen it's usedManual$release-notes draft notesAutoTask matches its descriptionReads the SKILL.md body and follows itKeep in mindDisabled skillsare not offered to the AgentToo many enableddescriptions get shortened and auto-use gets less accurate
So description decides whether a skill gets used automatically, and the body decides what happens once it is used.
Manage Skills
Use the scope selector at the top of the Skills page to choose what to view: skills in the User scope apply to all projects, and switching to a Workspace shows the skills specific to that project. The list is grouped by source:
Installed: skills you created or imported. Use the switch to enable or disable them, or delete them.
Skills provided by plugins: grouped by plugin, such as Browser Use, Documents, and Skill Creator. These skills are enabled and disabled together with their plugin; manage them in Manage Plugins.
Use the search box to filter skills by name, and click any skill to view its description, scope, status, and file location.
Skill details · Description, scope, status, and locationPlugin skills · Grouped by plugin
Deleting a skill removes its folder from disk and cannot be undone. If you only need to turn it off for now, disable it instead.
Create A Skill
Use Skill Creator
Click New on the Skills page. ZCode starts a new task that references the built-in Skill Creator. Describe the way of working you want to capture and send the message; ZCode Agent helps you write and validate the skill.
Write One Manually
Each skill is a folder that contains a SKILL.md file, and the folder name is the skill name. Skills can be stored in the following locations:
ScopeLocationUser (available in all projects)~/.zcode/skills//SKILL.mdProject (available in the current project only)/.zcode/skills//SKILL.md
ZCode also supports the .agents/skills folder.
Besides SKILL.md, a skill folder can hold scripts, references, and templates. Refer to them by relative path in the body, and ZCode Agent reads them when needed:
release-notes/SKILL.mdRequiredName, description, and stepsscripts/Optional, such as a script that collects commitsreferences/Optional, such as versioning rules or a glossarytemplates/Optional, such as a release notes templateThe folder name is the skill name; only SKILL.md is required
A minimal SKILL.md:
---
name: code-review-checklist
description: Review code changes with a focused checklist for correctness, regressions, tests, and maintainability.
---
# Code Review Checklist
Use this skill when reviewing a pull request, merge request, or local diff.
Focus on correctness, regressions, missing tests, risky API changes, and maintainability.
After creating or editing a skill, click Refresh on the Skills page and confirm that the skill appears in the list and is enabled.
Writing Tips
name and description are required. If either is missing, the skill is not loaded and the Skills page shows a diagnostic message. name may use only lowercase letters, digits, and hyphens, such as release-notes.
Make description state when to use the skill, in no more than 1024 characters. ZCode Agent relies on the description to decide when to use a skill, so a specific description leads to more accurate automatic use; put detailed instructions in the body.
Enable only the skills you use often. The names and descriptions of enabled skills are provided to ZCode Agent as a reference; when too many skills are enabled, descriptions are shortened, which can affect automatic use.
If a skill appears in the / menu but ZCode Agent does not use it on its own, check the following in order:
Whether too many skills are enabled; disable the ones you rarely use and try again.
Whether the description clearly states when to use the skill.
When working in a subagent, whether the subagent's tool settings allow skills.
Whether the plugin that provides the skill is disabled.
When a Skill Doesn't Load
If something is wrong in a skill folder, the top of the Skills page shows the skill loading diagnostics. Expand them to see the cause:
DiagnosticWhat to doMissing YAML frontmatter / Invalid frontmatterAdd frontmatter wrapped in --- at the top of SKILL.md, and check indentation and colonsMissing name / Missing descriptionAdd name and descriptionname does not follow the naming ruleUse only lowercase letters, digits, and hyphensdescription exceeds 1024 charactersKeep the description to when to use the skill, and move details into the bodyDuplicate skill name ignoredTwo folders contain a skill with the same name and only one loads; rename or remove the extra oneSKILL.md too large and truncatedMove long reference material into other files in the same folder and refer to it from the bodyUnknown frontmatter fieldsA warning only; the skill still works. Remove fields you don't need
Distribute Skills
To share a set of skills with your team, package them as a plugin and distribute it through the plugin marketplace. Skills in a plugin must be placed at skills//SKILL.md; skills nested in deeper folders are not recognized.
Import Skills From Other Agents
If you already maintain skills in other AI coding tools, you can import them into ZCode instead of recreating them. On the Skills page, choose Import from the … menu (or click Import when the list is empty). ZCode scans the skill folders of the tools installed on this computer.
Skills page · Choose Import from the … menuImport dialog · Select skills and an import mode
Supported sources include Claude Code, Codex CLI, OpenCode, OpenClaw, Augment, Continue, Goose, Qwen Code, Qoder, Windsurf, Trae, Kiro CLI, Roo Code, and CodeBuddy.
In the import dialog, you can:
Use Scope to scan global skills or skills in the current project.
Select the skills you need, or use Select all; skills with the same name as existing ones are not imported again.
Choose an Import mode:
Symlink: links to the original skill folder, so later changes there take effect in ZCode; the original folder must remain available.
Copy: keeps an independent copy in ZCode that is not affected by the original folder.
Choose Import to Global (available in all projects) or Import to Project (available in the current project only).
Imported skills appear in the Installed group and work the same way as skills you create.
Use Skills In Chat
Type $ in the input box to choose a skill from the list. The selected skill appears as a tag in the input box, and you can continue with your request:
$code-review-checklist Review the current changes
$release-notes Write release notes for this release
The Commands and capabilities menu, opened by typing /, also includes a Skills group, so you can search skills together with commands and agents.
Even without selecting a skill manually, ZCode Agent uses a matching skill automatically when a task fits its description.
Built-in Skills
ZCode provides a set of commonly used skills through built-in plugins. Most are enabled by default, and they are grouped by plugin on the Skills page. For example:
Skill Creator: helps you create, edit, and validate skills.
ZCode Guide: explains where skills, commands, MCP servers, hooks, plugins, and AGENTS.md are configured and where they apply, and includes diagnostic skills for issues such as unrecognized skills, commands that cannot be invoked, MCP connection failures, hooks that do not fire, and plugins that fail to install.
$zcode-configuration-guide I want to add a command that only applies to this repository. Where should it go?
For the full list of built-in plugins, see Plugin → Built-in Plugins.
Sync Skills To A Remote Host
User-level skills are stored on this computer, so ZCode Agent in a remote workspace cannot use them by default. After connecting to an SSH or WSL remote workspace, choose Sync skills to this device from the … menu of the task title to sync your local user-level skills to the remote. See Remote Development → Syncing local configuration to the remote.
What To Capture As A Skill
Tasks with a fixed process, such as code review, API troubleshooting, release notes, and test reports.
Tasks with a consistent output format.
Tasks that need background knowledge, checklists, templates, or examples.
Capabilities reused across projects or conversations.
If you only need to save a frequently used prompt, use a Command; if you need a complete way of working, a skill is a better fit.
Next Steps
CommandSave frequently used prompts as reusable shortcut commands.PluginGet skills from the plugin marketplace, or package skills for your team.MCPConnect ZCode Agent to external tools such as the file system and browser.