← 返回 Skills 市场
kevsimba

AgentYMLgenerator

作者 kevsimba · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
74
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install agentymlgenerator
功能描述
生成可直接导入 Dify 1.3.1 平台的 Agent 工作流 YAML 配置文件。当用户描述业务需求、SOP流程、或要求生成 Dify workflow/agent YAML 时,必须使用本 skill。触发词包括:生成yml、生成yaml、dify工作流、agent yaml、工作流配置、导入dify、生成...
使用说明 (SKILL.md)

Agent YML Generator

将业务需求/SOP描述转化为可直接导入 Dify 1.3.1 平台运行的工作流 YAML 配置。

输入信息收集

首先确认以下两点:

  1. 业务需求描述:SOP文档、需求文字、流程说明(任意形式)
  2. 工作流类型
    • workflow(工作流):有明确开始/结束,适合自动化批处理任务
    • advanced-chat(对话流):适合对话式交互场景

如果用户没有明确说明类型,根据业务描述推断,并告知用户你的判断。


执行步骤

按以下 4个阶段 依次执行,不可跳过:

阶段一:步骤拆分(生成结构化 JSON 工作流方案)

使用 references/step-split-prompt.md 中的 System Prompt,将业务需求转化为结构化 JSON 工作流方案。

输出格式:标准 JSON 数组,包含每个节点的完整信息。

详见:references/step-split-prompt.md


阶段二:生成 Dify YAML

使用 references/yaml-gen-prompt.md 中的规范,将阶段一的 JSON 方案转换为完整的 Dify 1.3.1 YAML。

关键要求

  • 工作流类型:workflowmode: workflowadvanced-chatmode: advanced-chat
  • YAML 版本:version: 0.2.0(内部平台版本,对应外部 Dify 1.3.1)
  • 所有 LLM 节点 provider 只用:openaigemini
  • 仅输出纯 YAML,无任何解释文字

详见:references/yaml-gen-prompt.md


阶段三:格式与语法修正

使用 references/yaml-fix-prompt.md 的规则,对阶段二的 YAML 进行全面检查和修复:

必查项

  • YAML 语法:冒号后空格、缩进(4空格,禁Tab)、特殊字符转义、闭合完整性
  • Dify 1.3.1 规范:节点 type 为小写(如 code_executor,不是 code-executor)、无 1.6 版本字段(loop_typetable_output_format 等)
  • connections 链路:所有节点连线完整,无孤立节点
  • 参数传递:每个节点(除 Start)的入参均来自前序节点

详见:references/yaml-fix-prompt.md


阶段四:最终润色与输出

做最后检查,确保:

  1. version 字段值为 0.2.0
  2. 所有节点有 positionheightwidth 字段(合法数字)
  3. data.titledata.desc 不为空字符串
  4. 节点 type 合法值(start/document_extractor/llm/branch/answer/code/end等)
  5. 对话流(advanced-chat)末尾用 answer 节点;工作流(workflow)末尾用 end 节点
  6. ------- 分隔符(会导致平台报错)
  7. 输出完整 YAML,无任何说明文字

输出规范

最终输出:

  1. 简要说明工作流结构(节点数量、主要流程)
  2. 完整的 YAML 代码块(用 ```yaml 包裹)
  3. 提示用户直接复制导入 Dify 1.3.1 平台

注意事项

  • 严禁输出 YAML 之外的内容(无解释、无注释、无标题)在 YAML 代码块内
  • 严禁使用 1.6 版本字段:loop_typetable_output_formatyangyaofei/vllm provider
  • LLM 节点变量引用格式:${变量名}(不支持 ${节点ID.变量名}
  • Branch 节点条件只用简化表达式:${变量名} != ""${变量名} == "success"(禁用 len() 等复杂函数)
  • 遇到【迭代】/【循环】等复杂节点,可用多个串行 LLM 节点替代
安全使用建议
This skill is coherent in purpose but references several 'references/*.md' prompt files that are not included. Before installing or using it: (1) ask the publisher to provide the referenced prompt files (or confirm they are available on your platform); without them the agent may try to fetch external resources or behave unpredictably; (2) require a sample generated YAML for representative inputs and review it manually before importing into Dify (check for accidental secrets, provider settings, and banned fields); (3) ensure your platform supplies the intended LLM credentials (openai/gemini) safely — the skill doesn't declare them; (4) if you see the agent attempting to access external URLs or local files to locate the missing references, treat that as a red flag and stop the run. Providing the missing references or seeing them bundled with the skill would raise confidence to 'high' and likely change the verdict to 'benign.'
能力评估
Purpose & Capability
Name/description claim to produce Dify 1.3.1 workflow YAML and the SKILL.md contains step-by-step rules to do exactly that. There are no unrelated required binaries, env vars, or config paths, so requested capabilities are broadly proportional to the stated purpose.
Instruction Scope
SKILL.md repeatedly instructs the agent to use files under references/ (e.g., references/step-split-prompt.md, references/yaml-gen-prompt.md, references/yaml-fix-prompt.md) but those files are not present in the skill bundle. The instructions thus either assume platform-level access to external prompts or will cause the agent to search for/fetch those resources. This missing dependency is a material inconsistency: the agent may attempt network requests or read unexpected files to satisfy the prompts. The SKILL.md otherwise sticks to workflow generation rules (YAML formatting, prohibited fields/providers) which are within scope.
Install Mechanism
Instruction-only skill with no install spec and no code files. This is low-risk from an installation/execution perspective — nothing is written to disk by an installer.
Credentials
No environment variables, credentials, or config paths are requested. The skill mentions provider choices (openai/gemini) but does not ask for provider keys; use of model providers appears to rely on the host platform's existing credentials, which is expected.
Persistence & Privilege
always is false, no special persistence or modifications to other skills are requested. The skill does not request elevated system presence.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install agentymlgenerator
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /agentymlgenerator 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of Agent YML Generator for Dify 1.3.1 YAML workflows: - Converts business requirements or SOPs into Dify 1.3.1-compatible workflow YAML files. - Automatically determines workflow type (workflow/advanced-chat) based on input or user instruction. - Follows a strict four-phase process: step splitting, YAML generation, syntax correction, and final polishing. - Ensures YAML adheres to Dify 1.3.1 specifications, including field naming, input connections, and versioning. - Output includes a brief workflow summary, complete YAML code block, and user import instructions.
元数据
Slug agentymlgenerator
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

AgentYMLgenerator 是什么?

生成可直接导入 Dify 1.3.1 平台的 Agent 工作流 YAML 配置文件。当用户描述业务需求、SOP流程、或要求生成 Dify workflow/agent YAML 时,必须使用本 skill。触发词包括:生成yml、生成yaml、dify工作流、agent yaml、工作流配置、导入dify、生成... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 74 次。

如何安装 AgentYMLgenerator?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install agentymlgenerator」即可一键安装,无需额外配置。

AgentYMLgenerator 是免费的吗?

是的,AgentYMLgenerator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

AgentYMLgenerator 支持哪些平台?

AgentYMLgenerator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 AgentYMLgenerator?

由 kevsimba(@kevsimba)开发并维护,当前版本 v1.0.0。

💬 留言讨论