Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

workflow-generator

БесплатноБез исполняемых скриптовНе проверен

YOU MUST USE THIS SKILL when the user wants to CREATE or BUILD a NEW workflow automation. Activate for requests like: 'create a workflow', 'build a workflow'…

KenKaiiiот KenKaiii★ 29 звёзд на GitHub29 установок в других каталогах

Об этом скилле

Workflow Generator

Generate complete workflows from simple YAML plans - one command, zero errors.

⚠️ CRITICAL: Use API to Build Workflows

NEVER manually write workflow JSON! Create a YAML plan and use the API:

curl -X POST http://localhost:3123/api/workflows/build-from-plan \
  -H "Content-Type: application/json" \
  -d '{"planPath": "plans/my-workflow.yaml"}'

What the API does automatically (12-layer validation):

  1. ✅ Validates modules exist in registry
  2. ✅ Validates parameter names match signatures
  3. ✅ Detects unsupported features (rest parameters, function-as-string)
  4. ✅ Auto-wraps params/options functions
  5. ✅ Builds workflow JSON
  6. ✅ Validates schema structure
  7. ✅ Validates trigger configuration (cron schedule, chat inputVariable)
  8. ✅ Validates returnValue variable exists
  9. ✅ Analyzes credential usage
  10. ✅ Detects unused variables (dead code)
  11. ✅ Runs dry-run test with mocks
  12. ✅ Automatically imports to database

Result: If it builds, it's immediately available in the app. Zero runtime errors.


Process Overview

User Request → Ask Questions → Create YAML Plan → Call API → Done!
                      ↑                                ↑
              Clarify requirements        Automatic build & import via API

3 Simple Steps:

  1. Ask clarifying questions (AskUserQuestion tool)
  2. Create plans/my-workflow.yaml based on answers (use Write tool)
  3. Call API: POST http://localhost:3123/api/workflows/build-from-plan with {"planPath": "plans/my-workflow.yaml"}

Note: The API returns the workflow JSON and automatically imports it to the database.


STEP 1: Ask Clarifying Questions

ALWAYS start by asking questions using the AskUserQuestion tool.

Question Templates

Always ask at minimum:

  1. Trigger type - When workflow runs (manual/cron/webhook/chat)
  2. Output format - How to display results (json/table/text)

Additional questions based on workflow type:

  • Social Media: Deduplication (Yes/No)
  • AI Generation: AI Model (GPT-4o-mini/Claude/etc)
  • Data Processing: Operations needed (filter/transform/aggregate)

Standard question template:

AskUserQuestion({
  questions: [
    {
      question: "When should this workflow run?",
      header: "Trigger",
      multiSelect: false,
      options: [
        { label: "Manual", description: "On-demand (click Run)" },
        { label: "Scheduled", description: "Automatic (cron)" },
        { label: "Webhook", description: "External HTTP" },
        { label: "Chat", description: "AI conversation" },
        { label: "Telegram Bot", description: "Telegram messages" },
        { label: "Discord Bot", description: "Discord messages" }
      ]
    },
    {
      question: "How should results be displayed?",
      header: "Output",
      multiSelect: false,
      options: [
        { label: "JSON", description: "Raw data format" },
        { label: "Table", description: "Structured columns" },
        { label: "List", description: "List of items" },
        { label: "Text", description: "Plain text" },
        { label: "Markdown", description: "Formatted text" }
      ]
    }
  ]
})

STEP 2: Create Workflow Plan

Based on user answers, create a YAML plan file:

Plan Format

name: Workflow Name
description: Optional workflow description
trigger: manual | cron | webhook | telegram | discord | chat | chat-input
webhookSync: true | false     # Optional, for webhook triggers - returns workflow output instead of {"queued": true}
webhookSecret: "secret-key"   # Optional, for webhook triggers - enables HMAC signature verification
output: json | table | list | text | markdown | image | images | chart
outputColumns: [col1, col2]  # Optional, for table/list output
category: category-name       # Optional
tags: [tag1, tag2]           # Optional
steps:
  - module: category.module.function
    id: unique-step-id
    name: Human Readable Name (optional)
    inputs:
      param1: "{{variable}}"
      param2: value
    outputAs: variableName (optional)

Trigger Variables (CRITICAL)

Each trigger type provides specific variables accessible in workflows:

Webhook triggers provide trigger object with:

  • trigger.body - JSON request body (e.g., trigger.body.email, trigger.body.numbers)
  • trigger.headers - HTTP headers object
  • trigger.query - Query parameters object
  • trigger.method - HTTP method (POST, GET, etc.)
  • trigger.url - Request URL path

Chat triggers provide:

  • trigger.message or trigger.userInput - User's message text
  • trigger.conversationId - Conversation ID

Telegram/Discord triggers provide:

  • trigger.message - Message text
  • trigger.userId - User ID
  • trigger.chatId - Chat/channel ID

Manual/Cron triggers provide:

  • No trigger data (start with hardcoded values or config)

IMPORTANT: Always use trigger.body.fieldName for webhook data, NOT webhookData.fieldName or `i

Полный SKILL.md на GitHub

Установить workflow-generator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл workflow-generator?

YOU MUST USE THIS SKILL when the user wants to CREATE or BUILD a NEW workflow automation. Activate for requests like: 'create a workflow', 'build a workflow', 'generate a workflow', 'make a workflow', 'I want to automate', 'automate X to Y', 'schedule a task', 'monitor X and send to Y'. This skill creates workflows from simple YAML plans with automatic validation and import.

Как установить скилл workflow-generator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл workflow-generator запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить workflow-generator с