Agent YML Generator for Openclaw

A high-precision tool that transforms business requirements and SOPs into Dify 1.3.1 compatible Agent workflow YAML files.

kevsimba
v1.0.0
Apr 12, 2026
0
674
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install agentymlgenerator

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install agentymlgenerator using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Agent YML Generator?

The Agent YML Generator is a specialized utility designed to streamline the transition from business logic to executable AI workflows. By utilizing Openclaw Skills, this generator takes unstructured business descriptions, SOP documents, or flow requirements and processes them through a multi-stage pipeline to produce valid YAML configurations for the Dify 1.3.1 platform.

This skill is essential for developers who need to bridge the gap between human-readable procedures and machine-executable agent logic. It eliminates the manual effort of writing complex YAML schemas and ensures that the generated output adheres to strict platform constraints, such as specific node types, versioning requirements, and connectivity rules.

Agent YML Generator Use Cases

  • Translating standard operating procedures (SOPs) into automated task workflows.
  • Rapidly generating complex conversational flows for advanced-chat agents.
  • Automating the creation of multi-step LLM chains using Openclaw Skills.
  • Converting business requirements into structured Dify-compatible JSON and YAML formats.

How Agent YML Generator Works

  1. Step Decomposition: The skill analyzes the input business description and splits it into a structured JSON workflow plan containing specific node information.
  2. YAML Conversion: The JSON plan is converted into a Dify 1.3.1 YAML schema (Internal Version 0.2.0).
  3. Syntax Validation: The system performs an automated check for 4-space indentation, colon-spacing, and special character escaping.
  4. Platform Constraint Check: It ensures all nodes use supported types (e.g., start, llm, branch) and that LLM providers are restricted to openai or gemini.
  5. Final Output: A complete, error-free YAML code block is generated, ready for direct import into the Dify platform.

Agent YML Generator Setup

To deploy the Agent YML Generator via Openclaw Skills, ensure you have the core agent environment configured. No external dependencies are required as it utilizes internal reference prompts.

# Standard trigger for generating a workflow
# Use keywords: generate yml, dify workflow, or SOP to workflow
openclaw run agent-yml-generator --input "[Your SOP Content Here]"

Agent YML Generator Data Schema & Taxonomy

The skill organizes data according to the Dify 1.3.1 specification. The metadata and node structure are detailed below:

Attribute Specification Note
version 0.2.0 Compatible with Dify 1.3.1
mode workflow or advanced-chat Based on task automation or dialogue needs
provider openai / gemini Restricted LLM provider list
indentation 4 spaces Tabs are strictly forbidden
variable format ${variable_name} Standard syntax for parameter passing

Each node in the generated YAML includes precise position, width, and height metadata to ensure visual clarity upon import.

Agent YML Generator Advanced Features

  • Multi-stage validation logic to ensure zero-error imports into the Dify interface.
  • Intelligent logic substitution that replaces complex loops with serial LLM chains for legacy compatibility.
  • Automated branch logic generation using simplified expressions like ${var} == "success".
  • Smart positioning algorithms that automatically assign coordinates to nodes in the workflow UI.
  • Integrated syntax fixing for common YAML errors including unclosed strings and improper indentation.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*