mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-05-19 23:33:07 +08:00
docs: salvage zh-CN command translations
Port the current-source-safe command documentation subset from stale PR #1687.\n\nEach copied command page maps to an English source file unchanged since the stale PR base; fastapi-review remains deferred because #1687 did not include a matching zh-CN translation.
This commit is contained in:
committed by
Affaan Mustafa
parent
922e058e68
commit
6556f20af7
45
docs/zh-CN/commands/gan-design.md
Normal file
45
docs/zh-CN/commands/gan-design.md
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
description: 运行一个生成器/评估器设计循环,用于前端或视觉工作,具有有限迭代和评分。
|
||||
---
|
||||
|
||||
从 $ARGUMENTS 中解析以下内容:
|
||||
|
||||
1. `brief` — 用户对要创建设计的描述
|
||||
2. `--max-iterations N` — (可选,默认10)最大设计-评估循环次数
|
||||
3. `--pass-threshold N` — (可选,默认7.5)通过所需的加权分数(设计模式默认值更高)
|
||||
|
||||
## GAN 风格设计框架
|
||||
|
||||
一个专注于前端设计质量的双代理循环(生成器 + 评估器)。无规划器——需求说明即规范。
|
||||
|
||||
这与 Anthropic 用于前端设计实验的模式相同,他们在实验中取得了创意突破,例如使用 CSS 透视和门廊导航的 3D 荷兰艺术博物馆。
|
||||
|
||||
### 设置
|
||||
|
||||
1. 创建 `gan-harness/` 目录
|
||||
2. 直接将需求说明写入 `gan-harness/spec.md`
|
||||
3. 编写一个专注于设计的 `gan-harness/eval-rubric.md`,并额外加重设计质量和原创性的权重
|
||||
|
||||
### 设计专用评估标准
|
||||
|
||||
```markdown
|
||||
### 设计质量(权重:0.35)
|
||||
### 原创性(权重:0.30)
|
||||
### 工艺水平(权重:0.25)
|
||||
### 功能性(权重:0.10)
|
||||
```
|
||||
|
||||
注意:原创性权重更高(0.30 vs 0.20)以推动创意突破。功能性权重较低,因为设计模式侧重于视觉质量。
|
||||
|
||||
### 循环
|
||||
|
||||
与 `/project:gan-build` 阶段 2 相同,但:
|
||||
|
||||
* 跳过规划器
|
||||
* 使用设计专用评估标准
|
||||
* 生成器提示强调视觉质量而非功能完整性
|
||||
* 评估器提示强调"这个设计能赢得设计奖吗?"而非"所有功能都正常吗?"
|
||||
|
||||
### 与 gan-build 的关键区别
|
||||
|
||||
生成器被告知:"你的首要目标是视觉卓越。一个惊艳的半成品应用胜过功能齐全但丑陋的应用。推动创意飞跃——不寻常的布局、自定义动画、独特的色彩搭配。"
|
||||
Reference in New Issue
Block a user