@exaudeus/workrail 0.0.13 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,288 +1,322 @@
1
1
  {
2
- "id": "workflow-for-workflows",
3
- "name": "Progressive Workflow Creation Guide",
4
- "version": "0.1.0",
5
- "description": "An adaptive meta-workflow that guides users through creating high-quality workflow templates with personalized learning paths. Offers three experience-based approaches: Basic (step-by-step with detailed explanations), Intermediate (balanced guidance with examples), and Advanced (comprehensive features with expert context). All paths can produce sophisticated workflows - the difference is in explanation depth and feature introduction timing.",
6
- "clarificationPrompts": [
7
- "What's your experience level with workflow creation? (New to this / Some experience / Very experienced)",
8
- "What type of workflow are you creating? (e.g., coding, analysis, content creation, process management)",
9
- "What recurring problem or task should this workflow solve?",
10
- "Who is the intended audience for this workflow? (e.g., beginners, experts, specific roles)",
11
- "Are there any specific constraints or requirements for this workflow?"
12
- ],
13
- "preconditions": [
14
- "User has a clear idea of the recurring task or problem the new workflow should solve.",
15
- "The agent has access to 'create_file', 'edit_file', 'run_terminal_cmd', 'workflow_validate_json', and 'workflow_validate' tools."
16
- ],
17
- "metaGuidance": [
18
- "PROGRESSIVE LEARNING: Adapt to user experience level. Use learningPath variable for guidance depth - detailed for 'basic', balanced for 'intermediate', expert for 'advanced'.",
19
- "QUALITY FOCUS: All learning paths can produce sophisticated workflows. The difference is in HOW features are taught, not WHICH features are available. Introduce advanced features when the use case demands it, regardless of path.",
20
- "The goal is to create a *reusable template*, not a single-use script. Use placeholders like [User provides X] where appropriate.",
21
- "Prompts should define goals and roles for the agent, not a rigid script. This allows the agent to use its intelligence to best achieve the task.",
22
- "At each step, the agent should confirm with the user before proceeding with a file modification or command.",
23
- "Maintain a clear distinction between the workflow being created and this meta-workflow.",
24
- "Save progress frequently by confirming file edits.",
25
- "TOOL INTEGRATION: Leverage MCP tools throughout - Use 'workflow_list' and 'workflow_get' for template discovery, 'workflow_validate_json' for comprehensive validation, and 'workflow_validate' for step-by-step output validation.",
26
- "When validation fails, the MCP tools provide detailed error messages and actionable suggestions - use these to guide improvements rather than guessing at fixes.",
27
- "PATH-SPECIFIC GUIDANCE: Tailor explanation depth by learningPath. Basic: detailed explanations. Intermediate: balanced with examples. Advanced: comprehensive with expert context.",
2
+ "id": "workflow-for-workflows",
3
+ "name": "Progressive Workflow Creation Guide",
4
+ "version": "0.1.0",
5
+ "description": "An adaptive meta-workflow that guides users through creating high-quality workflow templates with personalized learning paths. Offers three experience-based approaches: Basic (step-by-step with detailed explanations), Intermediate (balanced guidance with examples), and Advanced (comprehensive features with expert context). All paths can produce sophisticated workflows - the difference is in explanation depth and feature introduction timing.",
6
+ "clarificationPrompts": [
7
+ "What's your experience level with workflow creation? (New to this / Some experience / Very experienced)",
8
+ "What type of workflow are you creating? (e.g., coding, analysis, content creation, process management)",
9
+ "What recurring problem or task should this workflow solve?",
10
+ "Who is the intended audience for this workflow? (e.g., beginners, experts, specific roles)",
11
+ "Are there any specific constraints or requirements for this workflow?"
12
+ ],
13
+ "preconditions": [
14
+ "User has a clear idea of the recurring task or problem the new workflow should solve.",
15
+ "The agent has access to 'create_file', 'edit_file', 'run_terminal_cmd', 'workflow_validate_json', and 'workflow_validate' tools."
16
+ ],
17
+ "metaGuidance": [
18
+ "PROGRESSIVE LEARNING: Adapt to user experience level. Use learningPath variable for guidance depth - detailed for 'basic', balanced for 'intermediate', expert for 'advanced'.",
19
+ "QUALITY FOCUS: All learning paths can produce sophisticated workflows. The difference is in HOW features are taught, not WHICH features are available. Introduce advanced features when the use case demands it, regardless of path.",
20
+ "The goal is to create a *reusable template*, not a single-use script. Use placeholders like [User provides X] where appropriate.",
21
+ "Prompts should define goals and roles for the agent, not a rigid script. This allows the agent to use its intelligence to best achieve the task.",
22
+ "At each step, the agent should confirm with the user before proceeding with a file modification or command.",
23
+ "Maintain a clear distinction between the workflow being created and this meta-workflow.",
24
+ "Save progress frequently by confirming file edits.",
25
+ "TOOL INTEGRATION: Leverage MCP tools throughout - Use 'workflow_list' and 'workflow_get' for template discovery, 'workflow_validate_json' for comprehensive validation, and 'workflow_validate' for step-by-step output validation.",
26
+ "When validation fails, the MCP tools provide detailed error messages and actionable suggestions - use these to guide improvements rather than guessing at fixes.",
27
+ "PATH-SPECIFIC GUIDANCE: Tailor explanation depth by learningPath. Basic: detailed explanations. Intermediate: balanced with examples. Advanced: comprehensive with expert context.",
28
28
  "FEATURE TEACHING: Introduce features progressively within each path. Even basic users should learn about conditional steps and context variables when their workflow needs them - just with more explanation of why and how."
29
- ],
30
- "steps": [
31
- {
32
- "id": "phase-0-discovery",
33
- "title": "Phase 0: Comprehensive Discovery & Requirements Analysis",
34
- "prompt": "**STEP 1: Define the Core Problem & Goal**\n\n- **Problem Statement**: What is the specific, recurring task or problem this new workflow will solve?\n- **Primary Objective**: What is the single most important outcome you want users to achieve by completing this workflow?\n- **Critical Failure Mode**: What is the most critical error or negative outcome this workflow is designed to prevent?\n\n**STEP 2: Understand the Users & Context**\n\n- **Target Audience**: Who is this workflow for? What is their role, expertise level, and what do they need to succeed?\n- **Usage Context**: In what situation or environment will this workflow be used? (e.g., during code review, content planning, incident response, customer onboarding).\n\n**STEP 3: Gather Materials & Define Success**\n\n- **Supporting Materials**: What supporting documents, data, or examples can you provide that could inform the design?\n- **Constraints & Requirements**: Are there any specific constraints, required tools, or other absolute requirements to consider?\n- **Success Metrics**: How will you measure if this workflow is successful? What does a high-quality result look like?\n\n**Agent Guidance**: After gathering the user's answers, your goal is to synthesize them into a refined problem statement. Use `workflow_list` and `workflow_get` to find suitable templates based on the problem *structure*, not necessarily the domain, and present your findings for confirmation.",
35
- "agentRole": "You are a workflow requirements analyst and discovery specialist with expertise in understanding complex business processes and user needs. Your primary goal is to ask the user the questions below to understand their needs. Do not answer these questions yourself. Wait for the user's detailed response, then synthesize their answers and confirm your understanding before proceeding. Your role is to ask insightful questions, synthesize information effectively, and identify suitable workflow patterns that can be adapted to new use cases.",
36
- "guidance": [
37
- "BE SPECIFIC: Vague goals lead to vague workflows. The more precise the user's answers are here, the better the final product.",
38
- "THINK ABOUT THE USER: A workflow for an expert looks very different from one for a novice. Encourage the user to be detailed about their audience.",
39
- "REQUEST EXAMPLES: If the user mentions examples of the problem or desired outcome, ask them to share them.",
40
- "TEMPLATE STRATEGY: Focus on structural similarity, not domain similarity, when recommending templates. A good 'bug investigation' workflow might be a great template for a 'customer complaint' workflow."
41
- ],
42
- "askForFiles": true,
43
- "requireConfirmation": true
44
- },
45
- {
46
- "id": "phase-1-assessment",
47
- "title": "Phase 1: Personalized Learning Path Selection",
48
- "prompt": "Excellent! With a clear understanding of your goals, let's choose the best way to build your workflow.\n\nPlease select your experience level with workflow creation to get a personalized-path:\n\n🌱 **Basic Path - \"Learn by Doing with Explanation\"**\n - New to workflows or want thorough understanding\n - Step-by-step guidance with detailed explanations\n - Progressive introduction of advanced features with context\n - Focus: Understanding concepts and building confidence\n\nšŸš€ **Intermediate Path - \"Balanced Guidance with Examples\"**\n - Some experience with automation or process design\n - Structured approach with practical examples\n - Feature recommendations based on your use case\n - Focus: Efficient workflow creation with best practices\n\nšŸ† **Advanced Path - \"Full Features with Expert Context\"**\n - Experienced with workflow/automation tools\n - Comprehensive feature access from the start\n - Architectural guidance and performance considerations\n - Focus: Sophisticated workflow engineering\n\n**Agent Guidance**: Based on the user's selection, set the `learningPath` context variable to 'basic', 'intermediate', or 'advanced'.",
49
- "agentRole": "You are a workflow education specialist and learning path advisor with expertise in adapting technical instruction to different experience levels. Your role is to help users choose the most appropriate learning approach based on their background and goals.",
50
- "guidance": [
51
- "PATH EXPLANATION: Clearly explain what each learning path offers so users can make an informed choice based on the discovery from Phase 0.",
52
- "QUALITY FOCUS: All paths should result in high-quality workflows. The difference is in teaching approach, not final capability."
53
- ],
54
- "requireConfirmation": true
55
- },
56
- {
57
- "id": "phase-2-basic",
58
- "runCondition": {"var": "learningPath", "equals": "basic"},
59
- "title": "Phase 2: Guided Workflow Creation (Basic Path)",
60
- "prompt": "Let's create your workflow step-by-step with detailed explanations! 🌱\n\n**STEP 1: Create Your Workflow File**\nFirst, what would you like to name your new workflow file? (e.g., `my-workflow.json`)\n\n(Agent: After getting the filename, create the file using the template from Phase 1, then explain each field as you help the user fill it out.)\n\n**STEP 2: Build the Structure Together**\nNow, let's go through each part of your workflow one by one:\n\n1. **Basic Info** (`id`, `name`, `version`, `description`)\n - (Agent: For each field, explain why it matters and help the user craft clear, descriptive content.)\n2. **Setup Requirements** (`preconditions`)\n - (Agent: Explain what preconditions are, why they prevent problems, and ask the user what's needed.)\n3. **Global Rules** (`metaGuidance`)\n - (Agent: Explain the difference between global rules and step-specific instructions, and ask for input.)\n4. **The Action Steps** (`steps`)\n - (Agent: Guide the user in creating simple, linear steps first. Then, explain that workflows can also have more advanced features. If their workflow seems to need them, introduce concepts like conditional steps, context variables, and validation with clear examples and ask if they'd like to add them.)\n\n**LEARNING FOCUS:** We'll focus on understanding what each piece does and why it's useful.",
61
- "agentRole": "You are a patient and thorough workflow education instructor specializing in teaching beginners. Your goal is to guide the user collaboratively. Ask for one piece of information at a time, explain the concepts, and wait for their input before proceeding. Your expertise lies in breaking down complex concepts into understandable steps, providing clear explanations for why each element matters, and building user confidence through hands-on learning.",
62
- "guidance": [
63
- "EXPLAIN EVERYTHING: This user is learning. Explain the purpose of each JSON field and workflow concept.",
64
- "PROGRESSIVE FEATURES: Start with basics, introduce advanced features (conditional steps, context variables) when the use case needs them - with full explanations.",
65
- "USE ANALOGIES: Compare workflow concepts to familiar things (recipes, instruction manuals, etc.).",
66
- "ENCOURAGE QUESTIONS: Invite the user to ask about anything that's unclear.",
67
- "QUALITY TEACHING: Even though this is the basic path, don't compromise on workflow quality - just explain more."
68
- ],
69
- "validationCriteria": [
29
+ ],
30
+ "steps": [
70
31
  {
71
- "type": "regex",
72
- "pattern": "\"id\":\\s*\"[a-zA-Z0-9_-]+\"",
73
- "message": "Workflow must have a valid id field with alphanumeric characters, underscores, or hyphens"
32
+ "id": "phase-0-discovery",
33
+ "title": "Phase 0: Comprehensive Discovery & Requirements Analysis",
34
+ "prompt": "**STEP 1: Define the Core Problem & Goal**\n\n- **Problem Statement**: What is the specific, recurring task or problem this new workflow will solve?\n- **Primary Objective**: What is the single most important outcome you want users to achieve by completing this workflow?\n- **Critical Failure Mode**: What is the most critical error or negative outcome this workflow is designed to prevent?\n\n**STEP 2: Understand the Users & Context**\n\n- **Target Audience**: Who is this workflow for? What is their role, expertise level, and what do they need to succeed?\n- **Usage Context**: In what situation or environment will this workflow be used? (e.g., during code review, content planning, incident response, customer onboarding).\n\n**STEP 3: Gather Materials & Define Success**\n\n- **Supporting Materials**: What supporting documents, data, or examples can you provide that could inform the design?\n- **Constraints & Requirements**: Are there any specific constraints, required tools, or other absolute requirements to consider?\n- **Success Metrics**: How will you measure if this workflow is successful? What does a high-quality result look like?\n\n**Agent Guidance**: After gathering the user's answers, your goal is to synthesize them into a refined problem statement. Use `workflow_list` and `workflow_get` to find suitable templates based on the problem *structure*, not necessarily the domain, and present your findings for confirmation.",
35
+ "agentRole": "You are a workflow requirements analyst and discovery specialist with expertise in understanding complex business processes and user needs. Your primary goal is to ask the user the questions below to understand their needs. Do not answer these questions yourself. Wait for the user's detailed response, then synthesize their answers and confirm your understanding before proceeding. Your role is to ask insightful questions, synthesize information effectively, and identify suitable workflow patterns that can be adapted to new use cases.",
36
+ "guidance": [
37
+ "BE SPECIFIC: Vague goals lead to vague workflows. The more precise the user's answers are here, the better the final product.",
38
+ "THINK ABOUT THE USER: A workflow for an expert looks very different from one for a novice. Encourage the user to be detailed about their audience.",
39
+ "REQUEST EXAMPLES: If the user mentions examples of the problem or desired outcome, ask them to share them.",
40
+ "TEMPLATE STRATEGY: Focus on structural similarity, not domain similarity, when recommending templates. A good 'bug investigation' workflow might be a great template for a 'customer complaint' workflow."
41
+ ],
42
+ "askForFiles": true,
43
+ "requireConfirmation": true
74
44
  },
75
45
  {
76
- "type": "regex",
77
- "pattern": "\"name\":\\s*\"[^\"]{3,}\"",
78
- "message": "Workflow must have a descriptive name (at least 3 characters)"
46
+ "id": "phase-1-assessment",
47
+ "title": "Phase 1: Personalized Learning Path Selection",
48
+ "prompt": "Excellent! With a clear understanding of your goals, let's choose the best way to build your workflow.\n\nPlease select your experience level with workflow creation to get a personalized-path:\n\n\ud83c\udf31 **Basic Path - \"Learn by Doing with Explanation\"**\n - New to workflows or want thorough understanding\n - Step-by-step guidance with detailed explanations\n - Progressive introduction of advanced features with context\n - Focus: Understanding concepts and building confidence\n\n\ud83d\ude80 **Intermediate Path - \"Balanced Guidance with Examples\"**\n - Some experience with automation or process design\n - Structured approach with practical examples\n - Feature recommendations based on your use case\n - Focus: Efficient workflow creation with best practices\n\n\ud83c\udfc6 **Advanced Path - \"Full Features with Expert Context\"**\n - Experienced with workflow/automation tools\n - Comprehensive feature access from the start\n - Architectural guidance and performance considerations\n - Focus: Sophisticated workflow engineering\n\n**Agent Guidance**: Based on the user's selection, set the `learningPath` context variable to 'basic', 'intermediate', or 'advanced'.",
49
+ "agentRole": "You are a workflow education specialist and learning path advisor with expertise in adapting technical instruction to different experience levels. Your role is to help users choose the most appropriate learning approach based on their background and goals.",
50
+ "guidance": [
51
+ "PATH EXPLANATION: Clearly explain what each learning path offers so users can make an informed choice based on the discovery from Phase 0.",
52
+ "QUALITY FOCUS: All paths should result in high-quality workflows. The difference is in teaching approach, not final capability."
53
+ ],
54
+ "requireConfirmation": true
79
55
  },
80
56
  {
81
- "type": "regex",
82
- "pattern": "\"description\":\\s*\"[^\"]{20,}\"",
83
- "message": "Workflow must have a meaningful description (at least 20 characters)"
57
+ "id": "phase-2-basic",
58
+ "runCondition": {
59
+ "var": "learningPath",
60
+ "equals": "basic"
61
+ },
62
+ "title": "Phase 2: Guided Workflow Creation (Basic Path)",
63
+ "prompt": "Let's create your workflow step-by-step with detailed explanations! \ud83c\udf31\n\n**STEP 1: Create Your Workflow File**\nFirst, what would you like to name your new workflow file? (e.g., `my-workflow.json`)\n\n(Agent: After getting the filename, create the file using the template from Phase 1, then explain each field as you help the user fill it out.)\n\n**STEP 2: Build the Structure Together**\nNow, let's go through each part of your workflow one by one:\n\n1. **Basic Info** (`id`, `name`, `version`, `description`)\n - (Agent: For each field, explain why it matters and help the user craft clear, descriptive content.)\n2. **Setup Requirements** (`preconditions`)\n - (Agent: Explain what preconditions are, why they prevent problems, and ask the user what's needed.)\n3. **Global Rules** (`metaGuidance`)\n - (Agent: Explain the difference between global rules and step-specific instructions, and ask for input.)\n4. **The Action Steps** (`steps`)\n - (Agent: Guide the user in creating simple, linear steps first. Then, explain that workflows can also have more advanced features. If their workflow seems to need them, introduce concepts like conditional steps, context variables, and validation with clear examples and ask if they'd like to add them.)\n\n**LEARNING FOCUS:** We'll focus on understanding what each piece does and why it's useful.",
64
+ "agentRole": "You are a patient and thorough workflow education instructor specializing in teaching beginners. Your goal is to guide the user collaboratively. Ask for one piece of information at a time, explain the concepts, and wait for their input before proceeding. Your expertise lies in breaking down complex concepts into understandable steps, providing clear explanations for why each element matters, and building user confidence through hands-on learning.",
65
+ "guidance": [
66
+ "EXPLAIN EVERYTHING: This user is learning. Explain the purpose of each JSON field and workflow concept.",
67
+ "PROGRESSIVE FEATURES: Start with basics, introduce advanced features (conditional steps, context variables) when the use case needs them - with full explanations.",
68
+ "USE ANALOGIES: Compare workflow concepts to familiar things (recipes, instruction manuals, etc.).",
69
+ "ENCOURAGE QUESTIONS: Invite the user to ask about anything that's unclear.",
70
+ "QUALITY TEACHING: Even though this is the basic path, don't compromise on workflow quality - just explain more."
71
+ ],
72
+ "validationCriteria": [
73
+ {
74
+ "type": "regex",
75
+ "pattern": "\"id\":\\s*\"[a-zA-Z0-9_-]+\"",
76
+ "message": "Workflow must have a valid id field with alphanumeric characters, underscores, or hyphens"
77
+ },
78
+ {
79
+ "type": "regex",
80
+ "pattern": "\"name\":\\s*\"[^\"]{3,}\"",
81
+ "message": "Workflow must have a descriptive name (at least 3 characters)"
82
+ },
83
+ {
84
+ "type": "regex",
85
+ "pattern": "\"description\":\\s*\"[^\"]{20,}\"",
86
+ "message": "Workflow must have a meaningful description (at least 20 characters)"
87
+ },
88
+ {
89
+ "type": "regex",
90
+ "pattern": "\"steps\":\\s*\\[",
91
+ "message": "Workflow must have a steps array with at least one step"
92
+ }
93
+ ],
94
+ "hasValidation": true
84
95
  },
85
96
  {
86
- "type": "regex",
87
- "pattern": "\"steps\":\\s*\\[",
88
- "message": "Workflow must have a steps array with at least one step"
89
- }
90
- ]
91
- },
92
- {
93
- "id": "phase-2-intermediate",
94
- "runCondition": {"var": "learningPath", "equals": "intermediate"},
95
- "title": "Phase 2: Structured Workflow Development (Intermediate Path)",
96
- "prompt": "Let's build your workflow with a structured approach and best practices! šŸš€\n\n**STEP 1: Initialize Workflow File**\nFirst, what would you like to name your new workflow file?\n\n(Agent: After getting the filename, create the file using the template from Phase 1. Use efficient, clear explanations as you guide the user through the core structure.)\n\n**STEP 2: Core Structure Development**\nWe'll build your workflow systematically. For each section, I will explain its purpose and best practices, then ask for your input:\n\n1. **Metadata & Identity** (`id`, `name`, `version`, `description`)\n - Focus on discoverability and clear communication.\n2. **Operational Requirements** (`preconditions`, `metaGuidance`)\n - Define what's needed before starting and establish global rules.\n3. **Step Architecture**\n - Design clear, actionable steps.\n\n**STEP 3: Enhanced Feature Recommendations**\nBased on your workflow's purpose, I may recommend specific features like:\n- **Clarification Prompts**: To gather better input upfront.\n- **Validation Criteria**: For automatic quality checks.\n- **Context Variables**: When you need information to flow between steps.\n- **Conditional Logic**: For workflows with decision points.\n\n(Agent: As you build the steps, proactively recommend these features where they seem appropriate, explaining the benefits.)\n\n**EFFICIENCY FOCUS:** We'll focus on building a professionally structured workflow with the right features for the job.",
97
- "agentRole": "You are an experienced workflow development consultant with expertise in efficient workflow creation and best practices. You will act as a collaborator, guiding the user through the creation process efficiently. Your role is to guide users through structured development while recommending appropriate features and maintaining professional standards.",
98
- "guidance": [
99
- "STRUCTURED APPROACH: Follow a logical sequence with clear reasoning for each decision.",
100
- "FEATURE RECOMMENDATIONS: Suggest appropriate features based on workflow type and use case.",
101
- "BEST PRACTICES: Share proven patterns and explain why they work.",
102
- "PRACTICAL EXAMPLES: Use real-world scenarios to illustrate concepts.",
103
- "BALANCED DEPTH: Provide enough detail to understand without overwhelming with basics."
104
- ],
105
- "validationCriteria": [
106
- {
107
- "type": "regex",
108
- "pattern": "\"id\":\\s*\"[a-zA-Z0-9_-]+\"",
109
- "message": "Workflow must have a valid id field with alphanumeric characters, underscores, or hyphens"
97
+ "id": "phase-2-intermediate",
98
+ "runCondition": {
99
+ "var": "learningPath",
100
+ "equals": "intermediate"
101
+ },
102
+ "title": "Phase 2: Structured Workflow Development (Intermediate Path)",
103
+ "prompt": "Let's build your workflow with a structured approach and best practices! \ud83d\ude80\n\n**STEP 1: Initialize Workflow File**\nFirst, what would you like to name your new workflow file?\n\n(Agent: After getting the filename, create the file using the template from Phase 1. Use efficient, clear explanations as you guide the user through the core structure.)\n\n**STEP 2: Core Structure Development**\nWe'll build your workflow systematically. For each section, I will explain its purpose and best practices, then ask for your input:\n\n1. **Metadata & Identity** (`id`, `name`, `version`, `description`)\n - Focus on discoverability and clear communication.\n2. **Operational Requirements** (`preconditions`, `metaGuidance`)\n - Define what's needed before starting and establish global rules.\n3. **Step Architecture**\n - Design clear, actionable steps.\n\n**STEP 3: Enhanced Feature Recommendations**\nBased on your workflow's purpose, I may recommend specific features like:\n- **Clarification Prompts**: To gather better input upfront.\n- **Validation Criteria**: For automatic quality checks.\n- **Context Variables**: When you need information to flow between steps.\n- **Conditional Logic**: For workflows with decision points.\n\n(Agent: As you build the steps, proactively recommend these features where they seem appropriate, explaining the benefits.)\n\n**EFFICIENCY FOCUS:** We'll focus on building a professionally structured workflow with the right features for the job.",
104
+ "agentRole": "You are an experienced workflow development consultant with expertise in efficient workflow creation and best practices. You will act as a collaborator, guiding the user through the creation process efficiently. Your role is to guide users through structured development while recommending appropriate features and maintaining professional standards.",
105
+ "guidance": [
106
+ "STRUCTURED APPROACH: Follow a logical sequence with clear reasoning for each decision.",
107
+ "FEATURE RECOMMENDATIONS: Suggest appropriate features based on workflow type and use case.",
108
+ "BEST PRACTICES: Share proven patterns and explain why they work.",
109
+ "PRACTICAL EXAMPLES: Use real-world scenarios to illustrate concepts.",
110
+ "BALANCED DEPTH: Provide enough detail to understand without overwhelming with basics."
111
+ ],
112
+ "validationCriteria": [
113
+ {
114
+ "type": "regex",
115
+ "pattern": "\"id\":\\s*\"[a-zA-Z0-9_-]+\"",
116
+ "message": "Workflow must have a valid id field with alphanumeric characters, underscores, or hyphens"
117
+ },
118
+ {
119
+ "type": "regex",
120
+ "pattern": "\"name\":\\s*\"[^\"]{3,}\"",
121
+ "message": "Workflow must have a descriptive name (at least 3 characters)"
122
+ },
123
+ {
124
+ "type": "regex",
125
+ "pattern": "\"description\":\\s*\"[^\"]{20,}\"",
126
+ "message": "Workflow must have a meaningful description (at least 20 characters)"
127
+ },
128
+ {
129
+ "type": "regex",
130
+ "pattern": "\"steps\":\\s*\\[",
131
+ "message": "Workflow must have a steps array with at least one step"
132
+ }
133
+ ],
134
+ "hasValidation": true
110
135
  },
111
136
  {
112
- "type": "regex",
113
- "pattern": "\"name\":\\s*\"[^\"]{3,}\"",
114
- "message": "Workflow must have a descriptive name (at least 3 characters)"
137
+ "id": "phase-2-advanced",
138
+ "runCondition": {
139
+ "var": "learningPath",
140
+ "equals": "advanced"
141
+ },
142
+ "title": "Phase 2: Comprehensive Workflow Architecture (Advanced Path)",
143
+ "prompt": "Let's architect a sophisticated workflow with full feature utilization. \ud83c\udfc6\n\n**STEP 1: Rapid File Initialization**\nTo begin, what filename shall we use for the new workflow?\n\n(Agent: After getting the filename, create the file with the template foundation. Then, shift the focus to architectural decisions.)\n\n**STEP 2: Architectural Design Discussion**\nLet's discuss the high-level architecture. For each area, I will present advanced considerations and ask for your design choices:\n\n1. **Core Architecture** (`id`, `name`, `version`, `description`)\n - (Agent: Discuss semantic versioning strategy, namespace considerations, and treating the description as API documentation.)\n2. **Operational Design** (`preconditions`, `metaGuidance`, `contextVariables`)\n - (Agent: Discuss comprehensive precondition modeling, sophisticated metaGuidance for complex scenarios, and context variable architecture for data flow.)\n3. **Advanced Feature Implementation & Step Design**\n - (Agent: Discuss trade-offs and design patterns for conditional logic, validation strategy, user experience, performance, and enterprise-grade features like error handling and scalability.)\n\n**MASTERY FOCUS:** Our goal is to collaborate on creating an enterprise-grade workflow with a sophisticated and intentional architecture.",
144
+ "agentRole": "You are a senior workflow architect and systems design expert with deep expertise in enterprise-grade workflow engineering. Your role is to act as an architectural consultant. You will propose design patterns and discuss trade-offs with the user. Your role is to engage in sophisticated technical discussions, propose advanced design patterns, and help users create workflows that meet enterprise standards for scalability, maintainability, and performance.",
145
+ "guidance": [
146
+ "ARCHITECTURAL THINKING: Focus on design patterns, scalability, and maintainability.",
147
+ "FULL FEATURE ACCESS: Leverage the complete feature set appropriately for the use case.",
148
+ "PERFORMANCE AWARENESS: Consider efficiency and resource implications.",
149
+ "ENTERPRISE PATTERNS: Apply proven enterprise workflow patterns.",
150
+ "EXPERT CONTEXT: Assume understanding of complex concepts, focus on sophisticated applications."
151
+ ],
152
+ "validationCriteria": [
153
+ {
154
+ "type": "regex",
155
+ "pattern": "\"id\":\\s*\"[a-zA-Z0-9_-]+\"",
156
+ "message": "Workflow must have a valid id field with alphanumeric characters, underscores, or hyphens"
157
+ },
158
+ {
159
+ "type": "regex",
160
+ "pattern": "\"name\":\\s*\"[^\"]{3,}\"",
161
+ "message": "Workflow must have a descriptive name (at least 3 characters)"
162
+ },
163
+ {
164
+ "type": "regex",
165
+ "pattern": "\"description\":\\s*\"[^\"]{20,}\"",
166
+ "message": "Workflow must have a meaningful description (at least 20 characters)"
167
+ },
168
+ {
169
+ "type": "regex",
170
+ "pattern": "\"steps\":\\s*\\[",
171
+ "message": "Workflow must have a steps array with at least one step"
172
+ }
173
+ ],
174
+ "hasValidation": true
115
175
  },
116
176
  {
117
- "type": "regex",
118
- "pattern": "\"description\":\\s*\"[^\"]{20,}\"",
119
- "message": "Workflow must have a meaningful description (at least 20 characters)"
177
+ "id": "phase-3-basic",
178
+ "runCondition": {
179
+ "var": "learningPath",
180
+ "equals": "basic"
181
+ },
182
+ "title": "Phase 3: Learning Through Validation (Basic Path)",
183
+ "prompt": "Great! Your workflow draft is complete. Now let's make sure it works perfectly! \ud83c\udf31\n\n**UNDERSTANDING VALIDATION:**\nValidation is like proofreading - it catches mistakes before they cause problems. Our validation tool will check for issues with syntax, structure, and logic.\n\n**STEP 1: Run Your First Validation**\nI will now use the `workflow_validate_json` tool to check your workflow. I'll explain what the tool is doing and why each check matters.\n\n(Agent: Run the tool.)\n\n**STEP 2: Learning from Errors (Don't worry - errors are normal!)**\nIf there are errors, I will guide you through them one at a time:\n1. **Explain the error** in simple terms.\n2. **Show you where** the problem is in the file.\n3. **Explain why** it's a problem.\n4. **Help you fix it** step-by-step.\n5. Then, we'll **rerun validation** to see our progress.\n\n**LEARNING GOAL:** Our goal is to understand what makes a workflow valid and why each rule exists. Every error is a learning opportunity!",
184
+ "agentRole": "You are a supportive workflow validation instructor with expertise in teaching through problem-solving. Your goal is to run the validation tool and then guide the user through fixing any errors one by one, explaining each concept as you go. Your role is to turn validation errors into learning opportunities, explaining technical concepts in accessible terms while building user confidence in workflow creation.",
185
+ "guidance": [
186
+ "EDUCATIONAL APPROACH: Treat each error as a teaching moment. Explain what went wrong and why the rule exists.",
187
+ "STEP-BY-STEP FIXES: Guide through each fix individually, don't overwhelm with multiple changes.",
188
+ "ENCOURAGE LEARNING: Emphasize that errors are normal and part of the learning process.",
189
+ "EXPLAIN THE WHY: Help user understand the reasoning behind validation rules.",
190
+ "BUILD CONFIDENCE: Celebrate when validation passes and acknowledge progress."
191
+ ],
192
+ "requireConfirmation": true
120
193
  },
121
194
  {
122
- "type": "regex",
123
- "pattern": "\"steps\":\\s*\\[",
124
- "message": "Workflow must have a steps array with at least one step"
125
- }
126
- ]
127
- },
128
- {
129
- "id": "phase-2-advanced",
130
- "runCondition": {"var": "learningPath", "equals": "advanced"},
131
- "title": "Phase 2: Comprehensive Workflow Architecture (Advanced Path)",
132
- "prompt": "Let's architect a sophisticated workflow with full feature utilization. šŸ†\n\n**STEP 1: Rapid File Initialization**\nTo begin, what filename shall we use for the new workflow?\n\n(Agent: After getting the filename, create the file with the template foundation. Then, shift the focus to architectural decisions.)\n\n**STEP 2: Architectural Design Discussion**\nLet's discuss the high-level architecture. For each area, I will present advanced considerations and ask for your design choices:\n\n1. **Core Architecture** (`id`, `name`, `version`, `description`)\n - (Agent: Discuss semantic versioning strategy, namespace considerations, and treating the description as API documentation.)\n2. **Operational Design** (`preconditions`, `metaGuidance`, `contextVariables`)\n - (Agent: Discuss comprehensive precondition modeling, sophisticated metaGuidance for complex scenarios, and context variable architecture for data flow.)\n3. **Advanced Feature Implementation & Step Design**\n - (Agent: Discuss trade-offs and design patterns for conditional logic, validation strategy, user experience, performance, and enterprise-grade features like error handling and scalability.)\n\n**MASTERY FOCUS:** Our goal is to collaborate on creating an enterprise-grade workflow with a sophisticated and intentional architecture.",
133
- "agentRole": "You are a senior workflow architect and systems design expert with deep expertise in enterprise-grade workflow engineering. Your role is to act as an architectural consultant. You will propose design patterns and discuss trade-offs with the user. Your role is to engage in sophisticated technical discussions, propose advanced design patterns, and help users create workflows that meet enterprise standards for scalability, maintainability, and performance.",
134
- "guidance": [
135
- "ARCHITECTURAL THINKING: Focus on design patterns, scalability, and maintainability.",
136
- "FULL FEATURE ACCESS: Leverage the complete feature set appropriately for the use case.",
137
- "PERFORMANCE AWARENESS: Consider efficiency and resource implications.",
138
- "ENTERPRISE PATTERNS: Apply proven enterprise workflow patterns.",
139
- "EXPERT CONTEXT: Assume understanding of complex concepts, focus on sophisticated applications."
140
- ],
141
- "validationCriteria": [
195
+ "id": "phase-3-intermediate",
196
+ "runCondition": {
197
+ "var": "learningPath",
198
+ "equals": "intermediate"
199
+ },
200
+ "title": "Phase 3: Systematic Validation & Quality Assurance (Intermediate Path)",
201
+ "prompt": "Time to validate and refine your workflow with systematic quality checks. \ud83d\ude80\n\n**STEP 1: Comprehensive Validation**\nI will now execute `workflow_validate_json` for a complete structural and logical validation of your workflow.\n\n(Agent: Run the tool.)\n\n**STEP 2: Error Pattern Analysis & Resolution**\nWhen issues are found, we will address them systematically:\n1. **Categorize errors** by type (e.g., syntax, logic, reference).\n2. **Identify patterns** that might indicate a recurring misunderstanding.\n3. **Prioritize fixes**, starting with critical syntax errors.\n4. **Apply fixes efficiently**, grouping related changes.\n5. **Re-validate incrementally** to confirm progress.\n\n(Agent: Guide the user through this analysis and resolution process, explaining your reasoning at each step.)\n\n**EFFICIENCY FOCUS:** Our goal is systematic error resolution and pattern recognition for faster iteration.",
202
+ "agentRole": "You are a workflow quality assurance specialist with expertise in systematic validation and error pattern analysis. Your role is to run the validator, analyze the results for patterns, and then guide the user through a systematic fix process. Your role is to efficiently identify and resolve validation issues while teaching users to recognize and prevent common problems in future workflow development.",
203
+ "guidance": [
204
+ "SYSTEMATIC APPROACH: Handle errors methodically, grouping similar issues for efficient resolution.",
205
+ "PATTERN RECOGNITION: Help user identify common error patterns and prevention strategies.",
206
+ "PROFESSIONAL STANDARDS: Apply industry best practices for validation and quality assurance.",
207
+ "EFFICIENT ITERATION: Balance thoroughness with practical development speed.",
208
+ "QUALITY FOCUS: Ensure the workflow meets professional standards beyond just 'working'."
209
+ ],
210
+ "requireConfirmation": true
211
+ },
142
212
  {
143
- "type": "regex",
144
- "pattern": "\"id\":\\s*\"[a-zA-Z0-9_-]+\"",
145
- "message": "Workflow must have a valid id field with alphanumeric characters, underscores, or hyphens"
213
+ "id": "phase-3-advanced",
214
+ "runCondition": {
215
+ "var": "learningPath",
216
+ "equals": "advanced"
217
+ },
218
+ "title": "Phase 3: Advanced Validation & Architectural Review (Advanced Path)",
219
+ "prompt": "Let's execute a comprehensive validation with an eye for performance and architectural integrity. \ud83c\udfc6\n\n**STEP 1: Comprehensive Technical Validation**\nI will now deploy `workflow_validate_json` for complete validation coverage.\n\n(Agent: Run the tool.)\n\n**STEP 2: Advanced Error Analysis & Architectural Resolution**\nFor any issues found, we will perform a deep analysis:\n1. **Root Cause Analysis**: Let's trace the errors back to their architectural source.\n2. **Impact Assessment**: We'll evaluate the consequences for scalability and maintainability.\n3. **Strategic Resolution**: I will help you fix the underlying patterns, not just the symptoms.\n4. **Architectural Refinement**: We'll ensure the fixes align with our overall design principles.\n\n(Agent: Lead the user through this discussion, proposing and implementing fixes collaboratively.)\n\n**MASTERY FOCUS:** We will use validation feedback to refine architectural decisions and optimize for enterprise deployment.",
220
+ "agentRole": "You are a principal workflow architect and validation expert with deep expertise in enterprise-grade quality assurance. Your role is to run the validator and then lead an advanced analysis of the errors, connecting them back to architectural decisions. Your role is to conduct sophisticated technical analysis, identify architectural implications of validation issues, and guide strategic resolution that enhances overall workflow design.",
221
+ "guidance": [
222
+ "ARCHITECTURAL PERSPECTIVE: View validation through the lens of overall system design and long-term maintainability.",
223
+ "PERFORMANCE AWARENESS: Consider validation overhead and execution efficiency implications.",
224
+ "ENTERPRISE STANDARDS: Apply enterprise-grade quality gates and compliance requirements.",
225
+ "STRATEGIC THINKING: Fix root causes and patterns, not just individual errors.",
226
+ "OPTIMIZATION FOCUS: Use validation as an opportunity to refine and optimize the workflow architecture."
227
+ ],
228
+ "requireConfirmation": true
146
229
  },
147
230
  {
148
- "type": "regex",
149
- "pattern": "\"name\":\\s*\"[^\"]{3,}\"",
150
- "message": "Workflow must have a descriptive name (at least 3 characters)"
231
+ "id": "phase-4-basic",
232
+ "runCondition": {
233
+ "var": "learningPath",
234
+ "equals": "basic"
235
+ },
236
+ "title": "Phase 4: Simple Testing & Improvement (Basic Path)",
237
+ "prompt": "Excellent! Your workflow is technically sound. Now let's make sure it's clear and easy to use. \ud83c\udf31\n\n**STEP 1: Choose What to Test**\nFirst, which important step from your new workflow would you like to test? Pick one that is complex or that a user might struggle with.\n\n**STEP 2: Simple Persona Testing**\nOnce you've chosen a step, we'll test it by imagining different types of users:\n\n- **The Beginner User:** Would someone new to this topic understand the instructions? Are there any technical words that need explaining?\n- **The Busy User:** Could someone in a hurry misunderstand this? Is it too long or wordy?\n- **The Adversarial LLM (Advanced Concept):** Is there any ambiguity an AI could exploit to produce a plausible but incorrect result? This helps make the prompt robust for AI agents.\n\n(Agent: For each persona, ask the user these questions and help them analyze the prompt.)\n\n**STEP 3: Make It Better**\nBased on what we find, I will help you:\n1. **Understand the problems** we identified.\n2. **Come up with specific improvements**.\n3. **Make the changes** using `edit_file`.\n4. **Check our work** with `workflow_validate`.\n\n**LEARNING GOAL:** Our goal is to understand how to make instructions clear for everyone.",
238
+ "agentRole": "You are a workflow usability specialist focused on clear communication and user experience design. Your role is to guide the user through testing one of their steps against simple personas and help them improve the clarity of the instructions.",
239
+ "guidance": [
240
+ "SIMPLE APPROACH: Focus on clarity and basic usability rather than complex edge cases.",
241
+ "EDUCATIONAL FOCUS: Explain why each test matters and what good instructions look like.",
242
+ "ENCOURAGE EMPATHY: Help user think about different types of people who might use their workflow.",
243
+ "PRACTICAL IMPROVEMENTS: Focus on concrete, actionable changes that clearly improve usability.",
244
+ "BUILD CONFIDENCE: Celebrate improvements and explain how testing makes workflows better."
245
+ ]
151
246
  },
152
247
  {
153
- "type": "regex",
154
- "pattern": "\"description\":\\s*\"[^\"]{20,}\"",
155
- "message": "Workflow must have a meaningful description (at least 20 characters)"
248
+ "id": "phase-4-intermediate",
249
+ "runCondition": {
250
+ "var": "learningPath",
251
+ "equals": "intermediate"
252
+ },
253
+ "title": "Phase 4: Systematic Testing & Quality Refinement (Intermediate Path)",
254
+ "prompt": "Your workflow is validated. Let's ensure it's robust and professional through comprehensive testing. \ud83d\ude80\n\n**STEP 1: Critical Step Selection**\nTo begin, please identify 1-2 critical steps from your workflow that are either complex, high-impact, or involve key user decisions.\n\n**STEP 2: Multi-Persona Analysis**\nFor each step you select, we will evaluate it from these strategic perspectives:\n\n- **The Domain Expert:** Does the step leverage domain knowledge correctly? Are there unstated assumptions?\n- **The Efficiency-Focused User:** Can the step be completed quickly without sacrificing quality? Are there bottlenecks?\n- **The Adversarial LLM:** How could an AI exploit ambiguity in the prompt to produce a plausible but incorrect result?\n\n(Agent: Guide the user through this analysis, asking probing questions for each persona.)\n\n**STEP 3: Strategic Refinements**\nBased on our analysis, I will help you:\n1. **Prioritize improvements** by impact.\n2. **Implement targeted enhancements** using `edit_file`.\n3. **Validate consistency** with `workflow_validate`.\n4. **Document the rationale** for key design decisions.\n\n**PROFESSIONAL FOCUS:** Our goal is to balance efficiency, quality, and usability for real-world deployment.",
255
+ "agentRole": "You are a workflow quality engineer and strategic testing specialist with expertise in multi-persona analysis and systematic quality improvement. Your role is to guide the user through a systematic evaluation of a critical step against multiple strategic personas.",
256
+ "guidance": [
257
+ "STRATEGIC THINKING: Focus on improvements that have the highest impact on workflow effectiveness.",
258
+ "PROFESSIONAL STANDARDS: Apply industry best practices for user experience and process design.",
259
+ "BALANCED APPROACH: Consider trade-offs between different user needs and workflow goals.",
260
+ "SYSTEMATIC PROCESS: Use structured analysis to ensure comprehensive coverage of potential issues.",
261
+ "PRACTICAL DEPLOYMENT: Focus on refinements that matter for real-world workflow usage."
262
+ ]
156
263
  },
157
264
  {
158
- "type": "regex",
159
- "pattern": "\"steps\":\\s*\\[",
160
- "message": "Workflow must have a steps array with at least one step"
161
- }
162
- ]
163
- },
164
- {
165
- "id": "phase-3-basic",
166
- "runCondition": {"var": "learningPath", "equals": "basic"},
167
- "title": "Phase 3: Learning Through Validation (Basic Path)",
168
- "prompt": "Great! Your workflow draft is complete. Now let's make sure it works perfectly! 🌱\n\n**UNDERSTANDING VALIDATION:**\nValidation is like proofreading - it catches mistakes before they cause problems. Our validation tool will check for issues with syntax, structure, and logic.\n\n**STEP 1: Run Your First Validation**\nI will now use the `workflow_validate_json` tool to check your workflow. I'll explain what the tool is doing and why each check matters.\n\n(Agent: Run the tool.)\n\n**STEP 2: Learning from Errors (Don't worry - errors are normal!)**\nIf there are errors, I will guide you through them one at a time:\n1. **Explain the error** in simple terms.\n2. **Show you where** the problem is in the file.\n3. **Explain why** it's a problem.\n4. **Help you fix it** step-by-step.\n5. Then, we'll **rerun validation** to see our progress.\n\n**LEARNING GOAL:** Our goal is to understand what makes a workflow valid and why each rule exists. Every error is a learning opportunity!",
169
- "agentRole": "You are a supportive workflow validation instructor with expertise in teaching through problem-solving. Your goal is to run the validation tool and then guide the user through fixing any errors one by one, explaining each concept as you go. Your role is to turn validation errors into learning opportunities, explaining technical concepts in accessible terms while building user confidence in workflow creation.",
170
- "guidance": [
171
- "EDUCATIONAL APPROACH: Treat each error as a teaching moment. Explain what went wrong and why the rule exists.",
172
- "STEP-BY-STEP FIXES: Guide through each fix individually, don't overwhelm with multiple changes.",
173
- "ENCOURAGE LEARNING: Emphasize that errors are normal and part of the learning process.",
174
- "EXPLAIN THE WHY: Help user understand the reasoning behind validation rules.",
175
- "BUILD CONFIDENCE: Celebrate when validation passes and acknowledge progress."
176
- ],
177
- "requireConfirmation": true
178
- },
179
- {
180
- "id": "phase-3-intermediate",
181
- "runCondition": {"var": "learningPath", "equals": "intermediate"},
182
- "title": "Phase 3: Systematic Validation & Quality Assurance (Intermediate Path)",
183
- "prompt": "Time to validate and refine your workflow with systematic quality checks. šŸš€\n\n**STEP 1: Comprehensive Validation**\nI will now execute `workflow_validate_json` for a complete structural and logical validation of your workflow.\n\n(Agent: Run the tool.)\n\n**STEP 2: Error Pattern Analysis & Resolution**\nWhen issues are found, we will address them systematically:\n1. **Categorize errors** by type (e.g., syntax, logic, reference).\n2. **Identify patterns** that might indicate a recurring misunderstanding.\n3. **Prioritize fixes**, starting with critical syntax errors.\n4. **Apply fixes efficiently**, grouping related changes.\n5. **Re-validate incrementally** to confirm progress.\n\n(Agent: Guide the user through this analysis and resolution process, explaining your reasoning at each step.)\n\n**EFFICIENCY FOCUS:** Our goal is systematic error resolution and pattern recognition for faster iteration.",
184
- "agentRole": "You are a workflow quality assurance specialist with expertise in systematic validation and error pattern analysis. Your role is to run the validator, analyze the results for patterns, and then guide the user through a systematic fix process. Your role is to efficiently identify and resolve validation issues while teaching users to recognize and prevent common problems in future workflow development.",
185
- "guidance": [
186
- "SYSTEMATIC APPROACH: Handle errors methodically, grouping similar issues for efficient resolution.",
187
- "PATTERN RECOGNITION: Help user identify common error patterns and prevention strategies.",
188
- "PROFESSIONAL STANDARDS: Apply industry best practices for validation and quality assurance.",
189
- "EFFICIENT ITERATION: Balance thoroughness with practical development speed.",
190
- "QUALITY FOCUS: Ensure the workflow meets professional standards beyond just 'working'."
191
- ],
192
- "requireConfirmation": true
193
- },
194
- {
195
- "id": "phase-3-advanced",
196
- "runCondition": {"var": "learningPath", "equals": "advanced"},
197
- "title": "Phase 3: Advanced Validation & Architectural Review (Advanced Path)",
198
- "prompt": "Let's execute a comprehensive validation with an eye for performance and architectural integrity. šŸ†\n\n**STEP 1: Comprehensive Technical Validation**\nI will now deploy `workflow_validate_json` for complete validation coverage.\n\n(Agent: Run the tool.)\n\n**STEP 2: Advanced Error Analysis & Architectural Resolution**\nFor any issues found, we will perform a deep analysis:\n1. **Root Cause Analysis**: Let's trace the errors back to their architectural source.\n2. **Impact Assessment**: We'll evaluate the consequences for scalability and maintainability.\n3. **Strategic Resolution**: I will help you fix the underlying patterns, not just the symptoms.\n4. **Architectural Refinement**: We'll ensure the fixes align with our overall design principles.\n\n(Agent: Lead the user through this discussion, proposing and implementing fixes collaboratively.)\n\n**MASTERY FOCUS:** We will use validation feedback to refine architectural decisions and optimize for enterprise deployment.",
199
- "agentRole": "You are a principal workflow architect and validation expert with deep expertise in enterprise-grade quality assurance. Your role is to run the validator and then lead an advanced analysis of the errors, connecting them back to architectural decisions. Your role is to conduct sophisticated technical analysis, identify architectural implications of validation issues, and guide strategic resolution that enhances overall workflow design.",
200
- "guidance": [
201
- "ARCHITECTURAL PERSPECTIVE: View validation through the lens of overall system design and long-term maintainability.",
202
- "PERFORMANCE AWARENESS: Consider validation overhead and execution efficiency implications.",
203
- "ENTERPRISE STANDARDS: Apply enterprise-grade quality gates and compliance requirements.",
204
- "STRATEGIC THINKING: Fix root causes and patterns, not just individual errors.",
205
- "OPTIMIZATION FOCUS: Use validation as an opportunity to refine and optimize the workflow architecture."
206
- ],
207
- "requireConfirmation": true
208
- },
209
- {
210
- "id": "phase-4-basic",
211
- "runCondition": {"var": "learningPath", "equals": "basic"},
212
- "title": "Phase 4: Simple Testing & Improvement (Basic Path)",
213
- "prompt": "Excellent! Your workflow is technically sound. Now let's make sure it's clear and easy to use. 🌱\n\n**STEP 1: Choose What to Test**\nFirst, which important step from your new workflow would you like to test? Pick one that is complex or that a user might struggle with.\n\n**STEP 2: Simple Persona Testing**\nOnce you've chosen a step, we'll test it by imagining different types of users:\n\n- **The Beginner User:** Would someone new to this topic understand the instructions? Are there any technical words that need explaining?\n- **The Busy User:** Could someone in a hurry misunderstand this? Is it too long or wordy?\n- **The Adversarial LLM (Advanced Concept):** Is there any ambiguity an AI could exploit to produce a plausible but incorrect result? This helps make the prompt robust for AI agents.\n\n(Agent: For each persona, ask the user these questions and help them analyze the prompt.)\n\n**STEP 3: Make It Better**\nBased on what we find, I will help you:\n1. **Understand the problems** we identified.\n2. **Come up with specific improvements**.\n3. **Make the changes** using `edit_file`.\n4. **Check our work** with `workflow_validate`.\n\n**LEARNING GOAL:** Our goal is to understand how to make instructions clear for everyone.",
214
- "agentRole": "You are a workflow usability specialist focused on clear communication and user experience design. Your role is to guide the user through testing one of their steps against simple personas and help them improve the clarity of the instructions.",
215
- "guidance": [
216
- "SIMPLE APPROACH: Focus on clarity and basic usability rather than complex edge cases.",
217
- "EDUCATIONAL FOCUS: Explain why each test matters and what good instructions look like.",
218
- "ENCOURAGE EMPATHY: Help user think about different types of people who might use their workflow.",
219
- "PRACTICAL IMPROVEMENTS: Focus on concrete, actionable changes that clearly improve usability.",
220
- "BUILD CONFIDENCE: Celebrate improvements and explain how testing makes workflows better."
221
- ]
222
- },
223
- {
224
- "id": "phase-4-intermediate",
225
- "runCondition": {"var": "learningPath", "equals": "intermediate"},
226
- "title": "Phase 4: Systematic Testing & Quality Refinement (Intermediate Path)",
227
- "prompt": "Your workflow is validated. Let's ensure it's robust and professional through comprehensive testing. šŸš€\n\n**STEP 1: Critical Step Selection**\nTo begin, please identify 1-2 critical steps from your workflow that are either complex, high-impact, or involve key user decisions.\n\n**STEP 2: Multi-Persona Analysis**\nFor each step you select, we will evaluate it from these strategic perspectives:\n\n- **The Domain Expert:** Does the step leverage domain knowledge correctly? Are there unstated assumptions?\n- **The Efficiency-Focused User:** Can the step be completed quickly without sacrificing quality? Are there bottlenecks?\n- **The Adversarial LLM:** How could an AI exploit ambiguity in the prompt to produce a plausible but incorrect result?\n\n(Agent: Guide the user through this analysis, asking probing questions for each persona.)\n\n**STEP 3: Strategic Refinements**\nBased on our analysis, I will help you:\n1. **Prioritize improvements** by impact.\n2. **Implement targeted enhancements** using `edit_file`.\n3. **Validate consistency** with `workflow_validate`.\n4. **Document the rationale** for key design decisions.\n\n**PROFESSIONAL FOCUS:** Our goal is to balance efficiency, quality, and usability for real-world deployment.",
228
- "agentRole": "You are a workflow quality engineer and strategic testing specialist with expertise in multi-persona analysis and systematic quality improvement. Your role is to guide the user through a systematic evaluation of a critical step against multiple strategic personas.",
229
- "guidance": [
230
- "STRATEGIC THINKING: Focus on improvements that have the highest impact on workflow effectiveness.",
231
- "PROFESSIONAL STANDARDS: Apply industry best practices for user experience and process design.",
232
- "BALANCED APPROACH: Consider trade-offs between different user needs and workflow goals.",
233
- "SYSTEMATIC PROCESS: Use structured analysis to ensure comprehensive coverage of potential issues.",
234
- "PRACTICAL DEPLOYMENT: Focus on refinements that matter for real-world workflow usage."
235
- ]
236
- },
237
- {
238
- "id": "phase-4-advanced",
239
- "runCondition": {"var": "learningPath", "equals": "advanced"},
240
- "title": "Phase 4: Enterprise Testing & Architectural Refinement (Advanced Path)",
241
- "prompt": "Let's execute sophisticated, enterprise-grade testing and optimization. šŸ†\n\n**STEP 1: Strategic Component Selection**\nFirst, please identify the critical components in your workflow for analysis. Focus on high-complexity steps, key decision points, or integration touchpoints.\n\n**STEP 2: Advanced Multi-Dimensional Analysis**\nFor each component you choose, we will execute a comprehensive evaluation framework. I will lead you through discussions on:\n\n- **Architectural Perspective:** Are the design patterns consistent? What are the scalability implications?\n- **Performance & Efficiency:** Where are the potential bottlenecks? Is context variable usage optimal?\n- **The Adversarial LLM:** How can we harden prompts against sophisticated misinterpretation by an AI agent seeking the path of least resistance?\n- **Enterprise User Experience:** How does this work for multi-user collaboration or in enterprise environments?\n- **Maintenance & Evolution:** How easy is this to maintain and extend?\n\n(Agent: Lead the user through this deep analysis, acting as an architectural consultant.)\n\n**STEP 3: Strategic Architectural Refinement**\nBased on our analysis, I will help you:\n1. **Architect strategic improvements** that address systemic issues.\n2. **Optimize for enterprise deployment** with sophisticated enhancements.\n3. **Validate architectural integrity** using `workflow_validate`.\n4. **Document our architectural decisions** and the rationale for them.\n\n**MASTERY OUTCOME:** Our goal is to create an enterprise-ready workflow optimized for scalability, maintainability, and sophisticated deployment scenarios.",
242
- "agentRole": "You are a principal workflow architect and enterprise testing specialist with deep expertise in sophisticated multi-dimensional analysis and enterprise-grade optimization. Your role is to lead a multi-dimensional analysis of critical workflow components, focusing on architectural integrity and enterprise readiness.",
243
- "guidance": [
244
- "ARCHITECTURAL EXCELLENCE: Focus on sophisticated design patterns and enterprise-grade considerations.",
245
- "PERFORMANCE OPTIMIZATION: Identify and address efficiency opportunities across all dimensions.",
246
- "ENTERPRISE READINESS: Ensure the workflow meets sophisticated organizational deployment requirements.",
247
- "STRATEGIC REFINEMENT: Make improvements that enhance long-term value and architectural integrity.",
248
- "COMPREHENSIVE ANALYSIS: Apply enterprise-grade evaluation frameworks for thorough assessment."
249
- ]
250
- },
251
- {
252
- "id": "phase-5-completion",
253
- "title": "Phase 5: Celebration & Growth",
254
- "prompt": "šŸŽ‰ **WORKFLOW CREATION COMPLETE!** šŸŽ‰\n\n**STEP 1: Final Review**\nAgent: Review the workflow's `name` and `description`, then run final validation with `workflow_validate_json`.\n\n**STEP 2: Path-Specific Celebration**\n\nAgent: Provide appropriate celebration based on learning path:\n\n**🌱 BASIC PATH:**\nCongratulations! You've created your first workflow with advanced features!\nLearned: Workflow structure, conditional steps, validation, clear guidance.\nNext: Try intermediate path for advanced patterns and sophisticated testing.\n\n**šŸš€ INTERMEDIATE PATH:**\nExcellent work! You've created a professionally structured workflow!\nMastered: Efficient authoring, strategic features, systematic validation, design patterns.\nNext: Create domain workflows, contribute templates, explore advanced logic.\n\n**šŸ† ADVANCED PATH:**\nOutstanding! You've demonstrated workflow architecture mastery!\nAchieved: Sophisticated design, enterprise validation, advanced patterns, expert engineering.\nNext: Lead design, contribute advanced templates, mentor others, explore innovations.\n\n**STEP 3: Completion**\nAgent: Confirm workflow is deployment-ready. For basic/intermediate users, offer level-up opportunities for future workflows.\n\n**UNIVERSAL TRUTH:** Workflow mastery continues with each template. Every workflow is an opportunity to improve!",
255
- "guidance": [
256
- "ADAPTIVE CELEBRATION: Match the celebration intensity and language to the user's learning path and achievement level.",
257
- "GROWTH ORIENTATION: Always provide clear next steps that encourage continued learning and skill development.",
258
- "PATH-SPECIFIC GUIDANCE: Tailor advice to the user's demonstrated skill level and learning journey.",
259
- "LEVEL-UP OPPORTUNITIES: For basic and intermediate users, gently suggest trying higher complexity paths for future workflows.",
260
- "UNIVERSAL PRINCIPLES: End with shared wisdom that applies to all workflow creators regardless of skill level."
261
- ],
262
- "validationCriteria": [
265
+ "id": "phase-4-advanced",
266
+ "runCondition": {
267
+ "var": "learningPath",
268
+ "equals": "advanced"
269
+ },
270
+ "title": "Phase 4: Enterprise Testing & Architectural Refinement (Advanced Path)",
271
+ "prompt": "Let's execute sophisticated, enterprise-grade testing and optimization. \ud83c\udfc6\n\n**STEP 1: Strategic Component Selection**\nFirst, please identify the critical components in your workflow for analysis. Focus on high-complexity steps, key decision points, or integration touchpoints.\n\n**STEP 2: Advanced Multi-Dimensional Analysis**\nFor each component you choose, we will execute a comprehensive evaluation framework. I will lead you through discussions on:\n\n- **Architectural Perspective:** Are the design patterns consistent? What are the scalability implications?\n- **Performance & Efficiency:** Where are the potential bottlenecks? Is context variable usage optimal?\n- **The Adversarial LLM:** How can we harden prompts against sophisticated misinterpretation by an AI agent seeking the path of least resistance?\n- **Enterprise User Experience:** How does this work for multi-user collaboration or in enterprise environments?\n- **Maintenance & Evolution:** How easy is this to maintain and extend?\n\n(Agent: Lead the user through this deep analysis, acting as an architectural consultant.)\n\n**STEP 3: Strategic Architectural Refinement**\nBased on our analysis, I will help you:\n1. **Architect strategic improvements** that address systemic issues.\n2. **Optimize for enterprise deployment** with sophisticated enhancements.\n3. **Validate architectural integrity** using `workflow_validate`.\n4. **Document our architectural decisions** and the rationale for them.\n\n**MASTERY OUTCOME:** Our goal is to create an enterprise-ready workflow optimized for scalability, maintainability, and sophisticated deployment scenarios.",
272
+ "agentRole": "You are a principal workflow architect and enterprise testing specialist with deep expertise in sophisticated multi-dimensional analysis and enterprise-grade optimization. Your role is to lead a multi-dimensional analysis of critical workflow components, focusing on architectural integrity and enterprise readiness.",
273
+ "guidance": [
274
+ "ARCHITECTURAL EXCELLENCE: Focus on sophisticated design patterns and enterprise-grade considerations.",
275
+ "PERFORMANCE OPTIMIZATION: Identify and address efficiency opportunities across all dimensions.",
276
+ "ENTERPRISE READINESS: Ensure the workflow meets sophisticated organizational deployment requirements.",
277
+ "STRATEGIC REFINEMENT: Make improvements that enhance long-term value and architectural integrity.",
278
+ "COMPREHENSIVE ANALYSIS: Apply enterprise-grade evaluation frameworks for thorough assessment."
279
+ ]
280
+ },
263
281
  {
264
- "type": "length",
265
- "min": 500,
266
- "message": "Final workflow should be comprehensive (at least 500 characters)"
282
+ "id": "phase-5-completion",
283
+ "title": "Phase 5: Celebration & Growth",
284
+ "prompt": "\ud83c\udf89 **WORKFLOW CREATION COMPLETE!** \ud83c\udf89\n\n**STEP 1: Final Review**\nAgent: Review the workflow's `name` and `description`, then run final validation with `workflow_validate_json`.\n\n**STEP 2: Path-Specific Celebration**\n\nAgent: Provide appropriate celebration based on learning path:\n\n**\ud83c\udf31 BASIC PATH:**\nCongratulations! You've created your first workflow with advanced features!\nLearned: Workflow structure, conditional steps, validation, clear guidance.\nNext: Try intermediate path for advanced patterns and sophisticated testing.\n\n**\ud83d\ude80 INTERMEDIATE PATH:**\nExcellent work! You've created a professionally structured workflow!\nMastered: Efficient authoring, strategic features, systematic validation, design patterns.\nNext: Create domain workflows, contribute templates, explore advanced logic.\n\n**\ud83c\udfc6 ADVANCED PATH:**\nOutstanding! You've demonstrated workflow architecture mastery!\nAchieved: Sophisticated design, enterprise validation, advanced patterns, expert engineering.\nNext: Lead design, contribute advanced templates, mentor others, explore innovations.\n\n**STEP 3: Completion**\nAgent: Confirm workflow is deployment-ready. For basic/intermediate users, offer level-up opportunities for future workflows.\n\n**UNIVERSAL TRUTH:** Workflow mastery continues with each template. Every workflow is an opportunity to improve!",
285
+ "guidance": [
286
+ "ADAPTIVE CELEBRATION: Match the celebration intensity and language to the user's learning path and achievement level.",
287
+ "GROWTH ORIENTATION: Always provide clear next steps that encourage continued learning and skill development.",
288
+ "PATH-SPECIFIC GUIDANCE: Tailor advice to the user's demonstrated skill level and learning journey.",
289
+ "LEVEL-UP OPPORTUNITIES: For basic and intermediate users, gently suggest trying higher complexity paths for future workflows.",
290
+ "UNIVERSAL PRINCIPLES: End with shared wisdom that applies to all workflow creators regardless of skill level."
291
+ ],
292
+ "validationCriteria": [
293
+ {
294
+ "type": "length",
295
+ "min": 500,
296
+ "message": "Final workflow should be comprehensive (at least 500 characters)"
297
+ },
298
+ {
299
+ "type": "regex",
300
+ "pattern": "\"steps\":\\s*\\[[^\\]]+\\]",
301
+ "message": "Final workflow must have at least one complete step"
302
+ }
303
+ ],
304
+ "hasValidation": true
267
305
  },
268
306
  {
269
- "type": "regex",
270
- "pattern": "\"steps\":\\s*\\[[^\\]]+\\]",
271
- "message": "Final workflow must have at least one complete step"
307
+ "id": "level-up-opportunity",
308
+ "runCondition": {
309
+ "var": "learningPath",
310
+ "not_equals": "advanced"
311
+ },
312
+ "title": "\ud83d\ude80 Ready to Level Up?",
313
+ "prompt": "**OPTIONAL: Explore the Next Level**\n\nYou've successfully completed your workflow! Would you like to explore what the next learning path offers for your future workflows?\n\n**FOR BASIC PATH GRADUATES:**\nThe **Intermediate Path** offers:\n- More efficient workflow creation process\n- Advanced feature recommendations based on use case\n- Professional design patterns and best practices\n- Systematic validation and testing approaches\n\n**FOR INTERMEDIATE PATH GRADUATES:**\nThe **Advanced Path** offers:\n- Comprehensive feature utilization from the start\n- Enterprise-grade architectural considerations\n- Performance optimization and scalability patterns\n- Sophisticated testing and validation frameworks\n\n**Remember:** You can always return to your comfortable level - this is just an invitation to explore new possibilities when you're ready!\n\n**Agent Guidance:** If the user expresses interest, provide a brief preview of what they would experience in the next path level. If not interested, celebrate their current achievement and encourage them to practice at their current level.",
314
+ "guidance": [
315
+ "OPTIONAL EXPLORATION: Make it clear this is purely optional and they've already succeeded.",
316
+ "NO PRESSURE: Emphasize they can always return to their comfort level.",
317
+ "PREVIEW VALUE: Show concrete benefits of advancing without making current level seem inadequate.",
318
+ "RESPECT CHOICE: Whether they advance or stay, celebrate their decision and provide appropriate support."
319
+ ]
272
320
  }
273
- ]
274
- },
275
- {
276
- "id": "level-up-opportunity",
277
- "runCondition": {"var": "learningPath", "not_equals": "advanced"},
278
- "title": "šŸš€ Ready to Level Up?",
279
- "prompt": "**OPTIONAL: Explore the Next Level**\n\nYou've successfully completed your workflow! Would you like to explore what the next learning path offers for your future workflows?\n\n**FOR BASIC PATH GRADUATES:**\nThe **Intermediate Path** offers:\n- More efficient workflow creation process\n- Advanced feature recommendations based on use case\n- Professional design patterns and best practices\n- Systematic validation and testing approaches\n\n**FOR INTERMEDIATE PATH GRADUATES:**\nThe **Advanced Path** offers:\n- Comprehensive feature utilization from the start\n- Enterprise-grade architectural considerations\n- Performance optimization and scalability patterns\n- Sophisticated testing and validation frameworks\n\n**Remember:** You can always return to your comfortable level - this is just an invitation to explore new possibilities when you're ready!\n\n**Agent Guidance:** If the user expresses interest, provide a brief preview of what they would experience in the next path level. If not interested, celebrate their current achievement and encourage them to practice at their current level.",
280
- "guidance": [
281
- "OPTIONAL EXPLORATION: Make it clear this is purely optional and they've already succeeded.",
282
- "NO PRESSURE: Emphasize they can always return to their comfort level.",
283
- "PREVIEW VALUE: Show concrete benefits of advancing without making current level seem inadequate.",
284
- "RESPECT CHOICE: Whether they advance or stay, celebrate their decision and provide appropriate support."
285
- ]
286
- }
287
- ]
288
- }
321
+ ]
322
+ }