
workflow-generator-v2
by KenKaiii
Workflow automation, but you just describe what you want and it happens.
SKILL.md
name: workflow-generator-v2 description: "Modular workflow generator with on-demand context loading. Creates workflows from YAML plans with focused, trigger-specific guidance. Use when user wants to create, build, or generate workflow automation."
Workflow Generator V2 (Modular)
Generate reliable workflows using progressive context disclosure - load only what's needed for the specific workflow type.
Process Overview
1. Ask user questions → Get trigger type + requirements
2. Load ONLY relevant reference docs for that trigger
3. Build YAML plan with focused context
4. Validate and import workflow
Step 1: Ask Clarifying Questions
Use AskUserQuestion tool to gather:
Required questions:
-
Trigger type: When should workflow run?
- Manual (on-demand, click to run)
- Webhook (HTTP endpoint, external trigger)
- Cron (scheduled, time-based)
- Chat (AI conversation)
- Chat-Input (form with user input fields)
- Telegram (bot messages)
- Discord (bot messages)
- Gmail (incoming emails)
- Outlook (incoming emails)
-
Output format: How to display results?
- JSON, Table, List, Text, Markdown, Image, Images, Chart
Optional based on workflow type:
- For webhooks: Need synchronous response? (Yes/No)
- For social media: Need deduplication? (Yes/No)
- For AI workflows: Which model? (GPT-4o-mini, Claude, etc.)
Step 2: Load Context Files
CRITICAL: Use Read tool to load these reference files in order:
1. Always read (required - load ALL of these):
-
.claude/skills/workflow-generator-v2/references/yaml-format.md- Complete YAML structure specification
- Variable interpolation rules
- Output formats and returnValue
- Auto-wrapping explanation
-
.claude/skills/workflow-generator-v2/references/common-modules.md- All 16 module categories
- Module search instructions
- Common module patterns
-
.claude/skills/workflow-generator-v2/references/common-mistakes.md- Top 10 mistakes and how to avoid them
- Rest parameters issue
- Variable naming errors
- YAML syntax gotchas
2. Read based on trigger type (required - load ONE):
- Manual →
.claude/skills/workflow-generator-v2/references/manual-trigger.md - Webhook →
.claude/skills/workflow-generator-v2/references/webhook-trigger.md - Cron →
.claude/skills/workflow-generator-v2/references/cron-trigger.md - Chat →
.claude/skills/workflow-generator-v2/references/chat-trigger.md - Chat-Input →
.claude/skills/workflow-generator-v2/references/chat-input-trigger.md - Gmail →
.claude/skills/workflow-generator-v2/references/gmail-trigger.md - Outlook →
.claude/skills/workflow-generator-v2/references/outlook-trigger.md - Telegram/Discord → Same as manual trigger (no special config needed)
Do NOT proceed without reading the core 3 files + your specific trigger file!
3. Optionally read module category references (as needed):
Based on what modules the user needs, read relevant category references:
- AI/ML workflows →
.claude/skills/workflow-generator-v2/references/modules/ai-modules.md - Social media →
.claude/skills/workflow-generator-v2/references/modules/social-modules.md - Email/messaging →
.claude/skills/workflow-generator-v2/references/modules/communication-modules.md - CRM/invoicing →
.claude/skills/workflow-generator-v2/references/modules/business-modules.md - Databases/sheets →
.claude/skills/workflow-generator-v2/references/modules/data-modules.md - E-commerce →
.claude/skills/workflow-generator-v2/references/modules/ecommerce-modules.md - Other categories →
.claude/skills/workflow-generator-v2/references/modules/other-categories.md
These provide usage patterns, credential requirements, and examples for each category.
Step 3: Search for Modules (MANDATORY - DO NOT SKIP)
YOU MUST SEARCH FOR EVERY MODULE YOU PLAN TO USE. NEVER GUESS!
For each functionality needed, run:
npm run modules:search <keyword>
Example workflow needs: "Webhook that adds numbers and generates AI summary"
YOU MUST RUN THESE SEARCHES:
npm run modules:search add→ Get exact path for additionnpm run modules:search generate→ Get exact path for AI generationnpm run modules:search execute→ Get exact path for JavaScript
Extract from search results:
path- Use this EXACTLY in your YAML (e.g.,utilities.array-utils.sum)signature- Shows parameter names (e.g.,sum(arr)means usearr:, notarray:ornumbers:)wrapper- If "options" or "params", inputs are auto-wrappedparams- Shows which are required vs optional
CONSEQUENCES OF NOT SEARCHING:
- ❌ Wrong module paths → Build fails
- ❌ Wrong parameter names → Build fails
- ❌ Missing required params → Build fails
- ❌ Using rest parameter modules → Runtime fails
NO EXCEPTIONS - SEARCH FOR EVERYTHING!
Step 4: Build YAML Plan
Create plans/{workflow-name}.yaml using:
- The trigger context from the reference file you read
- Module search results
- User's specific requirements
YAML Structure:
name: Workflow Name
description: Brief description
trigger: webhook | cron | chat | manual | telegram | discord
# Trigger-specific config (from reference file):
webhookSync: true # For webhooks
webhookSecret: "secret" # Optional
output: json | table | text | markdown
returnValue: "{{variableName}}" # Optional - what to return
steps:
- module: category.module.function
id: unique-id
inputs:
param: "{{variable}}"
outputAs: variableName
Step 5: Build Workflow
Run the build command:
npm run workflow:build plans/{workflow-name}.yaml
The build process:
- Auto-fixes common issues
- Validates all modules exist
- Validates parameters
- Runs dry-run test
- Imports to database automatically
Step 6: Report Success
Tell user:
- Workflow name and ID
- How to access it
- How to test it (if webhook, provide curl command)
Critical Rules
- ALWAYS read the trigger reference file - Don't guess syntax
- Use exact variable names from reference - e.g.,
trigger.body, notwebhookData - One example per trigger type - Reference files have complete working examples
- Keep it simple - Don't add unnecessary steps
- Test with dry-run - Build script validates everything
Error Handling
If build fails:
- Check error message
- Re-read reference file for correct syntax
- Fix YAML and rebuild
- Don't retry more than 2 times - ask user for clarification
The key insight: The LLM loads context on-demand by reading reference files, just like reading any other file in the codebase.
スコア
総合スコア
リポジトリの品質指標に基づく評価
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
レビュー
レビュー機能は近日公開予定です

