-
Notifications
You must be signed in to change notification settings - Fork 390
docs: add skills overview and skill library guides #906
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
f9c91a2
docs: add skills overview and skill library guides
Ill-donut ad6be82
docs: clarify skill-resource pairing sentence in skills overview
Ill-donut ff9fa01
docs: streamline skills guides wording after review
Ill-donut 41ba845
docs: skills can be referenced in prompt regardless of source
Ill-donut 5d8f5bf
docs: merge skills guides into one page and refine agent skills section
Ill-donut 8912e13
docs: refine skills create-flow structure and agent skills notes
Ill-donut 7ed6f0c
docs: align skills page with style conventions and tidy wording
Ill-donut 82c228b
docs: drop redundant "as context" from skill builder file-types line
Ill-donut 88d95c0
docs: document skill upload limit env var and tidy skills sections
Ill-donut 20ab2ba
style: inline skill upload limit env var per docs convention
Ill-donut 4e44f03
docs: move skill library capacity into library intro
Ill-donut 0d406e5
fix: filter skills by tags, not the library
Ill-donut 252f7ed
docs: align skill pages with unified limits and PRD updates
Ill-donut d9f45df
docs: tighten skills example and upload limit wording
Ill-donut 7ecb583
docs: update skill builder attachment types and limits
Ill-donut 46530c4
docs: describe version restore as draft replacement
Ill-donut 97661d4
docs: refine skill management guidance
Ill-donut e806e69
docs: clarify skill package file limit
Ill-donut 1676474
docs: standardize skill terminology
Ill-donut 7d77122
translate: sync skill management docs
Ill-donut File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| --- | ||
| title: Skills | ||
| sidebarTitle: Skills | ||
| description: Package a task and its supporting files into a reusable skill, then share it workspace-wide | ||
| --- | ||
|
|
||
| A *skill* is a self-contained package you build once and reuse. It includes a `SKILL.md` that holds the instructions for one task and tells the agent when to use it, plus any reference materials and scripts the task needs. For the full format, see [Agent Skills](https://agentskills.io/home). | ||
|
|
||
| You can keep up to 500 skills in the library and share them workspace-wide. When you publish an update to a skill, every agent that uses it picks up the latest version. | ||
|
|
||
| Use a skill in: | ||
|
|
||
| - a [New Agent](/en/self-host/use-dify/build/new-agent/build#skills) app | ||
| - a [New Agent node](/en/self-host/use-dify/nodes/agent) in a [Workflow app](/en/self-host/use-dify/build/workflow-chatflow) | ||
|
|
||
| Create, import, and manage your library skills on the **Skills** page. | ||
|
|
||
| <Info> | ||
| Creating and managing skills requires the Editor role or above. | ||
| </Info> | ||
|
|
||
| ## Create a Skill | ||
|
|
||
| From **Skills**, click **Create**. To start from a copy instead, choose **Duplicate** from an existing skill's **⋯** menu; published skills are copied without draft changes. Either way you land in the editor, where you write the skill yourself or draft it with the [Skill Builder](#draft-with-the-skill-builder). | ||
|
|
||
| In the body of `SKILL.md`, lay out the procedure for the agent to follow. In the frontmatter, set: | ||
|
|
||
| - **Display name**: the name shown at the top of the sidebar and anywhere the skill appears. Make it easy to recognize. | ||
| - **Name**: the unique name agents use to reference the skill, like `refund-requests`. | ||
| - **Description**: what the agent reads to decide whether to use the skill. Make it specific. | ||
| - **Metadata**: custom fields for your own reference details, like `owner: payments-team` or `source: https://wiki.example.com/refund-policy`. | ||
|
|
||
| Add any scripts, references, and other supporting files through the file tree. What you can do with each depends on its type: | ||
|
|
||
| - **Text and code** (Markdown, scripts, JSON, YAML, CSV, and the like): edit in place. | ||
| - **Images and PDFs**: preview in place. | ||
| - **Other files**: download to view. | ||
|
|
||
| ### Draft with the Skill Builder | ||
|
|
||
| Chat with the Skill Builder and it drafts the skill for you. Describe the scenario or attach existing process docs, and it writes the `SKILL.md` and creates supporting files to review and refine. | ||
|
|
||
| It accepts the following file types: | ||
|
|
||
| | Type | Examples | | ||
| |:-----|:---------| | ||
| | PDF | `.pdf` | | ||
| | Word | `.doc`, `.docx` | | ||
| | Excel | `.xls`, `.xlsx` | | ||
| | PowerPoint | `.ppt`, `.pptx` | | ||
| | RTF | `.rtf` | | ||
| | Image | `.png`, `.jpg`, `.jpeg`, `.gif`, `.webp`, `.svg` | | ||
| | Text and data | `.txt`, `.md`, `.csv`, `.json`, `.yaml` | | ||
|
|
||
| Attach up to 10 files per message: images up to 10 MB and other files up to 15 MB. They are context for the Skill Builder, not part of the skill. To include a file, add it through the file tree. | ||
|
|
||
| ## Import a Skill | ||
|
|
||
| To bring in a skill built elsewhere as a library skill, click **Import** and choose a `.zip` or `.skill` package that contains a `SKILL.md` file. The package can be up to 50 MB by default; you can change this limit with the [`UPLOAD_SKILL_FILE_SIZE_LIMIT`](/en/self-host/deploy/configuration/environments#upload_skill_file_size_limit) environment variable. Once imported, it arrives as a draft for you to review and publish. | ||
|
|
||
| ## Tag a Skill | ||
|
|
||
| Add tags to a skill on its card or in the editor, then filter skills by tags. | ||
|
|
||
| ## Publish and Versions | ||
|
|
||
| Your edits autosave as a draft. Publish the draft so you can add it to agents. Each publish is saved as a version you can revisit or restore later. To record what a version changed, give it a title and note with **Edit version info** in its **⋯** menu. | ||
|
|
||
| <Note> | ||
| Restoring a version replaces your current draft. Publish the draft to make it the newest version. | ||
| </Note> | ||
|
|
||
| ## Export a Skill | ||
|
|
||
| To take a skill beyond this workspace, choose **Export** from the **⋯** menu on its card. You get the skill's latest published version as a `.zip`. | ||
|
|
||
| ## Delete a Skill | ||
|
|
||
| Deleting a skill removes it from the workspace and from every agent that uses it, along with all of its versions. A deleted skill can't be recovered; export a copy first if you may need it again. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.