360 Secure SkillHub
360 安全技能中心

Agent Workflow Skill

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

keweizhan
keweizhan
热度 41.53
最近更新 2026-05-11 17:47:26
分类:自动化依赖:代码执行 / 内部调用大模型应用场景:工作流 / 任务管理

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add 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.