AGENT SKILL

GraphPlaybooks 图工作流编排

graph-flow-profile

基于 AIWG Flow 运行时基础,编写、验证、解释、试运行(dry-run)并检查可选的 graph.flow.aiwg.io GraphPlaybooks(图工作流剧本)。

适用职业AI 工程师
使用场景智能体开发
License 许可
MIT
所属仓库
jmagly/aiwg
最近更新
2026-11-14
Stars
★ 229
Forks
36

01 前言 Front Matter

name
graph-flow-profile
triggers
[ "graph flow profile", "author a GraphPlaybook", "guarded graph workflow", "inspect graph run routes" ]
namespace
aiwg
platforms
[ "all" ]
description
Author, validate, explain, dry-run, and inspect optional graph.flow.aiwg.io GraphPlaybooks over the AIWG Flow runtime substrate

03 SKILL.md 正文

Graph Flow Profile

Use this skill when a workflow requires conditional routes, guarded feedback, explicit fan-in reduction, checkpoint/replay lineage, or a mixed-runtime graph view. Keep ordinary DAGs, local loops, task trees, provider-native workflows, and durable code in their native patterns when graph-wide state and routing do not add operator value.

  1. Start from a fixture in agentic/code/addons/graph-pattern/fixtures/.
  2. Keep apiVersion: graph.flow.aiwg.io/v1 and kind: GraphPlaybook.
  3. Narrow each node's capabilities and permissions; never inherit authority from an upstream node.
  4. Give cycles a finite guard, fan-in nodes an explicit join/reducer, side-effecting retries an idempotency key, and HITL nodes complete approve/deny/timeout routes.
  5. Run aiwg graph validate <file> --format json, then aiwg graph explain <file> --format json before runtime dispatch.

The validator reuses the Composition Engine's Flow validation. A valid graph profile is therefore a valid Flow projection; the graph profile is not a standalone runtime.

04 同仓库更多 Skills