AGENT SKILL

workflow-orchestration

Build and debug ADK 2.0 Workflow graphs, BaseNode/function nodes, graph routing, dynamic nodes, HITL, retry, checkpoint/resume, and workflow event flow.

License 许可
Apache-2.0
最近更新
2026-09-03
Stars
★ 351
Forks
27

01 前言 Front Matter

name
workflow-orchestration
license
Apache 2.0
metadata
{ "disco-role": "operating" }
description
Build and debug ADK 2.0 Workflow graphs, BaseNode/function nodes, graph routing, dynamic nodes, HITL, retry, checkpoint/resume, and workflow event flow.
disable-model-invocation
true

02 资源文件 4

03 SKILL.md 正文

ADK Workflow Orchestration

Use this sub-skill when the task is to build or debug ADK 2.0 Workflow graphs, custom BaseNode/FunctionNode steps, static and dynamic graph routing, joins, parallel workers, retries, human-in-the-loop interruptions, workflow event paths, or resume/checkpoint behavior.

Route requests

  • Create a graph: Use Workflow patterns for Workflow(edges=...), START, chain tuples, explicit Edge, route maps, JoinNode, parallel worker, dynamic fan-out/fan-in, state, and output patterns.
  • Check APIs: Use API reference for constructor signatures, node fields, Context.run_node, Event, NodeInfo, RequestInput, and RetryConfig names.
  • Debug execution: Use Troubleshooting for deadlocks, runner vs node-runner confusion, rerun/resume surprises, dynamic node dedup, join stalls, route misses, timeouts, and retry expectations.
  • Inspect installed package: Run inspect_workflow_api.py to print the local google.adk.workflow signatures and construct a tiny no-LLM function-node workflow object.

Boundaries

  • Use this sub-skill for Workflow, BaseNode, node, FunctionNode, JoinNode, RetryConfig, RequestInput, Event, NodeInfo, graph edges, dynamic nodes through ctx.run_node, checkpoint/resume semantics, and workflow state/output routing.
  • Route LLM Agent/LlmAgent construction, model configuration, instructions, tools, callbacks, and schemas to agent-construction.
  • Route Runner, App, session service, memory, artifacts, plugins, and persistence lifecycle details to runtime-services.
  • Route repository maintainer test policy and source-code change validation to repo-development.

Safe assumptions

  • The installed distribution is google-adk 2.3.0 with import root google.adk and Python 3.10+.
  • Base install may omit optional extras; workflow construction with pure function nodes does not require cloud credentials, network access, or LLM calls.
  • adk CLI includes api_server, conformance, create, deploy, eval, eval_set, migrate, optimize, run, test, and web, but CLI/server/deploy usage belongs in the CLI sub-skill.
  • Future guidance should not depend on source checkout files; copy or recreate needed snippets inside the agent’s working files.

Quick validation

python scripts/inspect_workflow_api.py --help
python scripts/inspect_workflow_api.py

The script performs only local imports and object construction; it does not start a runner, call an LLM, access credentials, open a network connection, or write files.

04 同仓库更多 Skills

VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-triton-opt

Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-solve

END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-skill

PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-pattern-fusion

Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-orchestrate

Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.

★ 351
VectorSpaceLab
VectorSpaceLab/AREX-Skill

passnet-feedback

Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).

★ 351