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 звёзд на GitHub

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

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 (asking the user directly in chat)
  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 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
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)

User Answer → Plan Mapping

Trigger Types (choose one):

  • manual - On-demand execution (click Run button)
  • cron - Scheduled execution (set frequency in UI after import)
  • webhook - External HTTP trigger
  • telegram - Telegram bot message trigger
  • discord - Discord bot message trigger
  • chat - AI chat conversation trigger
  • chat-input - Chat with structured input

Output Types (choose one):

  • json - Raw JSON data
  • table - Structured table with columns
  • list - List of items
  • text - Plain text output
  • markdown - Formatted markdown
  • image - Single image display
  • images - Multiple images gallery
  • chart - Data visualization chart

Common mappings from user answers:

  • "Manual" → trigger: manual
  • "Scheduled" → trigger: cron
  • "JSON" → output: json
  • "Table" → output: table

AI Model Answer (for AI workflows):

  • "GPT-4o-mini" → Add step with model: gpt-4o-mini, provider: openai
  • "Claude Haiku" → Add step with model: claude-haiku-4-5-20251001, provider: anthropic

Deduplication Answer (for social workflows):

  • "Yes" → Add storage steps (queryWhereIn, filter, insertRecord)
  • "No" → Skip storage steps

Finding Modules

Search for modules you need:

curl http://localhost:3123/api/modules/search?q= <keyword> -- --limit 5

Use the path from search results as the module in your plan.

Available Module Categories

Utilities (No API Keys Required):

  • utilities.math - 20+ operations (add, subtract, multiply, divide, max, min, round, floor, ceil, abs, power, sqrt, etc.)
  • utilities.array-utils - 30+ operations (first, last, sort, filter, group, pluck, sum, average, unique, flatten, chunk, etc.)
  • utilities.string-utils - 15+ operations (toSlug, camelCase, pascalCase, truncate, capitalize, stripHtml, isEmail, etc.)
  • utilities.datetime - 20+ operations (now, format, parse, add/subtract days/hours, comparisons, start/end of day, etc.)
  • utilities.json-transform - 15+ operations (parse, stringify, get, set, pick, omit, merge, flatten, unflatten, etc.)
  • utilities.csv - 5+ operations (parse, stringify, csvToJson, jsonToCsv, etc.)
  • utilities.xml - 10+ operations (parse, build, validate, extract, etc.)
  • utilities.validation - 5+ operations (validateRequired, validateTypes, validateEmail, validateUrl, etc.)
  • utilities.aggregation - 7+ operations (median, variance, stdDev, percentile, mode, etc.)
  • utilities.filtering - 5+ operations (filterByCondition, findByCondition, containsAll, containsAny, etc.)
  • utilities.batching - 5+ operations (chunk, createBatches, paginate, etc.)
  • utilities.control-flow - 10+ operations (c
Полный 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 с