360 Secure SkillHub
360 安全技能中心

Agent Workflow Skill

该 Skill 面向多步骤复杂任务,先把用户请求拆解为子任务,再构建依赖图(DAG),按依赖关系顺序执行并尽可能并行化独立步骤,最终返回包含任务列表、结果和状态的结构化输出。配套代码包含规划器、执行器、工具与示例脚本,运行依赖 Python 环境与 LLM 调用。

分类:自动化
keweizhan
keweizhan
热度 24.47
最近更新 2026-05-11 17:47:26

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add keweizhan/agent-workflow-skill
兼容性
通用兼容
联网要求
需要联网
数据出网
可选出网
Metadata
name
task-graph-executor
description
Decompose complex user tasks into multi-step workflows using DAG-based execution.
version
1.0.0

Task Graph Executor

When to use

Use this skill when tasks involve multiple steps or dependencies.

Examples:

  • Analyze a repo and summarize it
  • Research a topic and generate a report
  • Process data and visualize results

What this skill does

This skill enables the AI to:

  1. Break down complex tasks
  2. Build a dependency graph (DAG)
  3. Execute tasks in order
  4. Parallelize independent steps
  5. Return structured results

Execution Strategy

Step 1: Decompose Task

Convert user request into subtasks.

Example:

User: "Analyze repo and summarize"

Tasks:

  • clone repo
  • analyze code
  • generate summary

Step 2: Build DAG

  • Identify dependencies
  • Ensure correct execution order

Step 3: Execute

  • Run independent tasks first
  • Wait for dependencies
  • Execute in parallel when possible

Step 4: Output

Return structured result:

{ "tasks": [], "result": "", "status": "success" }


Goal

Enable multi-step task execution instead of single tool calls.