docs: 修 Issue #8 列出的 P0/P1 问题 — workflow 格式、registry 引用、错误 CLI 命令

This commit is contained in:
Ubuntu
2026-07-13 16:59:55 +08:00
parent 9aac5267a3
commit 9a73f4d5c8
5 changed files with 10 additions and 11 deletions
@@ -49,21 +49,21 @@ params:
## 步骤定义(steps
```yaml
nodes:
steps:
- id: my-step # 步骤 ID,唯一
name: 我的步骤 # 步骤名称
script_id: run # 脚本标识(不是 script: run.py
script: run # 脚本标识(不是 script: run.py
params:
input: "${{inputs.input_path}}" # 双花括号语法
input: "$params.input_path}}" # 双花括号语法
```
### 常见错误
| ❌ 错误写法 | ✅ 正确写法 | 原因 |
|-----------|-----------|------|
| `script: run.py` | `script_id: run` | 执行器读的是 `script_id` |
| `script: run.py` | `script: run` | 执行器读的是 `script` |
| `params_mapping: {...}` | `params: {...}` | 字段名是 `params` |
| `$inputs.xxx` | `${{inputs.xxx}}` | 双花括号语法 |
| `$inputs.xxx` | `$params.xxx}}` | 双花括号语法 |
## 文件共享
+2 -2
View File
@@ -5,8 +5,8 @@
开发新套件前,先搜索市场是否已有能复用的套件:
```bash
agc suites search 缓冲区
agc suites search 面积计算
agc suites list 缓冲区
agc suites list 面积计算
```
能找到现成的就引用它。不需要每次都写自己的脚本。