jarvis-agent-factory 2.1.0 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/planner.md +26 -0
- package/.claude/commands/jarvis.md +1 -0
- package/.claude/skills/using-agent-skills/SKILL.md +1 -1
- package/.codex/skills/using-agent-skills/SKILL.md +1 -1
- package/.opencode/agents/jarvis.md +1 -0
- package/.opencode/skills/using-agent-skills/SKILL.md +1 -1
- package/package.json +1 -1
|
@@ -61,6 +61,31 @@ model: deepseek-v4-pro
|
|
|
61
61
|
- TDD 任务的 Red→Green→Refactor 必须串行
|
|
62
62
|
- 不同 TDD 任务的 Red 步骤可并行
|
|
63
63
|
|
|
64
|
+
### 技能分配规则
|
|
65
|
+
|
|
66
|
+
根据任务类型和 test_strategy,在 Execution Packet 中指定 `required_skills`。子 Agent 收到后会在启动时加载这些技能。
|
|
67
|
+
|
|
68
|
+
| 任务场景 | required_skills(基础 + 场景) |
|
|
69
|
+
|---------|------|
|
|
70
|
+
| 所有任务(基础) | `behavioral-guidelines` `code-standards` |
|
|
71
|
+
| 代码实现 | + `source-driven-development` `incremental-implementation` `verification-before-completion` |
|
|
72
|
+
| TDD 任务 | + `test-driven-development` |
|
|
73
|
+
| 前端 UI/组件 | + `source-driven-development` `incremental-implementation` `verification-before-completion` |
|
|
74
|
+
| 后端业务逻辑 | + `source-driven-development` `incremental-implementation` `verification-before-completion` |
|
|
75
|
+
| 代码审查 | + `code-review-and-quality` |
|
|
76
|
+
| 架构设计 | + `source-driven-development` `documentation-and-adrs` |
|
|
77
|
+
| 安全审计 | + `security-and-hardening` |
|
|
78
|
+
| 数据层/DB | + `source-driven-development` |
|
|
79
|
+
| 性能测试 | + `debugging-and-error-recovery` |
|
|
80
|
+
| E2E 测试 | + `debugging-and-error-recovery` `verification-before-completion` |
|
|
81
|
+
| 浏览器测试 | + `agent-browser` `browser-testing` |
|
|
82
|
+
| Bug 修复 | + `source-driven-development` `debugging-and-error-recovery` |
|
|
83
|
+
| 重构 | + `code-simplification` `source-driven-development` `verification-before-completion` |
|
|
84
|
+
| API 文档 | + `source-driven-development` `chinese-documentation` |
|
|
85
|
+
| 发布/部署 | + `shipping-and-launch` `git-workflow-and-versioning` `finishing-a-development-branch` |
|
|
86
|
+
|
|
87
|
+
> 若任务有项目专属 skill(如 `.claude/skills/my-custom-skill/`),编排者可在 Execution Packet 的 `required_skills` 中追加。
|
|
88
|
+
|
|
64
89
|
### 变更规模控制
|
|
65
90
|
|
|
66
91
|
单轮次所有任务的预期变更总行数不应超过 ~1000 行。超过时考虑拆分为两个轮次。
|
|
@@ -212,6 +237,7 @@ Skill(skill="behavioral-guidelines")
|
|
|
212
237
|
### allowed_paths: <允许修改的目录/文件>
|
|
213
238
|
### forbidden_paths: <禁止修改的共享区域>
|
|
214
239
|
### dependencies: <依赖的 API / 契约 / schema>
|
|
240
|
+
### required_skills: <技能列表,按上方「技能分配规则」填写。子 Agent 启动后必须逐一 Skill() 加载>
|
|
215
241
|
### parallel_group: <可与此任务并行的任务 ID 列表>
|
|
216
242
|
### wait_for: <必须等待完成的任务 ID 列表>
|
|
217
243
|
### acceptance_criteria: <可验证的验收条件>
|
|
@@ -95,6 +95,7 @@ Batch 3: [TASK-005, TASK-006] ← 依赖 Batch 2 完成
|
|
|
95
95
|
- objective(一句话目标)
|
|
96
96
|
- allowed_paths 和 forbidden_paths
|
|
97
97
|
- dependencies(依赖的 API 契约 / Schema)
|
|
98
|
+
- required_skills(子 Agent 必须逐一 Skill() 加载的技能列表)
|
|
98
99
|
- acceptance_criteria(可验证的验收条件)
|
|
99
100
|
- test_strategy(tdd / test_after / manual_only)
|
|
100
101
|
- input_documents(上游文档路径)
|
|
@@ -124,7 +124,7 @@ Jarvis 按流程调度子 Agent
|
|
|
124
124
|
作为编排者,你不需要在每个阶段手动加载所有技能。关键规则:
|
|
125
125
|
|
|
126
126
|
1. **每个阶段只加载该阶段的核心技能**(1-3 个)
|
|
127
|
-
2.
|
|
127
|
+
2. **通过 Execution Packet 传递技能清单**——planner 在 `required_skills` 字段指定该任务需要的技能;编排者 spawn 子 Agent 时原样传递;子 Agent 启动后逐一 `Skill()` 加载
|
|
128
128
|
3. **behavioral-guidelines 是所有 Agent 的基座**——每个 Agent 都会自动遵守
|
|
129
129
|
4. **context-engineering 在三个关键时刻使用**:启动新会话、任务切换、子 Agent 结果偏离预期时
|
|
130
130
|
|
|
@@ -124,7 +124,7 @@ Jarvis 按流程调度子 Agent
|
|
|
124
124
|
作为编排者,你不需要在每个阶段手动加载所有技能。关键规则:
|
|
125
125
|
|
|
126
126
|
1. **每个阶段只加载该阶段的核心技能**(1-3 个)
|
|
127
|
-
2.
|
|
127
|
+
2. **通过 Execution Packet 传递技能清单**——planner 在 `required_skills` 字段指定该任务需要的技能;编排者 spawn 子 Agent 时原样传递;子 Agent 启动后逐一 `Skill()` 加载
|
|
128
128
|
3. **behavioral-guidelines 是所有 Agent 的基座**——每个 Agent 都会自动遵守
|
|
129
129
|
4. **context-engineering 在三个关键时刻使用**:启动新会话、任务切换、子 Agent 结果偏离预期时
|
|
130
130
|
|
|
@@ -498,6 +498,7 @@ planner 产出计划后,你调用实现代理时必须传递 Execution Packet
|
|
|
498
498
|
### in_scope / out_of_scope: <明确范围>
|
|
499
499
|
### allowed_paths / forbidden_paths: <文件路径>
|
|
500
500
|
### dependencies: <依赖的 API/契约/schema>
|
|
501
|
+
### required_skills: <技能列表,planner 按技能分配规则指定。子 Agent 启动后逐一 Skill() 加载>
|
|
501
502
|
### parallel_group: <可并行的任务 ID 列表>
|
|
502
503
|
### wait_for: <必须等待完成的任务 ID 列表>
|
|
503
504
|
### acceptance_criteria: <可验证的验收条件>
|
|
@@ -124,7 +124,7 @@ Jarvis 按流程调度子 Agent
|
|
|
124
124
|
作为编排者,你不需要在每个阶段手动加载所有技能。关键规则:
|
|
125
125
|
|
|
126
126
|
1. **每个阶段只加载该阶段的核心技能**(1-3 个)
|
|
127
|
-
2.
|
|
127
|
+
2. **通过 Execution Packet 传递技能清单**——planner 在 `required_skills` 字段指定该任务需要的技能;编排者 spawn 子 Agent 时原样传递;子 Agent 启动后逐一 `Skill()` 加载
|
|
128
128
|
3. **behavioral-guidelines 是所有 Agent 的基座**——每个 Agent 都会自动遵守
|
|
129
129
|
4. **context-engineering 在三个关键时刻使用**:启动新会话、任务切换、子 Agent 结果偏离预期时
|
|
130
130
|
|
package/package.json
CHANGED