Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

feature:技能文档更新

xinyang_bali5956dab4e31d
diff --git "a/docs/assets/images/CliToken\351\205\215\347\275\256.png" "b/docs/assets/images/CliToken\351\205\215\347\275\256.png"
new file mode 100644
index 0000000000..26d8a88afb
Binary files /dev/null and "b/docs/assets/images/CliToken\351\205\215\347\275\256.png" differ
diff --git "a/docs/assets/images/clawhub\345\256\211\350\243\205skill.png" "b/docs/assets/images/clawhub\345\256\211\350\243\205skill.png"
new file mode 100644
index 0000000000..1db9e25ba9
Binary files /dev/null and "b/docs/assets/images/clawhub\345\256\211\350\243\205skill.png" differ
diff --git "a/docs/assets/images/github_token\351\205\215\347\275\256.png" "b/docs/assets/images/github_token\351\205\215\347\275\256.png"
new file mode 100644
index 0000000000..0747d190b5
Binary files /dev/null and "b/docs/assets/images/github_token\351\205\215\347\275\256.png" differ
diff --git "a/docs/assets/images/skillNet\346\220\234\347\264\242.png" "b/docs/assets/images/skillNet\346\220\234\347\264\242.png"
new file mode 100644
index 0000000000..2f5f51d7d4
Binary files /dev/null and "b/docs/assets/images/skillNet\346\220\234\347\264\242.png" differ
diff --git a/docs/assets/images/skill_page_auto.png b/docs/assets/images/skill_page_auto.png
new file mode 100644
index 0000000000..85d55bdc36
Binary files /dev/null and b/docs/assets/images/skill_page_auto.png differ
diff --git "a/docs/assets/images/skill\344\274\230\345\214\226\345\220\216\346\225\210\346\236\234.png" "b/docs/assets/images/skill\344\274\230\345\214\226\345\220\216\346\225\210\346\236\234.png"
new file mode 100644
index 0000000000..3fa71fa8ca
Binary files /dev/null and "b/docs/assets/images/skill\344\274\230\345\214\226\345\220\216\346\225\210\346\236\234.png" differ
diff --git "a/docs/assets/images/skill\344\274\230\345\214\226\345\256\214\346\210\220.png" "b/docs/assets/images/skill\344\274\230\345\214\226\345\256\214\346\210\220.png"
new file mode 100644
index 0000000000..2cea14394a
Binary files /dev/null and "b/docs/assets/images/skill\344\274\230\345\214\226\345\256\214\346\210\220.png" differ
diff --git "a/docs/assets/images/skill\351\246\226\346\254\241\346\225\210\346\236\234.png" "b/docs/assets/images/skill\351\246\226\346\254\241\346\225\210\346\236\234.png"
new file mode 100644
index 0000000000..57a9e6c7f1
Binary files /dev/null and "b/docs/assets/images/skill\351\246\226\346\254\241\346\225\210\346\236\234.png" differ
diff --git "a/docs/assets/images/\345\257\271\350\257\235\346\212\200\350\203\275\350\257\246\346\203\205.png" "b/docs/assets/images/\345\257\271\350\257\235\346\212\200\350\203\275\350\257\246\346\203\205.png"
new file mode 100644
index 0000000000..772a8d6c9e
Binary files /dev/null and "b/docs/assets/images/\345\257\271\350\257\235\346\212\200\350\203\275\350\257\246\346\203\205.png" differ
diff --git "a/docs/assets/images/\345\270\202\345\234\272\346\272\220\346\267\273\345\212\240.png" "b/docs/assets/images/\345\270\202\345\234\272\346\272\220\346\267\273\345\212\240.png"
new file mode 100644
index 0000000000..5da3df8cfd
Binary files /dev/null and "b/docs/assets/images/\345\270\202\345\234\272\346\272\220\346\267\273\345\212\240.png" differ
diff --git "a/docs/assets/images/\346\212\200\350\203\275\345\215\270\350\275\275.png" "b/docs/assets/images/\346\212\200\350\203\275\345\215\270\350\275\275.png"
new file mode 100644
index 0000000000..1d31812fcd
Binary files /dev/null and "b/docs/assets/images/\346\212\200\350\203\275\345\215\270\350\275\275.png" differ
diff --git "a/docs/assets/images/\346\212\200\350\203\275\345\256\211\350\243\205.png" "b/docs/assets/images/\346\212\200\350\203\275\345\256\211\350\243\205.png"
new file mode 100644
index 0000000000..4bbd678c0d
Binary files /dev/null and "b/docs/assets/images/\346\212\200\350\203\275\345\256\211\350\243\205.png" differ
diff --git "a/docs/assets/images/\346\212\200\350\203\275\350\257\246\346\203\205.png" "b/docs/assets/images/\346\212\200\350\203\275\350\257\246\346\203\205.png"
index dde9c5e593..596275dfcf 100644
Binary files "a/docs/assets/images/\346\212\200\350\203\275\350\257\246\346\203\205.png" and "b/docs/assets/images/\346\212\200\350\203\275\350\257\246\346\203\205.png" differ
diff --git "a/docs/assets/images/\346\212\200\350\203\275\350\257\246\346\203\205gitcode-pr.png" "b/docs/assets/images/\346\212\200\350\203\275\350\257\246\346\203\205gitcode-pr.png"
new file mode 100644
index 0000000000..535934aa44
Binary files /dev/null and "b/docs/assets/images/\346\212\200\350\203\275\350\257\246\346\203\205gitcode-pr.png" differ
diff --git "a/docs/assets/images/\346\234\254\345\234\260\345\257\274\345\205\245skill.png" "b/docs/assets/images/\346\234\254\345\234\260\345\257\274\345\205\245skill.png"
new file mode 100644
index 0000000000..44fc7c04e6
Binary files /dev/null and "b/docs/assets/images/\346\234\254\345\234\260\345\257\274\345\205\245skill.png" differ
diff --git a/docs/en/Skills.md b/docs/en/Skills.md
index 0dcc669b65..286b12733a 100644
--- a/docs/en/Skills.md
+++ b/docs/en/Skills.md
@@ -1,111 +1,678 @@
# Skills
-JiuwenClaw’s **Skills** system lets you extend the agent with new capabilities, tool permissions, and extra system prompt content. Use the **Skills** panel in the web UI and the backend `SkillManager` to install, remove, import, and manage skills from multiple sources.
+---
-## 1. Skill sources
+## Concepts
-- **Project / built-in**: Bundled with the repo or project defaults.
-- **Local**: Imported from a path on disk (absolute or relative).
-- **Marketplace**: Downloaded from configured third-party Git repos.
-- **SkillNet**: Search and one-click install from [SkillNet](https://github.com/zjunlp/SkillNet); uses the GitHub API. Without a token, anonymous rate limits apply (~60/hour). Configure **`github_token`** (`GITHUB_TOKEN`) under **Configuration → Third-party** (`skillnet-ai>=0.0.14`).
-- **ClawHub**: Search and one-click install from [ClawHub](https://clawhub.ai/).
+### What is a skill?
-## 2. Skills panel (web UI)
+**Definition:**
-- **List & search**: Shows installed and available marketplace skills; filter by name, description, author, or tags.
+A Skill is a module that extends JiuwenClaw with specific capabilities. You can think of it as an **installable, manageable, reusable capability package**.
+Like apps on a phone extend device capabilities, skills extend the agent’s capability boundaries.
![Skill list](../assets/images/技能列表与检索.png)
-- **Details**: Click a skill for metadata, install state, version, author, **allowed tools**, and `SKILL.md` preview.
+### Skill directory and `SKILL.md` (typical layout)
+
+Each skill is usually a folder that contains at least **`SKILL.md`** (definition: purpose, steps, constraints); optionally `references/` (reference docs), `scripts/` (helpers), and more. This section stays conceptual—see [How to customize skills](#how-to-customize-skills) for folder layout and **YAML frontmatter** details.
+
+**Why skills are needed:**
+
+| Scenario | Without skills | With skills |
+|------|-----------|----------|
+| Create a GitCode PR | You manually call multiple APIs, manage branches, and write commit messages | One sentence like “open a PR” can trigger a full automated flow |
+| Build a PPT | You manually guide content, structure, and export step-by-step | After loading a PPT skill, generate a full deck directly |
+| Handle PR review comments | You manually read comments, edit code, and reply one by one | The skill can fetch comments, patch changes, and reply on the platform |
+
+
+**How skills relate to agent and chat:**
+
+```text
+┌───────────────────────────────────────────────────────┐
+│ Agent │
+│ │
+│ Base capabilities: chat, file ops, web search, code │
+│ │
+│ ┌───────────────────────────────────────────────┐ │
+│ │ Skills layer │ │
+│ │ │ │
+│ │ ┌───────────┐ ┌───────────┐ ┌─────────────┐ │ │
+│ │ │ gitcode-pr│ │pptx-craft ││gitcode-pr-fix│ │ │
+│ │ │ Git ops │ │ PPT build │ │PR review fix│ │ │
+│ │ └───────────┘ └───────────┘ └─────────────┘ │ │
+│ │ │ │
+│ │ Installable / removable / extendable │ │
+│ └───────────────────────────────────────────────┘ │
+│ │
+└───────────────────────────────────────────────────────┘
+
+User request → agent identifies need → load matched skill → execute workflow → return result
+```
+
+**Skill sources:**
+
+JiuwenClaw supports multiple sources:
+
+| Source | Description | Characteristics |
+|------|------|------|
+| **Built-in skills** | Core skills shipped with the product; you still install them from the Skills UI | Matches the product release |
+| **SkillNet** | A general AI skill management and connection platform | Anonymous usage allowed; configuring a GitHub token improves API quota and stability |
+| **ClawHub** | Skill “app store” in the OpenClaw ecosystem | Search and install in the web UI; https://clawhub.ai/skills |
+| **Marketplace** | Third-party marketplace sources | Add the source URL first; community-contributed |
+| **Local import** | User-authored skill files | Fully customizable; ideal for development/debug |
+
+> **Security notice:** Skills may involve file modification, command execution, or external service calls. Always check source and description first; prefer trusted sources.
+
+---
+
+## Operation Guide
+
+### Skill installation
+
+Whether skills come from built-in packages, SkillNet, ClawHub, third-party marketplace sources, or a local folder, **installation and activation are done in the web UI under Skills**. The sections below list prerequisites and paths by source.
+
+#### Built-in skills
+
+Built-in skills are skill resources packaged with JiuwenClaw.
+
+1. **Install**
+
+ Left sidebar → **Skills** → **Install**.
+ ![Skill install](../assets/images/技能安装.png)
+
+#### Install from SkillNet
+
+SkillNet is based on GitHub-hosted skill repositories.
+
+**Prerequisites:**
+- GitHub token is recommended to improve API quota and stability.
+- Token path: GitHub → Settings → Developer settings → Personal access tokens → Generate new token.
+
+**Steps:**
+
+1. **(Optional) Configure GitHub token**
+
+ Open left sidebar → **Skills** → **SkillNet online search**, then enter your GitHub token on the page (optional; improves GitHub API quota and stability).
+ ![github token set](../assets/images/github_token配置.png)
+
+ Or in `config.yaml`:
+
+ ```yaml
+ skill_toolkit:
+ github_token: ${GITHUB_TOKEN}
+ ```
+
+2. **Install**
+
+ Install from the web UI:
+ Left sidebar → **Skills** → **SkillNet online search** → enter a keyword → **Install**.
+ ![skillnet search](../assets/images/skillNet搜索.png)
+
+3. **Confirm success**
-![Skill details](../assets/images/技能详情.png)
+ After installation, confirm the new skill appears in the skill list under left sidebar → **Skills**.
-- **Lifecycle**: **Install** marketplace skills, **uninstall**, or **import** a local `SKILL.md` path or folder into the workspace.
+#### Install from ClawHub
-![Skill lifecycle](../assets/images/技能生命周期管理.png)
+ClawHub URL: https://clawhub.ai/skills
-- **Sources**: **Add** a marketplace Git URL (disabled by default), **enable** to fetch the catalog, **disable** to hide without deleting cache, **delete** to remove the source and its cache.
+**Prerequisites:**
+- First-time use requires ClawHub token configuration.
+- Create the token from your account settings on ClawHub.
-![Skill sources](../assets/images/技能源管理.png)
+**Steps:**
-## 3. Backend behavior
+1. **Get ClawHub token**
-Implementation: `jiuwenclaw/server/runtime/skill/skill_manager.py`.
+ Visit https://clawhub.ai/skills, sign in, open **Settings** in the top-right corner, and create a token.
-### 3.1 Storage
+2. **Configure token in the web UI and complete installation**
-- **`~/.jiuwenclaw/agent/jiuwenclaw_workspace/skills/`**: Active skills, one folder each.
-- **`~/.jiuwenclaw/agent/jiuwenclaw_workspace/skills/_marketplace/`**: Cloned marketplace repos (cache).
+ Left sidebar → **Skills** → **ClawHub online search**.
+ On first visit, complete token configuration on this page:
+ ![clawhub token config](../assets/images/CliToken配置.png)
-### 3.2 State file
+ Search for the target skill, then click **Install**:
+ Same page: **ClawHub online search** → search → **Install**.
+ ![clawhub install](../assets/images/clawhub安装skill.png)
-**`~/.jiuwenclaw/agent/jiuwenclaw_workspace/skills/skills_state.json`** stores marketplace sources, install records (name, market, version, commit, time), and local imports.
+#### Install from Marketplace / third-party sources
+
+Marketplace is not a single official store; it is a collection of community sources.
+
+**Key concepts:**
+- **Source**: a skill repository URL (e.g., GitHub repo or private server).
+- Users obtain the source URL first, then add it in the Skills panel.
+
+**Steps:**
+
+1. **Get source URL**
+
+ From community, docs, or shared links, e.g.:
+
+ ```text
+ https://github.com/xxx/skill-marketplace
+ ```
+
+2. **Add marketplace source**
+
+ Left sidebar → **Skills** → **Source management** → **Add source**, enter the source URL (e.g. `https://github.com/xxx/skill-marketplace`), then save.
+ For step-by-step instructions, see **Add source** under [Skill source management](#skill-source-management) below.
+ ![Add marketplace source](../assets/images/市场源添加.png)
+
+3. **Install from source**
+
+ On the same **Skills** page, search for the target skill and click **Install** in the results; when done, confirm the skill appears in the skill list.
+
+#### Import local skills
+
+Best for:
+- self-developed skills under debugging
+- skill bundles shared by others
+- customizations of existing skills
+
+**Steps:**
+
+1. **Prepare skill files**
+
+ Make sure folder includes `SKILL.md`:
+
+ ```text
+ my-skill/
+ ├── SKILL.md # required
+ ├── references/ # optional
+ └── scripts/ # optional
+ ```
+
+2. **Local import (web UI)**
+
+ Left sidebar → **Skills** → **Local import** → select the local skill folder.
+ ![Local skill import](../assets/images/本地导入skill.png)
+
+3. **Manual copy (optional)**
+
+ Copy skill folder into:
+
+ ```text
+ C:\Users\<username>\.jiuwenclaw\service_default\agent_default\jiuwenclaw_workspace\skills\
+ ```
+
+4. **Verify**
+
+ After installation, confirm the new skill appears in the skill list under left sidebar → **Skills**.
+
+---
-### 3.3 Logic
+### Skill management page
-- Git **clone/pull** for marketplace sync.
-- Parses **`SKILL.md`** YAML frontmatter (`name`, `description`, `allowed_tools`, …); falls back to folder/file name if missing.
-- **Name conflicts** are blocked unless **force** overwrite is used.
+The Skills management page is the main place to manage and browse all skills. Open it from **Skills** in the left sidebar.
-## 4. Authoring a skill
+![Skills management page](../assets/images/skill_page_auto.png)
+
+#### What the page shows
+
+In the skill list, each entry shows:
+
+| Field | Description |
+|--------|-------------|
+| **Skill name** | Unique id, e.g. `gitcode-pr`, `weather` |
+| **Open source** | Whether the skill is open source, for transparency of origin |
+| **Purpose** | Short description of what the skill does |
+| **Status** | Current state, e.g. installed / not installed / enabled / disabled |
+
+#### View skill experience
+
+In the list, use **View skill experience** to browse evolution entries for that skill, one record at a time.
+
+**Each entry typically includes:**
+- **Source**: where the entry came from (e.g. detected signal, chat, or execution context)
+- **Time**: when the record was created or written
+- **Context**: session/task background that triggered the entry
+- **Experience content**: the concrete change text, corresponding to fields such as `change.content`
+
+> **How to see data:** Turn on self-evolution-related settings in **Configuration** first (for example **evolution auto-scan**, mapped to `evolution_auto_scan` / env `EVOLUTION_AUTO_SCAN`; see [Configuration](Configuration.md) and [Skill self-evolution](SkillSelfEvolution.md)). After that, **use the skill once in chat** (or trigger one evolution-worthy signal). Then open **View skill experience** to see entries as above.
+
+> **Why it helps:** Skill experience reflects self-evolution and improvements from real use, so you can judge ongoing usefulness and maintainers get actionable input.
+
+---
+
+### Skill source management
+
+Source management includes add, enable, disable, and delete.
+
+#### When source management is needed
+
+| Scenario | Need source management? |
+|------|----------------|
+| Built-in skills only | No |
+| SkillNet/ClawHub install | No (preconfigured source path) |
+| Third-party community skills | Yes, add source first |
+| Enterprise internal skills | Yes, add internal source |
+| Source migration/retirement | Yes, remove old source and add new |
+
+> **Tip:** Most users only need SkillNet and ClawHub. Source management is mainly for third-party/internal registries.
+
+#### Source operations
+
+**Add source:**
+
+1. Open **Skills** from left sidebar.
+2. Open **Source Management** (source list).
+3. Click **Add source**.
+4. Enter source URL (e.g. `https://github.com/anthropics/skills`) and optional name.
+5. Click **Confirm/Save**.
+
+After success, source appears in list. If source is enabled, its skills become searchable.
+
+**Enable source:**
+
+1. In **Skills → Source Management**, locate target source (e.g. `xxx-source`).
+2. Click **Enable** (or switch toggle ON).
+3. Refresh list or run one search for validation.
+
+After enabling, source skills appear in search results and can be installed directly.
+
+**Disable source:**
+
+1. In **Skills → Source Management**, locate target source.
+2. Click **Disable** (or switch toggle OFF).
+
+After disabling, source skills are hidden from search, but already installed skills remain usable.
+
+**Delete source:**
+
+1. In **Skills → Source Management**, locate target source.
+2. Click **Delete** and confirm in popup.
+
+Deleting source removes source config (and related cache) only; it does not uninstall already installed skills.
+
+**Frontend screenshot**
+![Skill source](../assets/images/技能源管理.png)
+
+---
+
+### Post-install management
+
+After installing skills, you can inspect, verify, and uninstall.
+
+#### View installed skills
+
+**Method 1: Web UI**
+
+Left sidebar → **Skills** to open the Skills management page and browse installed skills (same layout as the “skill list and search” screenshot above; no duplicate figure here).
+
+**Method 2: Chat**
+
+```text
+List my installed skills.
+```
+
+The agent lists installed skill names, sources, versions, and related info.
+
+**Method 3: File path**
+
+```text
+C:\Users\<username>\.jiuwenclaw\service_default\agent_default\jiuwenclaw_workspace\skills\
+```
+
+Each subfolder is one skill.
+
+#### View skill details
+
+There are two common ways: **in chat** or **open the detail page from the Skills UI**.
+
+**Method 1: In chat**
+
+Ask the agent to show a skill’s details, for example:
+
+```text
+Show details for gitcode-pr skill.
+```
-A skill is centered on **`SKILL.md`**. Recommended structure with frontmatter:
+The agent summarizes key fields in the conversation (similar to the screenshot below).
+![Skill details in chat](../assets/images/对话技能详情.png)
+
+**Method 2: From the web UI**
+
+Path: left sidebar → **Skills** → **click the target skill** in the list to open its detail page.
+![Skill detail page](../assets/images/技能详情gitcode-pr.png)
+
+Details include:
+- source (SkillNet / ClawHub / Marketplace / local)
+- description
+- allowed tools
+- version
+- `SKILL.md` content
+
+#### Uninstall skill
+
+You can uninstall from the Skills management page (screenshot below):
+
+![Skill uninstall](../assets/images/技能卸载.png)
+
+After uninstall:
+- Skill files are removed from the `skills` directory
+- Chat no longer auto-loads the skill
+- Past execution results are unaffected
+
+#### Verify whether a skill is active
+
+**Checks:**
+1. Confirm skill appears in installed list.
+2. Try prompt likely to trigger it.
+3. Check `logs` for load records.
+
+**Common states:**
+
+| State | Meaning | Suggestion |
+|------|------|----------|
+| Installed and active | Works normally | No action |
+| Installed but not loaded | Runtime may need restart | Restart and retry |
+| Install failed | Token/network/source issue | Check error and config |
+| Outdated version | Features may be limited | Update to latest |
+
+---
+
+## Usage Guide
+
+### How to use skills in chat
+
+Installed skills can be triggered automatically or manually.
+
+#### Auto trigger
+
+Agent detects intent and loads matching skill.
+
+**Example:**
+
+```text
+User: Help me open a PR on GitCode.
+Agent: [Auto-loads gitcode-pr]
+ Sure, I will create the PR...
+```
+
+#### Explicit trigger
+
+User names the skill directly.
+
+**Example:**
+
+```text
+User: Use pptx-craft to create a product introduction PPT.
+Agent: [Loads pptx-craft]
+ Sure, I will create the PPT...
+```
+
+### How to write prompts that trigger skills more reliably
+
+**Recommended prompts:**
+
+| Recommended prompt | Why |
+|-------------|------|
+| "Open a GitCode PR for me" | Platform + action clearly stated |
+| "Use pptx-craft for a tech sharing PPT" | Skill name + task type |
+| "Do deep research on AI industry trends" | Matches deep-research patterns |
+| "Handle review comments on PR #123" | PR review task maps to review-fix skill |
+
+**Not recommended:**
+
+| Prompt | Issue |
+|---------------|------|
+| "Fix that thing for me" | Too vague |
+| "Make a doc" | Type not specified |
+| "Submit code" | Platform not specified |
+
+### Key fields in skill details
+
+Before using a skill, check:
+
+| Field | Why it matters |
+|--------|------------|
+| **Source** | Trust evaluation |
+| **Description** | Usage fit |
+| **Allowed tools** | What operations it can perform |
+| **Version** | Whether it is up to date |
+
+**Example query:**
+
+```text
+Show gitcode-pr details and SKILL.md content.
+```
+
+---
+
+## Practical examples
+
+### Example 1: Weather query (SkillNet)
+
+**Scenario:**
+The user wants a quick weather summary and short-term forecast for a city.
+
+**Skill acquisition (reproducible, from SkillNet):**
+1. Open **Skills** in the left sidebar.
+2. Open **SkillNet Online Search** and search for `weather`.
+3. Click install, then confirm `weather` appears in your skill list.
+4. If search rate is limited, configure a GitHub Token on the same page and retry.
+
+**Prerequisites (for stable reproduction):**
+- `weather` skill is installed (using the SkillNet steps above)
+- Network can reach public weather services (such as wttr.in / Open-Meteo)
+
+**User input (example):**
+
+```text
+Please use the weather skill to check today's weather
+and the next three days for Beijing.
+```
+
+**Execution flow (expected):**
+1. The agent detects and loads `weather`
+2. It requests real-time and forecast weather data
+3. It summarizes readable output (temperature, condition, wind/precipitation)
+
+**Expected output (example):**
+
+```text
+Beijing weather:
+- Today: Cloudy, 16~28°C
+- Tomorrow: Sunny, 18~30°C
+- Day after tomorrow: Light rain, 19~26°C
+(includes feels-like temperature and precipitation probability)
+```
+
+**Why this case is stably reproducible:**
+- Fixed skill source (SkillNet)
+- Simple and explicit input template (city + time range)
+- No extra business account or complex local setup required
+
+---
+
+### Example 2: PDF processing (SkillNet)
+
+**Scenario:**
+You need to process PDF files quickly (for example merge files, split pages, or extract text) and get directly usable outputs.
+
+**Skill acquisition (reproducible, from SkillNet):**
+1. Open **Skills** in the left sidebar.
+2. Search `pdf` in **SkillNet Online Search**.
+3. Click install and confirm it appears in the installed list.
+4. If search is limited, configure GitHub Token first, then install.
+
+**Prerequisites (for stable reproduction):**
+- `pdf` skill is installed (using SkillNet steps above)
+- Prepare 2 accessible PDF files (for example `a.pdf` and `b.pdf`)
+
+**User input (example):**
+
+```text
+Please use the pdf skill to merge `a.pdf` and `b.pdf` into `merged.pdf`,
+and also provide a text summary for the first two pages.
+```
+
+**Execution flow (expected):**
+1. The agent detects and loads `pdf`
+2. It locates input PDF files and performs merge
+3. It extracts/summarizes text from specified pages
+4. It returns output file path and summary
+
+**Expected output (example):**
+
+```text
+Done:
+1) Merged file generated: `merged.pdf`
+2) Extracted text summary from pages 1-2:
+- Page 1: ...
+- Page 2: ...
+```
+
+---
+
+## Advanced and Troubleshooting
+
+### Common issues and precautions
+
+#### Common issues
+
+**Issue 1: Installation fails**
+
+| Possible cause | Resolution |
+|----------|----------|
+| Missing/invalid token | Check token env config |
+| Network issue | Check connection and retry |
+| Invalid source URL | Verify source accessibility |
+| Skill not found | Verify skill name |
+
+**Issue 2: Skill not visible after install**
+
+| Possible cause | Resolution |
+|----------|----------|
+| Service not restarted | Restart JiuwenClaw |
+| Wrong install path | Verify skill file path |
+| Missing SKILL.md | Ensure skill folder has SKILL.md |
+
+**Issue 3: Skill visible but not triggered**
+
+| Possible cause | Resolution |
+|----------|----------|
+| Prompt mismatch | Use clearer prompts |
+| Skill not enabled | Check status |
+| Tool permission limits | Check permission config |
+
+**Issue 4: Output does not match expectation**
+
+| Possible cause | Resolution |
+|----------|----------|
+| Skill version outdated | Update skill |
+| Input incomplete | Provide required parameters |
+| Skill config mismatch | Read `SKILL.md` usage details |
+
+**Issue 5: Token / permission / source trust**
+
+| Issue type | Resolution |
+|----------|----------|
+| Invalid GitHub token | Regenerate token with proper permissions |
+| Expired ClawHub token | Refresh token from platform |
+| Untrusted source | Inspect source and details before use |
+
+#### Precautions
+
+1. **Prefer trusted sources**
+ - SkillNet and built-in catalogs are relatively centralized—still read descriptions before installing
+ - For ClawHub/Marketplace, verify author and source trust
+
+2. **Read documentation first**
+ - Check `SKILL.md` before running a skill
+ - Confirm scenario fit
+
+3. **Token handling for external services**
+ - GitCode-related skills require `GITCODE_TOKEN`
+ - Other skills may require platform-specific tokens
+
+4. **Check operation scope for file/command skills**
+ - Review allowed tools
+ - Confirm no sensitive files are unintentionally affected
+
+---
+
+### How to customize skills
+
+As an advanced topic, you can create or modify skills.
+
+#### Build a new skill
+
+**Basic folder layout:**
+
+```text
+my-custom-skill/
+├── SKILL.md # Skill definition (required)
+├── references/ # Reference docs (optional)
+│ └── api-reference.md
+└── scripts/ # Helper scripts (optional)
+ └── helper.py
+```
+
+**Core `SKILL.md` content:**
+
+You can let JiuwenClaw help you generate it. **`YAML frontmatter` between the first `---` and second `---` declares metadata**; Markdown after the second `---` is the **skill body**—the instructions the Agent follows. Example:
```markdown
---
name: my-custom-skill
version: 1.0.0
author: your-name
-description: Example custom agent skill
+description: Demo skill that shows how to write a custom Agent skill
tags: [demo, tools]
allowed_tools: [webSearch, readFile]
---
-# Skill body / agent instructions
-
-Describe capabilities, background, or workflows here.
-When `allowed_tools` is set, the agent receives those tools when this skill is loaded.
-```
+# My custom skill
-**Fields**
+When this skill is selected, follow the instructions below.
-- **`name`**: Unique id (required; filename used if omitted).
-- **`allowed_tools`**: Tool names to enable for this skill.
-- **Body**: Woven into the agent’s prompt at runtime.
+## When to use
+- …
----
+## Steps
+1. …
+2. …
+```
-## 5. How skills installed via SkillNet are used in Claw
+**Frontmatter field reference**
-SkillNet installs behave like local/marketplace installs.
+| Field | Required? | Description |
+|-------|-------------|-------------|
+| `name` | Strongly recommended | Unique skill id; prefer `kebab-case`; if omitted, some setups infer from folder name |
+| `description` | Strongly recommended | One-line purpose; pipeline validation usually requires it; avoid `<` and `>` |
+| `version` / `author` | Optional | Version and author |
+| `tags` | Optional | YAML list or comma-separated string |
+| `allowed_tools` | Optional | Related tool names (comma-separated string also allowed); **actual invocation depends on agent tool config and permissions** |
-1. **On disk**
- Copied to **`workspace/agent/skills/<skill-name>/`** with at least `SKILL.md` (`SkillManager.handle_skills_skillnet_install`).
+**Screenshots:** Loading a custom skill folder into the product matches the **Local import** screenshot under [Import local skills](#import-local-skills); generic install UI matches [Built-in skills](#built-in-skills).
-2. **Agent load**
- On create/reload, `interface.py` calls `register_skill(str(_SKILLS_DIR))` so `SkillUtil` scans subfolders (skips `_` prefixes), parses each `SKILL.md`, and feeds `get_skill_prompt()`.
+#### Modify an existing skill
-3. **Runtime**
- The system prompt includes a **Skills** section (`react_agent.py` `_get_skill_messages()`): list names/descriptions and instruct the model to **read the skill with `view_file`** before tasks. Path relative to agent workspace: **`skills/<skill-name>/SKILL.md`**.
+1. **Modify an existing skill through JiuwenClaw**
-4. **Evolution**
- `SkillCallOperator` / `SkillOptimizer` use the same `_SKILLS_DIR`, so SkillNet skills participate in evolution like any other.
+ Talk to JiuwenClaw directly, for example: "Help me optimize the xxx skill and add xxx capability."
-**Summary**: If `workspace/agent/skills/<name>/SKILL.md` exists, the skill appears after the next agent reload; the model uses `view_file("skills/<name>/SKILL.md")` to follow the workflow.
+### Example: Optimize the weather skill by adding UV index display
-## 6. Using ClawHub
+### Before optimization
+The output only includes basic items such as temperature, wind speed, precipitation probability, and clothing advice.
+![Skill effect](../assets/images/skill首次效果.png)
-ClawHub is an online platform for sharing and discovering skills. You can search and install community-contributed skills.
+### Through chat with JiuwenClaw: "Optimize the weather skill and add UV intensity display", the skill is updated
+![Skill improved](../assets/images/skill优化完成.png)
-### 6.1 How to use
+### After optimization
+When you call it again, the output includes not only temperature and wind speed, but also UV intensity.
+![Skill effect after improved](../assets/images/skill优化后效果.png)
-1. **Get Token**
-Login to [https://clawhub.ai/](https://clawhub.ai/) and obtain your access token.
-2. **Search and Install**
-In the **Skills** panel, click the **ClawHub Online Search** button:
-- Enter your token when prompted for first-time use
-- Search for skills by keyword
-- One-click install skills to the local workspace
+---
-ClawHub installs behave like local/marketplace/SkillNet installs and are treated identically in the system.
+*Document version: v1.0*
+*Audience: JiuwenClaw users*
+*Last updated: 2026-05-11*
+*Simplified Chinese: [技能](../zh/技能.md)*
diff --git "a/docs/zh/\346\212\200\350\203\275.md" "b/docs/zh/\346\212\200\350\203\275.md"
index deffcd18b5..4245beb32f 100644
--- "a/docs/zh/\346\212\200\350\203\275.md"
+++ "b/docs/zh/\346\212\200\350\203\275.md"
@@ -1,73 +1,613 @@
-# Skills 技能系统说明
+# 技能
+---
+
+## 概念科普
+
+### 技能是什么
+
+**定义:**
+
+技能(Skill)是给 JiuwenClaw 补充特定能力的模块,可理解为**可安装、可管理、可复用的能力包**。
+
+就像手机上的 App 扩展了手机的功能,技能扩展了智能体的能力边界。
+![Skill list](../assets/images/技能列表与检索.png)
+
+### 技能目录与 SKILL.md(常见结构)
+
+每个技能通常是一个文件夹,至少包含 **`SKILL.md`**(技能定义,说明用途、步骤与约束);可选包含 `references/`(参考文档)、`scripts/`(辅助脚本)等。**正文科普仍以概念为主**,自定义技能的目录示例与 **YAML frontmatter** 写法见下文 [如何自定义技能](#如何自定义技能)。
+
+**为什么需要技能:**
+
+| 场景 | 没有技能时 | 有技能后 |
+|------|-----------|----------|
+| 创建 GitCode PR | 需要手动调用多个 API、处理分支、写提交信息 | 一句话"帮我提个 PR",技能自动完成全流程 |
+| 制作 PPT | 需要逐步指导内容、格式、导出 | 加载 PPT 技能后,直接生成完整演示文稿 |
+| 处理 PR 检视意见 | 需要逐条读取评论、修改代码、回复讨论 | 技能自动获取意见、修改代码、回复平台 |
+
+
+**技能与智能体、对话的关系:**
+
+```
+┌───────────────────────────────────────────────────────┐
+│ 智能体 (Agent) │
+│ │
+│ 基础能力:对话、文件操作、网络搜索、代码执行 │
+│ │
+│ ┌───────────────────────────────────────────────┐ │
+│ │ 技能层 (Skills) │ │
+│ │ │ │
+│ │ ┌───────────┐ ┌───────────┐ ┌─────────────┐ │ │
+│ │ │ gitcode-pr│ │pptx-craft ││gitcode-pr-fix│ │ │
+│ │ │ Git操作 │ │ PPT制作 │ │处理PR检视意见│ │ │
+│ │ └───────────┘ └───────────┘ └─────────────┘ │ │
+│ │ │ │
+│ │ 可安装、可卸载、可扩展 │ │
+│ └───────────────────────────────────────────────┘ │
+│ │
+└───────────────────────────────────────────────────────┘
+
+用户对话 → 智能体识别需求 → 加载对应技能 → 执行专业流程 → 返回结果
+```
+
+**技能来源:**
+
+JiuwenClaw 支持多种技能来源:
+
+| 来源 | 说明 | 特点 |
+|------|------|------|
+| **内置技能** | 系统内置的核心技能,仍需在技能界面进行安装 | 与产品版本一致|
+| **SkillNet** | 一个通用的 AI 技能管理与连接平台 | 可匿名使用;配置 GitHub Token 可提升 API 限额与稳定性 |
+| **ClawHub** | OpenClaw 框架下的技能“应用商店” | 支持在前端搜索与安装,访问 https://clawhub.ai/skills |
+| **Marketplace** | 第三方市场源 | 需先添加源地址,社区贡献 |
+| **本地导入** | 用户自建技能文件 | 完全自定义,适合开发调试 |
+
+> **安全提示**:技能可能涉及文件修改、命令执行、外部服务访问。安装和使用前请先查看来源与说明,优先选择可信来源的技能。
+
+---
+
+## 操作指导
+
+### 技能安装
+
+无论从内置包、SkillNet、ClawHub、第三方市场源还是本地目录获取技能,**安装与启用均在前端「技能」页面完成**。下面按来源说明前置条件与操作路径。
+
+#### 内置技能
+
+内置技能指打包在 JiuwenClaw 中的技能资源。
+
+1. **安装**
+
+ 操作路径:左侧导航栏 → **技能** → **安装**。
+ ![技能安装](../assets/images/技能安装.png)
+
+#### 从 SkillNet 安装技能
+
+SkillNet 是基于 GitHub 的技能仓库网络。
+
+**前置条件:**
+- 建议配置 GitHub Token(用于提升 GitHub API 限额与稳定性)
+- Token 获取方式:GitHub → Settings → Developer settings → Personal access tokens → Generate new token
+
+**安装步骤:**
+
+1. **(可选)配置 GitHub Token**
+
+ 打开左侧导航栏 → **技能** → **SkillNet 在线搜索**,在页面中填写 GitHub Token(可选;用于提升 GitHub API 限额与稳定性)。
+ ![github token set](../assets/images/github_token配置.png)
+
+ 或在配置文件 `config.yaml` 中配置:
+
+ ```yaml
+ skill_toolkit:
+ github_token: ${GITHUB_TOKEN}
+ ```
+
+2. **安装**
+
+ 在前端完成安装:
+ 操作路径:左侧导航栏 → **技能** → **SkillNet 在线搜索** → 输入关键词 → 点击 **安装**。
+ ![skillnet 搜索](../assets/images/skillNet搜索.png)
+
+3. **确认安装成功**
+
+ 安装完成后,在左侧导航栏 → **技能** 模块的技能列表中确认新技能已出现。
+
+#### 从 ClawHub 安装技能
+
+ClawHub 访问地址:https://clawhub.ai/skills
+
+**前置条件:**
+- 首次使用需要配置 ClawHub Token
+- Token 从 ClawHub 平台个人设置中创建
+
+**安装步骤:**
+
+1. **获取 ClawHub Token**
+
+ 访问 https://clawhub.ai/skills,登录后进入右上角 **Settings**,创建 Token。
+
+2. **在前端配置 Token 并完成安装**
+
+ 操作路径:左侧导航栏 → **技能** → **ClawHub 在线搜索**。
+ 首次进入时在该页完成 Token 配置:
+ ![skillnet 搜索](../assets/images/CliToken配置.png)
+
+ 搜索目标技能名称,点击 **安装**:
+ 操作路径(同上页):**ClawHub 在线搜索** → 搜索 → **安装**。
+ ![clawhub安装](../assets/images/clawhub安装skill.png)
+
+#### 从 Marketplace / 第三方市场源安装
+
+Marketplace 不是统一官方商店,而是社区贡献的技能源集合。
+
+**重要概念:**
+- **市场源**:一个技能仓库的地址(如某个 GitHub 仓库或私有服务器)
+- 用户需要先获取源地址,再在技能面板中添加
+
+**安装步骤:**
+
+1. **获取市场源地址**
+
+ 从社区、官方文档或他人分享中获取源地址,例如:
+ ```
+ https://github.com/xxx/skill-marketplace
+ ```
+
+2. **添加市场源**
+
+ 操作路径:左侧导航栏 → **技能** → **技能源管理** → **添加源**,输入市场源地址(例如 `https://github.com/xxx/skill-marketplace`)并保存。
+ 详细步骤见下文 [技能源管理](#技能源管理) 中的「添加源」。
+ ![市场源添加](../assets/images/市场源添加.png)
+
+3. **从源安装技能**
+
+ 仍在 **技能** 页面内搜索目标技能,在结果中点击 **安装**;安装完成后,在技能列表中确认该技能已出现。
+
+#### 导入本地技能
+
+本地技能适合以下场景:
+- 自己开发的技能,正在调试
+- 从他人处获取的技能文件包
+- 需要修改定制已有技能
+
+**安装步骤:**
+
+1. **准备技能文件**
+
+ 确保技能目录包含 `SKILL.md` 文件,结构如下:
+ ```
+ my-skill/
+ ├── SKILL.md # 技能定义文件(必需)
+ ├── references/ # 参考文档(可选)
+ └── scripts/ # 辅助脚本(可选)
+ ```
+
+2. **本地导入(前端)**
+
+ 操作路径:左侧导航栏 → **技能** → **本地导入** → 选择本地技能目录。
+ ![local skill import](../assets/images/本地导入skill.png)
+
+3. **手动放置到技能目录(可选)**
+
+ 将技能文件夹复制到:
+ ```
+ C:\Users\<用户名>\.jiuwenclaw\service_default\agent_default\jiuwenclaw_workspace\skills\
+ ```
+
+4. **确认生效**
+
+ 安装完成后,在左侧导航栏 → **技能** 模块的技能列表中确认新技能已出现。
+
+---
+
+### 技能管理页面
+
+技能管理页面是管理和查看所有技能的核心界面,可通过左侧导航栏的"技能"入口进入。
+
+![技能管理页面](../assets/images/skill_page_auto.png)
+
+#### 页面展示内容
+
+在技能管理页面的技能列表中,每个技能会展示以下关键信息:
+
+| 展示项 | 说明 |
+|--------|------|
+| **技能名称** | 技能的唯一标识名称,如 `gitcode-pr`、`weather` |
+| **开源** | 标识该技能是否为开源技能,方便用户判断技能来源的透明度 |
+| **用途** | 技能的功能描述,简要说明该技能能完成什么任务 |
+| **状态** | 技能的当前状态,如"已安装"、"未安装"、"启用"、"禁用"等 |
+
+#### 查看技能经验
+
+在技能列表中,点击某个技能的 **查看技能经验**,可逐条查看该技能产生的演进经验。
+
+**每条经验通常包含:**
+- **来源**:经验产生的来源(如检测到的信号、对话或执行上下文)
+- **时间**:记录生成或写入的时间
+- **上下文**:触发该条经验时的会话/任务背景说明
+- **经验内容**:具体改进说明,对应数据中的 `change.content` 等字段
+
+> **如何能看到数据:** 需先在 **配置** 中开启自演进相关能力(例如自演进 / 自动检测开关,对应 `evolution_auto_scan` 或环境变量 `EVOLUTION_AUTO_SCAN` 等,详见[配置信息](配置信息.md)与 [Skill 自演进](Skill自演进.md))。开启后,在对话中**实际使用并触发一次**该技能(或产生一次可记录的演进信号),即可在「查看技能经验」中看到上述条目。
+
+> **用途说明**:技能经验反映自演进与真实使用中的改进沉淀,便于判断技能是否持续可用,也为技能维护者提供依据。
+
+---
+
+### 技能源管理
+
+技能源管理包括添加、启用、禁用、删除源。
+
+
+#### 什么时候需要管理源
+
+| 场景 | 是否需要管理源 |
+|------|----------------|
+| 使用内置技能 | 不需要 |
+| 从 SkillNet/ClawHub 安装 | 不需要(已预配置源地址) |
+| 从第三方社区安装技能 | 需要先添加源 |
+| 企业内部技能仓库 | 需要添加内部源地址 |
+| 源地址失效或迁移 | 需要删除旧源、添加新源 |
+
+> **提示**:大多数用户只需使用 SkillNet 和 ClawHub,无需额外管理源。只有在需要第三方或内部技能时才涉及源管理。
+
+#### 源管理操作
+
+**添加源:**
+
+1. 左侧导航栏进入 **技能** 页面。
+2. 打开 **技能源管理** 区域(市场源列表)。
+3. 点击 **添加源**。
+4. 输入源地址(例如:`https://github.com/anthropics/skills`)和可选名称。
+5. 点击 **确认/保存**。
+
+添加成功后,该源会出现在市场源列表中;若源处于启用状态,源内技能会进入可搜索范围。
+
+**启用源:**
+
+1. 在 **技能 → 技能源管理** 中找到目标源(如 `xxx-source`)。
+2. 点击该源右侧的 **启用**(或切换开关到开启状态)。
+3. 刷新技能列表或执行一次搜索验证。
+
+启用后,该源中的技能会出现在搜索结果中,可直接安装。
+
+**禁用源:**
+
+1. 在 **技能 → 技能源管理** 中找到目标源。
+2. 点击 **禁用**(或切换开关到关闭状态)。
+
+禁用后,该源中的技能不再出现在搜索结果中,但已安装技能不受影响,仍可继续使用。
+
+**删除源:**
+
+1. 在 **技能 → 技能源管理** 中找到目标源。
+2. 点击 **删除**,并在弹窗中确认。
+
+删除源只会移除该源配置(及对应缓存),不会自动卸载你已经安装的技能。
+
+**前端操作**
+![Skill source](../assets/images/技能源管理.png)
+
+---
+
+### 安装后管理
+
+安装技能后,需要进行查看、验证、卸载等管理操作。
+
+#### 查看已安装技能
+
+**方法一:前端查看**
+
+左侧导航栏 → **技能**,进入技能管理页即可浏览已安装技能(界面布局与上文「技能列表与检索」示意图一致,此处不再重复插图)。
+
+**方法二:通过对话**
+
+```
+帮我查看已安装的技能列表
+```
+
+智能体会列出所有已安装技能的名称、来源、版本等信息。
+
+**方法三:查看技能目录**
+
+直接打开文件夹:
+```
+C:\Users\<用户名>\.jiuwenclaw\service_default\agent_default\jiuwenclaw_workspace\skills\
+```
+
+每个子文件夹对应一个技能。
+
+#### 查看技能详情
+
+查看技能详情有两种常见方式:**通过对话展示**,或**从前端技能页点进详情**。
+
+**方式一:通过对话**
+
+在对话中请求展示某个技能的详情,例如:
+
+```
+帮我查看 gitcode-pr 技能的详情
+```
+
+智能体会在对话里汇总并展示该技能的关键信息(可与下图类似)。
+![对话中查看技能详情](../assets/images/对话技能详情.png)
+
+**方式二:从前端进入**
+
+操作路径:左侧导航栏 → **技能** → 在技能列表中**点击目标技能**,进入技能详情页查看完整内容。
+![前端技能详情页](../assets/images/技能详情gitcode-pr.png)
+
+详情包括:
+- **来源**:SkillNet / ClawHub / Marketplace / 本地
+- **说明**:技能用途描述
+- **允许工具**:该技能可调用的工具列表
+- **版本**:技能版本号
+- **SKILL.md 内容**:技能定义文件
+
+#### 卸载技能
+
+可在技能管理页对目标技能执行卸载(下图):
+![技能卸载](../assets/images/技能卸载.png)
+
+卸载后:
+- 技能文件从 skills 目录移除
+- 对话中不再自动加载该技能
+- 已执行的任务结果不受影响
+
+#### 判断技能是否生效
+
+**检查方法:**
+
+1. **查看技能列表**:确认技能出现在已安装列表中
+2. **尝试调用**:用相关需求测试技能是否被触发
+3. **查看日志**:检查 logs 目录,确认技能加载记录
+
+**常见状态:**
+
+| 状态 | 说明 | 处理建议 |
+|------|------|----------|
+| 已安装且生效 | 正常可用 | 无需处理 |
+| 已安装但未加载 | 可能需要重启服务 | 重启后重试 |
+| 安装失败 | Token/网络/源问题 | 查看错误信息,检查配置 |
+| 版本过旧 | 功能可能受限 | 更新到最新版本 |
+
+---
+
+## 使用教程
+
+### 如何在对话中使用技能
+
+安装完成后,技能会在对话中自动或手动触发。
+
+#### 自动触发
+
+智能体根据用户需求自动识别并加载合适技能。
+
+**示例:**
+
+```
+用户:帮我往 GitCode 提一个 PR
+智能体:[自动加载 gitcode-pr 技能]
+ 好的,我来帮你创建 PR...
+```
+
+#### 手动指定
+
+用户可以明确指定使用某个技能。
+
+**示例:**
+
+```
+用户:请使用 pptx-craft 技能帮我做一个产品介绍 PPT
+智能体:[加载 pptx-craft 技能]
+ 好的,我来制作 PPT...
+```
+
+### 如何描述需求更容易调用技能
-JiuwenClaw 的 **Skills (技能)** 系统允许为 Agent 动态地扩展能力、提供工具权限控制、以及补充系统提示词等功能。通过直观的前端「技能」面板和完善的后端机制,用户可以轻松地安装、卸载、导入和管理来自不同源的技能。
+**推荐写法:**
-## 1. 技能来源
+| 推荐 Prompt | 说明 |
+|-------------|------|
+| "帮我在 GitCode 提一个 PR" | 明确平台和操作,触发 gitcode-pr |
+| "用 pptx-craft 做一个技术分享 PPT" | 明确技能名和任务类型 |
+| "帮我深度研究一下 AI 行业趋势" | 任务关键词匹配 deep-research 技能 |
+| "处理一下 PR #123 的检视意见" | PR 相关任务触发 review-fix 技能 |
-JiuwenClaw 支持安装多种来源的技能:
+**不推荐写法:**
-- **项目/内置 (Project/Built-in)**:随代码库或项目自带默认存在的技能。
-- **本地 (Local)**:用户从本地文件系统(通过绝对路径或相对路径)导入的自定义技能。
-- **市场 (Marketplace)**:从配置的第三方 Git 仓库(例如远程的技能合集仓库)下载和安装的外部插件与技能。
-- **SkillNet**:通过「SkillNet 在线搜索」从 [SkillNet](https://github.com/zjunlp/SkillNet) 检索并一键安装的在线技能,与上述来源在系统中的使用方式一致。底层会访问 GitHub API;未配置令牌时匿名额度约 60 次/小时,建议在 **配置 → 第三方服务** 填写 `github_token`(`GITHUB_TOKEN`,需 `skillnet-ai>=0.0.14`)。
-- **ClawHub**:通过「ClawHub 在线搜索」从 [ClawHub](https://clawhub.ai/) 检索并一键安装的在线技能。
+| 不推荐 Prompt | 问题 |
+|---------------|------|
+| "帮我弄一下那个东西" | 太模糊,无法识别技能 |
+| "做个文档" | 未明确类型,可能不触发特定技能 |
+| "提交代码" | 未明确平台,可能不触发 GitCode 技能 |
-## 2. 前端「技能」面板
+### 技能详情中值得关注的信息
-JiuwenClaw 提供了直观的「技能」面板,涵盖了技能的完整生命周期管理:
+在使用技能前,建议先查看技能详情:
-- **技能列表与检索**:
- - 展示所有可用技能,涵盖本地已安装和 Marketplace 中未安装的技能。
- - 支持通过关键词快速过滤(匹配名称、描述、作者或标签)。
+| 信息项 | 为什么重要 |
+|--------|------------|
+| **来源** | 判断技能可信度 |
+| **说明** | 了解技能适用场景 |
+| **允许工具** | 知晓技能可执行的操作范围(如文件修改、命令执行) |
+| **版本** | 确认是否为最新版本 |
-![技能列表与检索](../assets/images/技能列表与检索.png)
+**查看方式:**
-- **技能详情预览**:
- - 单击技能可查看其详细元数据,如:来源、状态(已安装/未安装/内置)、版本、作者等。
- - 显示该技能指定的 **允许工具 (Allowed Tools)**,直观了解其具备的扩展能力。
- - 支持直接在界面上预览技能文件 (`SKILL.md`) 的正文内容。
+```
+请展示 gitcode-pr 技能的详情和 SKILL.md 内容
+```
+
+---
+
+## 案例实践
+
+### 案例 1:天气查询(SkillNet)
+
+**场景:**
+用户希望快速获取某个城市的天气与近期预报。
-![技能详情](../assets/images/技能详情.png)
+**Skill 获取方式(可复现,来自 SkillNet):**
+1. 左侧导航栏进入 **技能**。
+2. 进入 **SkillNet 在线搜索**,搜索 `weather`。
+3. 点击安装,并在技能列表中确认 `weather` 已出现。
+4. 如搜索频率受限,可在同页配置 GitHub Token 后重试。
-- **操作与生命周期管理**:
- - **安装**:对来自 Marketplace 但尚未安装的技能,可以一键安装。支持手动指定 `plugin@marketplace` 的规格格式进行精确安装。
- - **卸载**:将不再需要的 Marketplace 技能移除,释放空间并保持环境整洁。
- - **导入本地技能**:通过输入服务器上的本地 `SKILL.md` 路径或文件夹目录,将其拷贝进入系统工作区并激活。
+**前置条件(确保稳定复现):**
+- 已安装 `weather` 技能(按上面 SkillNet 步骤)
+- 网络可访问公共天气服务(如 wttr.in / Open-Meteo)
-![技能生命周期管理](../assets/images/技能生命周期管理.png)
+**用户输入(示例):**
+```
+请使用 weather 技能,查询北京今天和未来三天的天气。
+```
-- **源管理**:
- - **添加源**:添加一个第三方的 Marketplace 市场源 (Git 仓库地址),添加后默认禁用。
- - **启用源**:启用一个第三方的 Marketplace 市场源,启用后会自动拉取该市场的最新技能列表。
- - **禁用源**:禁用一个第三方的 Marketplace 市场源,禁用后不再显示该市场的技能列表,但不会删除该市场的本地缓存。
- - **删除源**:删除一个第三方的 Marketplace 市场源,删除后会删除该市场的本地缓存,并从系统中移除该市场。
+**执行过程(预期):**
+1. 智能体识别并加载 `weather` 技能
+2. 请求天气接口获取实时与预报数据
+3. 汇总为可读结果(温度、天气、风力/降水等)
-![技能源管理](../assets/images/技能源管理.png)
+**结果展示(示例):**
+```
+北京天气:
+- 今日:多云,16~28°C
+- 明日:晴,18~30°C
+- 后天:小雨,19~26°C
+(含体感温度与降水概率)
+```
+
+**该案例可稳定复现的关键:**
+- Skill 来源固定(SkillNet)
+- 输入模板简单明确(城市 + 时间范围)
+- 无需额外业务账号或复杂本地环境
+
+---
+
+### 案例 2:PDF 文档处理(SkillNet)
+
+**场景:**
+你需要快速处理 PDF(如合并多个 PDF、拆分页面、提取文本),并得到可直接使用的结果文件。
+
+**Skill 获取方式(可复现,来自 SkillNet):**
+1. 左侧导航栏进入 **技能**。
+2. 在 **SkillNet 在线搜索** 中搜索 `pdf`。
+3. 点击安装,并在技能列表中确认安装成功。
+4. 如搜索受限,先配置 GitHub Token,再安装。
+
+**前置条件(确保稳定复现):**
+- 已安装 `pdf` 技能(按上面 SkillNet 步骤)
+- 准备 2 个可访问的 PDF 文件(例如 `a.pdf`、`b.pdf`)
+
+**用户输入(示例):**
+```
+请使用 pdf 技能,把 `a.pdf` 和 `b.pdf` 合并为 `merged.pdf`,
+并额外输出前两页的文本摘要。
+```
+
+**执行过程(预期):**
+1. 智能体识别并加载 `pdf` 技能
+2. 定位输入 PDF 文件并执行合并
+3. 对指定页面执行文本提取/摘要
+4. 返回输出文件路径与摘要结果
+
+**结果展示(示例):**
+```
+处理完成:
+1) 已生成合并文件:merged.pdf
+2) 已提取第 1-2 页文本摘要:
+- 第 1 页:……
+- 第 2 页:……
+```
+
+---
-## 3. 后端「技能」管理机制
+## 进阶与排查
-后端的底层管理由 `jiuwenclaw/server/runtime/skill/skill_manager.py` 驱动。
+### 常见问题与注意事项
-### 3.1 目录与文件存储
-系统内所有的技能数据默认独立存放于 Workspace 目录下:
-- **`~/.jiuwenclaw/agent/jiuwenclaw_workspace/skills/`**:存放当前已被系统识别、安装或导入的可执行技能。每个技能以独立文件夹存在。
-- **`~/.jiuwenclaw/agent/jiuwenclaw_workspace/skills/_marketplace/`**:作为缓存目录,存放通过 Git 克隆下来的各个 Marketplace 仓库,内部包含了供用户安装的众多未激活插件。
+#### 常见问题
-### 3.2 状态持久化
-整个技能生态的状态信息被持久化保存在 **`~/.jiuwenclaw/agent/jiuwenclaw_workspace/skills/skills_state.json`** 中。该文件记录了:
-- 用户配置的所有 Marketplace 列表及其启用/禁用状态。
-- 当前已安装插件的详细记录(包含插件名、所属市场、版本、Git Commit Hash 及安装时间戳)。
-- 手动导入的本地技能记录。
+**问题 1:安装失败**
-### 3.3 核心处理逻辑
-- **远端同步 (Git 协作)**:系统在后台使用 `git clone` 和 `git pull` 等命令与 Marketplace 仓库交互,确保市场列表缓存随时保持更新。
-- **元数据解析**:智能解析 `SKILL.md`。系统能够读取并解析文件开头的 `YAML frontmatter` (由 `---` 包裹的内容),抽取出如 `name`、`description`、`allowed_tools` 等关键元数据。若没有配置元数据,则智能回退以文件夹/文件名称作为技能名。
-- **冲突处理机制**:在安装市场技能或导入本地技能发生同名冲突时,后端具备安全拦截机制,同时开放 `force` 强制覆盖参数处理更新逻辑。
+| 可能原因 | 解决方案 |
+|----------|----------|
+| Token 未配置或无效 | 检查环境变量中的 Token 配置 |
+| 网络连接问题 | 检查网络,尝试重新安装 |
+| 源地址错误 | 确认源地址正确且可访问 |
+| 技能不存在 | 确认技能名称正确 |
-## 4. 「技能」开发指南
+**问题 2:技能安装后看不到**
-如果你想自己编写一个技能,其核心就是一个命名为 `SKILL.md` 的文件。
-你可以通过 JiuwenClaw 帮助你生成,推荐使用 `YAML frontmatter` 来声明其属性,标准结构如下:
+| 可能原因 | 解决方案 |
+|----------|----------|
+| 未重启服务 | 重启 JiuwenClaw 服务 |
+| 安装路径错误 | 确认技能文件在正确目录 |
+| SKILL.md 缺失 | 确认技能包含 SKILL.md 文件 |
+
+**问题 3:能看到技能但调用不到**
+
+| 可能原因 | 解决方案 |
+|----------|----------|
+| 需求描述不匹配 | 使用更明确的 prompt |
+| 技能未启用 | 检查技能状态 |
+| 技能工具权限受限 | 检查配置中的工具权限 |
+
+**问题 4:结果不符合预期**
+
+| 可能原因 | 解决方案 |
+|----------|----------|
+| 技能版本过旧 | 更新到最新版本 |
+| 输入信息不完整 | 补充必要参数 |
+| 技能配置问题 | 查看 SKILL.md 了解正确用法 |
+
+**问题 5:Token / 权限 / 来源问题**
+
+| 问题类型 | 解决方案 |
+|----------|----------|
+| GitHub Token 无效 | 重新生成 Token,确保有 repo 权限 |
+| ClawHub Token 过期 | 从平台重新获取 |
+| 来源不可信 | 查看技能详情,确认来源可信 |
+
+#### 注意事项
+
+1. **优先安装可信来源技能**
+ - SkillNet、内置等资源相对集中,仍建议先看说明再安装
+ - ClawHub、Marketplace 等需确认来源与作者可信
+
+2. **使用前先看说明**
+ - 查看 SKILL.md 了解技能用途
+ - 确认技能适用场景
+
+3. **涉及外部服务时关注密钥配置**
+ - GitCode 技能需配置 GITCODE_TOKEN
+ - 其他平台技能按说明配置相应 Token
+
+4. **涉及文件或命令操作时先确认作用范围**
+ - 查看技能的"允许工具"列表
+ - 确认操作不会影响重要文件
+
+---
+
+### 如何自定义技能
+
+作为进阶内容,用户可以从零开发或修改已有技能。
+
+#### 从零开发技能
+
+**技能基本结构:**
+
+```
+my-custom-skill/
+├── SKILL.md # 技能定义文件(必需)
+├── references/ # 参考文档(可选)
+│ └── api-reference.md
+└── scripts/ # 辅助脚本(可选)
+ └── helper.py
+```
+
+**SKILL.md 核心内容:**
+
+你可以通过 JiuwenClaw 帮助你生成;**推荐使用 `YAML frontmatter`(置于首个 `---` 与第二个 `---` 之间)声明元数据**,其后的 Markdown 为**技能正文**,即 Agent 执行时的操作说明。完整示例如下:
```markdown
---
@@ -79,53 +619,52 @@ tags: [demo, tools]
allowed_tools: [webSearch, readFile]
---
-# 技能正文 / Agent 提示词
+# 我的自定义技能
-在此处编写希望赋予 Agent 的能力描述、系统背景设定或工作流指导。
-当你将 allowed_tools 包含进来时,系统会在加载此技能时,动态给 Agent 赋予相应工具的执行权限。
-```
+当本技能被选用时,请按以下说明协助用户。
-**关键字段说明**:
-- **`name`**:技能的唯一标识符(必需,若缺省会以文件名兜底)。
-- **`allowed_tools`**:一个字符串数组。声明该技能需要请求哪些系统工具(如网络搜索、文件读取等)。
-- **正文**:这部分内容在实际运行时,会被编织到大模型 Agent 的提示词上下文中,从而影响 Agent 的行为和心智。
+## 适用场景
+- …
----
+## 执行步骤
+1. …
+2. …
+```
-## 5. SkillNet 安装的技能在 Claw 中如何被使用
+**frontmatter 关键字段说明:**
-从 SkillNet 搜索并安装的技能与「本地导入 / 市场安装」的技能走同一套流程,Claw 对它们一视同仁。
+| 字段 | 必填性 | 说明 |
+|------|--------|------|
+| `name` | 强烈建议 | 技能唯一标识,宜 `kebab-case`;未写时部分场景会用目录名推断 |
+| `description` | 强烈建议 | 一句话用途说明;流水线校验通常要求存在,且不宜含 `<`、`>` |
+| `version` / `author` | 可选 | 版本号、作者 |
+| `tags` | 可选 | 列表或逗号分隔字符串 |
+| `allowed_tools` | 可选 | 与本技能相关的工具名列表(亦支持逗号分隔);**实际能否调用以 Agent 工具配置与权限为准** |
-1. **落盘位置**
- 安装后技能被拷贝到 **Skill 根目录** `~/.jiuwenclaw/agent/jiuwenclaw_workspace/skills/<技能名>/`,目录内至少包含 `SKILL.md`(由 `SkillManager.handle_skills_skillnet_install` 通过 `_locate_skill_dir` 定位并整目录拷贝)。
+**界面配图:** 将自定义技能文件夹载入产品时,操作界面可参考上文 [导入本地技能](#导入本地技能) 中的「本地导入」截图;技能安装入口的通用 UI 可参考 [内置技能](#内置技能) 小节的安装示意图。
-2. **Agent 加载**
- 创建或重载 Agent 时,`interface.py` 会调用 `register_skill(str(_SKILLS_DIR))`,即把上述 Skill 根目录传给 openjiuwen 的 `SkillUtil`。`SkillUtil.register_skills()` 会扫描该目录下所有子目录(跳过 `_` 开头),解析每个子目录的 `SKILL.md`(frontmatter + 正文),并生成技能列表与描述,供 `get_skill_prompt()` 使用。
+#### 基于已有技能修改
-3. **运行时使用**
- 系统提示中会注入一段「Skills」说明(见 `react_agent.py` 的 `_get_skill_messages()`):
- - 列出当前所有技能的名称与描述;
- - 明确要求:*"Before attempting any task, read the relevant skill document (SKILL.MD) using **view_file** and follow its workflow."*
- 因此模型会通过 **view_file** 工具按需读取技能文档。相对 Agent 工作区 `~/.jiuwenclaw/agent/jiuwenclaw_workspace/`,技能文档路径为 **`skills/<技能名>/SKILL.md`**。
+1. **通过jiuwenClaw修改已有skill**
-4. **Evolution / 技能调用**
- `SkillCallOperator`、`SkillOptimizer` 的 `skills_base_dir` 在 interface 中同样设为 `_SKILLS_DIR`,因此 SkillNet 安装的技能也会参与技能演化、摘要与 `get_merged_content` 等逻辑,与其它来源技能一致。
+通过与jiuwenClaw进行对话,输入帮我优化xxx skill,新增 xxx 功能
-**结论**:SkillNet 安装的技能只要出现在 `~/.jiuwenclaw/agent/jiuwenclaw_workspace/skills/<name>/` 且含有 `SKILL.md`,在下次创建或重载 Agent 后就会出现在系统提示的技能列表中,模型通过 `view_file("skills/<name>/SKILL.md")` 读取并按照文档中的流程使用。
+### 示例:优化weather skill,新增紫外线展示
-## 6. ClawHub 使用指南
+### 优化前
+输出结果只包含气温、风速、降水概率、穿衣建议等基础项
+![Skill effect](../assets/images/skill首次效果.png)
-ClawHub 是一个在线技能分享平台,你可以在上面搜索和下载社区贡献的技能。
+### 通过与jiuwenClaw对话:“优化一下weather skill, 添加展示紫外线强度”,对skill完成优化
+![Skill improved](../assets/images/skill优化完成.png)
-### 6.1 使用步骤
+### 优化后
+再次调用,输出结果不仅包含气温、风速等基础项,还带上了紫外线强度
+![Skill effect after improved](../assets/images/skill优化后效果.png)
-1. **获取 Token**
-登录 [https://clawhub.ai/](https://clawhub.ai/) 并获取你的访问 Token。
-2. **搜索和安装**
-在「技能」面板中点击「ClawHub 在线搜索」按钮:
-- 首次使用时输入 Token 进行配置
-- 输入关键词搜索感兴趣的技能
-- 一键安装找到的技能到本地
+---
-ClawHub 安装的技能与「本地导入 / 市场安装 / SkillNet」的技能走同一套流程,在系统中被一视同仁。
\ No newline at end of file
+*文档版本:v1.0*
+*适用对象:JiuwenClaw 用户*
+*最后更新:2026-05-11*