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

fix(docs): 修复SwarmSkills文档结构

xiaoxiawang971376dc8b7b
diff --git "a/docs/assets/images/jiuwenswarm\344\270\223\345\256\266\350\257\204\344\274\260.png" "b/docs/assets/images/jiuwenswarm\344\270\223\345\256\266\350\257\204\344\274\260.png"
new file mode 100644
index 0000000000..3752fb0e02
Binary files /dev/null and "b/docs/assets/images/jiuwenswarm\344\270\223\345\256\266\350\257\204\344\274\260.png" differ
diff --git "a/docs/assets/images/jiuwenswarm\345\214\273\347\226\227\345\260\261\350\257\212\346\241\210\344\276\213.png" "b/docs/assets/images/jiuwenswarm\345\214\273\347\226\227\345\260\261\350\257\212\346\241\210\344\276\213.png"
new file mode 100644
index 0000000000..1385d292d7
Binary files /dev/null and "b/docs/assets/images/jiuwenswarm\345\214\273\347\226\227\345\260\261\350\257\212\346\241\210\344\276\213.png" differ
diff --git "a/docs/assets/images/jiuwenswarm\345\214\273\347\226\227\346\212\245\345\221\212\347\224\237\346\210\220.png" "b/docs/assets/images/jiuwenswarm\345\214\273\347\226\227\346\212\245\345\221\212\347\224\237\346\210\220.png"
new file mode 100644
index 0000000000..d6e2c6cf22
Binary files /dev/null and "b/docs/assets/images/jiuwenswarm\345\214\273\347\226\227\346\212\245\345\221\212\347\224\237\346\210\220.png" differ
diff --git a/docs/en/SwarmSkills.md b/docs/en/SwarmSkills.md
index 2d4c4b2e5e..62f7bbe745 100644
--- a/docs/en/SwarmSkills.md
+++ b/docs/en/SwarmSkills.md
@@ -1,47 +1,47 @@
-# Team Skills
+# Swarm Skills
-JiuwenClaw's **Team Skills** is a standardized capability package designed for multi-Agent collaboration. It is not a capability patch for a single Agent — rather, it captures a proven team collaboration workflow as a reusable, replicable, and evolvable team collaboration SOP, so that complex tasks no longer need to be improvised from scratch every time.
+JiuwenSwarm's **Swarm Skills** is a standardized capability package designed for multi-Agent collaboration. It is not a capability patch for a single Agent — rather, it captures a proven team collaboration workflow as a reusable, replicable, and evolvable team collaboration SOP, so that complex tasks no longer need to be improvised from scratch every time.
----
+***
## 1. Concept Overview
-### 1.1 What Are Team Skills?
+### 1.1 What Are Swarm Skills?
-Team Skills occupy the **multi-Agent collaboration layer** in JiuwenClaw's skill system. If an Agent Skill answers "how a single Agent does things," then a Team Skill answers "how a team of Agents works together."
+Swarm Skills occupy the **multi-Agent collaboration layer** in JiuwenSwarm's skill system. If an Agent Skill answers "how a single Agent does things," then a Swarm Skill answers "how a team of Agents works together."
-In traditional AI Agent usage, when facing complex tasks, users often need to manually orchestrate how multiple Agents collaborate — who does what, who goes first, what happens when something goes wrong. This approach requires starting from scratch every time, produces inconsistent collaboration quality, and makes workflows hard to reuse. Team Skills exist precisely to solve this pain point:
+In traditional AI Agent usage, when facing complex tasks, users often need to manually orchestrate how multiple Agents collaborate — who does what, who goes first, what happens when something goes wrong. This approach requires starting from scratch every time, produces inconsistent collaboration quality, and makes workflows hard to reuse. Swarm Skills exist precisely to solve this pain point:
- **Capture once, reuse repeatedly**: Encapsulate proven team collaboration workflows as standardized capability packages. When encountering similar tasks next time, simply invoke the skill — no need to re-orchestrate.
- **Evolvable workflows**: Collaboration workflows are not static. They can be continuously optimized and iterated based on real-world usage feedback.
- **Predictable quality**: Pre-defined role assignments, collaboration sequences, and exception handling strategies make output quality more consistent across runs.
-### 1.2 Team Skills vs. Agent Skills
+### 1.2 Swarm Skills vs. Agent Skills
-| Dimension | Agent Skill | Team Skill |
-|-----------|-------------|------------|
-| **Positioning** | Capability extension for a single Agent | Collaboration pattern encapsulation for a multi-Agent team |
-| **Focus** | How a single Agent does things | How a team of Agents works together |
-| **Structure** | Single `SKILL.md` file | Directory structure (SKILL.md + roles + workflow + bind + dependencies) |
-| **Use cases** | Single tasks that one Agent can complete | Complex tasks requiring multi-role collaboration and workflow reuse |
+| Dimension | Agent Skill | Swarm Skill |
+| ----------------- | ----------------------------------------------- | ---------------------------------------------------------------------------- |
+| **Positioning** | Capability extension for a single Agent | Collaboration pattern encapsulation for a multi-Agent team |
+| **Focus** | How a single Agent does things | How a team of Agents works together |
+| **Structure** | Single `SKILL.md` file | Directory structure (SKILL.md + roles + workflow + bind + dependencies) |
+| **Use cases** | Single tasks that one Agent can complete | Complex tasks requiring multi-role collaboration and workflow reuse |
| **Collaboration** | No collaboration — Agent executes independently | Pre-defined role assignments, collaboration workflow, and exception handling |
-| **Reusability** | Capability is reusable | Collaboration workflow is reusable |
+| **Reusability** | Capability is reusable | Collaboration workflow is reusable |
-Simple analogy: An Agent Skill is like giving one person a professional skill (e.g., "can do data analysis"), while a Team Skill is like establishing a collaboration SOP for a team (e.g., "how a research team goes from investigation to writing to review to produce a report").
+Simple analogy: An Agent Skill is like giving one person a professional skill (e.g., "can do data analysis"), while a Swarm Skill is like establishing a collaboration SOP for a team (e.g., "how a research team goes from investigation to writing to review to produce a report").
### 1.3 Cross-Framework Portability
-Team Skills are not limited to the JiuwenClaw platform. Their core design philosophy — role assignments, collaboration workflows, boundary constraints — represents a universal way to encapsulate team collaboration capabilities, adaptable to other AI Agent frameworks that support similar collaboration standards. This means:
+Swarm Skills are not limited to the JiuwenSwarm platform. Their core design philosophy — role assignments, collaboration workflows, boundary constraints — represents a universal way to encapsulate team collaboration capabilities, adaptable to other AI Agent frameworks that support similar collaboration standards. This means:
-- A Team Skill created in JiuwenClaw can, in principle, be migrated to other platforms supporting similar collaboration standards.
+- A Swarm Skill created in JiuwenSwarm can, in principle, be migrated to other platforms supporting similar collaboration standards.
- The standardized 5-file structure provides a foundation for cross-framework interoperability.
-- Community-contributed Team Skills can be shared across different platforms, building a shared team skill ecosystem together.
+- Community-contributed Swarm Skills can be shared across different platforms, building a shared team skill ecosystem together.
----
+***
## 2. Structure
-A Team Skill is fundamentally a **structured directory**, not a single documentation file. This design allows each element of team collaboration — roles, workflows, boundaries, dependencies — to be clearly organized and maintained.
+A Swarm Skill is fundamentally a **structured directory**, not a single documentation file. This design allows each element of team collaboration — roles, workflows, boundaries, dependencies — to be clearly organized and maintained.
### 2.1 Directory Structure Overview
@@ -65,19 +65,21 @@ team-skill-name/
### 2.2 Key Files
-| File | Purpose | Required |
-|------|---------|----------|
-| `SKILL.md` | Team skill entry file; defines metadata such as skill name, description, applicable scenarios, role list, and file index | Yes |
-| `roles/*.md` | Role definition files; each file describes one Agent role's responsibilities, capabilities, and behavioral norms | Yes |
-| `workflow.md` | Collaboration workflow definition; describes interaction sequences, task flows, and decision nodes between roles (includes mermaid flowchart) | Yes |
-| `bind.md` | Boundary and exception handling rules; defines resource constraints, behavioral constraints, and failure handling strategies | Yes |
-| `dependencies.yaml` | External dependency declarations; lists tools, other skills, etc. required for the skill to run | Yes |
+| File | Purpose | Required |
+| ------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
+| `SKILL.md` | Team skill entry file; defines metadata such as skill name, description, applicable scenarios, role list, and file index | Yes |
+| `roles/*.md` | Role definition files; each file describes one Agent role's responsibilities, capabilities, and behavioral norms | Yes |
+| `workflow.md` | Collaboration workflow definition; describes interaction sequences, task flows, and decision nodes between roles (includes mermaid flowchart) | Yes |
+| `bind.md` | Boundary and exception handling rules; defines resource constraints, behavioral constraints, and failure handling strategies | Yes |
+| `dependencies.yaml` | External dependency declarations; lists tools, other skills, etc. required for the skill to run | Yes |
### 2.3 Core File Details
+> This section uses the **medical consultation team scenario** as an example to walk through each file of a Swarm Skill. This skill's main function is to organize multi-disciplinary medical experts (internist, surgeon, radiologist) for parallel evaluation of complex cases via a coordinator, and to integrate their opinions into structured treatment recommendations.
+
#### SKILL.md — Team Entry Point
-`SKILL.md` is the Team Skill's entry file, using YAML frontmatter to declare metadata:
+`SKILL.md` is the Swarm Skill's entry file, using YAML frontmatter to declare metadata:
```markdown
---
@@ -108,9 +110,9 @@ roles:
tools: []
---
-# Medical Consultation Team Skill
+# Medical Consultation Swarm Skill
-This team skill uses a specialization pipeline pattern (Pattern C) to organize multi-disciplinary medical experts for case consultation, solving the convergence bias problem that arises when a single Agent role-plays multiple perspectives.
+This swarm skill uses a specialization pipeline pattern (Pattern C) to organize multi-disciplinary medical experts for case consultation, solving the convergence bias problem that arises when a single Agent role-plays multiple perspectives.
## Workflow
@@ -144,11 +146,11 @@ This team skill uses a specialization pipeline pattern (Pattern C) to organize m
**Key field descriptions**:
- **`name`**: Unique skill identifier; must match the directory name (kebab-case, conventionally ending with `-team`).
-- **`kind`**: Must be `team-skill` (note: not `type`), distinguishing Team Skills from regular Agent Skills.
+- **`kind`**: Must be `team-skill` (note: not `type`), distinguishing Swarm Skills from regular Agent Skills.
- **`roles`**: Role list; **at least 2 roles required**, each role must include `id` (role identifier), `purpose` (one-line responsibility description, ≤150 characters), `skills` (dependent skill list), and `tools` (dependent tool list).
- **`description`**: Skill description following conciseness principles (≤4 lines, ≤500 characters), using WHAT / WHEN / NOT three-line structure.
-#### roles/*.md — Role Definitions
+#### roles/\*.md — Role Definitions
Each role file defines one Agent's responsibilities and behavior, containing 5 mandatory sections:
@@ -160,7 +162,7 @@ Each role file defines one Agent's responsibilities and behavior, containing 5 m
Example:
-```markdown
+````markdown
---
role_name: coordinator
description: Consultation coordinator, responsible for organizing experts and consolidating opinions
@@ -217,19 +219,19 @@ You are a consultation coordinator. Your responsibilities are:
6. Output a structured treatment recommendation report
You do not provide direct medical diagnostic opinions; you ensure all expert opinions are fully expressed and integrated.
-```
+````
-#### workflow.md — Collaboration Workflow
+#### workflow\.md — Collaboration Workflow
Defines interaction sequences and task flows between roles, containing 3 mandatory sections:
-1. **`## Overview`**: Workflow overview; must include a mermaid flowchart — this is the core expressive difference between Team Skills and single-Agent Skills.
+1. **`## Overview`**: Workflow overview; must include a mermaid flowchart — this is the core expressive difference between Swarm Skills and single-Agent Skills.
2. **`## Detailed Steps`**: Detailed steps; each step includes executor, input, output, serial/parallel designation, and quality gate.
3. **`## Acceptance Criteria`**: Acceptance criteria; standards for judging whether a collaboration run was successful.
Example:
-```markdown
+````markdown
# Consultation Collaboration Workflow
## Overview
@@ -286,7 +288,7 @@ graph TD
- All invited experts have submitted opinions (or missing opinions are noted)
- Areas of disagreement have been identified and handled
- The final report is structured and includes comprehensive treatment recommendations
-```
+````
#### bind.md — Boundary and Exception Handling
@@ -360,26 +362,26 @@ tools:
**Field Descriptions**:
-| Field | Segment | Required | Description | Example Values |
-|-------|---------|----------|-------------|----------------|
-| `name` | skills, tools | Yes | Skill/tool name | `web-research`, `readFile` |
-| `source` | skills | Yes | Skill source | `local` (local), `hub` (skill center) |
-| `required` | skills, tools | Yes | Whether required | `true` (required), `false` (optional) |
-| `purpose` | skills, tools | Yes | Purpose description (≤150 chars) | `Assist experts in searching latest medical literature` |
+| Field | Segment | Required | Description | Example Values |
+| ---------- | ------------- | -------- | -------------------------------- | ------------------------------------------------------- |
+| `name` | skills, tools | Yes | Skill/tool name | `web-research`, `readFile` |
+| `source` | skills | Yes | Skill source | `local` (local), `hub` (skill center) |
+| `required` | skills, tools | Yes | Whether required | `true` (required), `false` (optional) |
+| `purpose` | skills, tools | Yes | Purpose description (≤150 chars) | `Assist experts in searching latest medical literature` |
> **Note**: Even when there are no dependencies, you must explicitly write `skills: []` and `tools: []` (an empty list signals "checked, confirmed no dependency of this type" — different from omitting the segment, which is a spec violation).
----
+***
## 3. Usage Guide
-### 3.1 Getting Started with Team Skills
+### 3.1 Getting Started with Swarm Skills
-Users typically begin using Team Skills through the following steps:
+Users typically begin using Swarm Skills through the following steps:
-**Step 1: Acquire a Team Skill from Team Skills Hub**
+**Step 1: Acquire a Swarm Skill from Team Skills Hub**
-1. Open JiuwenClaw's "Skills" panel
+1. Open JiuwenSwarm's "Skills" panel
2. Click "Team Skills Hub Online Search"
3. Enter keywords to search for the team skill you need (e.g., "medical consultation", "research report")
4. Click "Install" to add the skill to your workspace
@@ -387,82 +389,82 @@ Users typically begin using Team Skills through the following steps:
You can also search and install via command line:
```
-# Search Team Skills
-/teamskills search "medical consultation"
+# Search Swarm Skills
+/swarmskills search "medical consultation"
-# View Team Skill details
-/teamskills info <asset_id> --version 1.0.0
+# View Swarm Skill details
+/swarmskills info <asset_id> --version 1.0.0
-# Install a Team Skill
-/teamskills install <asset_id> --version 1.0.0
+# Install a Swarm Skill
+/swarmskills install <asset_id> --version 1.0.0
```
> **Tip**: `<asset_id>` is the unique skill identifier on Team Skills Hub (e.g., `sk-123`), shown in search results.
-**Step 2: Use in JiuwenClaw**
+**Step 2: Use in JiuwenSwarm**
-After installation, the Team Skill automatically appears in the available skills list:
+After installation, the Swarm Skill automatically appears in the available skills list:
1. Describe your task objective in the conversation
-2. The system recognizes and invokes the appropriate Team Skill
+2. The system recognizes and invokes the appropriate Swarm Skill
3. The team collaboration workflow runs automatically according to the predefined process
4. Receive structured output results
-### 3.2 When to Use Team Skills
+### 3.2 When to Use Swarm Skills
-Team Skills are particularly suited for the following scenarios:
+Swarm Skills are particularly suited for the following scenarios:
-| Scenario Characteristic | Description | Example |
-|-------------------------|-------------|---------|
-| Long task chains | Complex tasks requiring multiple steps and stages | From research to writing to review to produce a research report |
-| Clear role division | Tasks decomposable into sub-tasks across different professional domains | Multi-disciplinary medical consultation requiring internal medicine, surgery, and radiology experts |
-| Desire to reuse proven workflows | Don't want to redesign collaboration every time | Regularly executed code reviews, security audits |
-| Structured output needed | Need standardized reports, proposals, or recommendations | Treatment recommendation reports, research reports, audit reports |
+| Scenario Characteristic | Description | Example |
+| -------------------------------- | ----------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
+| Long task chains | Complex tasks requiring multiple steps and stages | From research to writing to review to produce a research report |
+| Clear role division | Tasks decomposable into sub-tasks across different professional domains | Multi-disciplinary medical consultation requiring internal medicine, surgery, and radiology experts |
+| Desire to reuse proven workflows | Don't want to redesign collaboration every time | Regularly executed code reviews, security audits |
+| Structured output needed | Need standardized reports, proposals, or recommendations | Treatment recommendation reports, research reports, audit reports |
-**Comparison: When to use Agent Skill vs. Team Skill**
+**Comparison: When to use Agent Skill vs. Swarm Skill**
-| Situation | Recommended Choice | Reason |
-|-----------|-------------------|--------|
-| Single task, one Agent can complete | Agent Skill | No multi-role collaboration needed; Team Skill adds unnecessary overhead |
-| Multi-step reasoning needed, but no role division | Agent Skill + workflow | The process can be executed step-by-step by a single Agent |
-| Multiple professional roles need to collaborate | **Team Skill** | Different roles' professional perspectives are irreplaceable |
-| Fixed task workflow, needs reuse | **Team Skill** | Predefined workflows can be reused; quality is more stable |
-| Adversarial checking needed (e.g., code review) | **Team Skill** | Single Agent role-playing multiple perspectives tends to produce convergence bias |
+| Situation | Recommended Choice | Reason |
+| ------------------------------------------------- | ---------------------- | --------------------------------------------------------------------------------- |
+| Single task, one Agent can complete | Agent Skill | No multi-role collaboration needed; Swarm Skill adds unnecessary overhead |
+| Multi-step reasoning needed, but no role division | Agent Skill + workflow | The process can be executed step-by-step by a single Agent |
+| Multiple professional roles need to collaborate | **Swarm Skill** | Different roles' professional perspectives are irreplaceable |
+| Fixed task workflow, needs reuse | **Swarm Skill** | Predefined workflows can be reused; quality is more stable |
+| Adversarial checking needed (e.g., code review) | **Swarm Skill** | Single Agent role-playing multiple perspectives tends to produce convergence bias |
### 3.3 Key Usage Principles
-The core value of Team Skills lies in: **choosing the right Team Skill and letting the team collaboration workflow run automatically**, rather than manually orchestrating each Agent.
+The core value of Swarm Skills lies in: **choosing the right Swarm Skill and letting the team collaboration workflow run automatically**, rather than manually orchestrating each Agent.
-Three key principles when using Team Skills:
+Three key principles when using Swarm Skills:
-1. **Choose the right Team Skill**: Select a team skill that matches your task characteristics. If existing skills don't perfectly match, you can modify an existing skill or create a new one using `teamskill-creator`.
+1. **Choose the right Swarm Skill**: Select a team skill that matches your task characteristics. If existing skills don't perfectly match, you can modify an existing skill or create a new one using `swarmskill-creator`.
2. **Provide clear input**: Provide complete task information as required by the skill. Clearer input leads to higher collaboration output quality.
3. **Understand the output structure**: Know the skill's output format for easier downstream processing and usage.
-Three advantages of Team Skills over ad-hoc team assembly:
+Three advantages of Swarm Skills over ad-hoc team assembly:
-| Advantage | Ad-hoc Assembly | Team Skill |
-|-----------|----------------|------------|
-| Role assignment rules | Need to reassign every time; may miss or confuse | Pre-defined, stable and reliable |
-| Collaboration sequence | May miss critical steps | workflow.md explicitly defines the sequence |
-| Exception handling | Ad-hoc decisions, inconsistent | bind.md provides unified strategies |
+| Advantage | Ad-hoc Assembly | Swarm Skill |
+| ---------------------- | ------------------------------------------------ | -------------------------------------------- |
+| Role assignment rules | Need to reassign every time; may miss or confuse | Pre-defined, stable and reliable |
+| Collaboration sequence | May miss critical steps | workflow\.md explicitly defines the sequence |
+| Exception handling | Ad-hoc decisions, inconsistent | bind.md provides unified strategies |
### 3.4 Cross-Framework Reuse Potential
-Team Skills use a standardized structure definition (5-file specification) with cross-framework reuse potential:
+Swarm Skills use a standardized structure definition (5-file specification) with cross-framework reuse potential:
- Collaboration standards are based on a universal role-workflow-boundary model, not dependent on specific framework implementation details
- Adaptable to other AI Agent platforms supporting similar collaboration standards
- Facilitates migration and sharing of team collaboration experience across different frameworks
- Team Skills Hub serves as a community sharing platform, promoting cross-framework skill ecosystem development
----
+***
## 4. Case Study
### 4.1 Case: Multi-Disciplinary Medical Expert Consultation
-This case demonstrates the practical value of Team Skills in a medical consultation scenario.
+This case demonstrates the practical value of Swarm Skills in a medical consultation scenario.
#### Applicable Scenario
@@ -495,6 +497,8 @@ Please organize an expert consultation and provide treatment recommendations.
**Phase 2: Expert Evaluation (Parallel)**
+![Expert Evaluation](../assets/images/jiuwenswarm专家评估.png)
+
```
[cardiologist] Cardiovascular evaluation:
- ST-segment elevation suggests possible myocardial injury
@@ -523,6 +527,8 @@ Please organize an expert consultation and provide treatment recommendations.
**Phase 4: Output Results**
+![Medical Consultation Report Overview](../assets/images/jiuwenswarm医疗就诊案例.png)
+
```markdown
# Consultation Report #2024-001
@@ -556,19 +562,23 @@ Consultation time: 2024-01-15 14:30
Participating experts: Cardiology Dr. Zhang, Respiratory Dr. Li, Radiology Dr. Wang
```
-#### Team Skills Advantage Demonstration
+The screenshot below shows the actual execution result of the medical consultation Swarm Skill in JiuwenSwarm, including the completed task list and generated consultation report file:
-| Advantage | Ad-hoc Assembly | Team Skill |
-|-----------|----------------|------------|
-| Role assignment | Need to reassign who evaluates what every time | Pre-defined roles (cardiology/respiratory/radiology), stable and reliable |
-| Collaboration sequence | May miss steps (e.g., forgetting to integrate disagreements) | workflow.md explicitly defines: analyze → evaluate → integrate → output |
-| Exception handling | What if an expert times out? Ad-hoc decision | bind.md unified strategy: skip and note missing opinion |
-| Output format | Different format every time | Structured, standardized report |
-| Reusability | Next consultation starts from scratch again | Same Team Skill can be reused |
+![Medical Consultation Execution Result](../assets/images/jiuwenswarm医疗报告生成.png)
+
+#### Swarm Skills Advantage Demonstration
+
+| Advantage | Ad-hoc Assembly | Swarm Skill |
+| ---------------------- | ------------------------------------------------------------ | ------------------------------------------------------------------------- |
+| Role assignment | Need to reassign who evaluates what every time | Pre-defined roles (cardiology/respiratory/radiology), stable and reliable |
+| Collaboration sequence | May miss steps (e.g., forgetting to integrate disagreements) | workflow\.md explicitly defines: analyze → evaluate → integrate → output |
+| Exception handling | What if an expert times out? Ad-hoc decision | bind.md unified strategy: skip and note missing opinion |
+| Output format | Different format every time | Structured, standardized report |
+| Reusability | Next consultation starts from scratch again | Same Swarm Skill can be reused |
### 4.2 Case: Research and PPT Writing Team
-This case demonstrates Team Skills in a content production scenario.
+This case demonstrates Swarm Skills in a content production scenario.
#### Applicable Scenario
@@ -616,39 +626,41 @@ including market data, technology trends, and future outlook.
[coordinator] Outputs final PPT content
```
----
+***
## 5. Creation Guide
-### 5.1 Creating New Team Skills with teamskill-creator
+### 5.1 Creating New Swarm Skills with swarmskill-creator
-JiuwenClaw provides the `teamskill-creator` skill to help users create, convert, or modify Team Skills. It includes standardized templates, decision trees, and an automated validator to ensure created Team Skills comply with the specification.
+JiuwenSwarm provides the `swarmskill-creator` skill to help users create, convert, or modify Swarm Skills. It includes standardized templates, decision trees, and an automated validator to ensure created Swarm Skills comply with the specification.
+
+![swarmskill-creator](./swarmskill.png)
**Getting and Installing**:
-`teamskill-creator` is a built-in skill in JiuwenClaw and requires no additional installation. If the skill is not available in your environment, you can obtain it through:
+`swarmskill-creator` is a built-in skill in JiuwenSwarm and requires no additional installation. If the skill is not available in your environment, you can obtain it through:
```bash
# Search and install from skill center
-/skills search teamskill-creator
-/skills install teamskill-creator
+/skills search swarmskill-creator
+/skills install swarmskill-creator
```
**Three modes**:
-| Mode | Use Case | Output |
-|------|----------|--------|
-| **CREATE** | Create a new team skill from scratch | New `<teamskill-name>/` directory with the complete 5-file set |
-| **CONVERT** | Convert an existing single-Agent Skill to a Team Skill | Transformed `<teamskill-name>/` directory + delta report |
-| **MODIFY** | Modify an existing Team Skill (add/remove roles, adjust workflow, etc.) | Updated files |
+| Mode | Use Case | Output |
+| ----------- | ----------------------------------------------------------------------- | --------------------------------------------------------------- |
+| **CREATE** | Create a new team skill from scratch | New `<swarmskill-name>/` directory with the complete 5-file set |
+| **CONVERT** | Convert an existing single-Agent Skill to a Swarm Skill | Transformed `<swarmskill-name>/` directory + delta report |
+| **MODIFY** | Modify an existing Swarm Skill (add/remove roles, adjust workflow, etc.) | Updated files |
#### Creation Workflow Example
The following demonstrates creating a "Research and Report Writing Team" as a complete creation process:
-**Step 1: Determine if a Team Skill is needed**
+**Step 1: Determine if a Swarm Skill is needed**
-First confirm: does this task truly require multi-role collaboration? A Team Skill is only worth creating when at least one of these applies:
+First confirm: does this task truly require multi-role collaboration? A Swarm Skill is only worth creating when at least one of these applies:
1. **Adversarial blind spot**: A single Agent role-playing multiple perspectives produces converging outputs (e.g., code review, security audit)
2. **Parallel decomposition gain**: Multiple independent sub-tasks can run concurrently, and integration is non-trivial (e.g., multi-angle research)
@@ -660,12 +672,12 @@ If none apply → recommend using a single-Agent Skill instead.
Choose a collaboration pattern based on task characteristics:
-| Pattern | Use Case | Role Count | Inter-role Visibility |
-|---------|----------|------------|----------------------|
-| A. Adversarial / Cross-check | Blind spot problems | 2-4 | Not visible (isolation is the value) |
-| B. Parallel decomposition | Independent sub-tasks | 2-N | Not visible until integration |
-| C. Specialization pipeline | Sequential expert stages | 3-5 | Each stage sees prior stage output |
-| Mixed | Multiple justifications stack | 4-6 | Pattern-by-stage |
+| Pattern | Use Case | Role Count | Inter-role Visibility |
+| ---------------------------- | ----------------------------- | ---------- | ------------------------------------ |
+| A. Adversarial / Cross-check | Blind spot problems | 2-4 | Not visible (isolation is the value) |
+| B. Parallel decomposition | Independent sub-tasks | 2-N | Not visible until integration |
+| C. Specialization pipeline | Sequential expert stages | 3-5 | Each stage sees prior stage output |
+| Mixed | Multiple justifications stack | 4-6 | Pattern-by-stage |
The Research and Report Writing Team fits **C. Specialization pipeline** pattern (research → writing → review, sequential stages with quality gates).
@@ -688,7 +700,7 @@ research-report-team/
Write `workflow.md` with mermaid flowchart, detailed steps, and acceptance criteria:
-```markdown
+````markdown
## Overview
```mermaid
@@ -702,7 +714,7 @@ graph TD
RV -->|Pass| OUT[Output final report]
RV -->|Needs revision| W
```
-```
+````
**Step 5: Write boundary and exception handling**
@@ -740,75 +752,77 @@ Write `dependencies.yaml` and `SKILL.md`, referencing content produced in previo
**Step 7: Validate**
-Run the automated validator to ensure the Team Skill complies with the specification:
+Run the automated validator to ensure the Swarm Skill complies with the specification:
```bash
# Method 1: Use TUI built-in command (recommended)
-/teamskills validate path/to/research-report-team/ --type teamskills
+/swarmskills validate path/to/research-report-team/ --type swarmskills
# Method 2: Use standalone validation script
-python scripts/validate_teamskill.py path/to/research-report-team/
+python scripts/validate_swarmskill.py path/to/research-report-team/
```
The validator checks:
+
- All 5 files are present
- Frontmatter required fields are complete (`name`, `kind`, `roles`)
- `roles` has at least 2 entries, each with `id` and `purpose`, `id` must not repeat
- Role file names match `roles[].id`
- Each role file contains 5 mandatory sections
-- workflow.md contains a mermaid diagram
+- workflow\.md contains a mermaid diagram
- bind.md contains 3 mandatory sections
- dependencies.yaml contains `skills` and `tools` segments
- Skills/tools declared in SKILL.md appear in dependencies.yaml
**Exit code 0 = compliant**. Non-zero exit codes print specific failing checks.
-### 5.2 Modifying an Existing Team Skill
+### 5.2 Modifying an Existing Swarm Skill
-Use `teamskill-creator`'s MODIFY mode to modify existing Team Skills:
+Use `swarmskill-creator`'s MODIFY mode to modify existing Swarm Skills:
-| Change Type | Stages to Re-run | Files to Update |
-|-------------|-----------------|----------------|
-| Edit role Identity / Boundary / Schema | Stage 2 (affected role only) | `roles/<id>.md` |
-| Add or remove a role | Stage 1a + 2 + 3 + 4 + 5 | All 5 files |
-| Change workflow steps / topology | Stage 3 | `workflow.md` + `bind.md` (if constraints change) |
-| Change bind constraints | Stage 4 | `bind.md` |
-| Change dependencies | Stage 2 (auto-match) + 5 | `dependencies.yaml` + `SKILL.md` frontmatter |
+| Change Type | Stages to Re-run | Files to Update |
+| -------------------------------------- | ---------------------------- | ------------------------------------------------- |
+| Edit role Identity / Boundary / Schema | Stage 2 (affected role only) | `roles/<id>.md` |
+| Add or remove a role | Stage 1a + 2 + 3 + 4 + 5 | All 5 files |
+| Change workflow steps / topology | Stage 3 | `workflow.md` + `bind.md` (if constraints change) |
+| Change bind constraints | Stage 4 | `bind.md` |
+| Change dependencies | Stage 2 (auto-match) + 5 | `dependencies.yaml` + `SKILL.md` frontmatter |
**Important**: Regardless of edit size, Stage 7 (validation) must always be executed.
-### 5.3 Converting a Single-Agent Skill to a Team Skill
+### 5.3 Converting a Single-Agent Skill to a Swarm Skill
-Use `teamskill-creator`'s CONVERT mode to transform an existing single-Agent Skill into a Team Skill:
+Use `swarmskill-creator`'s CONVERT mode to transform an existing single-Agent Skill into a Swarm Skill:
1. **Read the source SKILL.md** and identify natural role boundaries:
- Find embedded multi-persona setups (e.g., "act as Persona 1 / Persona 2 / Persona 3")
- Find sequential stages with quality gates (e.g., "first do X, then validate Y, then produce Z")
- - Find checklists that branch by category (e.g., "[ ] security [ ] performance [ ] readability")
-2. **Articulate the conversion value**: What is lost in single-Agent form? This becomes the Team Skill's "why"
+ - Find checklists that branch by category (e.g., "\[ ] security \[ ] performance \[ ] readability")
+2. **Articulate the conversion value**: What is lost in single-Agent form? This becomes the Swarm Skill's "why"
3. **Continue from Step 2** following the CREATE workflow
### 5.4 Publishing to Team Skills Hub
-After creation, you can share your Team Skill with the community to build the team skill ecosystem together:
+After creation, you can share your Swarm Skill with the community to build the team skill ecosystem together:
**Step 1: Validate completeness**
```bash
# Method 1: Use TUI built-in command (recommended)
-/teamskills validate path/to/<teamskill-name>/ --type teamskills
+/swarmskills validate path/to/<swarmskill-name>/ --type swarmskills
# Method 2: Use standalone validation script
-python scripts/validate_teamskill.py path/to/<teamskill-name>/
+python scripts/validate_swarmskill.py path/to/<swarmskill-name>/
```
Ensure exit code is 0 (compliant).
**Step 2: Upload and publish**
-In JiuwenClaw's "Skills" panel:
+In JiuwenSwarm's "Skills" panel:
+
1. Click "Team Skills Hub"
-2. Select the Team Skill to publish
+2. Select the Swarm Skill to publish
3. Click "Upload"
4. First-time use requires authentication (enter your Team Skills Hub Token)
@@ -816,80 +830,81 @@ You can also publish via command line:
```
# Publish to Team Skills Hub (requires authentication)
-/teamskills publish path/to/<teamskill-name> --version 1.0.0 --token <TOKEN>
+/swarmskills publish path/to/<swarmskill-name> --version 1.0.0 --token <TOKEN>
# To overwrite an existing version, add --force
-/teamskills publish path/to/<teamskill-name> --version 1.0.1 --token <TOKEN> --force
+/swarmskills publish path/to/<swarmskill-name> --version 1.0.1 --token <TOKEN> --force
```
-> **Authentication note**: Publish and delete operations require `--token` (user Token) or `--system-token` (system Token), and you must choose exactly one. You can pre-configure your token via `/teamskills config --token <TOKEN>` to avoid entering it manually each time.
+> **Authentication note**: Publish and delete operations require `--token` (user Token) or `--system-token` (system Token), and you must choose exactly one. You can pre-configure your token via `/swarmskills config --token <TOKEN>` to avoid entering it manually each time.
**Step 3: Maintain and update**
After publishing, you can continuously iterate:
+
- Re-validate after modifying roles, workflows, or constraints
- Re-publish after updating the version number
- Optimize collaboration workflows based on community feedback
### 5.5 Best Practices
-| Practice | Description |
-|----------|-------------|
-| Appropriate role granularity | Roles should not be too fine (increases coordination cost) or too coarse (loses division advantage) |
-| Clear and concise workflow | Avoid overly complex collaboration workflows; maintain understandability |
-| Explicit boundary conditions | Cover common exception scenarios in bind.md |
-| Provide examples | Include usage examples in examples/ to reduce learning cost |
-| Adversarial mottos | Each role's motto should reflect a unique perspective, preventing role convergence |
-| Validation is mandatory | Run the validator after every creation or modification |
-| Description follows conciseness principles | SKILL.md description ≤4 lines, ≤500 characters, using WHAT / WHEN / NOT structure |
+| Practice | Description |
+| ------------------------------------------ | --------------------------------------------------------------------------------------------------- |
+| Appropriate role granularity | Roles should not be too fine (increases coordination cost) or too coarse (loses division advantage) |
+| Clear and concise workflow | Avoid overly complex collaboration workflows; maintain understandability |
+| Explicit boundary conditions | Cover common exception scenarios in bind.md |
+| Provide examples | Include usage examples in examples/ to reduce learning cost |
+| Adversarial mottos | Each role's motto should reflect a unique perspective, preventing role convergence |
+| Validation is mandatory | Run the validator after every creation or modification |
+| Description follows conciseness principles | SKILL.md description ≤4 lines, ≤500 characters, using WHAT / WHEN / NOT structure |
----
+***
## Appendix
### Quick Reference
-| Operation | Command/Method |
-|-----------|---------------|
-| Search Team Skills | `/teamskills search <keyword>` |
-| View Team Skill details | `/teamskills info <asset_id> --version <x.y.z>` |
-| Install a Team Skill | `/teamskills install <asset_id> --version <x.y.z>` |
-| List installed skills | `/teamskills list` |
-| Uninstall a Team Skill | `/teamskills uninstall <name>` |
-| Create Team Skill scaffold | `/teamskills init <name> --type teamskills` |
-| Validate Team Skill | `/teamskills validate <path> --type teamskills` |
-| Pack Team Skill | `/teamskills pack <path> --output <dir>` |
-| Configure Hub URL and Token | `/teamskills config --market-url <url> --token <TOKEN>` |
-| Publish to Team Skills Hub | `/teamskills publish <path> --version <x.y.z> --token <TOKEN>` |
-| Delete skill from Hub | `/teamskills delete <skill_id> --version <x.y.z> --token <TOKEN>` |
-| Create with teamskill-creator | Use `teamskill-creator` skill's CREATE mode |
-| Modify with teamskill-creator | Use `teamskill-creator` skill's MODIFY mode |
-| Convert with teamskill-creator | Use `teamskill-creator` skill's CONVERT mode |
+| Operation | Command/Method |
+| ------------------------------- | ------------------------------------------------------------------ |
+| Search Swarm Skills | `/swarmskills search <keyword>` |
+| View Swarm Skill details | `/swarmskills info <asset_id> --version <x.y.z>` |
+| Install a Swarm Skill | `/swarmskills install <asset_id> --version <x.y.z>` |
+| List installed skills | `/swarmskills list` |
+| Uninstall a Swarm Skill | `/swarmskills uninstall <name>` |
+| Create Swarm Skill scaffold | `/swarmskills init <name> --type swarmskills` |
+| Validate Swarm Skill | `/swarmskills validate <path> --type swarmskills` |
+| Pack Swarm Skill | `/swarmskills pack <path> --output <dir>` |
+| Configure Hub URL and Token | `/swarmskills config --market-url <url> --token <TOKEN>` |
+| Publish to Team Skills Hub | `/swarmskills publish <path> --version <x.y.z> --token <TOKEN>` |
+| Delete skill from Hub | `/swarmskills delete <skill_id> --version <x.y.z> --token <TOKEN>` |
+| Create with swarmskill-creator | Use `swarmskill-creator` skill's CREATE mode |
+| Modify with swarmskill-creator | Use `swarmskill-creator` skill's MODIFY mode |
+| Convert with swarmskill-creator | Use `swarmskill-creator` skill's CONVERT mode |
### Frequently Asked Questions
-**Q: What's the difference between a Team Skill and a regular Skill?**
+**Q: What's the difference between a Swarm Skill and a regular Skill?**
-A: A regular Skill is a capability extension for a single Agent ("how one Agent does things"), while a Team Skill encapsulates a complete multi-Agent collaboration pattern ("how a team of Agents works together"), including role assignments, collaboration workflows, and exception handling strategies.
+A: A regular Skill is a capability extension for a single Agent ("how one Agent does things"), while a Swarm Skill encapsulates a complete multi-Agent collaboration pattern ("how a team of Agents works together"), including role assignments, collaboration workflows, and exception handling strategies.
-**Q: How do I determine whether I need a Team Skill?**
+**Q: How do I determine whether I need a Swarm Skill?**
-A: A Team Skill is appropriate when: (1) a single Agent role-playing multiple perspectives would produce convergence bias; (2) multiple independent sub-tasks can run in parallel; (3) sequential stages have quality gates requiring specialized handling. If none apply, a single-Agent Skill is recommended.
+A: A Swarm Skill is appropriate when: (1) a single Agent role-playing multiple perspectives would produce convergence bias; (2) multiple independent sub-tasks can run in parallel; (3) sequential stages have quality gates requiring specialized handling. If none apply, a single-Agent Skill is recommended.
-**Q: Can I modify an installed Team Skill?**
+**Q: Can I modify an installed Swarm Skill?**
-A: Yes. Use `teamskill-creator`'s MODIFY mode to edit the local copy. After modification, re-run the validator to confirm compliance.
+A: Yes. Use `swarmskill-creator`'s MODIFY mode to edit the local copy. After modification, re-run the validator to confirm compliance.
-**Q: Are all 5 files in the Team Skill structure mandatory?**
+**Q: Are all 5 files in the Swarm Skill structure mandatory?**
-A: Yes. SKILL.md, roles/, workflow.md, bind.md, and dependencies.yaml are all required files. The validator checks that all 5 files are present. Extension directories like `examples/`, `templates/`, and `assets/` are optional.
+A: Yes. SKILL.md, roles/, workflow\.md, bind.md, and dependencies.yaml are all required files. The validator checks that all 5 files are present. Extension directories like `examples/`, `templates/`, and `assets/` are optional.
**Q: What is the default Team Skills Hub URL?**
-A: The default URL is `https://teamskills.openjiuwen.com`, which can be overridden via the `TEAM_SKILLS_HUB_BASE_URL` environment variable.
+A: The default URL is `https://swarmskills.openjiuwen.com`, which can be overridden via the `TEAM_SKILLS_HUB_BASE_URL` environment variable.
----
+***
*Document version: v2.0*
-*Target audience: JiuwenClaw users, skill developers*
-*Last updated: 2026-05-08*
\ No newline at end of file
+*Target audience: JiuwenSwarm users, skill developers*
+*Last updated: 2026-07-13*
diff --git a/docs/en/TeamSkills.md b/docs/en/TeamSkills.md
deleted file mode 100644
index 2d4c4b2e5e..0000000000
--- a/docs/en/TeamSkills.md
+++ /dev/null
@@ -1,895 +0,0 @@
-# Team Skills
-
-JiuwenClaw's **Team Skills** is a standardized capability package designed for multi-Agent collaboration. It is not a capability patch for a single Agent — rather, it captures a proven team collaboration workflow as a reusable, replicable, and evolvable team collaboration SOP, so that complex tasks no longer need to be improvised from scratch every time.
-
----
-
-## 1. Concept Overview
-
-### 1.1 What Are Team Skills?
-
-Team Skills occupy the **multi-Agent collaboration layer** in JiuwenClaw's skill system. If an Agent Skill answers "how a single Agent does things," then a Team Skill answers "how a team of Agents works together."
-
-In traditional AI Agent usage, when facing complex tasks, users often need to manually orchestrate how multiple Agents collaborate — who does what, who goes first, what happens when something goes wrong. This approach requires starting from scratch every time, produces inconsistent collaboration quality, and makes workflows hard to reuse. Team Skills exist precisely to solve this pain point:
-
-- **Capture once, reuse repeatedly**: Encapsulate proven team collaboration workflows as standardized capability packages. When encountering similar tasks next time, simply invoke the skill — no need to re-orchestrate.
-- **Evolvable workflows**: Collaboration workflows are not static. They can be continuously optimized and iterated based on real-world usage feedback.
-- **Predictable quality**: Pre-defined role assignments, collaboration sequences, and exception handling strategies make output quality more consistent across runs.
-
-### 1.2 Team Skills vs. Agent Skills
-
-| Dimension | Agent Skill | Team Skill |
-|-----------|-------------|------------|
-| **Positioning** | Capability extension for a single Agent | Collaboration pattern encapsulation for a multi-Agent team |
-| **Focus** | How a single Agent does things | How a team of Agents works together |
-| **Structure** | Single `SKILL.md` file | Directory structure (SKILL.md + roles + workflow + bind + dependencies) |
-| **Use cases** | Single tasks that one Agent can complete | Complex tasks requiring multi-role collaboration and workflow reuse |
-| **Collaboration** | No collaboration — Agent executes independently | Pre-defined role assignments, collaboration workflow, and exception handling |
-| **Reusability** | Capability is reusable | Collaboration workflow is reusable |
-
-Simple analogy: An Agent Skill is like giving one person a professional skill (e.g., "can do data analysis"), while a Team Skill is like establishing a collaboration SOP for a team (e.g., "how a research team goes from investigation to writing to review to produce a report").
-
-### 1.3 Cross-Framework Portability
-
-Team Skills are not limited to the JiuwenClaw platform. Their core design philosophy — role assignments, collaboration workflows, boundary constraints — represents a universal way to encapsulate team collaboration capabilities, adaptable to other AI Agent frameworks that support similar collaboration standards. This means:
-
-- A Team Skill created in JiuwenClaw can, in principle, be migrated to other platforms supporting similar collaboration standards.
-- The standardized 5-file structure provides a foundation for cross-framework interoperability.
-- Community-contributed Team Skills can be shared across different platforms, building a shared team skill ecosystem together.
-
----
-
-## 2. Structure
-
-A Team Skill is fundamentally a **structured directory**, not a single documentation file. This design allows each element of team collaboration — roles, workflows, boundaries, dependencies — to be clearly organized and maintained.
-
-### 2.1 Directory Structure Overview
-
-```
-team-skill-name/
-├── SKILL.md # Team skill entry file
-├── roles/ # Role definitions directory
-│ ├── coordinator.md # Coordinator role
-│ ├── researcher.md # Researcher role
-│ └── writer.md # Writer role
-├── workflow.md # Collaboration workflow definition
-├── bind.md # Boundary and exception handling rules
-├── dependencies.yaml # External dependency declarations
-├── examples/ # Optional: examples and templates
-│ └── sample-case.md
-├── templates/ # Optional: output templates
-│ └── report-template.md
-└── assets/ # Optional: resource files
- └── diagrams/
-```
-
-### 2.2 Key Files
-
-| File | Purpose | Required |
-|------|---------|----------|
-| `SKILL.md` | Team skill entry file; defines metadata such as skill name, description, applicable scenarios, role list, and file index | Yes |
-| `roles/*.md` | Role definition files; each file describes one Agent role's responsibilities, capabilities, and behavioral norms | Yes |
-| `workflow.md` | Collaboration workflow definition; describes interaction sequences, task flows, and decision nodes between roles (includes mermaid flowchart) | Yes |
-| `bind.md` | Boundary and exception handling rules; defines resource constraints, behavioral constraints, and failure handling strategies | Yes |
-| `dependencies.yaml` | External dependency declarations; lists tools, other skills, etc. required for the skill to run | Yes |
-
-### 2.3 Core File Details
-
-#### SKILL.md — Team Entry Point
-
-`SKILL.md` is the Team Skill's entry file, using YAML frontmatter to declare metadata:
-
-```markdown
----
-name: medical-consultation-team
-version: 1.0.0
-author: jiuwenclaw-team
-description: |
- Multi-disciplinary medical expert consultation team skill, organizing specialists for parallel evaluation and opinion integration via a coordinator.
- Use when multiple specialist experts need to jointly evaluate a complex case and output structured treatment recommendations.
- Do NOT use for simple cases that a single specialty can independently judge.
-kind: team-skill
-roles:
- - id: coordinator
- purpose: Organize experts, consolidate opinions, output treatment recommendations
- skills: []
- tools: []
- - id: internist
- purpose: Evaluate cases from an internal medicine perspective
- skills: []
- tools: []
- - id: surgeon
- purpose: Evaluate cases from a surgical perspective
- skills: []
- tools: []
- - id: radiologist
- purpose: Analyze cases from a radiology perspective
- skills: []
- tools: []
----
-
-# Medical Consultation Team Skill
-
-This team skill uses a specialization pipeline pattern (Pattern C) to organize multi-disciplinary medical experts for case consultation, solving the convergence bias problem that arises when a single Agent role-plays multiple perspectives.
-
-## Workflow
-
-0. **Pre-flight: check dependencies** — read [dependencies.yaml](dependencies.yaml) and verify. Report missing items: `required: true` = likely fails without it; `required: false` = degraded but functional. **User decides** whether to proceed.
-1. **coordinator receives case** — Analyze the case, determine expert needs, create consultation task.
-2. **Experts evaluate in parallel** — internist / surgeon / radiologist independently evaluate and submit specialist opinions.
-3. **coordinator integrates opinions** — Collect all expert opinions, identify disagreements, organize discussion if disagreements exist.
-4. **Output treatment recommendation report** — coordinator integrates final opinions, outputs structured report.
-
-## Roles
-
-| id | Purpose | When dispatched | Input | Key dependencies | Role file |
-|---|---------|----------------|-------|-----------------|-----------|
-| coordinator | Organize experts, consolidate opinions | Every run | User-submitted case | — | [roles/coordinator.md](roles/coordinator.md) |
-| internist | Evaluate from internal medicine perspective | Every run (parallel) | Distributed case materials | — | [roles/internist.md](roles/internist.md) |
-| surgeon | Evaluate from surgical perspective | Every run (parallel) | Distributed case materials | — | [roles/surgeon.md](roles/surgeon.md) |
-| radiologist | Analyze from radiology perspective | Every run (parallel) | Distributed case materials | — | [roles/radiologist.md](roles/radiologist.md) |
-
-> Before dispatching each teammate, read the corresponding role file and extract the `## Inline Persona for Teammate` section — paste it directly into the dispatch prompt.
-
-## Files
-
-| File | What it contains | When to read |
-|------|------------------|-------------|
-| [workflow.md](workflow.md) | Mermaid flowchart, step-by-step protocol, integration rules, Final Report format | Before first dispatch — the complete playbook |
-| [bind.md](bind.md) | Resource limits, behavioral constraints, failure handling and degraded modes | When hitting limits, handling failures, or needing degraded-mode rules |
-| [roles/*.md](roles/) | Per-role identity, success criteria, output schema, Inline Persona for Teammate | Before dispatching each teammate — extract Inline Persona |
-| [dependencies.yaml](dependencies.yaml) | External skills and tools required to run | **Startup** — verify deps, report missing items, user decides go/no-go |
-```
-
-**Key field descriptions**:
-
-- **`name`**: Unique skill identifier; must match the directory name (kebab-case, conventionally ending with `-team`).
-- **`kind`**: Must be `team-skill` (note: not `type`), distinguishing Team Skills from regular Agent Skills.
-- **`roles`**: Role list; **at least 2 roles required**, each role must include `id` (role identifier), `purpose` (one-line responsibility description, ≤150 characters), `skills` (dependent skill list), and `tools` (dependent tool list).
-- **`description`**: Skill description following conciseness principles (≤4 lines, ≤500 characters), using WHAT / WHEN / NOT three-line structure.
-
-#### roles/*.md — Role Definitions
-
-Each role file defines one Agent's responsibilities and behavior, containing 5 mandatory sections:
-
-1. **`## Identity`**: Role identity definition. The first line must be a 1-line motto, e.g., `> *"I am trying to break this code in production."*` — this is the most important anti-convergence mechanism.
-2. **`## Success Criteria`**: Success criteria; lists the goals the role needs to achieve.
-3. **`## Boundary`**: Boundary definition; must include `**Forbidden**` (things the role must not do, preventing role overlap) and `**Mandatory**` (things the role must do, preventing laziness).
-4. **`## Output Schema`**: Output format; defines the structure of the role's deliverables.
-5. **`## Inline Persona for Teammate`**: Inline persona prompt; a complete pasteable prompt for the Leader to inject when dispatching tasks.
-
-Example:
-
-```markdown
----
-role_name: coordinator
-description: Consultation coordinator, responsible for organizing experts and consolidating opinions
----
-
-# Coordinator Role
-
-## Identity
-
-> *"I ensure every expert's voice is heard, and the final recommendation is consensus, not compromise."*
-
-The coordinator drives the consultation process. They do not provide medical opinions directly but ensure all expert opinions are fully expressed and integrated.
-
-## Success Criteria
-
-- All invited experts have submitted their specialist opinions
-- Areas of disagreement have been identified and discussed
-- The final treatment recommendation is structured and actionable
-
-**Focus areas**: Opinion integration quality, process completeness
-
-## Boundary
-
-**Forbidden**:
-- Providing direct medical diagnostic opinions
-- Making professional judgments on behalf of experts
-- Concealing disagreements between experts
-
-**Mandatory**:
-- Ensuring every expert receives complete case materials
-- Noting areas of disagreement and how they were handled in the report
-- Outputting structured treatment recommendations
-
-## Output Schema
-
-```markdown
-# Consultation Report
-## Patient Information
-## Expert Opinion Summary
-### [Expert 1] Opinion
-### [Expert 2] Opinion
-## Comprehensive Treatment Recommendations
-## Urgency Level
-```
-
-## Inline Persona for Teammate
-
-You are a consultation coordinator. Your responsibilities are:
-1. Receive and analyze case information
-2. Determine which types of experts are needed
-3. Distribute case materials to each expert
-4. Collect and consolidate expert opinions
-5. Identify areas of disagreement and organize discussion
-6. Output a structured treatment recommendation report
-
-You do not provide direct medical diagnostic opinions; you ensure all expert opinions are fully expressed and integrated.
-```
-
-#### workflow.md — Collaboration Workflow
-
-Defines interaction sequences and task flows between roles, containing 3 mandatory sections:
-
-1. **`## Overview`**: Workflow overview; must include a mermaid flowchart — this is the core expressive difference between Team Skills and single-Agent Skills.
-2. **`## Detailed Steps`**: Detailed steps; each step includes executor, input, output, serial/parallel designation, and quality gate.
-3. **`## Acceptance Criteria`**: Acceptance criteria; standards for judging whether a collaboration run was successful.
-
-Example:
-
-```markdown
-# Consultation Collaboration Workflow
-
-## Overview
-
-```mermaid
-graph TD
- L[Leader receives user request] --> C[coordinator analyzes case]
- C --> C1[coordinator determines expert needs]
- C1 --> P1[internist evaluates]
- C1 --> P2[surgeon evaluates]
- C1 --> P3[radiologist evaluates]
- P1 --> I[coordinator collects opinions]
- P2 --> I
- P3 --> I
- I --> D{Any disagreements?}
- D -->|Yes| DISC[Organize expert discussion]
- D -->|No| R[Output treatment recommendations]
- DISC --> R
- R --> OUT[Leader returns results]
-```
-
-## Detailed Steps
-
-### Step 1: Case Reception and Analysis
-- **Executor**: coordinator
-- **Input**: Case information submitted by user
-- **Output**: Expert needs list + consultation task
-- **Mode**: Serial
-- **Quality gate**: If case information is insufficient, request supplementary information from user
-
-### Step 2: Expert Evaluation
-- **Executor**: internist / surgeon / radiologist (parallel)
-- **Input**: Distributed case materials
-- **Output**: Specialist opinions from each expert
-- **Mode**: Parallel
-- **Quality gate**: If an expert times out without responding, skip and note missing opinion in report
-
-### Step 3: Opinion Integration
-- **Executor**: coordinator
-- **Input**: Expert opinions
-- **Output**: Integrated opinions + disagreement identification
-- **Mode**: Serial
-- **Quality gate**: If serious disagreements exist, organize expert discussion
-
-### Step 4: Output Results
-- **Executor**: coordinator → Leader
-- **Input**: Integrated opinions
-- **Output**: Structured treatment recommendation report
-- **Mode**: Serial
-- **Quality gate**: Report must include all expert opinions and disagreement handling notes
-
-## Acceptance Criteria
-
-- All invited experts have submitted opinions (or missing opinions are noted)
-- Areas of disagreement have been identified and handled
-- The final report is structured and includes comprehensive treatment recommendations
-```
-
-#### bind.md — Boundary and Exception Handling
-
-Defines collaboration constraints and exception handling strategies, containing 3 mandatory sections:
-
-1. **`## Resource Constraints`**: Resource constraints; must include at least `max_parallel_teammates`, `total_wall_clock_budget`, `total_token_budget`.
-2. **`## Behavioral Constraints`**: Behavioral constraints; team-level rules (e.g., Leader does not write content, teammates cannot see each other's output, etc.).
-3. **`## Failure Handling`**: Failure handling; covers teammate failure (timeout, malformed output) and input-overscale degradation strategies.
-
-Example:
-
-```markdown
-# Boundary and Exception Handling
-
-## Resource Constraints
-
-| Constraint | Value |
-|------------|-------|
-| max_parallel_teammates | 5 |
-| total_wall_clock_budget | 30 minutes |
-| total_token_budget | 50000 |
-
-## Behavioral Constraints
-
-- Leader does not write medical content directly; only responsible for scheduling and integration
-- Experts cannot see each other's raw opinions (isolated evaluation)
-- coordinator must note all areas of disagreement in the report
-- Maximum 5 experts per consultation session
-
-## Failure Handling
-
-### Expert Unavailable
-- **Strategy**: Skip the expert and note missing opinion in the report
-- **Degradation**: If a critical expert is unavailable, prompt user to reschedule
-
-### Serious Opinion Disagreement
-- **Strategy**: Organize expert discussion and record each party's reasoning
-- **Output**: Present different approaches and their supporting evidence in the report
-
-### Insufficient Information
-- **Strategy**: Request supplementary information from the user
-- **Timeout**: If user does not respond, provide conservative recommendations based on available information
-
-### Input Overscale
-- **Strategy**: When case materials exceed 2000 characters, coordinator first summarizes before distributing to experts
-```
-
-#### dependencies.yaml — External Dependencies
-
-Declares external resources required for the skill to run. Must include both `skills` and `tools` segments (even if empty, explicitly write `[]`):
-
-```yaml
-skills:
- - name: web-research
- source: local
- required: false
- purpose: Assist experts in searching latest medical literature
- - name: report-generator
- source: local
- required: true
- purpose: Generate structured treatment recommendation reports
-
-tools:
- - name: readFile
- required: true
- purpose: Read case material files
- - name: writeFile
- required: true
- purpose: Output treatment recommendation reports
-```
-
-**Field Descriptions**:
-
-| Field | Segment | Required | Description | Example Values |
-|-------|---------|----------|-------------|----------------|
-| `name` | skills, tools | Yes | Skill/tool name | `web-research`, `readFile` |
-| `source` | skills | Yes | Skill source | `local` (local), `hub` (skill center) |
-| `required` | skills, tools | Yes | Whether required | `true` (required), `false` (optional) |
-| `purpose` | skills, tools | Yes | Purpose description (≤150 chars) | `Assist experts in searching latest medical literature` |
-
-> **Note**: Even when there are no dependencies, you must explicitly write `skills: []` and `tools: []` (an empty list signals "checked, confirmed no dependency of this type" — different from omitting the segment, which is a spec violation).
-
----
-
-## 3. Usage Guide
-
-### 3.1 Getting Started with Team Skills
-
-Users typically begin using Team Skills through the following steps:
-
-**Step 1: Acquire a Team Skill from Team Skills Hub**
-
-1. Open JiuwenClaw's "Skills" panel
-2. Click "Team Skills Hub Online Search"
-3. Enter keywords to search for the team skill you need (e.g., "medical consultation", "research report")
-4. Click "Install" to add the skill to your workspace
-
-You can also search and install via command line:
-
-```
-# Search Team Skills
-/teamskills search "medical consultation"
-
-# View Team Skill details
-/teamskills info <asset_id> --version 1.0.0
-
-# Install a Team Skill
-/teamskills install <asset_id> --version 1.0.0
-```
-
-> **Tip**: `<asset_id>` is the unique skill identifier on Team Skills Hub (e.g., `sk-123`), shown in search results.
-
-**Step 2: Use in JiuwenClaw**
-
-After installation, the Team Skill automatically appears in the available skills list:
-
-1. Describe your task objective in the conversation
-2. The system recognizes and invokes the appropriate Team Skill
-3. The team collaboration workflow runs automatically according to the predefined process
-4. Receive structured output results
-
-### 3.2 When to Use Team Skills
-
-Team Skills are particularly suited for the following scenarios:
-
-| Scenario Characteristic | Description | Example |
-|-------------------------|-------------|---------|
-| Long task chains | Complex tasks requiring multiple steps and stages | From research to writing to review to produce a research report |
-| Clear role division | Tasks decomposable into sub-tasks across different professional domains | Multi-disciplinary medical consultation requiring internal medicine, surgery, and radiology experts |
-| Desire to reuse proven workflows | Don't want to redesign collaboration every time | Regularly executed code reviews, security audits |
-| Structured output needed | Need standardized reports, proposals, or recommendations | Treatment recommendation reports, research reports, audit reports |
-
-**Comparison: When to use Agent Skill vs. Team Skill**
-
-| Situation | Recommended Choice | Reason |
-|-----------|-------------------|--------|
-| Single task, one Agent can complete | Agent Skill | No multi-role collaboration needed; Team Skill adds unnecessary overhead |
-| Multi-step reasoning needed, but no role division | Agent Skill + workflow | The process can be executed step-by-step by a single Agent |
-| Multiple professional roles need to collaborate | **Team Skill** | Different roles' professional perspectives are irreplaceable |
-| Fixed task workflow, needs reuse | **Team Skill** | Predefined workflows can be reused; quality is more stable |
-| Adversarial checking needed (e.g., code review) | **Team Skill** | Single Agent role-playing multiple perspectives tends to produce convergence bias |
-
-### 3.3 Key Usage Principles
-
-The core value of Team Skills lies in: **choosing the right Team Skill and letting the team collaboration workflow run automatically**, rather than manually orchestrating each Agent.
-
-Three key principles when using Team Skills:
-
-1. **Choose the right Team Skill**: Select a team skill that matches your task characteristics. If existing skills don't perfectly match, you can modify an existing skill or create a new one using `teamskill-creator`.
-2. **Provide clear input**: Provide complete task information as required by the skill. Clearer input leads to higher collaboration output quality.
-3. **Understand the output structure**: Know the skill's output format for easier downstream processing and usage.
-
-Three advantages of Team Skills over ad-hoc team assembly:
-
-| Advantage | Ad-hoc Assembly | Team Skill |
-|-----------|----------------|------------|
-| Role assignment rules | Need to reassign every time; may miss or confuse | Pre-defined, stable and reliable |
-| Collaboration sequence | May miss critical steps | workflow.md explicitly defines the sequence |
-| Exception handling | Ad-hoc decisions, inconsistent | bind.md provides unified strategies |
-
-### 3.4 Cross-Framework Reuse Potential
-
-Team Skills use a standardized structure definition (5-file specification) with cross-framework reuse potential:
-
-- Collaboration standards are based on a universal role-workflow-boundary model, not dependent on specific framework implementation details
-- Adaptable to other AI Agent platforms supporting similar collaboration standards
-- Facilitates migration and sharing of team collaboration experience across different frameworks
-- Team Skills Hub serves as a community sharing platform, promoting cross-framework skill ecosystem development
-
----
-
-## 4. Case Study
-
-### 4.1 Case: Multi-Disciplinary Medical Expert Consultation
-
-This case demonstrates the practical value of Team Skills in a medical consultation scenario.
-
-#### Applicable Scenario
-
-- Patient condition is complex, involving multiple systems
-- Different specialist experts need to jointly evaluate
-- Desire for comprehensive, structured treatment recommendations
-
-#### User Input
-
-```
-Patient information:
-- Male, 65 years old
-- Chief complaint: Chest pain with difficulty breathing for 2 days
-- Past medical history: Hypertension, diabetes
-- Test results: ECG ST-segment elevation, elevated D-dimer
-
-Please organize an expert consultation and provide treatment recommendations.
-```
-
-#### Team Collaboration Process
-
-**Phase 1: Case Reception and Analysis**
-
-```
-[coordinator] Receives case information
-[coordinator] Analysis: Chest pain + ECG abnormality + elevated D-dimer → involves cardiovascular and respiratory systems
-[coordinator] Determines needed experts: Cardiology, Respiratory, Radiology
-[coordinator] Creates consultation task #2024-001
-```
-
-**Phase 2: Expert Evaluation (Parallel)**
-
-```
-[cardiologist] Cardiovascular evaluation:
-- ST-segment elevation suggests possible myocardial injury
-- Recommendation: Complete cardiac enzyme panel, cardiac ultrasound
-- Preliminary opinion: Rule out acute coronary syndrome
-
-[respiratory] Respiratory system evaluation:
-- Elevated D-dimer + difficulty breathing
-- Recommendation: Complete pulmonary artery CTA
-- Preliminary opinion: Rule out pulmonary embolism
-
-[radiologist] Imaging analysis:
-- Recommendation: Chest CT plain + enhanced scan
-- Focus on pulmonary artery, coronary artery conditions
-```
-
-**Phase 3: Opinion Integration**
-
-```
-[coordinator] Collects expert opinions
-[coordinator] Identifies key disagreement: Cardiogenic vs. Pulmonary origin
-[coordinator] Organizes expert discussion
-[Expert consensus]: Prioritize ruling out life-threatening conditions
- Recommend simultaneous cardiac and pulmonary vascular assessment
-```
-
-**Phase 4: Output Results**
-
-```markdown
-# Consultation Report #2024-001
-
-## Patient Information
-- Male, 65 years old, chest pain with difficulty breathing for 2 days
-
-## Expert Opinion Summary
-
-### Cardiology Opinion
-- ST-segment elevation suggests myocardial injury; need to rule out acute coronary syndrome
-- Recommended tests: Cardiac enzyme panel, cardiac ultrasound, coronary CTA
-
-### Respiratory Opinion
-- Elevated D-dimer requires vigilance for pulmonary embolism
-- Recommended tests: Pulmonary artery CTA, blood gas analysis
-
-### Radiology Opinion
-- Recommend chest CT enhanced scan for one-stop assessment
-
-## Comprehensive Treatment Recommendations
-1. Immediately complete cardiac enzyme panel and blood gas analysis (emergency completion)
-2. Perform chest CT enhanced scan, simultaneously assessing coronary and pulmonary arteries
-3. ECG monitoring, monitor vital signs
-4. Determine next-step treatment plan based on test results
-
-## Urgency Level
-⚠️ High risk - Requires immediate attention
-
----
-Consultation time: 2024-01-15 14:30
-Participating experts: Cardiology Dr. Zhang, Respiratory Dr. Li, Radiology Dr. Wang
-```
-
-#### Team Skills Advantage Demonstration
-
-| Advantage | Ad-hoc Assembly | Team Skill |
-|-----------|----------------|------------|
-| Role assignment | Need to reassign who evaluates what every time | Pre-defined roles (cardiology/respiratory/radiology), stable and reliable |
-| Collaboration sequence | May miss steps (e.g., forgetting to integrate disagreements) | workflow.md explicitly defines: analyze → evaluate → integrate → output |
-| Exception handling | What if an expert times out? Ad-hoc decision | bind.md unified strategy: skip and note missing opinion |
-| Output format | Different format every time | Structured, standardized report |
-| Reusability | Next consultation starts from scratch again | Same Team Skill can be reused |
-
-### 4.2 Case: Research and PPT Writing Team
-
-This case demonstrates Team Skills in a content production scenario.
-
-#### Applicable Scenario
-
-- Complete pipeline from research investigation to PPT writing
-- Research and writing require different professional capabilities
-- Desire for structured presentation output
-
-#### User Input
-
-```
-Please help me complete a research report PPT on "2024 AI Industry Trends",
-including market data, technology trends, and future outlook.
-```
-
-#### Team Collaboration Process
-
-**Phase 1: Task Decomposition**
-
-```
-[coordinator] Receives research topic: "2024 AI Industry Trends"
-[coordinator] Decomposes research questions: market data, technology trends, future outlook
-[coordinator] Assigns research tasks to researchers
-```
-
-**Phase 2: Parallel Research**
-
-```
-[researcher-1] Researches market data: market size, growth rate, major players
-[researcher-2] Researches technology trends: large models, multimodal, Agent-based
-[researcher-3] Researches future outlook: regulatory trends, application prospects, challenges
-```
-
-**Phase 3: Report Writing**
-
-```
-[writer] Integrates all research findings
-[writer] Writes PPT content: slide titles, key points, data chart suggestions
-```
-
-**Phase 4: Review and Revision**
-
-```
-[reviewer] Reviews report: logical coherence, data accuracy, expression clarity
-[writer] Revises based on review feedback
-[coordinator] Outputs final PPT content
-```
-
----
-
-## 5. Creation Guide
-
-### 5.1 Creating New Team Skills with teamskill-creator
-
-JiuwenClaw provides the `teamskill-creator` skill to help users create, convert, or modify Team Skills. It includes standardized templates, decision trees, and an automated validator to ensure created Team Skills comply with the specification.
-
-**Getting and Installing**:
-
-`teamskill-creator` is a built-in skill in JiuwenClaw and requires no additional installation. If the skill is not available in your environment, you can obtain it through:
-
-```bash
-# Search and install from skill center
-/skills search teamskill-creator
-/skills install teamskill-creator
-```
-
-**Three modes**:
-
-| Mode | Use Case | Output |
-|------|----------|--------|
-| **CREATE** | Create a new team skill from scratch | New `<teamskill-name>/` directory with the complete 5-file set |
-| **CONVERT** | Convert an existing single-Agent Skill to a Team Skill | Transformed `<teamskill-name>/` directory + delta report |
-| **MODIFY** | Modify an existing Team Skill (add/remove roles, adjust workflow, etc.) | Updated files |
-
-#### Creation Workflow Example
-
-The following demonstrates creating a "Research and Report Writing Team" as a complete creation process:
-
-**Step 1: Determine if a Team Skill is needed**
-
-First confirm: does this task truly require multi-role collaboration? A Team Skill is only worth creating when at least one of these applies:
-
-1. **Adversarial blind spot**: A single Agent role-playing multiple perspectives produces converging outputs (e.g., code review, security audit)
-2. **Parallel decomposition gain**: Multiple independent sub-tasks can run concurrently, and integration is non-trivial (e.g., multi-angle research)
-3. **Specialization pipeline with hard handoffs**: Sequential stages with quality gates where blurring boundaries causes regressions (e.g., marketing copy: brief → draft → edit → audit)
-
-If none apply → recommend using a single-Agent Skill instead.
-
-**Step 2: Select collaboration pattern**
-
-Choose a collaboration pattern based on task characteristics:
-
-| Pattern | Use Case | Role Count | Inter-role Visibility |
-|---------|----------|------------|----------------------|
-| A. Adversarial / Cross-check | Blind spot problems | 2-4 | Not visible (isolation is the value) |
-| B. Parallel decomposition | Independent sub-tasks | 2-N | Not visible until integration |
-| C. Specialization pipeline | Sequential expert stages | 3-5 | Each stage sees prior stage output |
-| Mixed | Multiple justifications stack | 4-6 | Pattern-by-stage |
-
-The Research and Report Writing Team fits **C. Specialization pipeline** pattern (research → writing → review, sequential stages with quality gates).
-
-**Step 3: Design roles**
-
-Write `roles/<id>.md` files for each role, containing 5 mandatory sections:
-
-```
-research-report-team/
-├── roles/
-│ ├── coordinator.md # Coordinator: decompose tasks, integrate results
-│ ├── researcher.md # Researcher: independent research, submit findings
-│ ├── writer.md # Writer: integrate research, write report
-│ └── reviewer.md # Reviewer: review report, suggest modifications
-```
-
-**Anti-overlap test**: Write each role's 1-line motto, then ask "could one role's deliverable substitute for another's?" If yes, boundaries are blurred — redesign before proceeding.
-
-**Step 4: Write collaboration workflow**
-
-Write `workflow.md` with mermaid flowchart, detailed steps, and acceptance criteria:
-
-```markdown
-## Overview
-
-```mermaid
-graph TD
- L[Leader] --> C[coordinator decomposes task]
- C --> R1[researcher-1 researches]
- C --> R2[researcher-2 researches]
- R1 --> W[writer writes report]
- R2 --> W
- W --> RV[reviewer reviews]
- RV -->|Pass| OUT[Output final report]
- RV -->|Needs revision| W
-```
-```
-
-**Step 5: Write boundary and exception handling**
-
-Write `bind.md` defining resource constraints, behavioral constraints, and failure handling:
-
-```markdown
-## Resource Constraints
-
-| Constraint | Value |
-|------------|-------|
-| max_parallel_teammates | 3 |
-| total_wall_clock_budget | 45 minutes |
-| total_token_budget | 80000 |
-
-## Behavioral Constraints
-
-- Leader does not write content directly; only responsible for scheduling
-- Researchers cannot see each other's research process (ensures independence)
-- Writer must integrate all research findings without omission
-- Maximum 2 review rounds
-
-## Failure Handling
-
-### Insufficient Research Information
-- Strategy: Request additional research directions from user
-- Timeout: Provide conservative conclusions based on available research
-
-### Review Opinion Disagreement
-- Strategy: Coordinator arbitrates, choosing the more reasonable revision direction
-```
-
-**Step 6: Write dependency declarations and entry file**
-
-Write `dependencies.yaml` and `SKILL.md`, referencing content produced in previous steps.
-
-**Step 7: Validate**
-
-Run the automated validator to ensure the Team Skill complies with the specification:
-
-```bash
-# Method 1: Use TUI built-in command (recommended)
-/teamskills validate path/to/research-report-team/ --type teamskills
-
-# Method 2: Use standalone validation script
-python scripts/validate_teamskill.py path/to/research-report-team/
-```
-
-The validator checks:
-- All 5 files are present
-- Frontmatter required fields are complete (`name`, `kind`, `roles`)
-- `roles` has at least 2 entries, each with `id` and `purpose`, `id` must not repeat
-- Role file names match `roles[].id`
-- Each role file contains 5 mandatory sections
-- workflow.md contains a mermaid diagram
-- bind.md contains 3 mandatory sections
-- dependencies.yaml contains `skills` and `tools` segments
-- Skills/tools declared in SKILL.md appear in dependencies.yaml
-
-**Exit code 0 = compliant**. Non-zero exit codes print specific failing checks.
-
-### 5.2 Modifying an Existing Team Skill
-
-Use `teamskill-creator`'s MODIFY mode to modify existing Team Skills:
-
-| Change Type | Stages to Re-run | Files to Update |
-|-------------|-----------------|----------------|
-| Edit role Identity / Boundary / Schema | Stage 2 (affected role only) | `roles/<id>.md` |
-| Add or remove a role | Stage 1a + 2 + 3 + 4 + 5 | All 5 files |
-| Change workflow steps / topology | Stage 3 | `workflow.md` + `bind.md` (if constraints change) |
-| Change bind constraints | Stage 4 | `bind.md` |
-| Change dependencies | Stage 2 (auto-match) + 5 | `dependencies.yaml` + `SKILL.md` frontmatter |
-
-**Important**: Regardless of edit size, Stage 7 (validation) must always be executed.
-
-### 5.3 Converting a Single-Agent Skill to a Team Skill
-
-Use `teamskill-creator`'s CONVERT mode to transform an existing single-Agent Skill into a Team Skill:
-
-1. **Read the source SKILL.md** and identify natural role boundaries:
- - Find embedded multi-persona setups (e.g., "act as Persona 1 / Persona 2 / Persona 3")
- - Find sequential stages with quality gates (e.g., "first do X, then validate Y, then produce Z")
- - Find checklists that branch by category (e.g., "[ ] security [ ] performance [ ] readability")
-2. **Articulate the conversion value**: What is lost in single-Agent form? This becomes the Team Skill's "why"
-3. **Continue from Step 2** following the CREATE workflow
-
-### 5.4 Publishing to Team Skills Hub
-
-After creation, you can share your Team Skill with the community to build the team skill ecosystem together:
-
-**Step 1: Validate completeness**
-
-```bash
-# Method 1: Use TUI built-in command (recommended)
-/teamskills validate path/to/<teamskill-name>/ --type teamskills
-
-# Method 2: Use standalone validation script
-python scripts/validate_teamskill.py path/to/<teamskill-name>/
-```
-
-Ensure exit code is 0 (compliant).
-
-**Step 2: Upload and publish**
-
-In JiuwenClaw's "Skills" panel:
-1. Click "Team Skills Hub"
-2. Select the Team Skill to publish
-3. Click "Upload"
-4. First-time use requires authentication (enter your Team Skills Hub Token)
-
-You can also publish via command line:
-
-```
-# Publish to Team Skills Hub (requires authentication)
-/teamskills publish path/to/<teamskill-name> --version 1.0.0 --token <TOKEN>
-
-# To overwrite an existing version, add --force
-/teamskills publish path/to/<teamskill-name> --version 1.0.1 --token <TOKEN> --force
-```
-
-> **Authentication note**: Publish and delete operations require `--token` (user Token) or `--system-token` (system Token), and you must choose exactly one. You can pre-configure your token via `/teamskills config --token <TOKEN>` to avoid entering it manually each time.
-
-**Step 3: Maintain and update**
-
-After publishing, you can continuously iterate:
-- Re-validate after modifying roles, workflows, or constraints
-- Re-publish after updating the version number
-- Optimize collaboration workflows based on community feedback
-
-### 5.5 Best Practices
-
-| Practice | Description |
-|----------|-------------|
-| Appropriate role granularity | Roles should not be too fine (increases coordination cost) or too coarse (loses division advantage) |
-| Clear and concise workflow | Avoid overly complex collaboration workflows; maintain understandability |
-| Explicit boundary conditions | Cover common exception scenarios in bind.md |
-| Provide examples | Include usage examples in examples/ to reduce learning cost |
-| Adversarial mottos | Each role's motto should reflect a unique perspective, preventing role convergence |
-| Validation is mandatory | Run the validator after every creation or modification |
-| Description follows conciseness principles | SKILL.md description ≤4 lines, ≤500 characters, using WHAT / WHEN / NOT structure |
-
----
-
-## Appendix
-
-### Quick Reference
-
-| Operation | Command/Method |
-|-----------|---------------|
-| Search Team Skills | `/teamskills search <keyword>` |
-| View Team Skill details | `/teamskills info <asset_id> --version <x.y.z>` |
-| Install a Team Skill | `/teamskills install <asset_id> --version <x.y.z>` |
-| List installed skills | `/teamskills list` |
-| Uninstall a Team Skill | `/teamskills uninstall <name>` |
-| Create Team Skill scaffold | `/teamskills init <name> --type teamskills` |
-| Validate Team Skill | `/teamskills validate <path> --type teamskills` |
-| Pack Team Skill | `/teamskills pack <path> --output <dir>` |
-| Configure Hub URL and Token | `/teamskills config --market-url <url> --token <TOKEN>` |
-| Publish to Team Skills Hub | `/teamskills publish <path> --version <x.y.z> --token <TOKEN>` |
-| Delete skill from Hub | `/teamskills delete <skill_id> --version <x.y.z> --token <TOKEN>` |
-| Create with teamskill-creator | Use `teamskill-creator` skill's CREATE mode |
-| Modify with teamskill-creator | Use `teamskill-creator` skill's MODIFY mode |
-| Convert with teamskill-creator | Use `teamskill-creator` skill's CONVERT mode |
-
-### Frequently Asked Questions
-
-**Q: What's the difference between a Team Skill and a regular Skill?**
-
-A: A regular Skill is a capability extension for a single Agent ("how one Agent does things"), while a Team Skill encapsulates a complete multi-Agent collaboration pattern ("how a team of Agents works together"), including role assignments, collaboration workflows, and exception handling strategies.
-
-**Q: How do I determine whether I need a Team Skill?**
-
-A: A Team Skill is appropriate when: (1) a single Agent role-playing multiple perspectives would produce convergence bias; (2) multiple independent sub-tasks can run in parallel; (3) sequential stages have quality gates requiring specialized handling. If none apply, a single-Agent Skill is recommended.
-
-**Q: Can I modify an installed Team Skill?**
-
-A: Yes. Use `teamskill-creator`'s MODIFY mode to edit the local copy. After modification, re-run the validator to confirm compliance.
-
-**Q: Are all 5 files in the Team Skill structure mandatory?**
-
-A: Yes. SKILL.md, roles/, workflow.md, bind.md, and dependencies.yaml are all required files. The validator checks that all 5 files are present. Extension directories like `examples/`, `templates/`, and `assets/` are optional.
-
-**Q: What is the default Team Skills Hub URL?**
-
-A: The default URL is `https://teamskills.openjiuwen.com`, which can be overridden via the `TEAM_SKILLS_HUB_BASE_URL` environment variable.
-
----
-
-*Document version: v2.0*
-*Target audience: JiuwenClaw users, skill developers*
-*Last updated: 2026-05-08*
\ No newline at end of file
diff --git a/docs/en/medical-consultation-result.png b/docs/en/medical-consultation-result.png
new file mode 100644
index 0000000000..322c279012
Binary files /dev/null and b/docs/en/medical-consultation-result.png differ
diff --git a/docs/en/medical_consultation_report.png b/docs/en/medical_consultation_report.png
new file mode 100644
index 0000000000..b922688a5f
Binary files /dev/null and b/docs/en/medical_consultation_report.png differ
diff --git a/docs/en/swarmskill.png b/docs/en/swarmskill.png
new file mode 100644
index 0000000000..a50ccf4f79
Binary files /dev/null and b/docs/en/swarmskill.png differ
diff --git a/docs/zh/TeamSkills.md b/docs/zh/SwarmSkills.md
similarity index 73%
rename from docs/zh/TeamSkills.md
rename to docs/zh/SwarmSkills.md
index 65c9b7e8cf..aa3accea8b 100644
--- a/docs/zh/TeamSkills.md
+++ b/docs/zh/SwarmSkills.md
@@ -1,24 +1,24 @@
-# Team Skills 团队技能
+# Swarm Skills 团队技能
-JiuwenClaw 的 **Team Skills(团队技能)** 是一种面向多 Agent 协作的标准化能力包。它不是单个 Agent 的能力补丁,而是把一次优秀的团队协作流程沉淀为可复用、可复制、可进化的团队协作 SOP,让复杂任务不再每次都从零开始临时编排。
+jiuwenSwarm 的 **Swarm Skills(团队技能)** 是一种面向多 Agent 协作的标准化能力包。它不是单个 Agent 的能力补丁,而是把一次优秀的团队协作流程沉淀为可复用、可复制、可进化的团队协作 SOP,让复杂任务不再每次都从零开始临时编排。
---
## 1. 概念科普
-### 1.1 Team Skills 的定位
+### 1.1 Swarm Skills 的定位
-Team Skills 是 JiuwenClaw 技能体系中的**多 Agent 协作层**。如果说 Agent Skill 解决的是"一个 Agent 怎么做事",那么 Team Skills 解决的就是"一个 Agent 团队怎么配合做事"。
+Swarm Skills 是 jiuwenSwarm 技能体系中的**多 Agent 协作层**。如果说 Agent Skill 解决的是"一个 Agent 怎么做事",那么 Swarm Skills 解决的就是"一个 Agent 团队怎么配合做事"。
-在传统的 AI Agent 使用中,面对复杂任务时,用户往往需要手动编排多个 Agent 的协作方式——谁来做什么、谁先谁后、出了问题怎么办。这种方式每次都要从零开始,协作质量不稳定,流程难以复用。Team Skills 的出现,正是为了解决这个痛点:
+在传统的 AI Agent 使用中,面对复杂任务时,用户往往需要手动编排多个 Agent 的协作方式——谁来做什么、谁先谁后、出了问题怎么办。这种方式每次都要从零开始,协作质量不稳定,流程难以复用。Swarm Skills 的出现,正是为了解决这个痛点:
- **一次沉淀,反复使用**:将经过验证的团队协作流程封装为标准化的能力包,下次遇到同类任务直接调用,无需重新编排。
- **流程可进化**:协作流程不是一成不变的,可以根据实际使用反馈持续优化和迭代。
- **质量可预期**:预定义的角色分工、协作顺序和异常处理策略,让每次协作的输出质量更加稳定。
-### 1.2 Team Skills 与 Agent Skills 的区别
+### 1.2 Swarm Skills 与 Agent Skills 的区别
-| 维度 | Agent Skill | Team Skill |
+| 维度 | Agent Skill | Swarm Skill |
|------|-------------|------------|
| **定位** | 单个 Agent 的能力扩展 | 多 Agent 团队的协作模式封装 |
| **关注点** | 一个 Agent 怎么做事 | 一个 Agent 团队怎么配合做事 |
@@ -27,21 +27,21 @@ Team Skills 是 JiuwenClaw 技能体系中的**多 Agent 协作层**。如果说
| **协作方式** | 无协作,Agent 独立执行 | 预定义角色分工、协作流程和异常处理 |
| **复用性** | 能力可复用 | 协作流程可复用 |
-简单类比:Agent Skill 像是给一个人增加一项专业技能(如"会做数据分析"),而 Team Skill 像是给一个团队制定一套协作 SOP(如"研究团队如何从调研到撰写到审核完成一份报告")。
+简单类比:Agent Skill 像是给一个人增加一项专业技能(如"会做数据分析"),而 Swarm Skill 像是给一个团队制定一套协作 SOP(如"研究团队如何从调研到撰写到审核完成一份报告")。
-### 1.3 Team Skills 的通用性
+### 1.3 Swarm Skills 的通用性
-Team Skills 不只局限于 JiuwenClaw 平台。它的核心设计理念——角色分工、协作流程、边界约束——是一种通用的团队协作能力封装方式,可以适配到支持相关协作标准的其他 AI Agent 框架中。这意味着:
+Swarm Skills 不只局限于 jiuwenSwarm 平台。它的核心设计理念——角色分工、协作流程、边界约束——是一种通用的团队协作能力封装方式,可以适配到支持相关协作标准的其他 AI Agent 框架中。这意味着:
-- 在 JiuwenClaw 中创建的 Team Skill,理论上可以迁移到其他支持类似协作标准的平台使用。
-- Team Skills 的标准化结构(5 文件规范)为跨框架互操作提供了基础。
-- 社区贡献的 Team Skill 可以在不同平台间共享,共建团队技能生态。
+- 在 jiuwenSwarm 中创建的 Swarm Skill,理论上可以迁移到其他支持类似协作标准的平台使用。
+- Swarm Skills 的标准化结构(5 文件规范)为跨框架互操作提供了基础。
+- 社区贡献的 Swarm Skill 可以在不同平台间共享,共建团队技能生态。
---
## 2. 组成结构
-一个 Team Skill 本质上是一个**结构化的目录**,而非单一的说明文件。这种设计使得团队协作的各个要素——角色、流程、边界、依赖——能够被清晰地组织和维护。
+一个 Swarm Skill 本质上是一个**结构化的目录**,而非单一的说明文件。这种设计使得团队协作的各个要素——角色、流程、边界、依赖——能够被清晰地组织和维护。
### 2.1 目录结构概览
@@ -75,15 +75,17 @@ team-skill-name/
### 2.3 核心文件详解
+> 本节以**医疗会诊团队场景**为例,讲解 Swarm Skill 的各个文件。该技能的主要功能是通过协调者组织多学科医疗专家(内科、外科、影像科)对复杂病例进行并行评估,并整合各专家意见,输出结构化诊疗建议。
+
#### SKILL.md — 团队入口
-`SKILL.md` 是 Team Skill 的入口文件,采用 YAML frontmatter 声明元信息:
+`SKILL.md` 是 Swarm Skill 的入口文件,采用 YAML frontmatter 声明元信息:
-```markdown
+````markdown
---
name: medical-consultation-team
version: 1.0.0
-author: jiuwenclaw-team
+author: jiuwenSwarm-team
description: |
多学科医疗专家会诊团队技能,通过协调者组织多专科专家并行评估并整合意见。
Use when 需要多学科专家共同评估复杂病例并输出结构化诊疗建议。
@@ -139,12 +141,12 @@ roles:
| [bind.md](bind.md) | 资源限制、行为约束、失败处理和降级模式 | 遇到限制、处理失败或需要降级规则时 |
| [roles/*.md](roles/) | 每个角色的身份、成功标准、输出格式、Inline Persona | 分派每个队友前 — 提取 Inline Persona |
| [dependencies.yaml](dependencies.yaml) | 外部技能和工具依赖 | **启动时** — 验证依赖,报告缺失项,用户决定是否继续 |
-```
+````
**关键字段说明**:
- **`name`**:技能的唯一标识符,必须与目录名一致(kebab-case,约定以 `-team` 结尾)。
-- **`kind`**:必须为 `team-skill`(注意:不是 `type`),用于区分 Team Skill 和普通 Agent Skill。
+- **`kind`**:必须为 `team-skill`(注意:不是 `type`),用于区分 Swarm Skill 和普通 Agent Skill。
- **`roles`**:角色列表,**至少 2 个角色**,每个角色必须包含 `id`(角色标识)、`purpose`(一句话职责描述,≤150 字符)、`skills`(依赖的技能列表)和 `tools`(依赖的工具列表)。
- **`description`**:技能描述,遵循简洁原则(≤4 行、≤500 字符),采用 WHAT / WHEN / NOT 三行结构。
@@ -160,7 +162,7 @@ roles:
示例:
-```markdown
+````markdown
---
role_name: coordinator
description: 会诊协调者,负责组织专家、汇总意见
@@ -217,19 +219,19 @@ description: 会诊协调者,负责组织专家、汇总意见
6. 输出结构化的诊疗建议报告
你不直接给出医学诊断意见,而是确保各专家意见被充分表达和整合。
-```
+````
#### workflow.md — 协作流程
定义角色之间的交互顺序和任务流转,包含 3 个必需章节:
-1. **`## Overview`**:流程概览,必须包含 mermaid 流程图,这是 Team Skill 与单 Agent Skill 的核心表达差异。
+1. **`## Overview`**:流程概览,必须包含 mermaid 流程图,这是 Swarm Skill 与单 Agent Skill 的核心表达差异。
2. **`## Detailed Steps`**:详细步骤,每步包含执行者、输入、输出、串行/并行标记和质量门控。
3. **`## Acceptance Criteria`**:验收标准,判断一次协作是否成功的标准。
示例:
-```markdown
+````markdown
# 会诊协作流程
## Overview
@@ -286,7 +288,7 @@ graph TD
- 所有受邀专家均提交了意见(或缺失意见已标注)
- 意见分歧已被识别和处理
- 最终报告是结构化的、包含综合诊疗建议
-```
+````
#### bind.md — 边界与异常处理
@@ -373,44 +375,44 @@ tools:
## 3. 使用指导
-### 3.1 如何开始使用 Team Skills
+### 3.1 如何开始使用 Swarm Skills
-用户通常通过以下步骤开始使用 Team Skills:
+用户通常通过以下步骤开始使用 Swarm Skills:
-**步骤一:从 Team Skills Hub 获取现成技能**
+**步骤一:从 Swarm Skills Hub 获取现成技能**
-1. 打开 JiuwenClaw 的「技能」面板
-2. 点击「Team Skills Hub 在线搜索」
+1. 打开 jiuwenSwarm 的「技能」面板
+2. 点击「Swarm Skills Hub 在线搜索」
3. 输入关键词搜索所需的团队技能(如"医疗会诊"、"研究报告"等)
4. 点击「安装」将技能添加到工作区
也可以通过命令行搜索和安装:
```
-# 搜索 Team Skills
-/teamskills search "医疗会诊"
+# 搜索 Swarm Skills
+/swarmskills search "医疗会诊"
-# 查看 Team Skill 详情
-/teamskills info <asset_id> --version 1.0.0
+# 查看 Swarm Skill 详情
+/swarmskills info <asset_id> --version 1.0.0
-# 安装 Team Skill
-/teamskills install <asset_id> --version 1.0.0
+# 安装 Swarm Skill
+/swarmskills install <asset_id> --version 1.0.0
```
-> **提示**:`<asset_id>` 是 Team Skills Hub 上的技能唯一标识(如 `sk-123`),搜索结果中会显示。
+> **提示**:`<asset_id>` 是 Swarm Skills Hub 上的技能唯一标识(如 `sk-123`),搜索结果中会显示。
-**步骤二:在 JiuwenClaw 中使用**
+**步骤二:在 jiuwenSwarm 中使用**
-安装完成后,Team Skill 会自动出现在可用技能列表中:
+安装完成后,Swarm Skill 会自动出现在可用技能列表中:
1. 在对话中描述你的任务目标
-2. 系统会识别并调用相应的 Team Skill
+2. 系统会识别并调用相应的 Swarm Skill
3. 团队协作流程按既定方式自动运行
4. 获得结构化的输出结果
-### 3.2 什么场景更适合使用 Team Skills
+### 3.2 什么场景更适合使用 Swarm Skills
-Team Skills 特别适合以下场景:
+Swarm Skills 特别适合以下场景:
| 场景特征 | 说明 | 示例 |
|----------|------|------|
@@ -419,29 +421,29 @@ Team Skills 特别适合以下场景:
| 希望复用成熟流程 | 不想每次都重新设计协作方式 | 定期执行的代码审查、安全审计 |
| 输出需要结构化 | 需要标准化的报告、方案或建议 | 诊疗建议报告、研究报告、审计报告 |
-**对比:何时使用单 Agent Skill vs Team Skill**
+**对比:何时使用单 Agent Skill vs Swarm Skill**
| 情况 | 推荐选择 | 原因 |
|------|----------|------|
-| 单一任务,一个 Agent 可完成 | 单 Agent Skill | 无需多角色协作,Team Skill 会增加不必要的开销 |
+| 单一任务,一个 Agent 可完成 | 单 Agent Skill | 无需多角色协作,Swarm Skill 会增加不必要的开销 |
| 需要多步推理,但无需角色分工 | 单 Agent Skill + 工作流 | 流程可以由单个 Agent 按步骤执行 |
-| 需要多个专业角色协作 | **Team Skill** | 不同角色的专业视角不可替代 |
-| 任务流程固定、需要复用 | **Team Skill** | 预定义流程可反复使用,质量更稳定 |
-| 需要对抗性检查(如代码审查) | **Team Skill** | 单 Agent 角色扮演多个视角容易产生收敛偏差 |
+| 需要多个专业角色协作 | **Swarm Skill** | 不同角色的专业视角不可替代 |
+| 任务流程固定、需要复用 | **Swarm Skill** | 预定义流程可反复使用,质量更稳定 |
+| 需要对抗性检查(如代码审查) | **Swarm Skill** | 单 Agent 角色扮演多个视角容易产生收敛偏差 |
### 3.3 使用重点
-Team Skills 的核心价值在于:**选择合适的 Team Skill,让团队协作流程按既定方式自动运行**,而不是手动编排每个 Agent。
+Swarm Skills 的核心价值在于:**选择合适的 Swarm Skill,让团队协作流程按既定方式自动运行**,而不是手动编排每个 Agent。
使用时的三个重点:
-1. **选择合适的 Team Skill**:根据任务特点选择匹配的团队技能。如果现有技能不完全匹配,可以基于 `teamskill-creator` 修改已有技能或创建新技能。
+1. **选择合适的 Swarm Skill**:根据任务特点选择匹配的团队技能。如果现有技能不完全匹配,可以基于 `swarmskill-creator` 修改已有技能或创建新技能。
2. **提供清晰的输入**:按照技能要求提供完整的任务信息。输入越清晰,协作输出质量越高。
3. **理解输出结构**:了解技能的输出格式,便于后续处理和使用。
-Team Skills 相比临时组队的三大优势:
+Swarm Skills 相比临时组队的三大优势:
-| 优势点 | 临时组队 | Team Skill |
+| 优势点 | 临时组队 | Swarm Skill |
|--------|----------|------------|
| 分工规则 | 每次需重新分配,可能遗漏或混乱 | 预定义,稳定可靠 |
| 协作顺序 | 可能遗漏关键步骤 | workflow.md 明确规定 |
@@ -449,12 +451,12 @@ Team Skills 相比临时组队的三大优势:
### 3.4 跨框架复用潜力
-Team Skills 采用标准化的结构定义(5 文件规范),具备跨框架复用潜力:
+Swarm Skills 采用标准化的结构定义(5 文件规范),具备跨框架复用潜力:
- 协作标准基于通用的角色-流程-边界模型,不依赖特定框架的实现细节
- 可适配到支持相关协作标准的其他 AI Agent 平台
- 便于在不同框架间迁移和共享团队协作经验
-- Team Skills Hub 作为社区共享平台,促进跨框架的技能生态共建
+- Swarm Skills Hub 作为社区共享平台,促进跨框架的技能生态共建
---
@@ -462,7 +464,7 @@ Team Skills 采用标准化的结构定义(5 文件规范),具备跨框架
### 4.1 案例:多学科医疗专家会诊
-本案例展示 Team Skills 在医疗会诊场景中的实际应用价值。
+本案例展示 Swarm Skills 在医疗会诊场景中的实际应用价值。
#### 适用场景
@@ -495,6 +497,8 @@ Team Skills 采用标准化的结构定义(5 文件规范),具备跨框架
**阶段二:专家评估(并行)**
+![专家评估](../assets/images/jiuwenswarm专家评估.png)
+
```
[internist] 评估内科方面:
- ST段抬高提示心肌损伤可能
@@ -523,6 +527,8 @@ Team Skills 采用标准化的结构定义(5 文件规范),具备跨框架
**阶段四:输出结果**
+![医疗会诊报告概览](../assets/images/jiuwenswarm医疗就诊案例.png)
+
```markdown
# 会诊报告 #2024-001
@@ -556,19 +562,23 @@ Team Skills 采用标准化的结构定义(5 文件规范),具备跨框架
参与专家:内科张医生、外科李医生、影像科王医生
```
-#### Team Skills 的优势体现
+以下截图展示了医疗会诊 Swarm Skill 在 JiuwenSwarm 中的实际执行结果,包括已完成的任务列表和生成的会诊报告文件:
+
+![医疗会诊执行结果](../assets/images/jiuwenswarm医疗报告生成.png)
+
+#### Swarm Skills 的优势体现
-| 优势点 | 临时组队 | Team Skill |
+| 优势点 | 临时组队 | Swarm Skill |
|--------|----------|------------|
| 分工规则 | 每次需重新分配谁看什么 | 预定义角色(内科/外科/影像科),稳定可靠 |
| 协作顺序 | 可能遗漏步骤(如忘记整合分歧) | workflow.md 明确规定:分析→评估→整合→输出 |
| 异常处理 | 专家超时怎么办?临时决定 | bind.md 统一策略:跳过并标注缺失 |
| 输出格式 | 每次格式不同 | 结构化、标准化报告 |
-| 复用性 | 下次会诊又要从零开始 | 同一 Team Skill 可反复使用 |
+| 复用性 | 下次会诊又要从零开始 | 同一 Swarm Skill 可反复使用 |
### 4.2 案例:研究与 PPT 撰写团队
-本案例展示 Team Skills 在内容生产场景中的应用。
+本案例展示 Swarm Skills 在内容生产场景中的应用。
#### 适用场景
@@ -620,35 +630,37 @@ Team Skills 采用标准化的结构定义(5 文件规范),具备跨框架
## 5. 创建指导
-### 5.1 使用 teamskill-creator 创建新的 Team Skill
+### 5.1 使用 swarmskill-creator 创建新的 Swarm Skill
-JiuwenClaw 提供了 `teamskill-creator` 技能,帮助用户创建、转换或修改 Team Skill。它内置了标准化的模板、决策树和自动化验证器,确保创建的 Team Skill 符合规范。
+jiuwenSwarm 提供了 `swarmskill-creator` 技能,帮助用户创建、转换或修改 Swarm Skill。它内置了标准化的模板、决策树和自动化验证器,确保创建的 Swarm Skill 符合规范。
+
+![swarmskill-creator](../en/swarmskill.png)
**获取与安装**:
-`teamskill-creator` 是 JiuwenClaw 的内置技能,无需额外安装。如果您的环境中没有该技能,可以通过以下方式获取:
+`swarmskill-creator` 是 jiuwenSwarm 的内置技能,无需额外安装。如果您的环境中没有该技能,可以通过以下方式获取:
```bash
# 从技能中心搜索并安装
-/skills search teamskill-creator
-/skills install teamskill-creator
+/skills search swarmskill-creator
+/skills install swarmskill-creator
```
**三种模式**:
| 模式 | 适用场景 | 输出 |
|------|----------|------|
-| **CREATE** | 从零创建新的团队技能 | 新的 `<teamskill-name>/` 目录,包含完整的 5 文件集 |
-| **CONVERT** | 将现有单 Agent Skill 转换为 Team Skill | 转换后的 `<teamskill-name>/` 目录 + 差异报告 |
-| **MODIFY** | 修改已有 Team Skill(增删角色、调整流程等) | 更新后的文件 |
+| **CREATE** | 从零创建新的团队技能 | 新的 `<swarmskill-name>/` 目录,包含完整的 5 文件集 |
+| **CONVERT** | 将现有单 Agent Skill 转换为 Swarm Skill | 转换后的 `<swarmskill-name>/` 目录 + 差异报告 |
+| **MODIFY** | 修改已有 Swarm Skill(增删角色、调整流程等) | 更新后的文件 |
#### 创建流程示例
以下以创建「研究与报告撰写团队」为例,展示完整的创建过程:
-**步骤一:判断是否需要 Team Skill**
+**步骤一:判断是否需要 Swarm Skill**
-首先确认:这个任务是否真的需要多角色协作?Team Skill 仅在以下情况才值得创建:
+首先确认:这个任务是否真的需要多角色协作?Swarm Skill 仅在以下情况才值得创建:
1. **对抗性盲区**:单 Agent 角色扮演多个视角会产生收敛偏差(如代码审查、安全审计)
2. **并行分解收益**:多个独立子任务可以并行执行,且整合非平凡(如多角度研究)
@@ -688,7 +700,7 @@ research-report-team/
编写 `workflow.md`,包含 mermaid 流程图、详细步骤和验收标准:
-```markdown
+````markdown
## Overview
```mermaid
@@ -702,7 +714,7 @@ graph TD
RV -->|通过| OUT[输出最终报告]
RV -->|需修改| W
```
-```
+````
**步骤五:编写边界与异常处理**
@@ -740,14 +752,14 @@ graph TD
**步骤七:验证**
-运行自动化验证器,确保 Team Skill 符合规范:
+运行自动化验证器,确保 Swarm Skill 符合规范:
```bash
# 方式一:使用 TUI 内置命令(推荐)
-/teamskills validate path/to/research-report-team/ --type teamskills
+/swarmskills validate path/to/research-report-team/ --type swarmskills
# 方式二:使用独立验证脚本
-python scripts/validate_teamskill.py path/to/research-report-team/
+python scripts/validate_swarmskill.py path/to/research-report-team/
```
验证器检查:
@@ -763,9 +775,9 @@ python scripts/validate_teamskill.py path/to/research-report-team/
**退出码 0 = 合规**。非零退出码会打印具体的失败检查项。
-### 5.2 修改已有 Team Skill
+### 5.2 修改已有 Swarm Skill
-使用 `teamskill-creator` 的 MODIFY 模式可以修改已有的 Team Skill:
+使用 `swarmskill-creator` 的 MODIFY 模式可以修改已有的 Swarm Skill:
| 修改类型 | 需要重新执行的步骤 | 需要更新的文件 |
|----------|-------------------|---------------|
@@ -777,52 +789,52 @@ python scripts/validate_teamskill.py path/to/research-report-team/
**重要**:无论修改大小,步骤 7(验证)都必须执行。
-### 5.3 将单 Agent Skill 转换为 Team Skill
+### 5.3 将单 Agent Skill 转换为 Swarm Skill
-使用 `teamskill-creator` 的 CONVERT 模式可以将现有的单 Agent Skill 转换为 Team Skill:
+使用 `swarmskill-creator` 的 CONVERT 模式可以将现有的单 Agent Skill 转换为 Swarm Skill:
1. **读取源 SKILL.md**,识别自然角色边界:
- 找到嵌入的多角色设定(如"扮演 Persona 1 / Persona 2 / Persona 3")
- 找到顺序阶段和质量门控(如"先做 X,再验证 Y,再产出 Z")
- 找到按类别分支的检查清单(如"[ ] 安全 [ ] 性能 [ ] 可读性")
-2. **明确转换价值**:单 Agent 形式下丢失了什么?这成为 Team Skill 的"为什么"
+2. **明确转换价值**:单 Agent 形式下丢失了什么?这成为 Swarm Skill 的"为什么"
3. **继续从步骤 2 开始**,按 CREATE 流程完成
-### 5.4 上传到 Team Skills Hub
+### 5.4 上传到 Swarm Skills Hub
-创建完成后,可以将 Team Skill 分享到社区,共建团队技能生态:
+创建完成后,可以将 Swarm Skill 分享到社区,共建团队技能生态:
**步骤一:验证完整性**
```bash
# 方式一:使用 TUI 内置命令(推荐)
-/teamskills validate path/to/<teamskill-name>/ --type teamskills
+/swarmskills validate path/to/<swarmskill-name>/ --type swarmskills
# 方式二:使用独立验证脚本
-python scripts/validate_teamskill.py path/to/<teamskill-name>/
+python scripts/validate_swarmskill.py path/to/<swarmskill-name>/
```
确保退出码为 0(合规)。
**步骤二:上传发布**
-在 JiuwenClaw 的「技能」面板中:
-1. 点击「Team Skills Hub」
-2. 选择要发布的 Team Skill
+在 jiuwenSwarm 的「技能」面板中:
+1. 点击「Swarm Skills Hub」
+2. 选择要发布的 Swarm Skill
3. 点击「上传」
-4. 首次使用需要认证(输入 Team Skills Hub Token)
+4. 首次使用需要认证(输入 Swarm Skills Hub Token)
也可以通过命令行发布:
```
-# 发布到 Team Skills Hub(需要鉴权)
-/teamskills publish path/to/<teamskill-name> --version 1.0.0 --token <TOKEN>
+# 发布到 Swarm Skills Hub(需要鉴权)
+/swarmskills publish path/to/<swarmskill-name> --version 1.0.0 --token <TOKEN>
# 如需覆盖已有版本,添加 --force
-/teamskills publish path/to/<teamskill-name> --version 1.0.1 --token <TOKEN> --force
+/swarmskills publish path/to/<swarmskill-name> --version 1.0.1 --token <TOKEN> --force
```
-> **鉴权说明**:发布和删除操作需要提供 `--token`(用户 Token)或 `--system-token`(系统 Token),且只能选择一种。Token 可通过 `/teamskills config --token <TOKEN>` 预配置,避免每次手动输入。
+> **鉴权说明**:发布和删除操作需要提供 `--token`(用户 Token)或 `--system-token`(系统 Token),且只能选择一种。Token 可通过 `/swarmskills config --token <TOKEN>` 预配置,避免每次手动输入。
**步骤三:维护更新**
@@ -851,45 +863,45 @@ python scripts/validate_teamskill.py path/to/<teamskill-name>/
| 操作 | 命令/方式 |
|------|----------|
-| 搜索 Team Skills | `/teamskills search <关键词>` |
-| 查看 Team Skill 详情 | `/teamskills info <asset_id> --version <x.y.z>` |
-| 安装 Team Skill | `/teamskills install <asset_id> --version <x.y.z>` |
-| 查看已安装技能 | `/teamskills list` |
-| 卸载 Team Skill | `/teamskills uninstall <name>` |
-| 创建 Team Skill 脚手架 | `/teamskills init <name> --type teamskills` |
-| 验证 Team Skill | `/teamskills validate <path> --type teamskills` |
-| 打包 Team Skill | `/teamskills pack <path> --output <dir>` |
-| 配置 Hub URL 和 Token | `/teamskills config --market-url <url> --token <TOKEN>` |
-| 发布到 Team Skills Hub | `/teamskills publish <path> --version <x.y.z> --token <TOKEN>` |
-| 删除 Hub 上的技能 | `/teamskills delete <skill_id> --version <x.y.z> --token <TOKEN>` |
-| 使用 teamskill-creator 创建 | 使用 `teamskill-creator` 技能的 CREATE 模式 |
-| 使用 teamskill-creator 修改 | 使用 `teamskill-creator` 技能的 MODIFY 模式 |
-| 使用 teamskill-creator 转换 | 使用 `teamskill-creator` 技能的 CONVERT 模式 |
+| 搜索 Swarm Skills | `/swarmskills search <关键词>` |
+| 查看 Swarm Skill 详情 | `/swarmskills info <asset_id> --version <x.y.z>` |
+| 安装 Swarm Skill | `/swarmskills install <asset_id> --version <x.y.z>` |
+| 查看已安装技能 | `/swarmskills list` |
+| 卸载 Swarm Skill | `/swarmskills uninstall <name>` |
+| 创建 Swarm Skill 脚手架 | `/swarmskills init <name> --type swarmskills` |
+| 验证 Swarm Skill | `/swarmskills validate <path> --type swarmskills` |
+| 打包 Swarm Skill | `/swarmskills pack <path> --output <dir>` |
+| 配置 Hub URL 和 Token | `/swarmskills config --market-url <url> --token <TOKEN>` |
+| 发布到 Swarm Skills Hub | `/swarmskills publish <path> --version <x.y.z> --token <TOKEN>` |
+| 删除 Hub 上的技能 | `/swarmskills delete <skill_id> --version <x.y.z> --token <TOKEN>` |
+| 使用 swarmskill-creator 创建 | 使用 `swarmskill-creator` 技能的 CREATE 模式 |
+| 使用 swarmskill-creator 修改 | 使用 `swarmskill-creator` 技能的 MODIFY 模式 |
+| 使用 swarmskill-creator 转换 | 使用 `swarmskill-creator` 技能的 CONVERT 模式 |
### 常见问题
-**Q: Team Skill 和普通 Skill 有什么区别?**
+**Q: Swarm Skill 和普通 Skill 有什么区别?**
-A: 普通 Skill 是单一 Agent 的能力扩展("一个 Agent 怎么做事"),而 Team Skill 封装了多 Agent 协作的完整模式("一个 Agent 团队怎么配合做事"),包括角色分工、协作流程和异常处理策略。
+A: 普通 Skill 是单一 Agent 的能力扩展("一个 Agent 怎么做事"),而 Swarm Skill 封装了多 Agent 协作的完整模式("一个 Agent 团队怎么配合做事"),包括角色分工、协作流程和异常处理策略。
-**Q: 如何判断是否需要使用 Team Skill?**
+**Q: 如何判断是否需要使用 Swarm Skill?**
-A: 如果任务存在以下情况,适合使用 Team Skill:(1) 单 Agent 角色扮演多视角会产生收敛偏差;(2) 多个独立子任务可以并行执行;(3) 顺序阶段有质量门控需要专业化处理。如果以上都不适用,建议使用单 Agent Skill。
+A: 如果任务存在以下情况,适合使用 Swarm Skill:(1) 单 Agent 角色扮演多视角会产生收敛偏差;(2) 多个独立子任务可以并行执行;(3) 顺序阶段有质量门控需要专业化处理。如果以上都不适用,建议使用单 Agent Skill。
-**Q: 可以修改已安装的 Team Skill 吗?**
+**Q: 可以修改已安装的 Swarm Skill 吗?**
-A: 可以。使用 `teamskill-creator` 的 MODIFY 模式修改本地副本,修改后需重新运行验证器确认合规。
+A: 可以。使用 `swarmskill-creator` 的 MODIFY 模式修改本地副本,修改后需重新运行验证器确认合规。
-**Q: Team Skill 的 5 文件结构都是必需的吗?**
+**Q: Swarm Skill 的 5 文件结构都是必需的吗?**
A: 是的。SKILL.md、roles/、workflow.md、bind.md、dependencies.yaml 都是必需文件。验证器会检查所有 5 个文件是否齐全。`examples/`、`templates/`、`assets/` 等扩展目录是可选的。
-**Q: Team Skills Hub 的默认地址是什么?**
+**Q: Swarm Skills Hub 的默认地址是什么?**
-A: 默认地址为 `https://teamskills.openjiuwen.com`,可通过环境变量 `TEAM_SKILLS_HUB_BASE_URL` 覆盖。
+A: 默认地址为 `https://swarmskills.openjiuwen.com`,可通过环境变量 `TEAM_SKILLS_HUB_BASE_URL` 覆盖。
---
*文档版本:v2.0*
-*适用对象:JiuwenClaw 用户、技能开发者*
-*最后更新:2026-05-08*
\ No newline at end of file
+*适用对象:jiuwenSwarm 用户、技能开发者*
+*最后更新:2026-07-13*
\ No newline at end of file