init.
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"name": "Arch AI",
|
||||
"role": "架构设计师",
|
||||
"description": "allowed_paths = 可写路径(含读);read_only_paths = 只读路径;不在二者中的路径禁止访问。详细权限见 AGENTS.md 权限矩阵。",
|
||||
"responsibilities": [
|
||||
"需求分析和产品规划",
|
||||
"系统架构设计",
|
||||
"技术选型和评估",
|
||||
"跨模块协调和集成",
|
||||
"编写架构文档",
|
||||
"定义验收标准",
|
||||
"评估变更影响",
|
||||
"维护共享资源",
|
||||
"指导 Dev AI 和 QA AI 工作"
|
||||
],
|
||||
"allowed_paths": [
|
||||
"docs/",
|
||||
"shared/",
|
||||
"projects/*/src/",
|
||||
"projects/*/docs/",
|
||||
"review/*/acceptance.md",
|
||||
"review/*/impact.md",
|
||||
"review/*/task.md",
|
||||
"tools/",
|
||||
"data/"
|
||||
],
|
||||
"read_only_paths": [
|
||||
".ai/",
|
||||
"projects/*/tests/",
|
||||
"reports/",
|
||||
"review/*/feedback/"
|
||||
],
|
||||
"forbidden_paths": [],
|
||||
"prompt_templates": {
|
||||
"architecture": ".ai/prompts/architecture/",
|
||||
"documentation": ".ai/prompts/architecture/"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"name": "Dev AI",
|
||||
"role": "代码开发者",
|
||||
"description": "allowed_paths = 可写路径(含读);read_only_paths = 只读路径;不在二者中的路径禁止访问。详细权限见 AGENTS.md 权限矩阵。",
|
||||
"responsibilities": [
|
||||
"编写业务代码",
|
||||
"生成技术文档",
|
||||
"维护项目级文档",
|
||||
"维护开发工具",
|
||||
"维护训练数据",
|
||||
"定义验收标准",
|
||||
"评估变更影响",
|
||||
"维护共享资源"
|
||||
],
|
||||
"allowed_paths": [
|
||||
"projects/*/src/",
|
||||
"projects/*/docs/",
|
||||
"docs/",
|
||||
"tools/",
|
||||
"data/",
|
||||
"shared/",
|
||||
"review/*/acceptance.md",
|
||||
"review/*/impact.md"
|
||||
],
|
||||
"read_only_paths": [
|
||||
"review/*/task.md",
|
||||
"review/*/feedback/"
|
||||
],
|
||||
"forbidden_paths": [
|
||||
"projects/*/tests/",
|
||||
"reports/"
|
||||
],
|
||||
"prompt_templates": {
|
||||
"coding": ".ai/prompts/coding/",
|
||||
"documentation": ".ai/prompts/coding/"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "QA AI",
|
||||
"role": "测试工程师",
|
||||
"description": "allowed_paths = 可写路径(含读);read_only_paths = 只读路径;不在二者中的路径禁止访问。详细权限见 AGENTS.md 权限矩阵。",
|
||||
"responsibilities": [
|
||||
"编写测试用例",
|
||||
"执行测试",
|
||||
"生成测试报告",
|
||||
"提供反馈"
|
||||
],
|
||||
"allowed_paths": [
|
||||
"projects/*/tests/",
|
||||
"reports/",
|
||||
"review/*/acceptance.md",
|
||||
"review/*/feedback/"
|
||||
],
|
||||
"read_only_paths": [
|
||||
"projects/*/src/",
|
||||
"projects/*/docs/",
|
||||
"docs/",
|
||||
"data/",
|
||||
"shared/",
|
||||
"review/*/task.md"
|
||||
],
|
||||
"forbidden_paths": [
|
||||
".ai/",
|
||||
"tools/",
|
||||
"review/*/impact.md"
|
||||
],
|
||||
"prompt_templates": {
|
||||
"testing": ".ai/prompts/testing/"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"workflow": "human-ai-collaboration",
|
||||
"roles": ["human", "arch-ai", "dev-ai", "qa-ai"],
|
||||
"stages": [
|
||||
{
|
||||
"name": "需求分析",
|
||||
"actor": "arch-ai",
|
||||
"output": ["docs/01_产品需求/PRD.md", "review/{task_id}/task.md"]
|
||||
},
|
||||
{
|
||||
"name": "架构设计",
|
||||
"actor": "arch-ai",
|
||||
"input": ["docs/01_产品需求/PRD.md", "review/{task_id}/task.md"],
|
||||
"output": ["docs/02_系统架构/", "review/{task_id}/impact.md", "review/{task_id}/acceptance.md"]
|
||||
},
|
||||
{
|
||||
"name": "开发实现",
|
||||
"actor": "dev-ai",
|
||||
"input": ["review/{task_id}/task.md", "review/{task_id}/acceptance.md"],
|
||||
"output": ["projects/*/src/", "projects/*/docs/"]
|
||||
},
|
||||
{
|
||||
"name": "测试验证",
|
||||
"actor": "qa-ai",
|
||||
"input": ["review/{task_id}/task.md", "review/{task_id}/acceptance.md"],
|
||||
"output": ["projects/*/tests/", "reports/test-results/", "review/{task_id}/feedback/round{round}.md"]
|
||||
},
|
||||
{
|
||||
"name": "验收确认",
|
||||
"actor": "human",
|
||||
"input": ["review/{task_id}/feedback/", "reports/test-results/"]
|
||||
}
|
||||
],
|
||||
"retry": {
|
||||
"max_rounds": 3,
|
||||
"loop": ["测试验证", "开发实现"],
|
||||
"escalation": {
|
||||
"trigger": "第 3 轮测试仍有 BLOCKER 或 HIGH 级别 Bug",
|
||||
"action": "暂停任务流转,等待人类负责人裁决"
|
||||
},
|
||||
"skip_acceptance_on_retry": true
|
||||
},
|
||||
"ci_triggers": {
|
||||
"on_push_to_main": ["run-tests", "generate-reports"],
|
||||
"on_pr_open": ["run-tests", "code-review"],
|
||||
"on_task_update": ["notify-qa-ai"]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user