初始化

This commit is contained in:
2026-03-05 21:27:11 +08:00
commit 130de0fd5d
140 changed files with 21972 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
---
description: >
Subagent 编排系统。当需要委托子任务给独立 Agent 并行执行时使用。
包含 repo-scout、test-runner、security-sentinel 三个模板。
alwaysApply: false
---
# Subagents 系统
Subagents 是本项目定义的使用约定,通过 Task 工具的 subagent_type 参数执行,
实现任务隔离和并行处理。
## 调用方式
先 Read 对应的 `.cursor/agents/*.md` 文件,将完整内容作为 `prompt` 传递给 Task 工具。
## 可用 Subagents
| Subagent | 职责 | 模式 |
|----------|------|------|
| **repo-scout** | 代码库探索、文件定位 | 只读 |
| **test-runner** | 运行测试、报告结果 | 后台 |
| **security-sentinel** | 安全扫描、漏洞检测 | 只读 |
## 使用模式
- **清洁上下文**:每个 Subagent 独立上下文,不污染主对话
- **并行执行**:多个 Subagent 可同时运行
- **链式编排**Scout → Implement → Verify
- **扇出模式**:同一任务拆分给多个 Subagent 并行