universal-dev-standards 4.1.0 → 4.2.0
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/bin/uds.js +75 -0
- package/bundled/core/ai-friendly-architecture.md +542 -0
- package/bundled/locales/zh-CN/README.md +210 -509
- package/bundled/locales/zh-CN/core/ai-friendly-architecture.md +306 -0
- package/bundled/locales/zh-CN/docs/AI-AGENT-ROADMAP.md +82 -22
- package/bundled/locales/zh-CN/integrations/gemini-cli/GEMINI.md +35 -3
- package/bundled/locales/zh-CN/integrations/github-copilot/COPILOT-CHAT-REFERENCE.md +89 -3
- package/bundled/locales/zh-CN/integrations/github-copilot/skills-mapping.md +8 -4
- package/bundled/locales/zh-TW/README.md +211 -490
- package/bundled/locales/zh-TW/core/ai-friendly-architecture.md +306 -0
- package/bundled/locales/zh-TW/docs/AI-AGENT-ROADMAP.md +82 -22
- package/bundled/locales/zh-TW/integrations/gemini-cli/GEMINI.md +35 -3
- package/bundled/locales/zh-TW/integrations/github-copilot/COPILOT-CHAT-REFERENCE.md +89 -3
- package/bundled/locales/zh-TW/integrations/github-copilot/skills-mapping.md +8 -4
- package/bundled/skills/claude-code/README.md +8 -0
- package/bundled/skills/claude-code/agents/README.md +305 -0
- package/bundled/skills/claude-code/agents/code-architect.md +259 -0
- package/bundled/skills/claude-code/agents/doc-writer.md +406 -0
- package/bundled/skills/claude-code/agents/reviewer.md +353 -0
- package/bundled/skills/claude-code/agents/spec-analyst.md +374 -0
- package/bundled/skills/claude-code/agents/test-specialist.md +364 -0
- package/bundled/skills/claude-code/workflows/README.md +303 -0
- package/bundled/skills/claude-code/workflows/code-review.workflow.yaml +186 -0
- package/bundled/skills/claude-code/workflows/feature-dev.workflow.yaml +174 -0
- package/bundled/skills/claude-code/workflows/integrated-flow.workflow.yaml +238 -0
- package/bundled/skills/claude-code/workflows/large-codebase-analysis.workflow.yaml +226 -0
- package/package.json +11 -1
- package/src/commands/agent.js +417 -0
- package/src/commands/ai-context.js +552 -0
- package/src/commands/check.js +3 -3
- package/src/commands/init.js +6 -3
- package/src/commands/workflow.js +425 -0
- package/src/config/ai-agent-paths.js +217 -13
- package/src/core/constants.js +514 -0
- package/src/core/errors.js +398 -0
- package/src/core/manifest.js +473 -0
- package/src/core/paths.js +398 -0
- package/src/prompts/init.js +7 -5
- package/src/utils/agent-adapter.js +320 -0
- package/src/utils/agents-installer.js +393 -0
- package/src/utils/context-chunker.js +467 -0
- package/src/utils/copier.js +59 -99
- package/src/utils/hasher.js +2 -16
- package/src/utils/integration-generator.js +28 -52
- package/src/utils/workflows-installer.js +545 -0
- package/standards-registry.json +166 -20
|
@@ -1,38 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
source: ../../README.md
|
|
3
|
-
source_version: 4.0.0
|
|
4
|
-
translation_version: 4.0.0
|
|
5
|
-
last_synced: 2026-01-20
|
|
6
|
-
status: current
|
|
7
|
-
---
|
|
8
|
-
|
|
9
|
-
# 通用开发规范
|
|
10
|
-
|
|
11
|
-
> **Language**: [English](../../README.md) | [繁體中文](../zh-TW/README.md) | 简体中文
|
|
1
|
+
# Universal Development Standards
|
|
12
2
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/universal-dev-standards)
|
|
4
|
+
[](../../LICENSE)
|
|
5
|
+
[](https://nodejs.org/)
|
|
16
6
|
|
|
17
|
-
|
|
7
|
+
> **语言**: [English](../../README.md) | [繁體中文](../zh-TW/README.md) | 简体中文
|
|
18
8
|
|
|
19
|
-
|
|
|
20
|
-
|------|------|
|
|
21
|
-
| **双向推演** | 正向推演 + 反向工程形成完整的规格-代码循环 |
|
|
22
|
-
| **6 个新核心标准** | BDD、ATDD、反向工程、正向推演、AI 指令、重构 |
|
|
23
|
-
| **23 个 Skills** | 8 个新技能,包括正向推演、BDD/ATDD 助手、Commands |
|
|
24
|
-
| **24 个斜杠命令** | 9 个新命令(`/derive-*`、`/reverse-*`、`/atdd`、`/bdd`)|
|
|
25
|
-
| **每工具安装层级** | Skills/Commands 支持每个 AI 工具的用户或项目层级 |
|
|
26
|
-
| **增强 CLI** | Debug 标志、拒绝功能记忆、文件完整性追踪 |
|
|
27
|
-
| **方法论系统** | TDD/BDD/SDD/ATDD 工作流现已正式发布 |
|
|
9
|
+
**版本**: 4.1.0 | **发布日期**: 2026-01-21 | **授权**: [双重授权](../../LICENSE) (CC BY 4.0 + MIT)
|
|
28
10
|
|
|
29
|
-
|
|
11
|
+
语言无关、框架无关的软件项目文档标准。确保不同技术栈之间的一致性、质量和可维护性。
|
|
30
12
|
|
|
31
13
|
---
|
|
32
14
|
|
|
33
|
-
##
|
|
15
|
+
## 功能特色
|
|
34
16
|
|
|
35
|
-
|
|
17
|
+
| 类别 | 数量 | 说明 |
|
|
18
|
+
|------|------|------|
|
|
19
|
+
| **核心标准** | 22 | 通用开发准则(Markdown) |
|
|
20
|
+
| **AI Skills** | 23 | Claude Code 交互式技能 |
|
|
21
|
+
| **Slash Commands** | 24 | 快速操作(`/commit`、`/tdd`、`/review` 等) |
|
|
22
|
+
| **CLI 命令** | 6 | `list`、`init`、`configure`、`check`、`update`、`skills` |
|
|
23
|
+
| **语言支持** | 3 | 英文、繁体中文、简体中文 |
|
|
36
24
|
|
|
37
25
|
---
|
|
38
26
|
|
|
@@ -44,7 +32,7 @@ status: current
|
|
|
44
32
|
# 全局安装
|
|
45
33
|
npm install -g universal-dev-standards
|
|
46
34
|
|
|
47
|
-
#
|
|
35
|
+
# 初始化项目
|
|
48
36
|
uds init
|
|
49
37
|
```
|
|
50
38
|
|
|
@@ -56,50 +44,23 @@ npx universal-dev-standards init
|
|
|
56
44
|
|
|
57
45
|
### 手动设置
|
|
58
46
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
```bash
|
|
62
|
-
cp core/anti-hallucination.md your-project/.standards/
|
|
63
|
-
cp core/checkin-standards.md your-project/.standards/
|
|
64
|
-
cp core/commit-message-guide.md your-project/.standards/
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
> **重要**:仅复制规范文件并不会启用 AI 辅助功能。您还必须在 AI 工具的配置文件中引用这些规范(如 `CLAUDE.md`、`.cursorrules`)。建议使用 `uds init` 进行自动配置。
|
|
68
|
-
|
|
69
|
-
### AI 工具扩展(可选)
|
|
47
|
+
若不使用 npm 的手动设置方式,请参阅下方[安装方式](#安装方式)。
|
|
70
48
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
| AI 工具 | 配置文件 | Skills | Commands |
|
|
74
|
-
|---------|----------|:------:|:--------:|
|
|
75
|
-
| Claude Code | `uds init` → `CLAUDE.md` | ✅ Marketplace / 文件 | 内建 |
|
|
76
|
-
| OpenCode | `uds init` → `AGENTS.md` | ✅ `.opencode/skill/` | ✅ `.opencode/command/` |
|
|
77
|
-
| Cline | `uds init` → `.clinerules` | ✅ `.cline/skills/` | - |
|
|
78
|
-
| Roo Code | `uds init` → `.roorules` | ✅ `.roo/skills/` | ✅ `.roo/commands/` |
|
|
79
|
-
| OpenAI Codex | `uds init` → `AGENTS.md` | ✅ `.codex/skills/` | - |
|
|
80
|
-
| GitHub Copilot | `uds init` → `copilot-instructions.md` | ✅ `.github/skills/` | ✅ `.github/prompts/` |
|
|
81
|
-
| Windsurf | `uds init` → `.windsurfrules` | ✅ `.windsurf/skills/` | - |
|
|
82
|
-
| Gemini CLI | `uds init` → `GEMINI.md` | ✅ `.gemini/skills/` | ✅ `.gemini/commands/` (TOML) |
|
|
83
|
-
| Cursor | `uds init` → `.cursorrules` | ❌ 仅 Rules | - |
|
|
84
|
-
| Google Antigravity | `uds init` → `INSTRUCTIONS.md` | - | - |
|
|
85
|
-
|
|
86
|
-
> **v4.0.0 新功能**:`uds init` 支持每工具安装层级选择(用户或项目层级)。双向推演系统(正向推演 + 反向工程)现已可用。
|
|
49
|
+
> **注意**:仅复制标准文件不会启用 AI 协助功能。请使用 `uds init` 自动配置 AI 工具,或手动在工具配置文件中引用标准。
|
|
87
50
|
|
|
88
51
|
---
|
|
89
52
|
|
|
90
53
|
## 安装方式
|
|
91
54
|
|
|
92
|
-
### CLI
|
|
93
|
-
|
|
94
|
-
CLI 工具是在项目中采用 UDS 的主要方式。
|
|
55
|
+
### CLI 工具(主要方式)
|
|
95
56
|
|
|
96
57
|
**npm(推荐)**
|
|
97
58
|
```bash
|
|
98
59
|
npm install -g universal-dev-standards
|
|
99
60
|
uds init # 交互式初始化
|
|
100
61
|
uds check # 检查采用状态
|
|
101
|
-
uds update #
|
|
102
|
-
uds skills #
|
|
62
|
+
uds update # 更新至最新版本
|
|
63
|
+
uds skills # 列出已安装的 skills
|
|
103
64
|
```
|
|
104
65
|
|
|
105
66
|
**npx(无需安装)**
|
|
@@ -107,599 +68,339 @@ uds skills # 列出已安装的技能
|
|
|
107
68
|
npx universal-dev-standards init
|
|
108
69
|
```
|
|
109
70
|
|
|
110
|
-
|
|
71
|
+
**指定版本**
|
|
111
72
|
```bash
|
|
112
|
-
|
|
113
|
-
npm install -g universal-dev-standards@
|
|
114
|
-
|
|
115
|
-
# 或安装 beta 版以获得即将推出的功能
|
|
116
|
-
npm install -g universal-dev-standards@beta
|
|
73
|
+
npm install -g universal-dev-standards@4.1.0
|
|
74
|
+
npm install -g universal-dev-standards@beta # 预览功能
|
|
117
75
|
```
|
|
118
76
|
|
|
119
|
-
|
|
77
|
+
**Clone 并链接(开发用)**
|
|
120
78
|
|
|
121
|
-
macOS / Linux
|
|
79
|
+
macOS / Linux:
|
|
122
80
|
```bash
|
|
123
81
|
git clone https://github.com/AsiaOstrich/universal-dev-standards.git
|
|
124
82
|
cd universal-dev-standards/cli && npm install && npm link
|
|
125
83
|
```
|
|
126
84
|
|
|
127
|
-
Windows (PowerShell)
|
|
85
|
+
Windows (PowerShell):
|
|
128
86
|
```powershell
|
|
129
87
|
git clone https://github.com/AsiaOstrich/universal-dev-standards.git
|
|
130
88
|
cd universal-dev-standards\cli; npm install; npm link
|
|
131
89
|
```
|
|
132
90
|
|
|
133
|
-
详细用法请参阅 [CLI README](../../cli/README.md),Windows 相关说明请参阅 [Windows 指南](../../docs/WINDOWS-GUIDE.md),项目维护与开发流程请参阅[作业流程](docs/OPERATION-WORKFLOW.md)。
|
|
134
|
-
|
|
135
91
|
---
|
|
136
92
|
|
|
137
|
-
|
|
93
|
+
## AI 工具支持
|
|
94
|
+
|
|
95
|
+
| AI 工具 | 状态 | Skills | Commands | 配置文件 |
|
|
96
|
+
|---------|------|:------:|:--------:|----------|
|
|
97
|
+
| **Claude Code** | ✅ 完整支持 | ✅ | 内建 | `CLAUDE.md` |
|
|
98
|
+
| **OpenCode** | ✅ 完整支持 | ✅ | ✅ | `AGENTS.md` |
|
|
99
|
+
| Cline | 🔶 部分支持 | ✅ | - | `.clinerules` |
|
|
100
|
+
| GitHub Copilot | 🔶 部分支持 | ✅ | ✅ | `copilot-instructions.md` |
|
|
101
|
+
| OpenAI Codex | 🔶 部分支持 | ✅ | - | `AGENTS.md` |
|
|
102
|
+
| Gemini CLI | 🧪 预览版 | ✅ | ✅ | `GEMINI.md` |
|
|
103
|
+
| Roo Code | ⏳ 计划中 | ✅ | ✅ | `.roorules` |
|
|
104
|
+
| Cursor | 📄 基本支持 | - | - | `.cursorrules` |
|
|
105
|
+
| Windsurf | 📄 基本支持 | - | - | `.windsurfrules` |
|
|
106
|
+
| Antigravity | 📄 基本支持 | - | - | `INSTRUCTIONS.md` |
|
|
107
|
+
|
|
108
|
+
> **状态图例**(UDS CLI 实现状态):
|
|
109
|
+
> - ✅ 完整支持 = Skills + Commands 完整支持,已测试
|
|
110
|
+
> - 🔶 部分支持 = Skills 可用,Commands 受限或不支持
|
|
111
|
+
> - 🧪 预览版 = 功能可用但为预览版本
|
|
112
|
+
> - ⏳ 计划中 = 代码存在,待测试
|
|
113
|
+
> - 📄 基本支持 = 仅规则文件生成,不支持 Skills/Commands
|
|
138
114
|
|
|
139
|
-
|
|
115
|
+
### 平台支持
|
|
140
116
|
|
|
141
|
-
|
|
|
142
|
-
|
|
143
|
-
|
|
|
144
|
-
|
|
|
145
|
-
|
|
|
146
|
-
| Cursor | `.cursorrules` | 项目根目录 |
|
|
147
|
-
| Windsurf | `.windsurfrules` | 项目根目录 |
|
|
148
|
-
| Cline | `.clinerules` | 项目根目录 |
|
|
149
|
-
| GitHub Copilot | `copilot-instructions.md` | `.github/` |
|
|
150
|
-
| Google Antigravity | `INSTRUCTIONS.md` | 项目根目录 |
|
|
151
|
-
| Gemini CLI | `GEMINI.md` | 项目根目录 |
|
|
117
|
+
| 平台 | 状态 | 备注 |
|
|
118
|
+
|------|------|------|
|
|
119
|
+
| **macOS** | ✅ 已测试 | 主要开发平台 |
|
|
120
|
+
| **Linux** | ⚠️ 未测试 | 预期可运行(基于 Node.js) |
|
|
121
|
+
| **Windows** | ⚠️ 未测试 | 提供 PowerShell 脚本 |
|
|
152
122
|
|
|
153
|
-
|
|
123
|
+
请参阅 [Windows 指南](../../docs/WINDOWS-GUIDE.md)了解平台特定说明。
|
|
154
124
|
|
|
155
125
|
---
|
|
156
126
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
Agent Skills 是增强 AI 辅助开发的交互式命令(`/commit`、`/tdd`、`/review` 等)。Skills 遵循 [Agent Skills 标准](https://agentskills.io),可跨多个 AI 工具使用。
|
|
160
|
-
|
|
161
|
-
**包含的技能(23 个):** ai-collaboration-standards、atdd-assistant、bdd-assistant、changelog-guide、checkin-assistant、code-review-assistant、commands、commit-standards、documentation-guide、error-code-guide、forward-derivation、git-workflow-guide、logging-guide、methodology-system、project-structure-guide、refactoring-assistant、release-standards、requirement-assistant、reverse-engineer、spec-driven-dev、tdd-assistant、test-coverage-assistant、testing-guide
|
|
162
|
-
|
|
163
|
-
#### 支持的工具
|
|
164
|
-
|
|
165
|
-
| 工具 | Skills 支持 | 推荐方式 |
|
|
166
|
-
|------|------------|----------|
|
|
167
|
-
| Claude Code | ✅ 完整 | Plugin Marketplace |
|
|
168
|
-
| OpenCode | ✅ 完整 | UDS CLI |
|
|
169
|
-
| (更多工具即将支持) | - | - |
|
|
170
|
-
|
|
171
|
-
#### 方法一:Claude Code Plugin Marketplace
|
|
127
|
+
## Skills 安装
|
|
172
128
|
|
|
173
|
-
Claude Code
|
|
129
|
+
### 方法 1:Claude Code Plugin Marketplace(最简单)
|
|
174
130
|
|
|
175
131
|
```bash
|
|
176
132
|
/plugin install universal-dev-standards@asia-ostrich
|
|
177
133
|
```
|
|
178
134
|
|
|
179
|
-
|
|
180
|
-
- 单一命令安装
|
|
181
|
-
- 新版本发布时自动更新
|
|
182
|
-
- 所有 22 个技能即时加载
|
|
183
|
-
|
|
184
|
-
**从 v3.2.x 迁移?** 如果您使用旧的 marketplace 名称:
|
|
135
|
+
**优点**:单一命令、自动更新、立即加载全部 23 个 skills。
|
|
185
136
|
|
|
137
|
+
**从 v3.x 升级?**
|
|
186
138
|
```bash
|
|
187
139
|
/plugin uninstall universal-dev-standards@universal-dev-standards
|
|
188
140
|
/plugin install universal-dev-standards@asia-ostrich
|
|
189
141
|
```
|
|
190
142
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
OpenCode 和其他工具,请使用 UDS CLI:
|
|
143
|
+
### 方法 2:UDS CLI
|
|
194
144
|
|
|
195
145
|
```bash
|
|
196
|
-
# 全局安装 UDS CLI
|
|
197
146
|
npm install -g universal-dev-standards
|
|
198
|
-
|
|
199
|
-
# 初始化项目 - 选择您的 AI 工具
|
|
200
|
-
uds init
|
|
201
|
-
|
|
202
|
-
# Skills 会安装到 .claude/skills/
|
|
203
|
-
# OpenCode 会自动检测此路径 ✅
|
|
147
|
+
uds init # 选择 AI 工具,skills 自动安装
|
|
204
148
|
```
|
|
205
149
|
|
|
206
|
-
使用 `uds check`
|
|
207
|
-
|
|
208
|
-
#### 方法三:手动安装
|
|
150
|
+
使用 `uds check` 验证安装状态。
|
|
209
151
|
|
|
210
|
-
|
|
152
|
+
### 方法 3:手动安装
|
|
211
153
|
|
|
212
|
-
macOS / Linux
|
|
154
|
+
macOS / Linux:
|
|
213
155
|
```bash
|
|
214
156
|
git clone https://github.com/AsiaOstrich/universal-dev-standards.git /tmp/uds
|
|
215
157
|
cp -r /tmp/uds/skills/claude-code/* ~/.claude/skills/ # 全局
|
|
216
|
-
#
|
|
158
|
+
# 或: cp -r /tmp/uds/skills/claude-code/* .claude/skills/ # 项目
|
|
217
159
|
rm -rf /tmp/uds
|
|
218
160
|
```
|
|
219
161
|
|
|
220
|
-
Windows (PowerShell)
|
|
162
|
+
Windows (PowerShell):
|
|
221
163
|
```powershell
|
|
222
164
|
git clone https://github.com/AsiaOstrich/universal-dev-standards.git $env:TEMP\uds
|
|
223
165
|
Copy-Item -Recurse $env:TEMP\uds\skills\claude-code\* $env:USERPROFILE\.claude\skills\
|
|
224
166
|
Remove-Item -Recurse $env:TEMP\uds
|
|
225
167
|
```
|
|
226
168
|
|
|
227
|
-
|
|
169
|
+
### 社区市集
|
|
228
170
|
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
- **[n-skills](https://github.com/numman-ali/n-skills)** - 精选 marketplace,支持 Claude Code、OpenCode、Cursor 等
|
|
232
|
-
- **[claude-plugins.dev](https://claude-plugins.dev/skills)** - 从 GitHub 自动索引的技能发现
|
|
171
|
+
- **[n-skills](https://github.com/numman-ali/n-skills)** - Claude Code、OpenCode、Cursor 精选市集
|
|
172
|
+
- **[claude-plugins.dev](https://claude-plugins.dev/skills)** - 自动索引的 skill 探索
|
|
233
173
|
- **[agentskills.io](https://agentskills.io)** - 官方 Agent Skills 规范
|
|
234
174
|
|
|
235
175
|
---
|
|
236
176
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
| AI 工具 | 状态 | 路径 | 平台测试 |
|
|
240
|
-
|---------|------|------|----------|
|
|
241
|
-
| Claude Code | ✅ 完成 | `skills/claude-code/` | macOS ✅ |
|
|
242
|
-
| OpenCode | 🧪 测试中 | `integrations/opencode/` | macOS 🧪 |
|
|
243
|
-
| GitHub Copilot | 🧪 测试中 | `integrations/github-copilot/` | macOS 🧪 |
|
|
244
|
-
| Cursor | ⏳ 规划中 | `integrations/cursor/` | - |
|
|
245
|
-
| Windsurf | ⏳ 规划中 | `integrations/windsurf/` | - |
|
|
246
|
-
| Cline | ⏳ 规划中 | `integrations/cline/` | - |
|
|
247
|
-
| Google Antigravity | ⏳ 规划中 | `integrations/google-antigravity/` | - |
|
|
248
|
-
| OpenAI Codex | ⏳ 规划中 | `integrations/codex/` | - |
|
|
249
|
-
| Gemini CLI | ⏳ 规划中 | `integrations/gemini-cli/` | - |
|
|
177
|
+
## 使用模式
|
|
250
178
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
|
254
|
-
|
|
255
|
-
| **
|
|
256
|
-
| **Linux** | ⚠️ 未测试 | ⚠️ 未测试 | 预期可运行(基于 Node.js) |
|
|
257
|
-
| **Windows** | ⚠️ 未测试 | ⚠️ 未测试 | 提供 PowerShell 脚本 |
|
|
258
|
-
|
|
259
|
-
> **注意**:UDS CLI 基于 Node.js,应可在所有平台运行。平台测试指的是在该操作系统上与 AI 工具配合使用的功能验证。详细状态请参阅 [AI Agent 规划](docs/AI-AGENT-ROADMAP.md)。
|
|
260
|
-
|
|
261
|
-
---
|
|
262
|
-
|
|
263
|
-
## 核心原则
|
|
264
|
-
|
|
265
|
-
1. **通用适用性** - 标准适用于任何编程语言、框架或领域
|
|
266
|
-
2. **模块化设计** - 选择与您项目相关的标准
|
|
267
|
-
3. **可扩展架构** - 可使用语言特定、框架特定或领域特定规则进行扩展
|
|
268
|
-
4. **基于证据** - 标准源自行业最佳实践与实际验证
|
|
269
|
-
5. **自包含** - 每个标准都可独立使用,无需依赖其他标准
|
|
270
|
-
|
|
271
|
-
---
|
|
272
|
-
|
|
273
|
-
## 内容概览
|
|
274
|
-
|
|
275
|
-
```
|
|
276
|
-
universal-dev-standards/
|
|
277
|
-
├── core/ # 核心通用标准(22 个文件)
|
|
278
|
-
├── ai/ # AI 优化标准(.ai.yaml)
|
|
279
|
-
├── options/ # 人类可读选项指南
|
|
280
|
-
├── skills/ # AI 工具技能(Claude Code 等)
|
|
281
|
-
├── extensions/ # 语言/框架/领域特定
|
|
282
|
-
├── templates/ # 文档模板
|
|
283
|
-
├── integrations/ # 工具配置
|
|
284
|
-
├── cli/ # CLI 工具(uds 命令)
|
|
285
|
-
├── locales/ # 翻译(zh-TW、zh-CN)
|
|
286
|
-
└── adoption/ # 采用指南
|
|
287
|
-
```
|
|
288
|
-
|
|
289
|
-
参阅下方的[详细目录结构](#详细目录结构)。
|
|
290
|
-
|
|
291
|
-
---
|
|
292
|
-
|
|
293
|
-
## 标准等级
|
|
294
|
-
|
|
295
|
-
### 等级 1:必要(最小可行标准)
|
|
296
|
-
|
|
297
|
-
**每个项目必须具备**:
|
|
298
|
-
- `anti-hallucination.md` - AI 协作指南
|
|
299
|
-
- `checkin-standards.md` - 提交前的质量门槛
|
|
300
|
-
- `commit-message-guide.md` - 标准化的 commit 格式
|
|
301
|
-
- `spec-driven-development.md` - 规格驱动开发标准
|
|
302
|
-
|
|
303
|
-
**预估设置时间**:30 分钟
|
|
304
|
-
|
|
305
|
-
---
|
|
306
|
-
|
|
307
|
-
### 等级 2:推荐(专业质量)
|
|
308
|
-
|
|
309
|
-
**包含等级 1 +**:
|
|
310
|
-
- `git-workflow.md` - 分支策略
|
|
311
|
-
- `code-review-checklist.md` - 审查指南
|
|
312
|
-
- `versioning.md` - 版本管理
|
|
313
|
-
- `changelog-standards.md` - 变更日志撰写指南
|
|
314
|
-
- `testing-standards.md` - 测试金字塔(UT/IT/ST/E2E)
|
|
315
|
-
- 语言特定的风格指南(例如 `csharp-style.md`)
|
|
316
|
-
|
|
317
|
-
**预估设置时间**:2 小时
|
|
318
|
-
|
|
319
|
-
---
|
|
179
|
+
| 模式 | 最适合 | 主要优势 |
|
|
180
|
+
|------|--------|----------|
|
|
181
|
+
| **仅 Skills** | 个人开发者 + Claude Code | 最低 token 使用量、最佳交互体验 |
|
|
182
|
+
| **仅标准** | 多工具团队 / 企业 | 完整自定义、版本控制 |
|
|
183
|
+
| **Skills + 标准** | 完整体验 / 学习 | 100% 功能覆盖 |
|
|
320
184
|
|
|
321
|
-
###
|
|
185
|
+
### 快速决策指南
|
|
322
186
|
|
|
323
|
-
|
|
324
|
-
-
|
|
325
|
-
-
|
|
326
|
-
- 领域特定标准(例如 `fintech.md`)
|
|
327
|
-
- OpenSpec 集成用于规格驱动开发
|
|
328
|
-
- 完整模板套件
|
|
187
|
+
- **个人项目使用 Claude Code?** → 仅 Skills
|
|
188
|
+
- **团队使用多个 AI 工具?** → Skills + 标准
|
|
189
|
+
- **企业合规需求?** → 仅标准
|
|
329
190
|
|
|
330
|
-
|
|
191
|
+
详细分析请参阅[使用模式比较](../../docs/USAGE-MODES-COMPARISON.md)。
|
|
331
192
|
|
|
332
193
|
---
|
|
333
194
|
|
|
334
|
-
##
|
|
335
|
-
|
|
336
|
-
### 双格式架构
|
|
337
|
-
|
|
338
|
-
| 格式 | 位置 | 使用场景 | Token 使用量 |
|
|
339
|
-
|------|------|----------|--------------|
|
|
340
|
-
| **人类可读** | `core/`、`options/` | 文档、入职、参考 | 标准 |
|
|
341
|
-
| **AI 优化** | `ai/` | AI 助手、自动化、CLAUDE.md | 减少约 80% |
|
|
342
|
-
|
|
343
|
-
### 使用 AI 优化标准
|
|
195
|
+
## 核心标准概览
|
|
344
196
|
|
|
345
|
-
|
|
346
|
-
# 在 CLAUDE.md 或系统提示中引用
|
|
347
|
-
standards:
|
|
348
|
-
source: ai/standards/
|
|
349
|
-
options:
|
|
350
|
-
workflow: ai/options/git-workflow/github-flow.ai.yaml
|
|
351
|
-
commit_language: ai/options/commit-message/english.ai.yaml
|
|
352
|
-
```
|
|
197
|
+
### Level 1:基本(30 分钟设置)
|
|
353
198
|
|
|
354
|
-
|
|
199
|
+
每个项目必须包含:
|
|
355
200
|
|
|
356
|
-
|
|
|
201
|
+
| 标准 | 说明 |
|
|
357
202
|
|------|------|
|
|
358
|
-
|
|
|
359
|
-
|
|
|
360
|
-
|
|
|
361
|
-
|
|
|
362
|
-
|
|
363
|
-
---
|
|
364
|
-
|
|
365
|
-
## 标准覆盖
|
|
366
|
-
|
|
367
|
-
| 标准 | 技能可用 | 采用方式 |
|
|
368
|
-
|------|----------|----------|
|
|
369
|
-
| anti-hallucination.md | ai-collaboration-standards | 安装技能 |
|
|
370
|
-
| commit-message-guide.md | commit-standards | 安装技能 |
|
|
371
|
-
| code-review-checklist.md | code-review-assistant | 安装技能 |
|
|
372
|
-
| git-workflow.md | git-workflow-guide | 安装技能 |
|
|
373
|
-
| versioning.md + changelog-standards.md | release-standards | 安装技能 |
|
|
374
|
-
| testing-standards.md | testing-guide | 安装技能 |
|
|
375
|
-
| documentation-structure.md | documentation-guide | 安装技能 |
|
|
376
|
-
| requirement templates | requirement-assistant | 安装技能 |
|
|
377
|
-
| error-code-standards.md | error-code-guide | 安装技能 |
|
|
378
|
-
| logging-standards.md | logging-guide | 安装技能 |
|
|
379
|
-
| test-driven-development.md | tdd-assistant | 安装技能 |
|
|
380
|
-
| test-completeness-dimensions.md | test-coverage-assistant | 安装技能 |
|
|
381
|
-
| **checkin-standards.md** | - | 复制到项目 |
|
|
382
|
-
| **spec-driven-development.md** | - | 复制到项目 |
|
|
383
|
-
| **project-structure.md** | - | 复制到项目 |
|
|
384
|
-
| **documentation-writing-standards.md** | - | 复制到项目 |
|
|
385
|
-
|
|
386
|
-
> **重要**:对于有技能的标准,使用技能或复制源文档 - **择一即可,不要两者都做**。
|
|
387
|
-
|
|
388
|
-
详细指导请参阅[采用指南](../../adoption/ADOPTION-GUIDE.md)。
|
|
203
|
+
| `anti-hallucination.md` | AI 协作准则 |
|
|
204
|
+
| `checkin-standards.md` | 提交前质量检查 |
|
|
205
|
+
| `commit-message-guide.md` | Conventional Commits 格式 |
|
|
206
|
+
| `spec-driven-development.md` | 规格优先方法 |
|
|
389
207
|
|
|
390
|
-
|
|
208
|
+
### Level 2:推荐(2 小时设置)
|
|
391
209
|
|
|
392
|
-
|
|
210
|
+
包含 Level 1 加上:
|
|
393
211
|
|
|
394
|
-
|
|
212
|
+
| 标准 | 说明 |
|
|
213
|
+
|------|------|
|
|
214
|
+
| `git-workflow.md` | 分支策略(GitHub Flow、GitFlow、Trunk-Based) |
|
|
215
|
+
| `code-review-checklist.md` | 系统化审查准则 |
|
|
216
|
+
| `versioning.md` | 语义化版本(SemVer) |
|
|
217
|
+
| `changelog-standards.md` | Keep a Changelog 格式 |
|
|
218
|
+
| `testing-standards.md` | 测试金字塔(70/20/7/3) |
|
|
219
|
+
| `test-driven-development.md` | TDD 方法论 |
|
|
220
|
+
| `behavior-driven-development.md` | BDD 与 Given-When-Then |
|
|
395
221
|
|
|
396
|
-
|
|
397
|
-
|------|---------|---------|
|
|
398
|
-
| **仅使用技能** | 个人开发者 + Claude Code | 最低 token 使用量,最佳交互体验 |
|
|
399
|
-
| **仅使用标准** | 多工具团队 / 企业 | 完全自定义,版本控制 |
|
|
400
|
-
| **技能 + 标准** | 完整体验 / 学习 | 100% 功能覆盖 |
|
|
222
|
+
### Level 3:全面(1-2 天设置)
|
|
401
223
|
|
|
402
|
-
|
|
224
|
+
包含 Level 2 加上:
|
|
403
225
|
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
-
|
|
226
|
+
| 标准 | 说明 |
|
|
227
|
+
|------|------|
|
|
228
|
+
| `documentation-structure.md` | 文档组织 |
|
|
229
|
+
| `project-structure.md` | 目录惯例 |
|
|
230
|
+
| `acceptance-test-driven-development.md` | ATDD 方法论 |
|
|
231
|
+
| `refactoring-standards.md` | 安全重构实务 |
|
|
407
232
|
|
|
408
|
-
|
|
233
|
+
完整指引请参阅[采用指南](../../adoption/ADOPTION-GUIDE.md)。
|
|
409
234
|
|
|
410
235
|
---
|
|
411
236
|
|
|
412
|
-
##
|
|
237
|
+
## 自定义
|
|
413
238
|
|
|
414
|
-
###
|
|
239
|
+
### 自定义文件位置
|
|
415
240
|
|
|
416
|
-
|
|
|
417
|
-
|
|
418
|
-
| AI
|
|
419
|
-
|
|
|
420
|
-
|
|
|
241
|
+
| 类型 | 文件 | 位置 |
|
|
242
|
+
|------|------|------|
|
|
243
|
+
| AI 工具规则 | `CLAUDE.md`、`.cursorrules` 等 | 项目根目录 |
|
|
244
|
+
| 项目覆盖 | `PROJECT-STANDARDS.md` | 项目根目录 |
|
|
245
|
+
| 复制的标准 | `docs/standards/` | 您的项目 |
|
|
421
246
|
|
|
422
247
|
### 调整标准
|
|
423
248
|
|
|
424
|
-
1.
|
|
425
|
-
2.
|
|
426
|
-
3.
|
|
427
|
-
4.
|
|
249
|
+
1. **语言**:英文、繁体中文或简体中文提交类型
|
|
250
|
+
2. **工具**:配置构建命令(`npm`、`dotnet`、`mvn` 等)
|
|
251
|
+
3. **阈值**:调整测试覆盖率、方法长度限制
|
|
252
|
+
4. **范围**:定义模块允许的提交范围
|
|
428
253
|
|
|
429
254
|
### 排除标准
|
|
430
255
|
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
4. **项目级覆盖**:创建 `PROJECT-STANDARDS.md` 记录偏差
|
|
256
|
+
- **执行 `uds init` 时**:交互式选择需要的标准
|
|
257
|
+
- **选择性采用**:仅复制特定文件
|
|
258
|
+
- **AI 工具排除**:在 `CLAUDE.md` 或 `.cursorrules` 中添加模式
|
|
435
259
|
|
|
436
260
|
---
|
|
437
261
|
|
|
438
|
-
##
|
|
439
|
-
|
|
440
|
-
### Commit 消息语言示例
|
|
441
|
-
|
|
442
|
-
**英文**:
|
|
443
|
-
```
|
|
444
|
-
feat(auth): Add OAuth2 support
|
|
445
|
-
fix(api): Resolve memory leak
|
|
446
|
-
```
|
|
447
|
-
|
|
448
|
-
**繁体中文**:
|
|
449
|
-
```
|
|
450
|
-
新增(認證): 實作 OAuth2 支援
|
|
451
|
-
修正(API): 解決記憶體洩漏
|
|
452
|
-
```
|
|
453
|
-
|
|
454
|
-
**简体中文**:
|
|
455
|
-
```
|
|
456
|
-
新增(认证): 实现 OAuth2 支持
|
|
457
|
-
修正(API): 解决内存泄漏
|
|
458
|
-
```
|
|
459
|
-
|
|
460
|
-
---
|
|
262
|
+
## 贡献
|
|
461
263
|
|
|
462
|
-
|
|
264
|
+
### 如何贡献
|
|
463
265
|
|
|
464
|
-
|
|
266
|
+
1. **建议改进**:开立 issue 说明问题与解决方案
|
|
267
|
+
2. **添加示例**:提交实际使用示例
|
|
268
|
+
3. **扩展标准**:贡献语言/框架/领域扩展
|
|
269
|
+
4. **翻译**:协助翻译成其他语言
|
|
465
270
|
|
|
466
|
-
|
|
467
|
-
npm install --save-dev @commitlint/{cli,config-conventional} husky
|
|
468
|
-
npx husky install
|
|
469
|
-
npx husky add .husky/commit-msg 'npx commitlint --edit $1'
|
|
470
|
-
```
|
|
471
|
-
|
|
472
|
-
### CI/CD 集成
|
|
473
|
-
|
|
474
|
-
```yaml
|
|
475
|
-
# .github/workflows/quality-gate.yml
|
|
476
|
-
name: Quality Gate
|
|
477
|
-
on: [push, pull_request]
|
|
478
|
-
jobs:
|
|
479
|
-
quality:
|
|
480
|
-
runs-on: ubuntu-latest
|
|
481
|
-
steps:
|
|
482
|
-
- uses: actions/checkout@v4
|
|
483
|
-
- run: npx commitlint --from HEAD~1 --to HEAD --verbose
|
|
484
|
-
- run: npm run build
|
|
485
|
-
- run: npm test -- --coverage
|
|
486
|
-
- run: npm run lint
|
|
487
|
-
```
|
|
271
|
+
### 准则
|
|
488
272
|
|
|
489
|
-
|
|
273
|
+
- 核心标准保持语言/框架无关性
|
|
274
|
+
- 至少在 2 个不同情境中包含示例
|
|
275
|
+
- 遵循现有文档结构
|
|
276
|
+
- 采用 CC BY 4.0 授权
|
|
490
277
|
|
|
491
|
-
|
|
492
|
-
cp -r integrations/openspec/ your-project/openspec/
|
|
493
|
-
mkdir -p your-project/.claude/commands/
|
|
494
|
-
cp integrations/openspec/commands/* your-project/.claude/commands/
|
|
495
|
-
```
|
|
278
|
+
详细准则请参阅 [CONTRIBUTING.md](../../CONTRIBUTING.md)。
|
|
496
279
|
|
|
497
280
|
---
|
|
498
281
|
|
|
499
|
-
##
|
|
282
|
+
## 常见问题
|
|
500
283
|
|
|
501
|
-
###
|
|
284
|
+
### 如何选择「仅 Skills」还是「仅标准」?
|
|
502
285
|
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
扩展:languages/csharp-style.md、frameworks/dotnet.md
|
|
506
|
-
模板:CLAUDE.md(为 .NET 自定义)、README.md、CONTRIBUTING.md
|
|
507
|
-
```
|
|
286
|
+
- **仅 Skills**:最适合使用 Claude Code 的个人开发者,想要以最少设置获得交互式 AI 协助
|
|
287
|
+
- **仅标准**:最适合使用多个 AI 工具或需要企业合规与完整版本控制的团队
|
|
508
288
|
|
|
509
|
-
###
|
|
289
|
+
### 可以只采用部分标准吗?
|
|
510
290
|
|
|
511
|
-
|
|
512
|
-
核心标准:anti-hallucination.md、checkin-standards.md、commit-message-guide.md、git-workflow.md(GitHub Flow)
|
|
513
|
-
扩展:languages/typescript-style.md、frameworks/react.md
|
|
514
|
-
工具:ESLint + Prettier、Husky + commitlint、Jest + React Testing Library
|
|
515
|
-
```
|
|
291
|
+
可以!执行 `uds init` 并选择需要的标准。也可以从 `core/` 手动复制特定文件。
|
|
516
292
|
|
|
517
|
-
###
|
|
293
|
+
### 如何更新已安装的 skills?
|
|
518
294
|
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
扩展:languages/python-style.md、domains/machine-learning.md
|
|
522
|
-
工具:Black、pylint、pytest、mypy
|
|
523
|
-
```
|
|
295
|
+
Plugin Marketplace:Skills 会自动更新或使用 `/plugin update`。
|
|
296
|
+
CLI 安装:执行 `uds update --skills`。
|
|
524
297
|
|
|
525
|
-
|
|
298
|
+
### UDS 支持 Windows 吗?
|
|
526
299
|
|
|
527
|
-
|
|
300
|
+
支持。CLI 基于 Node.js,可在所有平台运行。PowerShell 特定说明请参阅 [Windows 指南](../../docs/WINDOWS-GUIDE.md)。
|
|
528
301
|
|
|
529
|
-
###
|
|
302
|
+
### 核心标准和 skills 有什么不同?
|
|
530
303
|
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
3. **扩展标准**:贡献新的语言/框架/领域扩展
|
|
534
|
-
4. **翻译**:帮助将标准翻译成其他语言
|
|
304
|
+
- **核心标准**:定义最佳实务的文档(Markdown)- 参考资料
|
|
305
|
+
- **Skills**:实现这些标准的交互式 AI 命令 - 主动协助
|
|
535
306
|
|
|
536
|
-
###
|
|
307
|
+
### 为什么有些 AI 工具标示为「计划中」?
|
|
537
308
|
|
|
538
|
-
|
|
539
|
-
- 维持语言/框架/领域无关性(对于核心标准)
|
|
540
|
-
- 在至少 2 个不同情境中包含示例
|
|
541
|
-
- 遵循现有的文档结构
|
|
542
|
-
- 以 CC BY 4.0 授权
|
|
309
|
+
我们提供这些工具的配置文件,但完整集成测试尚待进行。配置应该可以运行,但可能存在边缘案例。
|
|
543
310
|
|
|
544
311
|
---
|
|
545
312
|
|
|
546
313
|
## 延伸阅读
|
|
547
314
|
|
|
548
|
-
###
|
|
315
|
+
### 相关标准
|
|
549
316
|
|
|
550
317
|
- [Conventional Commits](https://www.conventionalcommits.org/)
|
|
551
318
|
- [Semantic Versioning](https://semver.org/)
|
|
552
319
|
- [Keep a Changelog](https://keepachangelog.com/)
|
|
553
|
-
- [
|
|
554
|
-
- [Code Review Best Practices](https://google.github.io/eng-practices/review/)
|
|
320
|
+
- [Google Engineering Practices](https://google.github.io/eng-practices/)
|
|
555
321
|
|
|
556
|
-
###
|
|
322
|
+
### 推荐书籍
|
|
557
323
|
|
|
558
|
-
- **The Art of Readable Code**
|
|
559
|
-
- **Clean Code**
|
|
560
|
-
- **The Pragmatic Programmer**
|
|
561
|
-
- **Accelerate**
|
|
324
|
+
- **The Art of Readable Code** - Boswell & Foucher
|
|
325
|
+
- **Clean Code** - Robert C. Martin
|
|
326
|
+
- **The Pragmatic Programmer** - Hunt & Thomas
|
|
327
|
+
- **Accelerate** - Forsgren, Humble & Kim
|
|
562
328
|
|
|
563
329
|
---
|
|
564
330
|
|
|
565
331
|
## 版本历史
|
|
566
332
|
|
|
567
|
-
| 版本 | 日期 |
|
|
333
|
+
| 版本 | 日期 | 重点 |
|
|
568
334
|
|------|------|------|
|
|
569
|
-
| 4.
|
|
570
|
-
|
|
|
571
|
-
| 3.
|
|
572
|
-
| 3.2.
|
|
573
|
-
| 3.0.0 | 2025-12-30 |
|
|
335
|
+
| **4.1.0** | 2026-01-21 | 增强重构标准 |
|
|
336
|
+
| **4.0.0** | 2026-01-20 | 双向推导;6 个新核心标准 |
|
|
337
|
+
| 3.5.0 | 2026-01-15 | 多代理 Skills;Gemini CLI;i18n |
|
|
338
|
+
| 3.2.2 | 2026-01-06 | `uds skills` 命令 |
|
|
339
|
+
| 3.0.0 | 2025-12-30 | Windows 支持;npm 发布 |
|
|
574
340
|
|
|
575
|
-
|
|
341
|
+
完整历史请参阅 [CHANGELOG.md](../../CHANGELOG.md)。
|
|
576
342
|
|
|
577
343
|
---
|
|
578
344
|
|
|
579
|
-
##
|
|
580
|
-
|
|
581
|
-
| 组件 | 授权 |
|
|
582
|
-
|------|------|
|
|
583
|
-
| 文档(`core/`、`extensions/`、`templates/` 等)| [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) |
|
|
584
|
-
| CLI 工具(`cli/`)| [MIT](../../cli/LICENSE) |
|
|
585
|
-
|
|
586
|
-
两种授权都是宽松型授权,允许商业使用、修改与再发布。详情请参阅 [LICENSE](../../LICENSE)。
|
|
345
|
+
## 4.x 新功能
|
|
587
346
|
|
|
588
|
-
|
|
347
|
+
### 4.1.0 重点
|
|
589
348
|
|
|
590
|
-
|
|
349
|
+
- 增强重构标准,包含战术、策略和遗留代码安全策略
|
|
350
|
+
- 选择重构方法的决策矩阵
|
|
591
351
|
|
|
592
|
-
|
|
593
|
-
- **Discussions**:分享您如何使用这些标准
|
|
594
|
-
- **Examples**:提交您的项目作为示例
|
|
352
|
+
### 4.0.0 重点
|
|
595
353
|
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
- [ ] 在 CONTRIBUTING.md 中配置项目特定设置
|
|
604
|
-
- [ ] 设置 Git hooks(commitlint、pre-commit)
|
|
605
|
-
- [ ] 在 CI/CD 中集成质量门槛
|
|
606
|
-
- [ ] 对团队进行标准培训
|
|
607
|
-
- [ ] 创建第一个遵循标准的 commit
|
|
354
|
+
| 功能 | 说明 |
|
|
355
|
+
|------|------|
|
|
356
|
+
| **双向推导** | Forward Derivation + Reverse Engineering 实现完整规格-代码生命周期 |
|
|
357
|
+
| **6 个新核心标准** | BDD、ATDD、Reverse Engineering、Forward Derivation、AI Instructions、Refactoring |
|
|
358
|
+
| **23 Skills** | 7 个新 skills 包括 Forward Derivation、BDD/ATDD assistants |
|
|
359
|
+
| **24 Slash Commands** | 9 个新命令(`/derive-*`、`/reverse-*`、`/atdd`、`/bdd`) |
|
|
360
|
+
| **方法论系统** | TDD/BDD/SDD/ATDD 工作流已达生产就绪 |
|
|
608
361
|
|
|
609
362
|
---
|
|
610
363
|
|
|
611
|
-
|
|
364
|
+
## 授权
|
|
612
365
|
|
|
613
|
-
|
|
366
|
+
| 组件 | 授权 | 允许 |
|
|
367
|
+
|------|------|------|
|
|
368
|
+
| 文档 | [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) | 商业使用、修改、带署名的再发布 |
|
|
369
|
+
| CLI 工具 | [MIT](../../cli/LICENSE) | 商业使用、修改、再发布 |
|
|
614
370
|
|
|
615
|
-
|
|
371
|
+
完整详情请参阅 [LICENSE](../../LICENSE)。
|
|
616
372
|
|
|
617
373
|
---
|
|
618
374
|
|
|
619
|
-
##
|
|
375
|
+
## 目录结构
|
|
620
376
|
|
|
621
377
|
```
|
|
622
378
|
universal-dev-standards/
|
|
623
|
-
├── core/
|
|
624
|
-
│ ├──
|
|
625
|
-
│ ├──
|
|
626
|
-
│ ├──
|
|
627
|
-
│
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
│
|
|
631
|
-
|
|
632
|
-
│ ├──
|
|
633
|
-
│
|
|
634
|
-
|
|
635
|
-
│ ├──
|
|
636
|
-
│ ├──
|
|
637
|
-
│
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
│ ├──
|
|
641
|
-
│
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
│ ├── testing-standards.md # 测试标准(UT/IT/ST/E2E)
|
|
645
|
-
│ └── versioning.md # 语义化版本控制指南
|
|
646
|
-
│
|
|
647
|
-
├── ai/ # AI 优化标准
|
|
648
|
-
│ ├── standards/ # Token 高效的 YAML 格式(约 80% 减少)
|
|
649
|
-
│ │ ├── git-workflow.ai.yaml
|
|
650
|
-
│ │ ├── commit-message.ai.yaml
|
|
651
|
-
│ │ ├── testing.ai.yaml
|
|
652
|
-
│ │ └── ...
|
|
653
|
-
│ └── options/ # 可配置选项
|
|
654
|
-
│ ├── git-workflow/ # github-flow、gitflow、trunk-based 等
|
|
655
|
-
│ ├── commit-message/ # english、traditional-chinese、bilingual
|
|
656
|
-
│ ├── testing/ # unit、integration、system、e2e
|
|
657
|
-
│ └── project-structure/ # nodejs、python、dotnet、java、go
|
|
658
|
-
│
|
|
659
|
-
├── options/ # 人类可读选项指南(Markdown)
|
|
660
|
-
│ ├── git-workflow/ # 详细工作流文档
|
|
661
|
-
│ ├── commit-message/ # Commit 语言指南
|
|
662
|
-
│ ├── testing/ # 测试层级指南
|
|
663
|
-
│ └── project-structure/ # 语言特定项目结构
|
|
664
|
-
│
|
|
665
|
-
├── skills/ # AI 工具技能
|
|
666
|
-
│ ├── claude-code/ # Claude Code 技能(22 个技能)
|
|
667
|
-
│ ├── cursor/ # Cursor Rules(规划中)
|
|
668
|
-
│ ├── windsurf/ # Windsurf Rules(规划中)
|
|
669
|
-
│ ├── cline/ # Cline Rules(规划中)
|
|
670
|
-
│ ├── copilot/ # GitHub Copilot(规划中)
|
|
671
|
-
│ └── _shared/ # 共享模板
|
|
672
|
-
│
|
|
673
|
-
├── extensions/ # 可选扩展
|
|
674
|
-
│ ├── languages/ # 语言特定标准
|
|
675
|
-
│ │ ├── csharp-style.md # C# 编码规范
|
|
676
|
-
│ │ └── php-style.md # PHP 8.1+ 风格指南
|
|
677
|
-
│ ├── frameworks/ # 框架特定标准
|
|
678
|
-
│ │ └── fat-free-patterns.md # Fat-Free Framework 模式
|
|
679
|
-
│ ├── locales/ # 地区特定标准
|
|
680
|
-
│ │ └── zh-cn.md # 繁体中文
|
|
681
|
-
│ └── domains/ # 领域特定标准
|
|
682
|
-
│ └── (即将推出)
|
|
683
|
-
│
|
|
684
|
-
├── templates/ # 项目文档模板
|
|
685
|
-
│ ├── requirement-*.md # 需求模板
|
|
686
|
-
│ └── migration-template.md # 迁移计划模板
|
|
687
|
-
│
|
|
688
|
-
├── integrations/ # 工具配置文件
|
|
689
|
-
│ ├── cline/ # Cline .clinerules
|
|
690
|
-
│ ├── cursor/ # Cursor .cursorrules
|
|
691
|
-
│ ├── github-copilot/ # Copilot 指令
|
|
692
|
-
│ ├── google-antigravity/ # Antigravity 集成
|
|
693
|
-
│ ├── windsurf/ # Windsurf .windsurfrules
|
|
694
|
-
│ └── openspec/ # OpenSpec 框架
|
|
695
|
-
│
|
|
696
|
-
├── cli/ # CLI 工具
|
|
697
|
-
│ └── (uds 命令)
|
|
698
|
-
│
|
|
699
|
-
├── locales/ # 翻译
|
|
700
|
-
│ ├── zh-TW/ # 繁体中文
|
|
701
|
-
│ └── zh-CN/ # 简体中文
|
|
702
|
-
│
|
|
703
|
-
└── adoption/ # 采用指南
|
|
704
|
-
└── ADOPTION-GUIDE.md
|
|
379
|
+
├── core/ # 核心标准(22 个文件)
|
|
380
|
+
│ ├── anti-hallucination.md
|
|
381
|
+
│ ├── commit-message-guide.md
|
|
382
|
+
│ ├── testing-standards.md
|
|
383
|
+
│ └── ...
|
|
384
|
+
├── ai/ # AI 优化格式(.ai.yaml)
|
|
385
|
+
├── skills/ # AI 工具 skills
|
|
386
|
+
│ └── claude-code/ # 23 个 skill 目录
|
|
387
|
+
├── extensions/ # 语言/框架扩展
|
|
388
|
+
│ ├── languages/ # csharp-style.md、php-style.md
|
|
389
|
+
│ └── frameworks/ # fat-free-patterns.md
|
|
390
|
+
├── integrations/ # AI 工具配置
|
|
391
|
+
│ ├── cursor/ # .cursorrules
|
|
392
|
+
│ ├── windsurf/ # .windsurfrules
|
|
393
|
+
│ └── ...
|
|
394
|
+
├── cli/ # CLI 工具(uds 命令)
|
|
395
|
+
├── locales/ # 翻译
|
|
396
|
+
│ ├── zh-TW/ # 繁体中文
|
|
397
|
+
│ └── zh-CN/ # 简体中文
|
|
398
|
+
├── templates/ # 文档模板
|
|
399
|
+
└── adoption/ # 采用指南
|
|
705
400
|
```
|
|
401
|
+
|
|
402
|
+
---
|
|
403
|
+
|
|
404
|
+
**准备好提升项目品质了吗?** 从[快速开始](#快速开始)开始!
|
|
405
|
+
|
|
406
|
+
**由开源社区用 ❤️ 维护**
|