docs: convert screenshots to webp and update documentation

This commit is contained in:
yiling
2026-06-17 11:37:48 +08:00
parent 6e98d6ee4a
commit 73d02bf319
31 changed files with 138 additions and 105 deletions
+36 -15
View File
@@ -3,7 +3,7 @@ title: Agent Skills
description: Extend your agents' capabilities with custom automation tools.
---
By default, AI models can only process text. In Shumai, you can extend your agents' capabilities by registering **Skills**—custom scripts that the agent can run when solving a task.
By default, AI models can only process text and image. In Shumai, you can extend both your **Chat Agents** and **Autofill Agents'** capabilities by registering **Skills**—custom scripts that the agent can run when solving a task.
---
@@ -11,23 +11,44 @@ By default, AI models can only process text. In Shumai, you can extend your agen
Skills are actions that you define and make available to your AI agents.
- **Descriptions for the AI**: When you register a skill, you write a clear description of what the skill does. The AI agent reads this description to understand when it should use the tool.
- **Tool Execution**: When the Chat Agent decides it needs to use a skill (for example, to post a message to Slack or look up information), it requests to run that skill. Shumai executes the script in the background and returns the results to the agent.
- **Descriptions for the AI**: When you register a skill, the AI agent reads its metadata to understand exactly when and how it should use the tool to solve a problem.
- **Execution & Local Caching**: When an agent decides it needs to use a skill, Shumai handles the execution. Newly added skill data is synced to the database first. Upon execution, the agent downloads and caches the skill locally from the database for fast, reliable access.
---
## Registering a Skill
## Adding a Skill
To add a new skill, navigate to **Team Settings** > **Skills**:
To install a new skill into Shumai:
1. Click **Create Skill**.
2. Fill in the parameters:
- **Name**: E.g., `image_resizer` or `slack_notify`.
- **Description**: A clear explanation of what the tool does (e.g. "Use this tool to send a Slack message to the team channel").
- **Parameters**: Define the input parameters the agent must provide (such as the target channel name and the message text).
- **Script Code**: The automation script code uploaded by your administrator.
3. Click **Save**.
4. Navigate to **Agents** and check the box to assign this skill to your chosen Chat Agent.
1. Navigate to the **Settings** page and open the **Skills** tab.
2. Click the **Add Skill** button.
3. In the dialog box, choose your installation method:
- **Upload**: Select and upload a `.zip` file containing your skill.
- **GitHub**: Provide a valid GitHub repository path.
![Skills List View Placeholder](https://placehold.co/800x400/2C2E3E/D95A66?text=Agent+Skills+List)
_Placeholder: Table displaying custom skills, their descriptions, code editors, and the list of agents currently utilizing them._
> **Important:** Regardless of the installation method, the root folder of the skill must contain a `SKILL.md` file.
### Updating an Existing Skill
To update a skill, simply follow the steps above and install the new version using the exact same skill name. Shumai will automatically replace the older version.
---
## Configuring Environment Variables
If your custom skill requires environment variables (e.g., API keys, external tokens) to function:
1. Click on the installed **Skill Card** in the Skills tab to open the configuration dialog.
2. Add the required environment variables.
3. _(Optional)_ Set a default value for the variable. If no default value is provided, the skill will dynamically load the required value from the system environment at runtime.
---
## Enabling Skills for Agents
**All skills are disabled by default.** Merely installing a skill does not give agents access to it. To allow an agent to use an installed skill:
1. Navigate to your specific **Agent Settings**.
2. Explicitly enable the skills you want to authorize for that particular agent.
![Skills List View](../skills.webp)