Install
openclaw skills install arg-action-chain-designerUse this skill when the user wants to create, refine, review, or execute-design an ARG Action Chain / ARG 行动链路 for an agent task, skill workflow, MCP workflow, recurring automation, data pipeline, or multi-step agent job. Triggers include designing Step Contracts, turning vague agent tasks into bounded ARG requirements, reducing agent drift or self-verification, limiting LLM semantic judgment to structured fields, adding validation gates, diagnosing existing chains, or converting a normal skill into an ARG-style task chain.
openclaw skills install arg-action-chain-designerHelp the user turn an agent task into an ARG 行动链路: a controlled sequence of Step Contracts where the agent sees the current clue card, executes only that step, passes validation, then unlocks the next step.
This skill is closer to skill-creator than to a generic architecture essay. Guide the user toward a reusable task-chain artifact, not just a nice explanation.
Treat agent reliability as engineering, not vibes.
If ARG is overkill or the task cannot be validated, say so directly and suggest a better pattern.
Depending on the user's request, produce one or more of these artifacts:
step-01-name -> step-02-name -> TERMINAL.SKILL.md engine that reads only the current step.Avoid dumping a complete full-map workflow into a runtime SKILL.md. The runtime skill should contain the engine and rules; business steps belong in plans/step-NN-name.md.
Recommend ARG when most are true:
Do not recommend ARG as the primary pattern when the task is:
If ARG is not the right fit, recommend a better pattern: pure script, ReAct, plan-and-execute, DAG workflow, human collaboration, or ARG plus human gates.
First infer what is already known. Ask at most one critical question if execution would otherwise be risky or fake. Prefer proceeding with explicit assumptions when safe.
Capture:
If too much is unknown, produce a question map instead of pretending the design is complete.
State one clear decision:
适合 ARG适合 ARG,但需要人工门禁不适合 ARG先用普通 skill,后续再 ARG 化Briefly explain the reason. Do not sell ARG like万能药,那个味儿太重。
For a new chain, propose this minimal structure unless the user's environment requires another layout:
skill-or-chain-name/
├── SKILL.md
├── plans/
│ ├── step-01-name.md
│ ├── step-02-name.md
│ └── step-03-name.md
└── scripts/
├── validate_step_01.*
└── merge_or_transform.*
Use scripts/ only when deterministic reliability is needed. Do not invent scripts just to look serious.
Each step must do one kind of work. Split steps when a single step fetches, classifies, renders, and notifies at once.
Every Step Contract must include:
When semantic judgment is needed, define exact output fields and allowed values. Preserve raw data outside the agent's editable fields.
Prefer hard validation:
Use soft checks only when hard checks are impossible. Use human gates for external sending, irreversible actions, high-stakes business judgment, or subjective quality.
Never accept "agent should carefully check" as the only validation. That is not validation; that is a politely worded trap.
Every step needs a specific failure policy:
Specify retry count, stop condition, and where failure state is recorded.
Before finalizing, inspect the design for:
TERMINAL.SKILL.md revealing the full business map when the chain is meant to be progressively disclosed.Choose the mode that matches the user request.
Use when the user asks to design, build, or convert a task into ARG.
Output:
## 结论
适合 ARG / 适合 ARG 但需要人工门禁 / 不适合 ARG
## 任务边界
- 最终产物:
- 输入来源:
- Agent 可判断:
- 必须脚本化:
- 验收权威:
## 链路草图
step-01-name -> step-02-name -> TERMINAL
## Step Contracts
### step-01-name
- 输入:
- 任务:
- 输出:
- 验证命令:
- 验证失败处理:
- 下一步:
## 运行 Skill 骨架
- 触发方式:
- 当前步变量:
- plans 目录:
- 禁止行为:
## 风险和补强
- ...
## 最小下一步
...
Use when the user provides a skill, plan, chain, or Step Contract and asks whether it is good.
Output:
## 结论
可用 / 需补强 / 风险较高
## 主要缺口
- ...
## 逐步诊断
| Step | 问题 | 建议 |
| --- | --- | --- |
## 必须补的 ARG 细节
- ...
## 可以暂缓的改进
- ...
Use when the user only has an idea.
Output a compact requirements brief:
## ARG 需求草案
- 目标:
- 最终产物:
- 输入:
- 不确定点:
- 可脚本化部分:
- 需要 LLM 判断的部分:
- 验证策略:
- 失败策略:
## 问题地图
1. ...
Use when the user wants to improve a skill that creates or runs ARG chains.
Check:
SKILL.md lean enough to load without wasting context?Prefer editing the existing skill before creating new files. Create references/ only if detailed examples or long rubrics would bloat SKILL.md.
Use this template when drafting a step:
# Step NN: [Name]
## 输入
[Explicit files, APIs, user-provided context, or "none"]
## 任务
[Commands or bounded semantic instructions]
## 输出
[Exact artifact path, object, status file, or visible result]
## 验证命令
[Executable command, schema check, checklist, or human gate]
## 验证失败处理
[Retry limit, skip/degrade/stop/human review, and failure-state location]
## 下一步
`step-NN-next` or `TERMINAL`
Convert semantic judgment into bounded fields:
For each item, fill:
- relevant: yes / no / uncertain
- category: bug / feature / question / other
- severity: high / medium / low
- summary: <= 80 Chinese characters
Add boundary examples when labels can be confused. Boundary examples beat long philosophical instructions.
When designing a runnable ARG skill, keep the engine small:
Set:
PLANS_DIR = "plans"
CURRENT_STEP = "step-01-name"
Loop:
1. Read only PLANS_DIR/CURRENT_STEP.md.
2. Execute only the current step.
3. Run the validation command.
4. If validation passes, set CURRENT_STEP to 下一步.
5. If validation fails, follow 验证失败处理.
6. If CURRENT_STEP is TERMINAL, stop and report evidence.
Runtime rules:
End with concrete next action, not motivational fog.
Good:
下一步:先写 `plans/step-01-fetch.md` 和 `scripts/validate_step_01.py`,因为 step-02 依赖 raw 数据结构。
Bad:
我们应该持续优化 agent 的可靠性。