design-implementation
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWorkflow Routing
工作流路由
| Intent | Workflow |
|---|---|
| "implement feature", "build the X" | |
| "verify", "check", "screenshot" | |
| "fix errors", "fix the issues" | |
| "start server", "stop server" | |
| "test interactions", "click test" | |
| 意图 | 工作流 |
|---|---|
| "实现功能"、"构建X" | |
| "验证"、"检查"、"截图" | |
| "修复错误"、"修复问题" | |
| "启动服务器"、"停止服务器" | |
| "测试交互"、"点击测试" | |
Quick Start
快速开始
bash
undefinedbash
undefinedBasic usage
基础用法
"implement the login form based on the Figma design"
"根据Figma设计实现登录表单"
With specific file
指定文件
"implement the feature described in thoughts/features/hero-section.md"
"实现thoughts/features/hero-section.md中描述的功能"
Headless mode (CI/testing)
无头模式(CI/测试)
"implement next feature --headless"
"实现下一个功能 --headless"
Just verify current state
仅验证当前状态
"verify the current implementation"
---"验证当前实现"
---Configuration
配置
Edit in this skill directory:
config.jsonjson
{
"browser": {
"headless": false,
"viewport": { "width": 1280, "height": 720 }
},
"server": {
"port": "auto",
"startCommand": "auto",
"hmrDelay": 2000
},
"iteration": {
"maxIterations": 5,
"layoutTolerance": 0.95
},
"figma": {
"enabled": true
}
}编辑此skill目录下的:
config.jsonjson
{
"browser": {
"headless": false,
"viewport": { "width": 1280, "height": 720 }
},
"server": {
"port": "auto",
"startCommand": "auto",
"hmrDelay": 2000
},
"iteration": {
"maxIterations": 5,
"layoutTolerance": 0.95
},
"figma": {
"enabled": true
}
}Tools
工具
| Tool | Purpose |
|---|---|
| Browser automation (screenshot, console, network) |
| Dev server lifecycle (start, stop, detect port) |
| 工具 | 用途 |
|---|---|
| 浏览器自动化(截图、控制台、网络监控) |
| 开发服务器生命周期管理(启动、停止、端口检测) |
State Tracking
状态跟踪
state.jsonjson
{
"currentFeature": "hero-section",
"iteration": 2,
"status": "fixing",
"errors": ["console: Failed to load image"],
"lastScreenshot": "history/hero-section/iteration-2.png"
}state.jsonjson
{
"currentFeature": "hero-section",
"iteration": 2,
"status": "fixing",
"errors": ["console: Failed to load image"],
"lastScreenshot": "history/hero-section/iteration-2.png"
}Integration
集成
| Skill/Agent | When Used |
|---|---|
| Initial implementation |
| Escalate complex bugs |
| Multiple visual refinements |
| Skill/Agent | 使用场景 |
|---|---|
| 初始功能实现 |
| 复杂Bug升级处理 |
| 多次视觉优化 |
History
历史记录
Each feature creates artifacts in :
history/{feature-id}/- - Original feature specification
spec.md - - Screenshots per iteration
iteration-{n}.png - - Design reference (if Figma link provided)
figma-reference.png - - Captured errors
errors.log - - Final completion report
report.md
Note: is gitignored.
history/每个功能会在目录下生成以下产物:
history/{feature-id}/- - 原始功能规格说明
spec.md - - 每次迭代的截图
iteration-{n}.png - - 设计参考图(若提供Figma链接)
figma-reference.png - - 捕获的错误日志
errors.log - - 最终完成报告
report.md
注意: 目录已被git忽略。
history/