Skip to content

Commit 530a7ac

Browse files
author
zhonghui
committed
skill support
1 parent 452baac commit 530a7ac

13 files changed

Lines changed: 727 additions & 33 deletions

File tree

README.en.md

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ When using AI (Copilot, Claude, Cursor…) for development:
3636

3737
## Get Started in 30 Seconds
3838

39+
### Option 1: Install via Agent Skills (Recommended)
40+
41+
```bash
42+
npx skills add lordmos/dev-crew
43+
```
44+
45+
> Compatible with 44+ AI platforms (Claude Code, GitHub Copilot, Cursor, Codex, etc.). Automatically installs the DevCrew protocol into your agent. See [skills.sh](https://skills.sh).
46+
47+
### Option 2: Install via CLI
48+
3949
```bash
4050
npm install -g @lordmos/dev-crew
4151
cd your-project
@@ -186,23 +196,21 @@ crew agents # List all available specialists
186196
## Architecture
187197

188198
```
189-
┌─────────────────────────────────────────────┐
190-
│ Skills Layer │
191-
│ ┌──────────────┐ ┌──────────────────────┐ │
192-
│ │ CLI │ │ MCP Server │ │
193-
│ │ crew init │ │ crew_init │ │
194-
│ │ crew plan │ │ crew_plan │ │
195-
│ │ crew status │ │ crew_status │ │
196-
│ │ crew release │ │ crew_release │ │
197-
│ └──────────────┘ └──────────────────────┘ │
198-
├─────────────────────────────────────────────┤
199-
│ Protocol Layer (core, zero tool dependency) │
200-
│ INSTRUCTIONS.md · PDEVI workflow · │
201-
│ File conventions · Communication rules │
202-
└─────────────────────────────────────────────┘
199+
┌─────────────────────────────────────────────────────┐
200+
│ Access Layer │
201+
│ ┌───────────┐ ┌──────────┐ ┌─────────────────────┐ │
202+
│ │ Agent │ │ CLI │ │ MCP Server │ │
203+
│ │ Skills │ │ crew * │ │ crew_* │ │
204+
│ │ SKILL.md │ │ │ │ │ │
205+
│ └───────────┘ └──────────┘ └─────────────────────┘ │
206+
├─────────────────────────────────────────────────────┤
207+
│ Protocol Layer (core, zero tool dependency) │
208+
│ INSTRUCTIONS.md · PDEVI workflow · │
209+
│ File conventions · Communication rules │
210+
└─────────────────────────────────────────────────────┘
203211
```
204212

205-
> Even without CLI/MCP, manually placing `INSTRUCTIONS.md` works. Skills make the workflow more efficient.
213+
> Three access methods: install to any agent via `npx skills add`, operate via CLI, or call programmatically via MCP Server. Even without any tools, manually placing `INSTRUCTIONS.md` works.
206214
207215
---
208216

README.md

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@
3636

3737
## 30 秒上手
3838

39+
### 方式一:通过 Agent Skills 安装(推荐)
40+
41+
```bash
42+
npx skills add lordmos/dev-crew
43+
```
44+
45+
> 兼容 44+ AI 平台(Claude Code、GitHub Copilot、Cursor、Codex 等),自动将 DevCrew 协议安装到你的 Agent。详见 [skills.sh](https://skills.sh)
46+
47+
### 方式二:通过 CLI 安装
48+
3949
```bash
4050
npm install -g @lordmos/dev-crew
4151
cd your-project
@@ -186,22 +196,20 @@ crew agents # 查看所有可用专家
186196
## 架构
187197

188198
```
189-
┌─────────────────────────────────────────────┐
190-
│ Skills 层 │
191-
│ ┌──────────────┐ ┌──────────────────────┐ │
192-
│ │ CLI │ │ MCP Server │ │
193-
│ │ crew init │ │ crew_init │ │
194-
│ │ crew plan │ │ crew_plan │ │
195-
│ │ crew status │ │ crew_status │ │
196-
│ │ crew release │ │ crew_release │ │
197-
│ └──────────────┘ └──────────────────────┘ │
198-
├─────────────────────────────────────────────┤
199-
│ 协议层(核心,零工具依赖) │
200-
│ INSTRUCTIONS.md · PDEVI 工作流 · 文件约定 │
201-
└─────────────────────────────────────────────┘
199+
┌─────────────────────────────────────────────────────┐
200+
│ 接入层 │
201+
│ ┌───────────┐ ┌──────────┐ ┌─────────────────────┐ │
202+
│ │ Agent │ │ CLI │ │ MCP Server │ │
203+
│ │ Skills │ │ crew * │ │ crew_* │ │
204+
│ │ SKILL.md │ │ │ │ │ │
205+
│ └───────────┘ └──────────┘ └─────────────────────┘ │
206+
├─────────────────────────────────────────────────────┤
207+
│ 协议层(核心,零工具依赖) │
208+
│ INSTRUCTIONS.md · PDEVI 工作流 · 文件约定 │
209+
└─────────────────────────────────────────────────────┘
202210
```
203211

204-
> 即使不装 CLI/MCP,手动放入 `INSTRUCTIONS.md` 也能工作。Skills 让流程更高效
212+
> 三种接入方式:通过 `npx skills add` 安装到任意 Agent、通过 CLI 命令操作、通过 MCP Server 程序化调用。即使不装任何工具,手动放入 `INSTRUCTIONS.md` 也能工作。
205213
206214
---
207215

docs/en/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ features:
3434
title: Files as Memory
3535
details: Each agent maintains independent long-term memory and work logs — context auto-recovers across sessions.
3636
- icon:
37-
title: Skills + MCP
38-
details: Built-in skills (init, plan, status, release) accessible via CLI and MCP Server — AI agents can call them directly.
37+
title: Skills Ecosystem
38+
details: One-command install to 44+ AI platforms via npx skills add. Also supports CLI and MCP Server for direct invocation.
3939
---
4040

4141
<div class="home-examples">

docs/en/quick-start.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
## Install
44

5+
### Option 1: Install via Agent Skills (Recommended)
6+
7+
```bash
8+
npx skills add lordmos/dev-crew
9+
```
10+
11+
Automatically installs the DevCrew protocol into your AI agent (supports Claude Code, GitHub Copilot, Cursor, Codex, and 44+ platforms).
12+
13+
> See [skills.sh](https://skills.sh)
14+
15+
### Option 2: Install via CLI
16+
517
```bash
618
npm install -g @lordmos/dev-crew
719
```

docs/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ features:
3434
title: 文件即记忆
3535
details: 每个 Agent 维护独立的长期记忆和工作记录,跨会话自动恢复上下文。
3636
- icon:
37-
title: Skills + MCP
38-
details: 提供 init / plan / status / release 等 Skill,CLI 和 MCP Server 双通道,AI Agent 可直接调用
37+
title: Skills 生态
38+
details: 通过 npx skills add 一键安装到 44+ AI 平台,同时支持 CLI 和 MCP Server 双通道调用
3939
---
4040

4141
<div class="home-examples">

docs/quick-start.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22

33
## 安装
44

5+
### 方式一:通过 Agent Skills 安装(推荐)
6+
7+
```bash
8+
npx skills add lordmos/dev-crew
9+
```
10+
11+
自动将 DevCrew 协议安装到你的 AI Agent(支持 Claude Code、GitHub Copilot、Cursor、Codex 等 44+ 平台)。
12+
13+
> 详见 [skills.sh](https://skills.sh)
14+
15+
### 方式二:通过 CLI 安装
16+
517
```bash
618
npm install -g @lordmos/dev-crew
719
```

skills/crew-agents/SKILL.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
name: crew:agents
3+
user-invocable: true
4+
description: List available domain specialists that can be activated for the DevCrew team — covering game dev, security, DevOps, AI/ML, and more.
5+
metadata:
6+
author: lordmos
7+
version: 0.5.0
8+
---
9+
10+
# crew agents — 列出可用领域专家
11+
12+
查看所有可用的领域专家(Domain Specialists),了解每位专家的名称、所属领域和适用的 PDEVI 阶段。
13+
14+
## 何时使用
15+
16+
- 用户问"有哪些专家"、"list agents"、"谁能帮忙"
17+
- 需要为特定领域(如安全、游戏开发)激活专家
18+
- 配置 `dev-crew.yaml` 前了解选项
19+
20+
## 使用方法
21+
22+
### CLI
23+
24+
```bash
25+
npx @lordmos/dev-crew agents
26+
```
27+
28+
### MCP Tool
29+
30+
```
31+
crew_agents()
32+
```
33+
34+
## 输出内容
35+
36+
按领域分组展示所有可用专家:
37+
38+
- **专家 ID**:用于 `dev-crew.yaml` 配置
39+
- **专家名称**:角色描述
40+
- **适用阶段**:在 PDEVI 的哪些阶段参与
41+
42+
## 激活专家
43+
44+
`dev-crew.yaml` 中添加专家 ID:
45+
46+
```yaml
47+
specialists:
48+
- game-designer
49+
- security-engineer
50+
- devops-engineer
51+
```
52+
53+
激活后,PjM 会在对应 PDEVI 阶段自动调度专家参与协作。
54+
55+
## 可用领域
56+
57+
> 游戏开发(8)· UI/UX(3)· 安全(1)· DevOps(3)· 测试(3)· 工程(5)· 数据(2)· AI/ML(1)· Web3(1)· 空间计算(2)
58+
59+
共 **29 位领域专家**覆盖 10 个领域。

skills/crew-checkpoint/SKILL.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
name: crew:checkpoint
3+
user-invocable: true
4+
description: Run a phase audit and consistency check on the current change. Validates all checklist items before advancing to the next PDEVI phase.
5+
metadata:
6+
author: lordmos
7+
version: 0.5.0
8+
---
9+
10+
# crew checkpoint — 阶段审计与一致性检查
11+
12+
对当前活跃变更执行阶段审计,检查所有审计项是否通过,确保一致性后推进到下一阶段。
13+
14+
## 何时使用
15+
16+
- 每个 PDEVI 阶段结束时**必须执行**
17+
- 用户说"做个检查点"、"检查一下"、"run checkpoint"
18+
- 需要验证当前阶段的产出质量
19+
20+
## 使用方法
21+
22+
### CLI
23+
24+
```bash
25+
npx @lordmos/dev-crew checkpoint [change-name]
26+
```
27+
28+
不指定变更名称时,自动选择第一个活跃变更。
29+
30+
### MCP Tool
31+
32+
```
33+
crew_checkpoint(cwd: string, change?: string)
34+
```
35+
36+
## 审计清单
37+
38+
### Plan 阶段
39+
- [ ] proposal.md 包含目标、需求、验收标准
40+
- [ ] 验收标准为 checklist 格式(`- [ ]`
41+
- [ ] 命名一致性检查
42+
- [ ] 用户已确认(`plan_confirmed: true`
43+
44+
### Design 阶段
45+
- [ ] design.md 引用 proposal.md(文件指针,非重复内容)
46+
- [ ] 技术决策附带理由
47+
- [ ] 任务分解为 checklist 格式
48+
- [ ] 任务分解覆盖所有验收标准
49+
- [ ] 命名与 proposal 一致
50+
51+
### Execute 阶段
52+
- [ ] impl-log.md 所有任务标记 `[x]`
53+
- [ ] 每条完成记录附带文件路径和改动摘要
54+
- [ ] 代码改动与 design.md 任务一一对应
55+
- [ ] 无未完成的 design.md checklist 项
56+
57+
### Verify 阶段
58+
- [ ] test-report.md 逐条检查验收标准
59+
- [ ] review-report.md 完成代码审查
60+
- [ ] 缺陷记录附带回退建议
61+
- [ ] 用户已确认(`verify_confirmed: true`
62+
63+
## 一致性审计
64+
65+
除阶段审计外,还检查:
66+
- blockers.md 是否有 `[OPEN]` 状态的阻断项
67+
- resume.md 是否存在且格式正确
68+
- 文件是否超过 200 行(建议拆分或使用文件指针)
69+
70+
## 输出
71+
72+
审计报告包含 `[PASS]` / `[TODO]` 标记、一致性检查结果、记忆同步提醒和下一阶段建议。

skills/crew-init/SKILL.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
---
2+
name: crew:init
3+
user-invocable: true
4+
description: Initialize a DevCrew workspace — creates INSTRUCTIONS.md, project config, agent memory files, and document templates for AI team orchestration.
5+
metadata:
6+
author: lordmos
7+
version: 0.5.0
8+
---
9+
10+
# crew init — 初始化 DevCrew 工作区
11+
12+
在当前项目中创建 DevCrew 多 Agent 协作所需的完整工作区结构。
13+
14+
## 何时使用
15+
16+
- 从零开始一个新项目,需要 AI 团队协作
17+
- 为已有项目引入 DevCrew 协议
18+
- 用户说"初始化"、"设置 DevCrew"、"set up dev-crew"
19+
20+
## 使用方法
21+
22+
### CLI(推荐)
23+
24+
```bash
25+
npx @lordmos/dev-crew init [options]
26+
```
27+
28+
**参数:**
29+
30+
| 选项 | 说明 | 示例 |
31+
|------|------|------|
32+
| `--platform, -p` | 目标 AI 平台,自动写入平台指令文件 | `--platform copilot` |
33+
| `--name` | 项目名称(默认从 package.json 或目录名推断) | `--name my-app` |
34+
| `--no-gitignore` | 不修改 .gitignore | |
35+
36+
**平台选项:**
37+
38+
```bash
39+
crew init -p copilot # → .github/copilot-instructions.md
40+
crew init -p cursor # → .cursorrules
41+
crew init -p claude # → CLAUDE.md
42+
crew init -p copilot cursor # 多平台
43+
```
44+
45+
### MCP Tool
46+
47+
```
48+
crew_init(cwd: string, name?: string, platform?: string[], gitignore?: boolean)
49+
```
50+
51+
## 创建的文件结构
52+
53+
```
54+
your-project/
55+
├── INSTRUCTIONS.md ← AI 行为指令(核心协议文件)
56+
├── dev-crew.yaml ← 项目配置
57+
└── dev-crew/
58+
├── resume.md ← PjM 编排状态
59+
├── blockers.md ← 问题与决策跟踪
60+
├── specs/ ← 共享规约
61+
├── memory/ ← Agent 长期记忆
62+
│ ├── pdm.md
63+
│ ├── architect.md
64+
│ ├── implementer.md
65+
│ ├── tester.md
66+
│ └── reviewer.md
67+
└── templates/ ← 文档格式模板
68+
├── proposal.md
69+
├── design.md
70+
├── impl-log.md
71+
├── test-report.md
72+
└── review-report.md
73+
```
74+
75+
## 幂等性
76+
77+
重复执行不会覆盖已有文件,只补全缺失部分。

0 commit comments

Comments
 (0)