Search

PythonReactSEOPDF
OpenClaw

Smith Matrix

This skill should be used when the user asks to "create a multi-agent system", "spawn agents for parallel tasks", "decompose task recursively", "set up agent matrix", or wants to execute complex tasks using multiple coordinated agents with conflict-free parallel processing.

cyijun0 source installs☆ 0 Repository starsv0.2.0

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install cyijun/smith-matrix

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

史密斯矩阵 (Smith Matrix)

实现递归自相似多智能体系统的 Skill,通过目录隔离协议达成无冲突的并行任务分解与执行。

何时使用

在以下场景触发本 Skill:

  • 用户请求"创建多智能体系统"或"设置智能体矩阵"
  • 任务需要分解为多个并行子任务
  • 需要协调多个 Agent 同时工作
  • 复杂任务需要递归分解处理
  • 要求无冲突的并行执行环境

核心概念

史密斯 (Smith) 是自相似的智能体单元,每个史密斯拥有唯一 ID 和层级,能够执行任务、分解任务、创建子史密斯并汇总结果。所有史密斯遵循相同的协议,形成递归结构。

递归安全限制:

  • 最大层级:3(LEVEL 0 为根,最多到 LEVEL 3)
  • 最大子代理数:每层最多 5 个
  • 终局规则:LEVEL ≥ 3 时禁止分解,必须直接执行

无冲突协议 通过严格的目录隔离实现并行安全:每个史密斯只能写入自己的 private/ 和 outbox/,只能读取父史密斯写入的 inbox/。父史密斯拥有创建子目录的专属权限。

快速开始

第一步:初始化矩阵

执行初始化流程,创建 .smith-matrix/ 工作目录和根史密斯。

第二步:定义根任务

在 .smith-matrix/inbox/ 创建任务文件,描述需要完成的复杂任务。

第三步:启动执行

根史密斯读取任务,决定直接执行或分解为子任务并创建子史密斯。

目录结构

.smith-matrix/
├── inbox/                      # 任务队列(父写子读)
│   └── task-{id}.md
├── smiths/
│   ├── smith-root/             # 根史密斯
│   │   ├── smith.md            # 史密斯定义(只读)
│   │   ├── private/            # 私有工作区
│   │   ├── outbox/             # 结果输出
│   │   │   └── result.md
│   │   └── children/           # 子史密斯目录
│   │       └── smith-001/
│   └── smith-001/
│       ├── smith.md
│       ├── private/
│       ├── outbox/
│       └── children/
└── results/
    └── final.md                # 最终结果

初始化矩阵

当用户请求初始化 Smith Matrix 时,执行以下步骤:

1. 创建目录结构 .smith-matrix/

创建基础目录框架:

  • .smith-matrix/inbox/ —— 任务队列
  • .smith-matrix/smiths/ —— 史密斯目录
  • .smith-matrix/results/ —— 最终结果

2. 读取 smith.md 模板

从 smith-matrix/smith.md 读取史密斯定义模板。

3. 替换占位符

替换模板中的变量:

  • `{SM...

Source information

Source
github
Repository
openclaw/skills
Path
skills/cyijun/smith-matrix
Version
0.2.0
Commit
60b51b085df75dce8eafb22ed2f4fac6f6956d8b
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

SKILL.md
# 史密斯矩阵 (Smith Matrix)

实现递归自相似多智能体系统的 Skill,通过目录隔离协议达成无冲突的并行任务分解与执行。

## 何时使用

在以下场景触发本 Skill:

- 用户请求"创建多智能体系统"或"设置智能体矩阵"
- 任务需要分解为多个并行子任务
- 需要协调多个 Agent 同时工作
- 复杂任务需要递归分解处理
- 要求无冲突的并行执行环境

## 核心概念

**史密斯 (Smith)** 是自相似的智能体单元,每个史密斯拥有唯一 ID 和层级,能够执行任务、分解任务、创建子史密斯并汇总结果。所有史密斯遵循相同的协议,形成递归结构。

**递归安全限制**:
- 最大层级:3(LEVEL 0 为根,最多到 LEVEL 3)
- 最大子代理数:每层最多 5 个
- 终局规则:LEVEL ≥ 3 时禁止分解,必须直接执行

**无冲突协议** 通过严格的目录隔离实现并行安全:每个史密斯只能写入自己的 `private/` 和 `outbox/`,只能读取父史密斯写入的 `inbox/`。父史密斯拥有创建子目录的专属权限。

## 快速开始

**第一步:初始化矩阵**

执行初始化流程,创建 `.smith-matrix/` 工作目录和根史密斯。

**第二步:定义根任务**

在 `.smith-matrix/inbox/` 创建任务文件,描述需要完成的复杂任务。

**第三步:启动执行**

根史密斯读取任务,决定直接执行或分解为子任务并创建子史密斯。

## 目录结构

```
.smith-matrix/
├── inbox/                      # 任务队列(父写子读)
│   └── task-{id}.md
├── smiths/
│   ├── smith-root/             # 根史密斯
│   │   ├── smith.md            # 史密斯定义(只读)
│   │   ├── private/            # 私有工作区
│   │   ├── outbox/             # 结果输出
│   │   │   └── result.md
│   │   └── children/           # 子史密斯目录
│   │       └── smith-001/
│   └── smith-001/
│       ├── smith.md
│       ├── private/
│       ├── outbox/
│       └── children/
└── results/
    └── final.md                # 最终结果
```

## 初始化矩阵

当用户请求初始化 Smith Matrix 时,执行以下步骤:

**1. 创建目录结构 `.smith-matrix/`**

创建基础目录框架:
- `.smith-matrix/inbox/` —— 任务队列
- `.smith-matrix/smiths/` —— 史密斯目录
- `.smith-matrix/results/` —— 最终结果

**2. 读取 `smith.md` 模板**

从 `smith-matrix/smith.md` 读取史密斯定义模板。

**3. 替换占位符**

替换模板中的变量:
- `{SM...

Related skills

OpenClaw

13-Day Sprint Method

galizki

Productivity system based on Maya calendar with 13 natural tones for project management and personal development

OpenClaw

1password

daggerkun007

Set up and use 1Password CLI (op). Use when installing the CLI, enabling desktop app integration, signing in (single or multi-account), or reading/injecting/running secrets via op.