@zeyue0329/xiaoma-cli 1.0.16 → 1.0.18
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/tech-translator.md +124 -0
- package/.claude/settings.local.json +36 -0
- package/README.md +1 -1
- package/dist/agents/analyst.txt +1940 -1859
- package/dist/agents/architect.txt +2655 -2355
- package/dist/agents/dev.txt +412 -412
- package/dist/agents/pm.txt +1625 -1552
- package/dist/agents/po.txt +868 -970
- package/dist/agents/qa.txt +1221 -1175
- package/dist/agents/sm.txt +508 -456
- package/dist/agents/ux-expert.txt +522 -439
- package/dist/agents/xiaoma-master.txt +6035 -5482
- package/dist/agents/xiaoma-orchestrator.txt +994 -986
- package/dist/agents-en/analyst.txt +2907 -0
- package/dist/agents-en/architect.txt +3567 -0
- package/dist/agents-en/dev.txt +576 -0
- package/dist/agents-en/pm.txt +2226 -0
- package/dist/agents-en/po.txt +1359 -0
- package/dist/agents-en/qa.txt +2005 -0
- package/dist/agents-en/sm.txt +667 -0
- package/dist/agents-en/ux-expert.txt +703 -0
- package/dist/agents-en/xiaoma-master.txt +8828 -0
- package/dist/agents-en/xiaoma-orchestrator.txt +1520 -0
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-designer.txt +2 -2
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-developer.txt +2 -2
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/agents/game-sm.txt +2 -2
- package/dist/expansion-packs/bmad-2d-phaser-game-dev/teams/phaser-2d-nodejs-game-team.txt +10 -10
- package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-architect.txt +6 -6
- package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-designer.txt +6 -6
- package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-developer.txt +2 -2
- package/dist/expansion-packs/bmad-2d-unity-game-dev/agents/game-sm.txt +2 -2
- package/dist/expansion-packs/bmad-2d-unity-game-dev/teams/unity-2d-game-team.txt +14 -14
- package/dist/expansion-packs/bmad-creative-writing/agents/beta-reader.txt +3 -3
- package/dist/expansion-packs/bmad-creative-writing/agents/book-critic.txt +2 -2
- package/dist/expansion-packs/bmad-creative-writing/agents/character-psychologist.txt +3 -3
- package/dist/expansion-packs/bmad-creative-writing/agents/cover-designer.txt +2 -2
- package/dist/expansion-packs/bmad-creative-writing/agents/dialog-specialist.txt +3 -3
- package/dist/expansion-packs/bmad-creative-writing/agents/editor.txt +3 -3
- package/dist/expansion-packs/bmad-creative-writing/agents/genre-specialist.txt +3 -3
- package/dist/expansion-packs/bmad-creative-writing/agents/narrative-designer.txt +3 -3
- package/dist/expansion-packs/bmad-creative-writing/agents/plot-architect.txt +3 -3
- package/dist/expansion-packs/bmad-creative-writing/agents/world-builder.txt +3 -3
- package/dist/expansion-packs/bmad-creative-writing/teams/agent-team.txt +7 -7
- package/dist/expansion-packs/bmad-infrastructure-devops/agents/infra-devops-platform.txt +2 -2
- package/dist/teams/team-all.txt +13 -13
- package/dist/teams/team-fullstack.txt +10 -10
- package/dist/teams/team-ide-minimal.txt +9 -9
- package/dist/teams/team-no-ui.txt +9 -9
- package/docs/GUIDING-PRINCIPLES.md +2 -2
- package/docs/core-architecture.md +4 -4
- package/docs/enhanced-ide-development-workflow.md +1 -1
- package/docs/expansion-packs.md +2 -2
- package/docs/how-to-contribute-with-pull-requests.md +1 -1
- package/docs/user-guide.md +6 -6
- package/docs/versioning-and-releases.md +1 -1
- package/docs/versions.md +3 -3
- package/docs/working-in-the-brownfield.md +1 -1
- package/expansion-packs/README.md +2 -2
- package/expansion-packs/bmad-2d-phaser-game-dev/config.yaml +1 -1
- package/expansion-packs/bmad-2d-phaser-game-dev/data/bmad-kb.md +2 -2
- package/expansion-packs/bmad-2d-unity-game-dev/config.yaml +1 -1
- package/expansion-packs/bmad-2d-unity-game-dev/data/bmad-kb.md +4 -4
- package/expansion-packs/bmad-creative-writing/README.md +7 -7
- package/expansion-packs/bmad-creative-writing/data/bmad-kb.md +1 -1
- package/expansion-packs/bmad-infrastructure-devops/README.md +2 -2
- package/expansion-packs/bmad-infrastructure-devops/config.yaml +1 -1
- package/expansion-packs/bmad-infrastructure-devops/data/bmad-kb.md +2 -2
- package/package.json +1 -1
- package/tools/builders/web-builder.js +2 -2
- package/tools/md-assets/web-agent-startup-instructions.md +1 -1
- package/tools/upgraders/v3-to-v4-upgrader.js +2 -2
- package/tools/version-bump.js +1 -1
- package/tools/xiaoma-npx-wrapper.js +1 -1
- package/tools/yaml-format.js +1 -1
- package/xiaoma-core/agents/analyst.md +1 -1
- package/xiaoma-core/agents/architect.md +1 -1
- package/xiaoma-core/agents/dev.md +1 -1
- package/xiaoma-core/agents/pm.md +1 -1
- package/xiaoma-core/agents/po.md +1 -1
- package/xiaoma-core/agents/qa.md +1 -1
- package/xiaoma-core/agents/sm.md +1 -1
- package/xiaoma-core/agents/ux-expert.md +1 -1
- package/xiaoma-core/tasks/kb-mode-interaction.md +3 -3
- package/xiaoma-core/tasks-en/advanced-elicitation.md +119 -0
- package/xiaoma-core/tasks-en/apply-qa-fixes.md +150 -0
- package/xiaoma-core/tasks-en/brownfield-create-epic.md +162 -0
- package/xiaoma-core/tasks-en/brownfield-create-story.md +149 -0
- package/xiaoma-core/tasks-en/correct-course.md +72 -0
- package/xiaoma-core/tasks-en/create-brownfield-story.md +314 -0
- package/xiaoma-core/tasks-en/create-deep-research-prompt.md +280 -0
- package/xiaoma-core/tasks-en/create-next-story.md +114 -0
- package/xiaoma-core/tasks-en/document-project.md +345 -0
- package/xiaoma-core/tasks-en/facilitate-brainstorming-session.md +138 -0
- package/xiaoma-core/tasks-en/generate-ai-frontend-prompt.md +53 -0
- package/xiaoma-core/tasks-en/index-docs.md +175 -0
- package/xiaoma-core/tasks-en/kb-mode-interaction.md +77 -0
- package/xiaoma-core/tasks-en/nfr-assess.md +345 -0
- package/xiaoma-core/tasks-en/qa-gate.md +163 -0
- package/xiaoma-core/tasks-en/review-story.md +316 -0
- package/xiaoma-core/tasks-en/risk-profile.md +355 -0
- package/xiaoma-core/tasks-en/shard-doc.md +187 -0
- package/xiaoma-core/tasks-en/test-design.md +176 -0
- package/xiaoma-core/tasks-en/trace-requirements.md +266 -0
- package/xiaoma-core/tasks-en/validate-next-story.md +136 -0
- package/xiaoma-core/templates/architecture-tmpl.yaml +387 -388
- package/xiaoma-core/templates/brainstorming-output-tmpl.yaml +60 -60
- package/xiaoma-core/templates/brownfield-architecture-tmpl.yaml +251 -252
- package/xiaoma-core/templates/brownfield-prd-tmpl.yaml +148 -149
- package/xiaoma-core/templates/competitor-analysis-tmpl.yaml +184 -185
- package/xiaoma-core/templates/front-end-architecture-tmpl.yaml +108 -121
- package/xiaoma-core/templates/front-end-spec-tmpl.yaml +160 -161
- package/xiaoma-core/templates/fullstack-architecture-tmpl.yaml +384 -403
- package/xiaoma-core/templates/market-research-tmpl.yaml +148 -149
- package/xiaoma-core/templates/prd-tmpl.yaml +105 -106
- package/xiaoma-core/templates/project-brief-tmpl.yaml +103 -104
- package/xiaoma-core/templates/qa-gate-tmpl.yaml +32 -33
- package/xiaoma-core/templates/story-tmpl.yaml +48 -49
- package/xiaoma-core/templates-en/architecture-tmpl.yaml +651 -0
- package/xiaoma-core/templates-en/brainstorming-output-tmpl.yaml +156 -0
- package/xiaoma-core/templates-en/brownfield-architecture-tmpl.yaml +477 -0
- package/xiaoma-core/templates-en/brownfield-prd-tmpl.yaml +281 -0
- package/xiaoma-core/templates-en/competitor-analysis-tmpl.yaml +307 -0
- package/xiaoma-core/templates-en/front-end-architecture-tmpl.yaml +219 -0
- package/xiaoma-core/templates-en/front-end-spec-tmpl.yaml +350 -0
- package/xiaoma-core/templates-en/fullstack-architecture-tmpl.yaml +824 -0
- package/xiaoma-core/templates-en/market-research-tmpl.yaml +253 -0
- package/xiaoma-core/templates-en/prd-tmpl.yaml +203 -0
- package/xiaoma-core/templates-en/project-brief-tmpl.yaml +222 -0
- package/xiaoma-core/templates-en/qa-gate-tmpl.yaml +103 -0
- package/xiaoma-core/templates-en/story-tmpl.yaml +138 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tech-translator
|
|
3
|
+
description: 专业翻译英文技术文档到简体中文,支持大文件分段翻译,自动识别并保留代码、命令等技术元素
|
|
4
|
+
tools: Read, Write, Bash
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 角色与目标
|
|
8
|
+
|
|
9
|
+
你是一名专业的计算机技术文档翻译专家,精通英文和简体中文,尤其擅长理解上下文和区分普通文本与代码、命令。你的核心任务是将用户提供的英文文件内容翻译成自然流畅、专业准确的简体中文。
|
|
10
|
+
|
|
11
|
+
## 核心要求
|
|
12
|
+
|
|
13
|
+
### 1. 保持命令/代码不变
|
|
14
|
+
|
|
15
|
+
文本中任何看起来像命令行指令、代码片段、路径、标签或参数的部分,都**绝对不能**翻译。请将它们保持原样。
|
|
16
|
+
|
|
17
|
+
识别特征:
|
|
18
|
+
|
|
19
|
+
- 命令行指令:npm install, git commit, docker run, curl, wget 等
|
|
20
|
+
- 代码片段:function(), if/else, import, class, const/let/var 等
|
|
21
|
+
- 文件路径:/usr/local/bin, C:\Users\Public, ./src/components 等
|
|
22
|
+
- HTML/XML标签:<div>, </span>, <meta charset="UTF-8"> 等
|
|
23
|
+
- 配置参数:--port 8080, -v, --help, NODE_ENV=production 等
|
|
24
|
+
- API端点:/api/v1/users, GET /posts/:id 等
|
|
25
|
+
- 包名/库名:react, vue, express, tensorflow 等
|
|
26
|
+
|
|
27
|
+
### 2. 深入理解上下文
|
|
28
|
+
|
|
29
|
+
在翻译每一句话或段落之前,必须先通读并理解其在整个文本中的含义和作用。
|
|
30
|
+
|
|
31
|
+
翻译方法:
|
|
32
|
+
|
|
33
|
+
- 先读完整个段落或章节,理解整体语境
|
|
34
|
+
- 思考每句话在当前语境下的真实意图
|
|
35
|
+
- 选择最贴切的中文表达方式
|
|
36
|
+
- 确保翻译结果符合中文技术文档的表达习惯
|
|
37
|
+
|
|
38
|
+
### 3. 确保意思精准
|
|
39
|
+
|
|
40
|
+
翻译的首要标准是"信"(忠实于原文),其次是"达"(通顺流畅),最后是"雅"(文字优美)。
|
|
41
|
+
|
|
42
|
+
技术术语处理原则:
|
|
43
|
+
|
|
44
|
+
- 广泛接受的术语保持英文:API, SDK, UI/UX, Docker, Kubernetes 等
|
|
45
|
+
- 有标准中文译名的使用中文:database(数据库)、cache(缓存)、thread(线程)等
|
|
46
|
+
- 首次出现可以加注:middleware(中间件)
|
|
47
|
+
|
|
48
|
+
## 输出格式要求
|
|
49
|
+
|
|
50
|
+
- 保持原文的段落结构和格式
|
|
51
|
+
- 保留原文中的空行和缩进
|
|
52
|
+
- 不添加任何额外的解释或评论
|
|
53
|
+
- 直接输出翻译结果
|
|
54
|
+
|
|
55
|
+
## 大文件处理策略
|
|
56
|
+
|
|
57
|
+
### 翻译工作流程
|
|
58
|
+
|
|
59
|
+
1. **文件分析阶段**
|
|
60
|
+
- 读取源文件,评估文件大小
|
|
61
|
+
- 识别文档结构(章节、段落、代码块等)
|
|
62
|
+
- 确定合适的分段策略
|
|
63
|
+
|
|
64
|
+
2. **初始化阶段**
|
|
65
|
+
- 创建目标翻译文件(如:filename_zh.txt)
|
|
66
|
+
- 建立翻译上下文缓存
|
|
67
|
+
- 记录翻译进度
|
|
68
|
+
|
|
69
|
+
3. **分段翻译阶段**
|
|
70
|
+
- 将文档分成逻辑段落(每段约500-1000字)
|
|
71
|
+
- 每次翻译时考虑三段上下文窗口:
|
|
72
|
+
- 前一段(已翻译):用于保持连续性
|
|
73
|
+
- 当前段(正在翻译):主要翻译目标
|
|
74
|
+
- 后一段(待翻译):用于理解后续内容
|
|
75
|
+
- 分析文档结构和技术领域
|
|
76
|
+
- 识别所有代码、命令和技术标识符
|
|
77
|
+
- 按段落进行上下文感知的翻译
|
|
78
|
+
- 输出格式化的中文译文
|
|
79
|
+
- 翻译完成后立即追加到目标文件
|
|
80
|
+
|
|
81
|
+
4. **质量保证阶段**
|
|
82
|
+
- 所有代码和命令是否保持原样
|
|
83
|
+
- 技术术语翻译是否一致
|
|
84
|
+
- 语句是否通顺,符合中文表达习惯
|
|
85
|
+
- 是否保留了原文的完整信息
|
|
86
|
+
- 格式是否与原文一致
|
|
87
|
+
- 检查段落间的衔接
|
|
88
|
+
- 验证格式保持完整
|
|
89
|
+
|
|
90
|
+
### 分段处理规则
|
|
91
|
+
|
|
92
|
+
```python
|
|
93
|
+
# 伪代码示例
|
|
94
|
+
def translate_large_file(source_file, target_file):
|
|
95
|
+
# 1. 读取并分析文件
|
|
96
|
+
content = read_file(source_file)
|
|
97
|
+
segments = split_into_segments(content)
|
|
98
|
+
|
|
99
|
+
# 2. 创建目标文件
|
|
100
|
+
create_file(target_file)
|
|
101
|
+
|
|
102
|
+
# 3. 维护术语表
|
|
103
|
+
terminology_dict = {}
|
|
104
|
+
|
|
105
|
+
# 4. 逐段翻译
|
|
106
|
+
for i, segment in enumerate(segments):
|
|
107
|
+
# 获取上下文
|
|
108
|
+
prev_segment = segments[i-1] if i > 0 else None
|
|
109
|
+
next_segment = segments[i+1] if i < len(segments)-1 else None
|
|
110
|
+
|
|
111
|
+
# 翻译当前段
|
|
112
|
+
translated = translate_segment(
|
|
113
|
+
segment,
|
|
114
|
+
prev_segment,
|
|
115
|
+
next_segment,
|
|
116
|
+
terminology_dict
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
# 追加到文件
|
|
120
|
+
append_to_file(target_file, translated)
|
|
121
|
+
|
|
122
|
+
# 显示进度
|
|
123
|
+
print(f"进度: {i+1}/{len(segments)} 段已完成")
|
|
124
|
+
```
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"permissions": {
|
|
3
|
+
"allow": [
|
|
4
|
+
"Bash(mkdir:*)",
|
|
5
|
+
"Bash(cp:*)",
|
|
6
|
+
"Bash(mv:*)",
|
|
7
|
+
"Bash(ls:*)",
|
|
8
|
+
"Bash(diff:*)",
|
|
9
|
+
"Bash(find:*)",
|
|
10
|
+
"Bash(grep:*)",
|
|
11
|
+
"Bash(npm run build:*)",
|
|
12
|
+
"Bash(npm install)",
|
|
13
|
+
"Bash(npm run validate:*)",
|
|
14
|
+
"Bash(npm run install:xiaoma:*)",
|
|
15
|
+
"Bash(npm run list:agents:*)",
|
|
16
|
+
"Bash(npm run flatten:*)",
|
|
17
|
+
"Bash(node:*)",
|
|
18
|
+
"Bash(npm:*)",
|
|
19
|
+
"Bash(npx xiaoma-web:*)",
|
|
20
|
+
"Bash(xiaoma:*)",
|
|
21
|
+
"Bash(chmod:*)",
|
|
22
|
+
"Bash(./test-install.sh:*)",
|
|
23
|
+
"Bash(timeout 10s npm run install:xiaoma)",
|
|
24
|
+
"Bash(rm:*)",
|
|
25
|
+
"Bash(timeout 10s npx xiaoma-web install)",
|
|
26
|
+
"Bash(timeout 15s npx xiaoma-web install)",
|
|
27
|
+
"Bash(sed:*)",
|
|
28
|
+
"Bash(timeout:*)",
|
|
29
|
+
"Bash(/Users/liueryang/Documents/gitlab/xiaoma-web/test-ide-selection.sh:*)",
|
|
30
|
+
"Bash(npx @zeyue0329/xiaoma-cli@1.0.4:*)",
|
|
31
|
+
"Bash(npx @zeyue0329/xiaoma-cli@1.0.5:*)",
|
|
32
|
+
"Bash(npx @zeyue0329/xiaoma-cli@1.0.6:*)"
|
|
33
|
+
],
|
|
34
|
+
"deny": []
|
|
35
|
+
}
|
|
36
|
+
}
|
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ This two-phase approach eliminates both **planning inconsistency** and **context
|
|
|
34
34
|
1. **[Planning Workflow (Web UI)](docs/user-guide.md#the-planning-workflow-web-ui)** - How to create PRD and Architecture documents
|
|
35
35
|
2. **[Core Development Cycle (IDE)](docs/user-guide.md#the-core-development-cycle-ide)** - How SM, Dev, and QA agents collaborate through story files
|
|
36
36
|
|
|
37
|
-
> ⚠️ **These diagrams explain 90% of
|
|
37
|
+
> ⚠️ **These diagrams explain 90% of XiaoMa Cli Agentic Agile flow confusion** - Understanding the PRD+Architecture creation and the SM/Dev/QA workflow and how agents pass notes through story files is essential - and also explains why this is NOT taskmaster or just a simple task runner!
|
|
38
38
|
|
|
39
39
|
### What would you like to do?
|
|
40
40
|
|