@exaudeus/workrail 0.0.6 → 0.0.8

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 +1 @@
1
- {"version":3,"file":"workflow-service.d.ts","sourceRoot":"","sources":["../../../src/application/services/workflow-service.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,qDAAqD;IACrD,qBAAqB,IAAI,OAAO,CAAC,OAAO,uBAAuB,EAAE,eAAe,EAAE,CAAC,CAAC;IAEpF,uDAAuD;IACvD,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,uBAAuB,EAAE,QAAQ,GAAG,IAAI,CAAC,CAAC;IAEtF;;OAEG;IACH,WAAW,CACT,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,MAAM,EAAE,EACxB,OAAO,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC;QACT,IAAI,EAAE,OAAO,uBAAuB,EAAE,YAAY,GAAG,IAAI,CAAC;QAC1D,QAAQ,EAAE,OAAO,uBAAuB,EAAE,gBAAgB,CAAC;QAC3D,UAAU,EAAE,OAAO,CAAC;KACrB,CAAC,CAAC;IAEH,2CAA2C;IAC3C,kBAAkB,CAChB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,OAAO,CAAC;QACT,KAAK,EAAE,OAAO,CAAC;QACf,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,WAAW,EAAE,MAAM,EAAE,CAAC;KACvB,CAAC,CAAC;CACJ;AAED,OAAO,EACL,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EACjB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAKvD,OAAO,EAAqB,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACtF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;A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;IAoDpF,kBAAkB,CACtB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,OAAO,CAAC;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAC;QAAC,WAAW,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC;CAexE;AAID,eAAO,MAAM,sBAAsB,EAAE,eAA8C,CAAC"}
@@ -49,7 +49,14 @@ class DefaultWorkflowService {
49
49
  const guidanceList = nextStep.guidance.map((g) => `- ${g}`).join('\n');
50
50
  stepGuidance = `${guidanceHeader}\n${guidanceList}\n\n`;
51
51
  }
52
+ // Build user-facing prompt (unchanged for backward compatibility)
52
53
  finalPrompt = `${stepGuidance}${nextStep.prompt}`;
54
+ // If agentRole exists, include it in the guidance for agent processing
55
+ if (nextStep.agentRole) {
56
+ // Add agentRole instructions to the guidance prompt for agent consumption
57
+ // This maintains the existing API while providing agent-specific instructions
58
+ finalPrompt = `## Agent Role Instructions\n${nextStep.agentRole}\n\n${finalPrompt}`;
59
+ }
53
60
  }
54
61
  return {
55
62
  step: nextStep,
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-service.js","sourceRoot":"","sources":["../../../src/application/services/workflow-service.ts"],"names":[],"mappings":";;;AAsCA,0DAA4E;AAE5E,4DAGkC;AAClC,yEAAsF;AACtF,2DAAuD;AAEvD;;;GAGG;AACH,MAAa,sBAAsB;IAEd;IACA;IAFnB,YACmB,UAA4B,IAAA,sCAA4B,GAAE,EAC1D,mBAAqC,IAAI,oCAAgB,EAAE;QAD3D,YAAO,GAAP,OAAO,CAAmD;QAC1D,qBAAgB,GAAhB,gBAAgB,CAA2C;IAC3E,CAAC;IAEJ,KAAK,CAAC,qBAAqB;QACzB,OAAO,IAAI,CAAC,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAC9C,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,EAAU;QAC9B,OAAO,IAAI,CAAC,OAAO,CAA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,GAAG,cAAc,KAAK,YAAY,MAAM,CAAC;YAC1D,CAAC;YACD,WAAW,GAAG,GAAG,YAAY,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC;QACpD,CAAC;QAED,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE;gBACR,MAAM,EAAE,WAAW;aACpB;YACD,UAAU;SACX,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,kBAAkB,CACtB,UAAkB,EAClB,MAAc,EACd,MAAc;QAEd,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;QAChE,IAAI,CAAC,QAAQ,EAAE,CAAC;YACd,MAAM,IAAI,qCAAqB,CAAC,UAAU,CAAC,CAAC;QAC9C,CAAC;QAED,MAAM,IAAI,GAAG,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,CAAC;QACzD,IAAI,CAAC,IAAI,EAAE,CAAC;YACV,MAAM,IAAI,iCAAiB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAClD,CAAC;QAED,kDAAkD;QAClD,MAAM,QAAQ,GAAI,IAAY,CAAC,kBAA2B,IAAI,EAAE,CAAC;QACjE,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC1D,CAAC;CACF;AAhFD,wDAgFC;AAED,2EAA2E;AAC3E,0DAA0D;AAC7C,QAAA,sBAAsB,GAAoB,IAAI,sBAAsB,EAAE,CAAC"}
1
+ {"version":3,"file":"workflow-service.js","sourceRoot":"","sources":["../../../src/application/services/workflow-service.ts"],"names":[],"mappings":";;;AAsCA,0DAA4E;AAE5E,4DAGkC;AAClC,yEAAsF;AACtF,2DAAuD;AAEvD;;;GAGG;AACH,MAAa,sBAAsB;IAEd;IACA;IAFnB,YACmB,UAA4B,IAAA,sCAA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QAClD,MAAM,QAAQ,GAAI,IAAY,CAAC,kBAA2B,IAAI,EAAE,CAAC;QACjE,OAAO,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAC1D,CAAC;CACF;AAzFD,wDAyFC;AAED,2EAA2E;AAC3E,0DAA0D;AAC7C,QAAA,sBAAsB,GAAoB,IAAI,sBAAsB,EAAE,CAAC"}
@@ -122,6 +122,7 @@ export interface WorkflowStep {
122
122
  id: string;
123
123
  title: string;
124
124
  prompt: string;
125
+ agentRole?: string;
125
126
  guidance?: string[];
126
127
  askForFiles?: boolean;
127
128
  requireConfirmation?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-types.d.ts","sourceRoot":"","sources":["../../src/types/mcp-types.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,KAAK,CAAC;IACf,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,GAAG,CAAC;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,KAAK,CAAC;IACf,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,KAAK,CAAC,EAAE,YAAY,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ;AAMD,MAAM,WAAW,oBAAqB,SAAQ,cAAc;IAC1D,MAAM,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE;QACN,eAAe,EAAE,MAAM,CAAC;QACxB,YAAY,EAAE;YACZ,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YAC5B,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAA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B,CAAC;AAExB,MAAM,MAAM,mBAAmB,GAC3B,mBAAmB,GACnB,kBAAkB,GAClB,mBAAmB,GACnB,uBAAuB,CAAC;AAE5B,MAAM,MAAM,oBAAoB,GAC5B,oBAAoB,GACpB,mBAAmB,GACnB,oBAAoB,GACpB,wBAAwB,CAAC"}
@@ -12,6 +12,7 @@ export interface WorkflowStep {
12
12
  id: string;
13
13
  title: string;
14
14
  prompt: string;
15
+ agentRole?: string;
15
16
  guidance?: string[];
16
17
  askForFiles?: boolean;
17
18
  requireConfirmation?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-types.d.ts","sourceRoot":"","sources":["../../src/types/workflow-types.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAMD,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,uBAAuB,EAAE,CAAC;IAClC,QAAQ,CAAC,EAAE,yBAAyB,EAAE,CAAC;CACxC;AAED,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,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AAM,EAAE,GAAG,CAAC,CAAC;IAChC,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;CACxD;AAED,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC1B,KAAK,EAAE,sBAAsB,CAAC;CAC/B;AAMD,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,SAAS,GACT,WAAW,GACX,QAAQ,GACR,SAAS,GACT,WAAW,CAAC;AAEhB,MAAM,MAAM,kBAAkB,GAC1B,QAAQ,GACR,QAAQ,GACR,SAAS,CAAC;AAEd,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,kBAAkB,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,SAAS,EAAE,eAAe,EAAE,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,sBAAsB,CAAC;CACjC"}
@@ -1 +1 @@
1
- {"version":3,"file":"response-validator.d.ts","sourceRoot":"","sources":["../../src/validation/response-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,UAAU,EAAE,MAAM,KAAK,CAAC;AAuCpC,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CA2B1D,CAAC;AAKF,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;gBAE1C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IAI/C,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI;CAShD;AAED,eAAO,MAAM,iBAAiB,mBAA6C,CAAC"}
1
+ {"version":3,"file":"response-validator.d.ts","sourceRoot":"","sources":["../../src/validation/response-validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,UAAU,EAAE,MAAM,KAAK,CAAC;AAyCpC,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CA2B1D,CAAC;AAKF,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;gBAE1C,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC;IAI/C,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI;CAShD;AAED,eAAO,MAAM,iBAAiB,mBAA6C,CAAC"}
@@ -18,6 +18,8 @@ const workflowStepSchema = zod_1.z.object({
18
18
  id: zod_1.z.string().regex(idRegex),
19
19
  title: zod_1.z.string(),
20
20
  prompt: zod_1.z.string(),
21
+ agentRole: zod_1.z.string().optional(),
22
+ guidance: zod_1.z.array(zod_1.z.string()).optional(),
21
23
  askForFiles: zod_1.z.boolean().optional(),
22
24
  requireConfirmation: zod_1.z.boolean().optional(),
23
25
  runCondition: zod_1.z.object({}).optional()
@@ -1 +1 @@
1
- {"version":3,"file":"response-validator.js","sourceRoot":"","sources":["../../src/validation/response-validator.ts"],"names":[],"mappings":";;;AAAA,6BAAoC;AACpC,yDAAwD;AAExD,MAAM,OAAO,GAAG,kBAAkB,CAAC;AAEnC,8EAA8E;AAC9E,q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,EAAE,CAAC;YACpB,MAAM,IAAI,+BAAe,CAAC,kBAAkB,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;QAClF,CAAC;IACH,CAAC;CACF;AAhBD,8CAgBC;AAEY,QAAA,iBAAiB,GAAG,IAAI,iBAAiB,CAAC,2BAAmB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exaudeus/workrail",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "MCP server for structured workflow orchestration and step-by-step task guidance",
5
5
  "license": "MIT",
6
6
  "bin": {
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "id": "adaptive-development-workflow",
3
3
  "name": "Adaptive Development Workflow",
4
- "description": "A dynamic workflow that adapts steps based on task complexity, user expertise, and project scope",
5
- "version": "0.0.1",
4
+ "description": "A dynamic workflow that adapts steps based on task complexity, user expertise, and project scope. Demonstrates agentRole usage with conditional logic.",
5
+ "version": "0.1.0",
6
6
  "preconditions": [
7
7
  "Development environment is set up",
8
8
  "Task requirements are understood",
@@ -20,12 +20,14 @@
20
20
  "id": "basic-setup",
21
21
  "title": "Basic Project Setup",
22
22
  "prompt": "**PREP**: Review the project structure and requirements.\n\n**IMPLEMENT**: Set up the basic project structure, dependencies, and configuration files.\n\n**VERIFY**: Confirm all basic setup is complete and ready for development.",
23
+ "agentRole": "You are a project setup specialist with expertise in development environment configuration. Focus on creating a solid foundation with proper dependency management, consistent project structure, and necessary configuration files. Ensure the setup follows industry best practices and team conventions.",
23
24
  "requireConfirmation": true
24
25
  },
25
26
  {
26
27
  "id": "detailed-analysis",
27
28
  "title": "Detailed Requirements Analysis",
28
29
  "prompt": "**PREP**: Gather all available documentation and requirements.\n\n**IMPLEMENT**: Perform comprehensive analysis of requirements, edge cases, and potential challenges.\n\n**VERIFY**: Document findings and confirm understanding with stakeholders.",
30
+ "agentRole": "You are a senior business analyst and technical architect specializing in complex requirement analysis. Your role is to uncover hidden requirements, identify potential risks and edge cases, and create comprehensive documentation that will guide the entire development process. Be thorough and methodical in your approach.",
29
31
  "runCondition": {
30
32
  "or": [
31
33
  {"var": "taskScope", "equals": "large"},
@@ -64,6 +66,7 @@
64
66
  "id": "quick-implementation",
65
67
  "title": "Quick Implementation",
66
68
  "prompt": "**PREP**: Review the straightforward requirements.\n\n**IMPLEMENT**: Implement the feature using standard patterns and best practices.\n\n**VERIFY**: Test the implementation and ensure it meets requirements.",
69
+ "agentRole": "You are an efficient developer focused on rapid delivery of simple features. Your approach emphasizes clean, straightforward code using established patterns. Prioritize speed and simplicity while maintaining code quality and following team conventions.",
67
70
  "runCondition": {
68
71
  "and": [
69
72
  {"var": "taskScope", "equals": "small"},
@@ -75,6 +78,7 @@
75
78
  "id": "architecture-design",
76
79
  "title": "Architecture Design",
77
80
  "prompt": "**PREP**: Analyze the system architecture and design patterns.\n\n**IMPLEMENT**: Design the architecture for the new feature, considering scalability and maintainability.\n\n**VERIFY**: Review the design for completeness and alignment with system architecture.",
81
+ "agentRole": "You are a principal software architect with deep expertise in system design and scalable architecture patterns. Your role is to create robust, maintainable designs that align with existing system architecture while considering future scalability and maintainability requirements.",
78
82
  "runCondition": {
79
83
  "and": [
80
84
  {"var": "taskScope", "not_equals": "small"},
@@ -88,6 +92,7 @@
88
92
  "id": "novice-guided-implementation",
89
93
  "title": "Step-by-Step Guided Implementation",
90
94
  "prompt": "**PREP**: Break down the implementation into small, manageable steps.\n\n**IMPLEMENT**: Follow the detailed implementation guide with explanations for each step.\n\n**VERIFY**: Confirm each step is completed correctly before proceeding.",
95
+ "agentRole": "You are a patient and thorough mentor specializing in teaching software development to beginners. Your approach is to break down complex tasks into simple, understandable steps with clear explanations for why each step is necessary. Provide educational context and encourage learning through guided practice.",
91
96
  "runCondition": {
92
97
  "var": "userExpertise",
93
98
  "equals": "novice"
@@ -99,6 +104,7 @@
99
104
  "id": "expert-implementation",
100
105
  "title": "Expert Implementation",
101
106
  "prompt": "**PREP**: Review the requirements and architecture.\n\n**IMPLEMENT**: Implement the feature using advanced patterns and optimizations as appropriate.\n\n**VERIFY**: Ensure implementation follows best practices and is production-ready.",
107
+ "agentRole": "You are a senior software engineer with expertise in advanced development patterns and optimization techniques. Your implementation should demonstrate mastery of design patterns, performance optimization, and production-ready code. Focus on elegant, efficient solutions that showcase technical excellence.",
102
108
  "runCondition": {
103
109
  "var": "userExpertise",
104
110
  "equals": "expert"
@@ -134,6 +140,7 @@
134
140
  "id": "comprehensive-testing",
135
141
  "title": "Comprehensive Testing",
136
142
  "prompt": "**PREP**: Identify all test scenarios including edge cases.\n\n**IMPLEMENT**: Create comprehensive test suite covering unit, integration, and end-to-end tests.\n\n**VERIFY**: Run all tests and ensure coverage meets quality standards.",
143
+ "agentRole": "You are a quality assurance engineer and testing specialist with expertise in comprehensive test strategy design. Your approach includes test-driven development principles, thorough edge case coverage, and automated testing best practices. Focus on creating maintainable, reliable test suites that provide confidence in the implementation.",
137
144
  "runCondition": {
138
145
  "or": [
139
146
  {"var": "taskScope", "equals": "large"},
@@ -167,6 +174,7 @@
167
174
  "id": "basic-testing",
168
175
  "title": "Basic Testing",
169
176
  "prompt": "**PREP**: Identify core functionality to test.\n\n**IMPLEMENT**: Create basic tests for the main functionality.\n\n**VERIFY**: Run tests and fix any issues found.",
177
+ "agentRole": "You are a practical developer focused on essential testing for medium-complexity features. Your approach emphasizes testing the core functionality thoroughly while being efficient with time and resources. Focus on the most important test cases that provide maximum confidence in the implementation.",
170
178
  "runCondition": {
171
179
  "and": [
172
180
  {"var": "taskScope", "not_equals": "large"},
@@ -178,6 +186,7 @@
178
186
  "id": "performance-optimization",
179
187
  "title": "Performance Optimization",
180
188
  "prompt": "**PREP**: Profile the implementation and identify bottlenecks.\n\n**IMPLEMENT**: Optimize performance using appropriate techniques and patterns.\n\n**VERIFY**: Measure performance improvements and ensure they meet requirements.",
189
+ "agentRole": "You are a performance engineering specialist with deep expertise in profiling, optimization techniques, and scalable system design. Your approach combines data-driven analysis with proven optimization strategies to achieve measurable performance improvements while maintaining code quality and maintainability.",
181
190
  "runCondition": {
182
191
  "and": [
183
192
  {"var": "taskScope", "equals": "large"},
@@ -191,6 +200,7 @@
191
200
  "id": "documentation",
192
201
  "title": "Documentation",
193
202
  "prompt": "**PREP**: Review all implemented features and changes.\n\n**IMPLEMENT**: Create comprehensive documentation for the new feature.\n\n**VERIFY**: Ensure documentation is clear, complete, and helpful for future maintenance.",
203
+ "agentRole": "You are a technical writer and documentation specialist with expertise in creating clear, comprehensive documentation for software features. Your focus is on creating documentation that serves both current team members and future maintainers, with appropriate detail for the complexity and scope of the implementation.",
194
204
  "runCondition": {
195
205
  "var": "taskScope",
196
206
  "not_equals": "small"
@@ -200,6 +210,7 @@
200
210
  "id": "final-review",
201
211
  "title": "Final Review and Cleanup",
202
212
  "prompt": "**PREP**: Review all changes and ensure completeness.\n\n**IMPLEMENT**: Perform final cleanup, code review, and quality checks.\n\n**VERIFY**: Confirm all requirements are met and the implementation is ready for deployment.",
213
+ "agentRole": "You are a senior technical lead responsible for final quality assurance and deployment readiness. Your review should be comprehensive, covering code quality, security, performance, and compliance with team standards. Ensure the implementation is production-ready and properly documented.",
203
214
  "requireConfirmation": true
204
215
  }
205
216
  ],
@@ -211,6 +222,8 @@
211
222
  "Provide more guidance for novice users",
212
223
  "Allow expert users to work with minimal constraints",
213
224
  "Test thoroughly based on the complexity and scope",
214
- "Document appropriately for the task size"
225
+ "Document appropriately for the task size",
226
+ "Each step uses agentRole to provide specialized expertise based on conditions",
227
+ "Agent roles adapt to user expertise level and task complexity automatically"
215
228
  ]
216
229
  }
@@ -2,7 +2,7 @@
2
2
  "id": "simple-auth-implementation",
3
3
  "name": "Simple Authentication Implementation",
4
4
  "description": "Implement basic JWT authentication for a REST API with user login and token validation",
5
- "version": "0.0.1",
5
+ "version": "0.1.0",
6
6
  "preconditions": [
7
7
  "User model exists in the database",
8
8
  "JWT library is installed in the project",
@@ -18,12 +18,14 @@
18
18
  "id": "analyze-current-auth",
19
19
  "title": "Analyze current authentication setup",
20
20
  "prompt": "Examine the existing authentication implementation if any. Look for: user model structure, existing auth middleware, login endpoints. Document what you find.",
21
+ "agentRole": "You are a security-focused systems analyst with expertise in authentication architecture. Your role is to thoroughly assess existing auth implementations, identify security vulnerabilities, and document current patterns to ensure new implementations align with security best practices.",
21
22
  "requireConfirmation": true
22
23
  },
23
24
  {
24
25
  "id": "create-auth-middleware",
25
26
  "title": "Create authentication middleware",
26
27
  "prompt": "Create a middleware function that extracts and validates JWT tokens from the Authorization header. Return 401 for invalid tokens.",
28
+ "agentRole": "You are a senior backend engineer specializing in secure middleware development. Focus on implementing robust token validation, proper error handling, and following security best practices for JWT token processing. Ensure your implementation is production-ready and follows the principle of least privilege.",
27
29
  "askForFiles": true,
28
30
  "validationCriteria": [
29
31
  {
@@ -48,6 +50,7 @@
48
50
  "id": "implement-login",
49
51
  "title": "Implement login endpoint",
50
52
  "prompt": "Create a POST /auth/login endpoint that accepts email and password, validates credentials against the database, and returns a JWT token on success.",
53
+ "agentRole": "You are an API development specialist with deep expertise in authentication endpoints and security. Your implementation should include proper input validation, secure password handling, rate limiting considerations, and comprehensive error responses that don't leak sensitive information.",
51
54
  "validationCriteria": [
52
55
  {
53
56
  "type": "contains",
@@ -80,6 +83,7 @@
80
83
  "id": "test-authentication",
81
84
  "title": "Test the authentication flow",
82
85
  "prompt": "Test the complete flow: 1) Login with valid credentials, 2) Use the token to access a protected route, 3) Verify invalid tokens are rejected",
86
+ "agentRole": "You are a quality assurance engineer specializing in security testing and authentication flows. Your testing approach should be comprehensive, covering positive and negative test cases, edge cases, and potential security vulnerabilities. Focus on creating maintainable, automated tests that verify both functionality and security.",
83
87
  "requireConfirmation": true,
84
88
  "validationCriteria": [
85
89
  {
@@ -113,6 +117,8 @@
113
117
  "Always hash passwords using bcrypt or similar",
114
118
  "Include proper error messages for debugging",
115
119
  "Follow RESTful conventions for endpoints",
116
- "Add rate limiting to prevent brute force attacks"
120
+ "Add rate limiting to prevent brute force attacks",
121
+ "Each step leverages specialized agent expertise through agentRole field",
122
+ "Agent roles provide behavioral guidance separate from user-facing prompts"
117
123
  ]
118
124
  }
@@ -235,6 +235,8 @@ Gets the next step guidance based on workflow state.
235
235
  "id": "string",
236
236
  "title": "string",
237
237
  "prompt": "string",
238
+ "agentRole": "string",
239
+ "guidance": ["string"],
238
240
  "askForFiles": boolean,
239
241
  "requireConfirmation": boolean,
240
242
  "runCondition": object
@@ -253,6 +255,13 @@ Gets the next step guidance based on workflow state.
253
255
  #### Field Descriptions
254
256
 
255
257
  - `step`: The next step to execute (null if workflow is complete)
258
+ - `id`: Unique step identifier
259
+ - `title`: Human-readable step name
260
+ - `prompt`: User-facing instructions for the step
261
+ - `agentRole`: Optional AI agent behavioral guidance (10-1024 characters)
262
+ - `guidance`: Optional array of guidance strings
263
+ - `askForFiles`: Whether to request file context
264
+ - `requireConfirmation`: Whether user confirmation is needed
256
265
  - `runCondition`: Optional condition object that determines if this step should execute
257
266
  - `guidance`: Additional orchestration guidance
258
267
  - `prompt`: Enhanced prompt with context
@@ -75,6 +75,12 @@
75
75
  "minLength": 1,
76
76
  "maxLength": 2048
77
77
  },
78
+ "agentRole": {
79
+ "type": "string",
80
+ "description": "Optional behavioral instructions for AI agents defining how they should approach and execute this step. This content is not shown to users.",
81
+ "minLength": 10,
82
+ "maxLength": 1024
83
+ },
78
84
  "guidance": {
79
85
  "type": "array",
80
86
  "description": "Optional array of strings providing tactical advice for this step.",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "adaptive-ticket-creation",
3
3
  "name": "Adaptive Ticket Creation Workflow",
4
- "version": "0.0.1",
4
+ "version": "0.1.0",
5
5
  "description": "An intelligent workflow for creating high-quality Jira tickets. Uses LLM-driven path selection to automatically choose between Simple, Standard, or Epic complexity paths based on request analysis.",
6
6
  "preconditions": [
7
7
  "User has provided a clear objective for the ticket(s) to be created",
@@ -21,6 +21,7 @@
21
21
  "id": "phase-0-intelligent-triage",
22
22
  "title": "Phase 0: Intelligent Triage & Path Selection",
23
23
  "prompt": "**PREP**: Analyze the user's request to determine the appropriate complexity path.\n\n**IMPLEMENT**: Evaluate the request for complexity indicators:\n- **Simple Path**: Single ticket, clear requirements, minimal dependencies, straightforward implementation\n- **Standard Path**: Multiple related tickets, moderate complexity, some analysis needed, clear scope\n- **Epic Path**: Complex feature requiring decomposition, extensive planning, multiple teams/dependencies\n\n**VERIFY**: Document your path selection reasoning and set the pathComplexity context variable. Load any existing rules from `./.workflow_rules/ticket_creation.md` to follow team preferences.",
24
+ "agentRole": "You are an expert Product Manager and Mobile Tech Lead with extensive experience in feature scoping and project complexity assessment. Your role is to quickly and accurately classify requests based on scope, dependencies, and team impact while considering business priorities and technical constraints.",
24
25
  "guidance": [
25
26
  "Look for complexity indicators: scope size, unknowns, dependencies, team impact",
26
27
  "Make the decision autonomously based on the request analysis",
@@ -36,6 +37,7 @@
36
37
  "equals": "Simple"
37
38
  },
38
39
  "prompt": "**PREP**: Since this is a simple request, focus on creating a single high-quality ticket.\n\n**IMPLEMENT**: Generate a complete ticket with:\n- Clear, descriptive title following team conventions\n- Detailed description with sufficient context\n- Specific, testable acceptance criteria\n- Appropriate labels, priority, and story points\n- Any relevant links or attachments\n\n**VERIFY**: Review the ticket for completeness and clarity. This completes the Simple path workflow.",
40
+ "agentRole": "You are a skilled Product Manager focused on creating clear, actionable tickets for development teams. Your expertise lies in writing comprehensive ticket descriptions that provide developers with all necessary context while maintaining clarity and brevity.",
39
41
  "validationCriteria": [
40
42
  {
41
43
  "type": "regex",
@@ -81,6 +83,7 @@
81
83
  ]
82
84
  },
83
85
  "prompt": "**PREP**: Gather comprehensive context for this complex project.\n\n**IMPLEMENT**: Collect and analyze all available project materials:\n- Load existing rules from `./.workflow_rules/ticket_creation.md`\n- Review provided PRDs, technical specs, and design documents\n- Understand team conventions and Jira formatting preferences\n- Identify key stakeholders and dependencies\n- Note any constraints or special requirements\n\n**VERIFY**: Confirm you have sufficient context to proceed with analysis. Document any missing information that would be critical for planning.",
86
+ "agentRole": "You are a thorough business analyst specializing in requirements gathering and stakeholder management. Your expertise lies in comprehensively understanding project context, identifying information gaps, and ensuring all necessary documentation is available before proceeding with detailed planning.",
84
87
  "guidance": [
85
88
  "Thorough context gathering is critical for complex projects",
86
89
  "Don't proceed without sufficient information",
@@ -99,6 +102,7 @@
99
102
  ]
100
103
  },
101
104
  "prompt": "**PREP**: Analyze all provided context to identify ambiguities, risks, and missing information.\n\n**IMPLEMENT**: Create a structured analysis:\n- Identify unclear requirements or acceptance criteria\n- Highlight potential technical risks or blockers\n- Note missing information that could impact planning\n- Flag any conflicting requirements or constraints\n- Assess feasibility and effort implications\n\n**VERIFY**: Present findings as prioritized questions or clarifications needed. Only proceed when critical ambiguities are resolved.",
105
+ "agentRole": "You are a risk assessment specialist and requirements analyst with expertise in identifying project risks, ambiguities, and potential blockers. Your role is to proactively surface issues that could derail project success while ensuring all requirements are clearly understood.",
102
106
  "guidance": [
103
107
  "This is a critical risk reduction step",
104
108
  "Better to ask questions now than discover issues later",
@@ -116,6 +120,7 @@
116
120
  ]
117
121
  },
118
122
  "prompt": "**PREP**: With clarified requirements, create a comprehensive high-level plan.\n\n**IMPLEMENT**: Generate a structured plan document:\n- **Project Summary**: Clear overview of the feature/project\n- **Key Deliverables**: Main components or features to be built\n- **In-Scope**: Explicitly defined scope boundaries\n- **Out-of-Scope**: Clear exclusions to prevent scope creep\n- **Success Criteria**: Measurable definition of done\n- **High-Level Timeline**: Major milestones and phases\n\n**VERIFY**: Ensure the plan is comprehensive and aligns with the original request. This plan will guide ticket creation.",
123
+ "agentRole": "You are a strategic Product Manager and project planner with expertise in feature decomposition and scope management. Your strength lies in creating comprehensive project plans that balance business objectives with technical feasibility while preventing scope creep.",
119
124
  "validationCriteria": [
120
125
  {
121
126
  "type": "regex",
@@ -168,6 +173,7 @@
168
173
  "equals": "Epic"
169
174
  },
170
175
  "prompt": "**PREP**: Decompose the approved high-level plan into a logical hierarchy.\n\n**IMPLEMENT**: Create a structured breakdown:\n- **Epic**: Main feature/project container\n- **Features/Stories**: Logical groupings of related functionality\n- **Tasks**: Specific implementation work items\n- **Dependencies**: Clear relationships between items\n- **Rationale**: Explain the decomposition logic and groupings\n\n**VERIFY**: Ensure the hierarchy is logical, dependencies are clear, and nothing is missed from the original plan.",
176
+ "agentRole": "You are a technical Product Manager specializing in epic decomposition and story mapping. Your expertise lies in breaking down complex features into logical, manageable work items while maintaining clear dependencies and ensuring nothing falls through the cracks.",
171
177
  "guidance": [
172
178
  "Epic path only - creates the story hierarchy",
173
179
  "Focus on logical groupings that make sense for development",
@@ -183,6 +189,7 @@
183
189
  "equals": "Epic"
184
190
  },
185
191
  "prompt": "**PREP**: Add effort estimates and dependency mapping to the decomposed stories.\n\n**IMPLEMENT**: For each story, provide:\n- **Effort Estimate**: S/M/L/XL sizing with detailed justification\n- **Dependencies**: Prerequisites and blockers\n- **Risk Assessment**: Technical or business risks\n- **Priority Ranking**: Relative importance and sequencing\n- **Team Assignment**: Suggested team or skill requirements\n\n**VERIFY**: Review estimates for consistency and identify any oversized stories that need further breakdown.",
192
+ "agentRole": "You are a technical project manager with expertise in agile estimation and dependency management. Your strength lies in accurately sizing work items, identifying critical path dependencies, and ensuring realistic project planning that accounts for team capacity and technical constraints.",
186
193
  "guidance": [
187
194
  "Epic path only - adds planning details",
188
195
  "Conservative estimates are better than optimistic ones",
@@ -200,6 +207,7 @@
200
207
  ]
201
208
  },
202
209
  "prompt": "**PREP**: Generate all necessary Jira tickets based on the approved plan.\n\n**IMPLEMENT**: Create comprehensive tickets for every story/task:\n- **Epic Ticket**: Overall project container (Epic path only)\n- **Feature/Story Tickets**: Individual work items with full details\n- **Consistent Formatting**: Follow team conventions and templates\n- **Complete Information**: Title, description, acceptance criteria, labels, estimates\n- **Proper Linking**: Dependencies and epic relationships\n\n**VERIFY**: Review all tickets for completeness, consistency, and accuracy. Present the full batch for approval.",
210
+ "agentRole": "You are an experienced Product Manager specializing in high-volume ticket creation and project organization. Your expertise lies in creating comprehensive, well-structured tickets that provide development teams with clear, actionable work items while maintaining consistency across large projects.",
203
211
  "validationCriteria": [
204
212
  {
205
213
  "type": "regex",
@@ -237,6 +245,7 @@
237
245
  "equals": "Epic"
238
246
  },
239
247
  "prompt": "**PREP**: Capture lessons learned and improve future ticket creation.\n\n**IMPLEMENT**: Based on feedback from the ticket review:\n- **Identify Patterns**: What worked well vs. what could be improved\n- **Extract Rules**: Formulate specific operational guidelines\n- **Document Preferences**: Team-specific conventions and requirements\n- **Update Rules File**: Append new rules to `./.workflow_rules/ticket_creation.md`\n- **Validate Learning**: Confirm the new rules make sense for future projects\n\n**VERIFY**: Ensure the persistent rules will improve future ticket creation quality and consistency.",
248
+ "agentRole": "You are a process improvement specialist and organizational learning expert. Your role is to extract actionable insights from project experiences and codify them into reusable guidelines that improve team efficiency and consistency over time.",
240
249
  "guidance": [
241
250
  "Epic path only - creates persistent learning",
242
251
  "Focus on actionable, specific rules",
@@ -248,10 +257,8 @@
248
257
  "metaGuidance": [
249
258
  "Maintain the persona of an expert Product Manager and Mobile Tech Lead",
250
259
  "Make autonomous decisions based on context analysis rather than asking users to choose",
251
- "If crucial information is missing, pause and request it with clear justification",
252
- "Accumulate and maintain context throughout the workflow",
253
- "Focus on creating high-quality, actionable tickets",
254
- "Use team conventions and persistent rules to ensure consistency",
255
- "Prioritize thoroughness for complex projects, efficiency for simple ones"
260
+ "Always load and follow team-specific rules from ./.workflow_rules/ticket_creation.md when available",
261
+ "Focus on creating tickets that provide clear value to development teams",
262
+ "Ensure all tickets have measurable acceptance criteria and appropriate estimates"
256
263
  ]
257
264
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "coding-task-workflow",
3
3
  "name": "Excellent Adaptive Coding Workflow with Devil's Advocate Review",
4
- "version": "0.0.1",
4
+ "version": "0.1.0",
5
5
  "description": "A comprehensive and resilient workflow for AI-assisted coding. It adaptively sizes tasks, performs a critical self-review of its own plans, provides efficiency options, enforces closed-loop validation, and defines a robust protocol for handling failures.",
6
6
  "preconditions": [
7
7
  "User has a clear task description (e.g., from Jira, a dev doc, or a BRD).",
@@ -20,6 +20,7 @@
20
20
  "id": "phase-0-intelligent-triage",
21
21
  "title": "Phase 0: Intelligent Task Triage & Complexity Analysis",
22
22
  "prompt": "**ANALYZE**: Evaluate the provided task for complexity indicators:\n\n**Small Path Indicators:**\n- Single function changes or minor refactoring\n- Clear bug fixes with obvious solutions\n- Simple configuration changes\n- Low risk of side effects\n- Well-defined, narrow scope\n\n**Medium Path Indicators:**\n- Multi-file changes or moderate features\n- Standard development work\n- Some unknowns but manageable scope\n- Moderate complexity with clear boundaries\n- Requires planning but not architectural analysis\n\n**Large Path Indicators:**\n- Architectural changes or major features\n- Unfamiliar codebase areas\n- High complexity or significant risk\n- Multiple system interactions\n- Requires deep analysis and careful planning\n\n**IMPLEMENT**: \n1. Analyze the task description for the above indicators\n2. Recommend a complexity level (Small/Medium/Large) with detailed reasoning\n3. Set the taskComplexity context variable\n4. Ask user if they agree or want to override your classification\n5. For Medium tasks, ask: \"Would you like optional deep codebase analysis?\" (sets requestDeepAnalysis context variable)\n\n**VERIFY**: Confirm the complexity classification and any optional analysis preferences before proceeding.",
23
+ "agentRole": "You are a technical assessment specialist with expertise in evaluating software development complexity. Your role is to accurately classify tasks based on technical risk, scope, and architectural impact. Be thorough in your analysis while remaining decisive and clear in your recommendations.",
23
24
  "guidance": [
24
25
  "Be thorough in your analysis - this determines the entire workflow path",
25
26
  "Consider both technical complexity and business risk",
@@ -34,6 +35,7 @@
34
35
  "runCondition": {"var": "taskComplexity", "not_equals": "Small"},
35
36
  "title": "Phase 1: Task Briefing & Scope Definition",
36
37
  "prompt": "Your first goal is to understand the task. Analyze the following request, summarize your understanding, ask clarifying questions, and assess which parts of the codebase are relevant.\n\n**Task Description:**\n[User inserts detailed task description here]\n\n**Key Objectives & Success Criteria:**\n[User lists specific, measurable success criteria here]\n\n**Scope and Constraints:**\n[User defines boundaries or areas to avoid here]\n\nFinally, based on your analysis, perform a sanity check on the initial complexity sizing. If you believe the classification is incorrect, state your reasoning and ask for confirmation before proceeding. For example: 'You classified this as Medium, but my analysis shows it impacts several core architectural components. I recommend we upgrade to the Large path to perform a Deep Analysis. Do you agree?'",
38
+ "agentRole": "You are a senior business analyst and technical lead specializing in requirement gathering and scope definition. Focus on clarity, completeness, and identifying potential scope creep or missing requirements early in the process.",
37
39
  "guidance": [
38
40
  "Provide a complete task description. Vague requests will lead to poor plans and wasted effort.",
39
41
  "This step is automatically skipped for Small tasks based on the complexity classification"
@@ -44,6 +46,7 @@
44
46
  "runCondition": {"var": "taskComplexity", "equals": "Large"},
45
47
  "title": "Phase 1b: Mandatory Deep Codebase Analysis",
46
48
  "prompt": "Your goal is to become an expert on the attached codebase. This deep analysis is mandatory for Large tasks due to their complexity and risk. Your analysis must include:\n1. **Architecture:** Main modules, layers, and patterns.\n2. **Key Concepts:** Core models, conventions, and important components.\n3. **Execution Flow:** Trace major features or entry points.\n4. **Code Quality Assessment:** Note maintainability, readability, or coupling issues.\n5. **Testing Strategy:** Describe how the code is tested.\n6. **Opportunities:** Suggest refactorings or improvements.\n\nProvide summaries and code examples to illustrate your findings. Be exhaustive, as if preparing onboarding documentation for a senior engineer.",
49
+ "agentRole": "You are an expert codebase analyst with 10+ years of experience in software architecture and legacy system analysis. Your specialty is quickly understanding complex codebases and identifying architectural patterns, risks, and opportunities. Approach this with the thoroughness of a senior engineer conducting a technical due diligence review.",
47
50
  "askForFiles": true,
48
51
  "guidance": [
49
52
  "This step is mandatory for Large tasks due to their complexity and risk",
@@ -61,6 +64,7 @@
61
64
  },
62
65
  "title": "Phase 1b: Optional Deep Codebase Analysis",
63
66
  "prompt": "You requested optional deep analysis for this Medium task. Your goal is to become an expert on the attached codebase. Your analysis must include:\n1. **Architecture:** Main modules, layers, and patterns.\n2. **Key Concepts:** Core models, conventions, and important components.\n3. **Execution Flow:** Trace major features or entry points.\n4. **Code Quality Assessment:** Note maintainability, readability, or coupling issues.\n5. **Testing Strategy:** Describe how the code is tested.\n6. **Opportunities:** Suggest refactorings or improvements.\n\nProvide summaries and code examples to illustrate your findings. Be exhaustive, as if preparing onboarding documentation for a senior engineer.",
67
+ "agentRole": "You are a focused codebase analyst specializing in targeted technical analysis for medium-complexity projects. Your approach balances thoroughness with efficiency, focusing on areas most relevant to the current task while maintaining architectural awareness.",
64
68
  "askForFiles": true,
65
69
  "guidance": [
66
70
  "This optional analysis was requested for a Medium task",
@@ -73,6 +77,7 @@
73
77
  "runCondition": {"var": "taskComplexity", "not_equals": "Small"},
74
78
  "title": "Phase 2: Create Detailed Implementation Plan",
75
79
  "prompt": "Your goal is to produce a thorough and actionable plan of attack. Do not write any code. Your plan must be detailed, broken into committable phases, and justified.\n\nYour plan must include these sections:\n1. **Goal Clarification:** Your understanding of the goal, assumptions, and success criteria.\n2. **Impact Assessment:** Affected codebase parts, dependencies, and risks.\n3. **Implementation Strategy:** A list of discrete, actionable steps. Each step must detail the task, its rationale, inputs, and outputs.\n4. **Final Review Checklist:** A specific checklist of items that must be verified to consider this entire task complete. This will be used in the final review phase.\n\nPresent this as a formal proposal.",
80
+ "agentRole": "You are an experienced technical architect and project planner with expertise in breaking down complex development tasks into manageable, logical phases. Your strength is creating detailed, actionable plans that minimize risk while maximizing development efficiency and code quality.",
76
81
  "guidance": [
77
82
  "The agent will now proceed to critique its own plan in the next step. Withhold your final approval until after that critique.",
78
83
  "This step is automatically skipped for Small tasks based on the complexity classification"
@@ -82,7 +87,8 @@
82
87
  "id": "phase-2b-devil-advocate-review",
83
88
  "runCondition": {"var": "taskComplexity", "not_equals": "Small"},
84
89
  "title": "Phase 2b: Devil's Advocate Plan Review",
85
- "prompt": "Your new goal is to act as a skeptical but fair senior principal engineer. Your task is to perform a 'devil's advocate' review of the implementation plan you just created in Phase 2. The objective is not to discard the plan, but to rigorously stress-test it and make it stronger. Your critique must be balanced and evidence-based.\n\nAnalyze the plan through the following lenses. For every point you make (positive or negative), you must cite specific evidence from the plan, the codebase, or the initial task description.\n\n1. **Hidden Assumptions:** What assumptions does this plan make about the codebase, user behavior, or existing data that might be incorrect?\n2. **Potential Risks & Unintended Side Effects:** What is the biggest risk of this plan? Could it impact performance, security, or another feature in a negative way?\n3. **Overlooked Complexities or Edge Cases:** What specific edge cases (e.g., empty states, invalid inputs, race conditions) does the plan fail to explicitly address?\n4. **Alternative Approaches:** Briefly propose at least one alternative technical approach. What are the pros and cons of the alternative versus the current plan?\n5. **Plan Strengths:** To ensure a balanced review, explicitly state the strongest parts of the plan. What aspects are well-thought-out and likely to succeed?\n\nConclude with a balanced summary. If you found issues, provide concrete suggestions for how to amend the plan. Finally, give a confidence score (1-10) for the plan *if* your suggestions are implemented.",
90
+ "prompt": "Your task is to perform a 'devil's advocate' review of the implementation plan you just created in Phase 2. The objective is not to discard the plan, but to rigorously stress-test it and make it stronger. Your critique must be balanced and evidence-based.\n\nAnalyze the plan through the following lenses. For every point you make (positive or negative), you must cite specific evidence from the plan, the codebase, or the initial task description.\n\n1. **Hidden Assumptions:** What assumptions does this plan make about the codebase, user behavior, or existing data that might be incorrect?\n2. **Potential Risks & Unintended Side Effects:** What is the biggest risk of this plan? Could it impact performance, security, or another feature in a negative way?\n3. **Overlooked Complexities or Edge Cases:** What specific edge cases (e.g., empty states, invalid inputs, race conditions) does the plan fail to explicitly address?\n4. **Alternative Approaches:** Briefly propose at least one alternative technical approach. What are the pros and cons of the alternative versus the current plan?\n5. **Plan Strengths:** To ensure a balanced review, explicitly state the strongest parts of the plan. What aspects are well-thought-out and likely to succeed?\n\nConclude with a balanced summary. If you found issues, provide concrete suggestions for how to amend the plan. Finally, give a confidence score (1-10) for the plan *if* your suggestions are implemented.",
91
+ "agentRole": "You are a skeptical but fair senior principal engineer with 15+ years of experience in critical system development. Your new goal is to act as a skeptical but fair senior principal engineer. Your role is to identify potential failure points, hidden assumptions, and overlooked complexities in technical plans. You excel at constructive criticism that strengthens plans rather than destroys them. Approach this with the rigor of a senior engineer reviewing a mission-critical system design.",
86
92
  "guidance": [
87
93
  "This is a critical thinking step. The agent's goal is to find weaknesses in its *own* prior work to improve it. This is a sign of a high-functioning process.",
88
94
  "Evaluate the agent's points. Not all 'risks' it identifies may be realistic. Use your judgment to decide which suggestions to incorporate into the plan.",
@@ -95,6 +101,7 @@
95
101
  "id": "phase-3-iterative-implementation",
96
102
  "title": "Phase 3: Iterative Implementation (PREP -> IMPLEMENT -> VERIFY)",
97
103
  "prompt": "The implementation phase has now begun. **Please provide me with the next single step from the approved plan.** If we are on the 'Small' path, provide a single, clear implementation instruction.\n\nI will execute *only* that step using the PREP -> IMPLEMENT -> VERIFY cycle defined in the guidance below, and then await your command for the subsequent step. This process will repeat until all steps are complete.",
104
+ "agentRole": "You are a meticulous senior software engineer focused on high-quality implementation. Your approach emphasizes careful preparation, precise execution, and thorough verification. You excel at following plans while adapting to unexpected discoveries during implementation.",
98
105
  "guidance": [
99
106
  "**Efficiency Tip:** For high-confidence plans, you may provide multiple step instructions at once. I will execute them sequentially, performing the P->I->V cycle for each, and will only pause to ask for input if I encounter a verification failure or ambiguity.",
100
107
  "**PREP:** Before implementing each step, you must first PREPARE. Re-read the step's description, confirm the previous step was completed correctly, verify the plan for this step is still valid in the current codebase, and list all required inputs or files. Do not proceed if anything is unclear.",
@@ -106,6 +113,7 @@
106
113
  "id": "phase-4-final-review",
107
114
  "title": "Phase 4: Final Review & Completion",
108
115
  "prompt": "All planned steps have been implemented and verified. Your final goal is to perform a holistic review by validating the work against the **'Final Review Checklist'** created and approved during Phase 2.\n\nFor each item on that checklist, provide a confirmation and evidence that it has been met. Conclude with a summary of any potential follow-ups or new dependencies to note.",
116
+ "agentRole": "You are a quality assurance specialist and technical lead responsible for final project validation. Your expertise lies in comprehensive system testing, requirement verification, and ensuring deliverables meet all specified criteria. Approach this with the thoroughness of a senior engineer conducting a final release review.",
109
117
  "guidance": [
110
118
  "This is the final quality check. Ensure the agent's summary and checklist validation align with your understanding of the completed work."
111
119
  ],
@@ -0,0 +1,83 @@
1
+ {
2
+ "id": "example-agent-role-workflow",
3
+ "name": "Example Agent Role Workflow",
4
+ "description": "Demonstrates agentRole functionality with a practical code review workflow",
5
+ "version": "1.0.0",
6
+ "preconditions": [
7
+ "Code changes are ready for review",
8
+ "All tests are passing"
9
+ ],
10
+ "clarificationPrompts": [
11
+ "What type of code review is needed? (security, performance, style, functionality)",
12
+ "Are there specific areas of concern?"
13
+ ],
14
+ "steps": [
15
+ {
16
+ "id": "initial-analysis",
17
+ "title": "Initial Code Analysis",
18
+ "prompt": "Please provide the code you'd like reviewed. Include any specific areas of concern or the type of review needed.",
19
+ "agentRole": "You are an expert code reviewer with 10+ years of experience. Focus on identifying potential issues, security vulnerabilities, and opportunities for improvement. Be thorough but constructive in your feedback.",
20
+ "guidance": [
21
+ "Ask for the code to be reviewed",
22
+ "Clarify the type of review needed",
23
+ "Note any specific concerns mentioned"
24
+ ],
25
+ "askForFiles": true,
26
+ "requireConfirmation": false
27
+ },
28
+ {
29
+ "id": "security-review",
30
+ "title": "Security Analysis",
31
+ "prompt": "Based on the code provided, perform a comprehensive security review.",
32
+ "agentRole": "You are a cybersecurity expert specializing in code security. Look for common vulnerabilities like SQL injection, XSS, authentication bypasses, data exposure, and insecure dependencies. Provide specific remediation steps for any issues found.",
33
+ "guidance": [
34
+ "Check for common security vulnerabilities",
35
+ "Review authentication and authorization logic",
36
+ "Examine data handling and validation",
37
+ "Look for potential injection attacks"
38
+ ]
39
+ },
40
+ {
41
+ "id": "performance-review",
42
+ "title": "Performance Analysis",
43
+ "prompt": "Analyze the code for performance issues and optimization opportunities.",
44
+ "agentRole": "You are a performance optimization specialist. Focus on algorithmic complexity, memory usage, database queries, caching opportunities, and scalability concerns. Suggest specific optimizations with measurable impact.",
45
+ "guidance": [
46
+ "Analyze algorithmic complexity",
47
+ "Review database query efficiency",
48
+ "Check for memory leaks or excessive allocations",
49
+ "Identify caching opportunities"
50
+ ]
51
+ },
52
+ {
53
+ "id": "code-quality-review",
54
+ "title": "Code Quality & Style Review",
55
+ "prompt": "Review the code for quality, maintainability, and adherence to best practices.",
56
+ "agentRole": "You are a senior software architect focused on code quality and maintainability. Evaluate code structure, naming conventions, documentation, error handling, and adherence to SOLID principles. Suggest improvements that enhance readability and maintainability.",
57
+ "guidance": [
58
+ "Check naming conventions and clarity",
59
+ "Review code structure and organization",
60
+ "Evaluate error handling patterns",
61
+ "Assess documentation quality"
62
+ ]
63
+ },
64
+ {
65
+ "id": "final-recommendations",
66
+ "title": "Final Recommendations",
67
+ "prompt": "Provide a summary of findings and prioritized recommendations for improvement.",
68
+ "agentRole": "You are a technical lead providing final recommendations. Synthesize all previous findings into actionable priorities. Categorize issues by severity (critical, high, medium, low) and provide a clear action plan with estimated effort for each recommendation.",
69
+ "guidance": [
70
+ "Summarize all findings from previous steps",
71
+ "Prioritize issues by severity and impact",
72
+ "Provide clear action items",
73
+ "Estimate effort for each recommendation"
74
+ ],
75
+ "requireConfirmation": true
76
+ }
77
+ ],
78
+ "metaGuidance": [
79
+ "This workflow demonstrates how agentRole separates behavioral instructions from user-facing prompts",
80
+ "Each step has specific agent expertise while maintaining clear user communication",
81
+ "The agentRole field guides the AI's approach without cluttering the user interface"
82
+ ]
83
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "mr-review-workflow",
3
3
  "name": "Adaptive MR Review Workflow",
4
- "version": "0.0.1",
4
+ "version": "0.1.0",
5
5
  "description": "An adaptive workflow to guide an AI agent in performing a comprehensive code review. It adjusts its rigor based on MR complexity and includes checkpoints for architectural and self-critique to provide deep, actionable feedback.",
6
6
  "preconditions": [
7
7
  "User has the full code diff accessible (e.g., as text in a file).",
@@ -20,6 +20,7 @@
20
20
  "id": "phase-0-triage",
21
21
  "title": "Phase 0: Triage & Review Focus",
22
22
  "prompt": "To begin the Merge Request review, please provide the full context below and classify the MR's complexity. This will tailor the depth of the review.\n\n**1. MR Context:**\n* **MR Title/Purpose:** [User provides the title and a brief description of its purpose.]\n* **Related Ticket(s):** [User provides ticket numbers or links.]\n* **Key Requirements/Acceptance Criteria:** [User lists key requirements from the ticket(s).]\n\n**2. Code Diff:**\n[User pastes the full `git diff` output or provides a path to a file containing the diff.]\n\n**3. Complexity Classification & Focus:**\n* **Classification:** Please choose one: **[Trivial]**, **[Standard]**, or **[High-Risk]**.\n* **Areas of Focus (Optional):** Are there specific areas you want me to pay close attention to? (e.g., 'performance implications', 'API design', 'data integrity').",
23
+ "agentRole": "You are a code review coordinator and triage specialist with expertise in assessing merge request complexity and risk. Your role is to efficiently classify reviews and establish appropriate focus areas to ensure the right level of scrutiny for each change.",
23
24
  "guidance": [
24
25
  "**[Trivial]:** For minor fixes (typos, docs). This will run a condensed, single-phase review.",
25
26
  "**[Standard]:** For typical features or bug fixes. This uses the full, multi-phase review process.",
@@ -30,6 +31,7 @@
30
31
  "id": "phase-1-context",
31
32
  "title": "Phase 1: Contextual Understanding & Confirmation",
32
33
  "prompt": "My goal is to ensure I fully understand the MR before the deep analysis. Based on the context you provided, I will perform the following tasks:\n\n1. **Summarize Goal:** Briefly summarize what I understand to be the primary goal and scope of this MR.\n2. **File Overview:** List all changed files (added, modified, deleted) and provide a one-sentence summary of the changes for each.\n3. **Initial Questions:** Formulate any immediate questions I have about the MR's purpose or requirements.\n4. **Confirmation Gate:** Does my summary accurately reflect the MR's goal? Please confirm before I proceed.",
34
+ "agentRole": "You are a thorough code review analyst specializing in requirement comprehension and change impact assessment. Your strength is quickly understanding the intent and scope of code changes while identifying potential gaps in understanding early in the review process.",
33
35
  "guidance": [
34
36
  "This is a critical sanity check. If the agent's summary is incorrect, correct it now to prevent a flawed review. This step is skipped for 'Trivial' reviews."
35
37
  ],
@@ -39,6 +41,7 @@
39
41
  "id": "phase-2-detailed-analysis",
40
42
  "title": "Phase 2: In-Depth Line-by-Line Analysis",
41
43
  "prompt": "My goal is to perform a detailed, line-by-line analysis of the code diff, guided by the checklist below and focusing on any specific areas you requested. I will provide specific examples and line numbers for my findings.\n\n**Detailed Analysis Checklist:**\n1. **Functionality & Correctness:** Does the code implement the requirements? Are there logical flaws or unhandled edge cases?\n2. **Readability & Maintainability:** How is the clarity, naming, and complexity? Are comments sufficient and accurate?\n3. **Design & Architecture:** Does the code align with existing patterns? Does it introduce risky dependencies or side effects?\n4. **Best Practices & Conventions:** Does the code follow language-specific best practices and avoid anti-patterns?\n5. **Error Handling:** Is error handling robust and appropriate?\n6. **Performance:** Are there any obvious performance bottlenecks?\n7. **Code Duplication:** Is there significant duplicated code?\n8. **Security:** Are there any potential security vulnerabilities introduced (e.g., injection, improper handling of sensitive data)?\n9. **Debug Statements:** Are there leftover debugging statements (`print`, `console.log`)?",
44
+ "agentRole": "You are a meticulous senior engineer specializing in detailed code quality analysis. Your expertise lies in systematically examining code for correctness, maintainability, security, and performance issues. You excel at providing specific, actionable feedback with clear examples and line references.",
42
45
  "guidance": [
43
46
  "The agent will now perform the most time-consuming part of the review. The thoroughness of this checklist helps catch a wide variety of issues."
44
47
  ]
@@ -47,6 +50,7 @@
47
50
  "id": "phase-2b-holistic-review",
48
51
  "title": "Phase 2b: Holistic Architectural Review",
49
52
  "prompt": "Now, I will step back from the line-by-line details to assess the bigger picture.\n\nMy goal is to answer the following high-level questions:\n1. **Simplicity & Approach:** Is this the simplest and most effective approach to solving the problem? Could the same outcome have been achieved more cleanly or with less new code?\n2. **Precedent:** Does this change set a good or bad precedent for future development in this codebase?\n3. **Strategic Alignment:** Does this change feel aligned with the overall architecture, or does it feel like a temporary 'hack' or a one-off solution?",
53
+ "agentRole": "You are a principal software architect with expertise in system design and long-term codebase evolution. Your role is to evaluate changes from a strategic perspective, considering architectural alignment, precedent setting, and the broader impact on system maintainability and scalability.",
50
54
  "guidance": [
51
55
  "This step prevents 'checklist tunnel vision' and encourages the agent to provide strategic, architectural feedback, which is often the most valuable."
52
56
  ]
@@ -55,6 +59,7 @@
55
59
  "id": "phase-3-impact-analysis",
56
60
  "title": "Phase 3: Testing, Documentation & Impact Analysis",
57
61
  "prompt": "My goal is to assess the secondary impacts of this change.\n\n1. **Testing:** Based on the code changes, what tests would be expected (unit, integration, etc.)? Are new tests included? Are existing tests updated? Are there obvious gaps in test coverage for the new logic?\n2. **Documentation:** Is new or complex logic adequately commented? Could any external documentation (e.g., READMEs) be affected by this change?\n3. **Breaking Changes:** Are there any changes that could break backward compatibility for APIs or other parts of the codebase?",
62
+ "agentRole": "You are a software quality engineer specializing in testing strategy and impact analysis. Your expertise includes identifying testing gaps, documentation requirements, and potential breaking changes that could affect system stability or user experience.",
58
63
  "guidance": [
59
64
  "Assessing test coverage is critical. A lack of tests for new logic is often a 'Major' or 'Critical' concern."
60
65
  ]
@@ -63,6 +68,7 @@
63
68
  "id": "phase-4-summary",
64
69
  "title": "Phase 4: Final Summary & Structured Feedback",
65
70
  "prompt": "My goal is to consolidate all findings into a final, actionable report.\n\nFirst, I will perform a **Devil's Advocate Self-Critique:** I will briefly review my own findings. Are any of my 'Major' concerns actually minor preferences? Conversely, is there a pattern among my 'Minor' suggestions that points to a larger, unstated problem? I will state if this check changed my perspective.\n\nNext, I will provide the final report in this structure:\n1. **Overall MR Assessment:** A 2-3 sentence qualitative summary of the MR.\n2. **Key Positive Aspects:** 2-3 highlights of what was done well.\n3. **Main Areas of Concern (Categorized):**\n * **Critical (Blocking issues, potential bugs):**\n * **Major (Important design flaws, missing core tests):**\n * **Minor/Suggestions (Readability, best practices):**\n4. **Questions for the Author:** A list of specific, clarifying questions.\n5. **Actionable Recommendations:** Concrete suggestions for the most important issues.",
71
+ "agentRole": "You are an experienced code review facilitator and technical communicator specializing in synthesizing complex technical analysis into clear, actionable feedback. Your strength is balancing critical assessment with constructive guidance, ensuring feedback is both thorough and helpful to developers.",
66
72
  "guidance": [
67
73
  "The final, categorized summary is designed to be copied directly into a GitHub, GitLab, or other code review tool to provide clear and structured feedback to the MR author."
68
74
  ]
@@ -71,6 +77,7 @@
71
77
  "id": "phase-5-trivial-review-summary",
72
78
  "title": "Phase 5: Trivial Review Summary",
73
79
  "prompt": "Based on the trivial nature of this MR, I have performed a quick check for obvious errors. The change appears to correctly address the stated purpose without any clear side effects. I recommend approval.",
80
+ "agentRole": "You are an efficient code reviewer specializing in rapid assessment of low-risk changes. Your role is to quickly validate that trivial changes are safe and appropriate while avoiding over-analysis of simple modifications.",
74
81
  "guidance": [
75
82
  "This is the condensed summary for 'Trivial' reviews. The agent skips all other analytical steps and provides a simple confirmation for straightforward changes."
76
83
  ]
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "presentation-creation",
3
3
  "name": "Dynamic Presentation Creation Workflow",
4
- "version": "0.0.1",
4
+ "version": "0.1.0",
5
5
  "description": "A comprehensive workflow for creating dynamic, interesting, and insightful presentations. Guides users through audience analysis, content strategy, visual design, and delivery preparation to create compelling presentations that engage and inform.",
6
6
  "preconditions": [
7
7
  "User has a clear presentation topic or objective",
@@ -22,6 +22,7 @@
22
22
  "id": "audience-and-context-analysis",
23
23
  "title": "Audience & Context Analysis",
24
24
  "prompt": "**PREP**: Thoroughly analyze your audience and presentation context to ensure maximum impact.\n\n**IMPLEMENT**: Create a detailed audience profile:\n- **Audience Demographics**: Professional background, expertise level, role/seniority\n- **Audience Motivations**: What they want to learn, their pain points, success criteria\n- **Context Analysis**: Event type, setting, time constraints, follow-up expectations\n- **Engagement Preferences**: Interactive vs. presentation style, Q&A expectations\n- **Success Metrics**: How will you measure if the presentation achieved its goals?\n\n**VERIFY**: Confirm you have a clear understanding of who you're presenting to and what success looks like.",
25
+ "agentRole": "You are an audience research specialist and presentation strategist with expertise in understanding diverse professional audiences. Your strength lies in identifying audience needs, motivations, and preferences to ensure presentations resonate and achieve their intended impact.",
25
26
  "guidance": [
26
27
  "The better you understand your audience, the more you can tailor your message",
27
28
  "Consider both explicit and implicit audience needs",
@@ -50,6 +51,7 @@
50
51
  "id": "content-strategy-and-structure",
51
52
  "title": "Content Strategy & Structure Development",
52
53
  "prompt": "**PREP**: Develop a compelling content strategy that aligns with your audience analysis.\n\n**IMPLEMENT**: Create a structured content plan:\n- **Core Message**: One clear, memorable takeaway (elevator pitch version)\n- **Supporting Arguments**: 3-5 key points that reinforce your core message\n- **Narrative Arc**: How will you take the audience on a journey? (problem → solution → impact)\n- **Evidence Strategy**: Data, examples, stories, and visuals that support each point\n- **Engagement Hooks**: Surprising statistics, thought-provoking questions, interactive elements\n- **Call-to-Action**: What specific action do you want the audience to take?\n\n**VERIFY**: Ensure your content strategy creates a logical flow that serves your audience's needs while achieving your objectives.",
54
+ "agentRole": "You are a presentation design expert and storytelling specialist with extensive experience in crafting compelling content strategies. Your expertise lies in transforming complex information into engaging narratives that drive audience action and understanding.",
53
55
  "guidance": [
54
56
  "Start with your core message - everything else should support it",
55
57
  "Use the 'So What?' test for each section - why should the audience care?",
@@ -84,6 +86,7 @@
84
86
  "id": "slide-structure-and-flow",
85
87
  "title": "Slide Structure & Flow Design",
86
88
  "prompt": "**PREP**: Transform your content strategy into a detailed slide-by-slide structure.\n\n**IMPLEMENT**: Create a comprehensive slide outline:\n- **Opening Hook** (1-2 slides): Attention grabber, context setting, agenda preview\n- **Main Content Blocks** (8-15 slides): Each supporting argument with evidence and examples\n- **Transition Slides**: Smooth connections between major sections\n- **Interaction Points**: Polls, Q&A moments, discussion breaks\n- **Visual Hierarchy**: Which slides need charts, images, diagrams, or minimal text\n- **Pacing Strategy**: Balance of information density vs. breathing room\n- **Closing Impact** (2-3 slides): Summary, call-to-action, next steps\n\n**VERIFY**: Review the flow for logical progression, appropriate pacing, and engagement variety.",
89
+ "agentRole": "You are a presentation structure architect with expertise in information design and audience engagement flow. Your specialty is creating logical, well-paced slide sequences that maintain audience attention while effectively conveying complex information.",
87
90
  "guidance": [
88
91
  "Follow the 6x6 rule: max 6 bullet points with 6 words each",
89
92
  "Plan for one key idea per slide",
@@ -118,6 +121,7 @@
118
121
  "id": "visual-design-and-engagement",
119
122
  "title": "Visual Design & Engagement Elements",
120
123
  "prompt": "**PREP**: Design the visual and interactive elements that will make your presentation dynamic and memorable.\n\n**IMPLEMENT**: Plan comprehensive visual and engagement strategy:\n- **Visual Theme**: Color scheme, typography, consistent design language\n- **Data Visualization**: Chart types, infographic concepts, before/after comparisons\n- **Multimedia Elements**: Video clips, animations, interactive demos\n- **Storytelling Visuals**: Metaphors, analogies, journey maps\n- **Engagement Techniques**: Live polls, breakout discussions, hands-on activities\n- **Memory Aids**: Mnemonics, repeated visual themes, callback references\n- **Accessibility**: Readable fonts, color contrast, alternative text descriptions\n\n**VERIFY**: Ensure visual elements enhance rather than distract from your message, and engagement techniques fit naturally into your flow.",
124
+ "agentRole": "You are a UX/visual design consultant and engagement specialist with expertise in presentation design and audience interaction. Your strength lies in creating cohesive visual experiences that enhance message delivery while maintaining accessibility and professional standards.",
121
125
  "guidance": [
122
126
  "Visuals should simplify complex ideas, not complicate simple ones",
123
127
  "Use consistent visual language throughout the presentation",
@@ -147,6 +151,7 @@
147
151
  "id": "content-development-and-refinement",
148
152
  "title": "Content Development & Refinement",
149
153
  "prompt": "**PREP**: Develop the actual presentation content, focusing on clarity, impact, and memorability.\n\n**IMPLEMENT**: Create polished presentation content:\n- **Slide Content**: Write clear, concise text for each slide following your outline\n- **Speaker Notes**: Detailed talking points, transitions, and timing cues\n- **Stories and Examples**: Develop compelling narratives that illustrate your points\n- **Data Presentation**: Create clear, impactful visualizations of key statistics\n- **Interaction Scripts**: Prepare questions, poll options, and facilitation guidance\n- **Backup Content**: Extra slides for deep-dive questions or extended time\n- **Handout Materials**: Summary sheets, resource lists, contact information\n\n**VERIFY**: Review content for clarity, accuracy, and alignment with your core message. Test that examples resonate with your target audience.",
154
+ "agentRole": "You are a professional content developer and presentation writer with expertise in translating complex ideas into clear, engaging presentation content. Your strength lies in crafting compelling narratives, developing relevant examples, and creating speaker-friendly materials that ensure confident delivery.",
150
155
  "guidance": [
151
156
  "Write for the ear, not the eye - content should sound natural when spoken",
152
157
  "Use active voice and concrete language",
@@ -177,6 +182,7 @@
177
182
  "id": "practice-and-timing",
178
183
  "title": "Practice & Timing Optimization",
179
184
  "prompt": "**PREP**: Develop a practice strategy to ensure confident, well-timed delivery.\n\n**IMPLEMENT**: Create a comprehensive practice plan:\n- **Run-Through Schedule**: Multiple practice sessions with increasing realism\n- **Timing Benchmarks**: Target time for each section with buffer zones\n- **Difficult Transitions**: Extra practice on challenging sections or technical demonstrations\n- **Q&A Preparation**: Anticipated questions with prepared responses\n- **Contingency Planning**: Backup plans for technical issues, timing problems, or unexpected situations\n- **Feedback Integration**: Plan for getting feedback and making final adjustments\n- **Confidence Building**: Techniques for managing nerves and maintaining energy\n\n**VERIFY**: Ensure you have a realistic practice schedule that will prepare you for confident delivery.",
185
+ "agentRole": "You are a presentation coach and performance specialist with expertise in helping speakers develop confidence and delivery skills. Your focus is on practical preparation strategies that ensure speakers can deliver their content effectively under various conditions.",
180
186
  "guidance": [
181
187
  "Practice out loud - silent review is not enough",
182
188
  "Time each section and the overall presentation",
@@ -206,6 +212,7 @@
206
212
  "id": "delivery-preparation-and-logistics",
207
213
  "title": "Delivery Preparation & Logistics",
208
214
  "prompt": "**PREP**: Finalize all logistical and technical aspects for smooth presentation delivery.\n\n**IMPLEMENT**: Complete pre-delivery checklist:\n- **Technical Setup**: Test all equipment, backup plans, file compatibility\n- **Materials Preparation**: Printed notes, handouts, business cards, feedback forms\n- **Venue Familiarization**: Room layout, microphone, lighting, seating arrangement\n- **Personal Preparation**: Wardrobe, arrival time, pre-presentation routine\n- **Follow-up Planning**: How to share slides, continue conversations, measure impact\n- **Emergency Protocols**: Contact information, backup equipment, alternative delivery methods\n- **Final Review**: Last-minute content updates, current examples, pronunciation check\n\n**VERIFY**: Confirm all logistical elements are in place and you have contingency plans for potential issues.",
215
+ "agentRole": "You are an event logistics coordinator and presentation delivery specialist with expertise in ensuring flawless presentation execution. Your focus is on comprehensive preparation that anticipates and mitigates potential issues while ensuring professional delivery standards.",
209
216
  "guidance": [
210
217
  "Arrive early to test technology and get comfortable with the space",
211
218
  "Have multiple backup options for critical technical components",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "workflow-for-workflows",
3
3
  "name": "Progressive Workflow Creation Guide",
4
- "version": "0.0.2",
4
+ "version": "0.1.0",
5
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
6
  "clarificationPrompts": [
7
7
  "What's your experience level with workflow creation? (New to this / Some experience / Very experienced)",
@@ -29,24 +29,36 @@
29
29
  ],
30
30
  "steps": [
31
31
  {
32
- "id": "phase-1-assessment",
33
- "title": "Phase 1: Personalized Learning Path Assessment",
34
- "prompt": "Welcome! This workflow will guide you through creating a high-quality workflow template with a personalized approach based on your experience level.\n\n**STEP 1: Choose Your Learning Path**\n\nPlease select your experience level with workflow creation:\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**STEP 2: Set Learning Path Context**\n\nAgent: Based on the user's selection, set the `learningPath` context variable to 'basic', 'intermediate', or 'advanced'.\n\n**STEP 3: Discovery & Ideation (Path-Adaptive)**\n\nNow let's define your workflow requirements:\n\n- State your initial hypothesis for the problem this workflow should solve\n- Specify the workflow type (coding, analysis, content creation, process management, etc.)\n- Describe your intended audience and any specific constraints\n\nAgent: Adapt your guidance depth based on the selected learning path. Use `workflow_list` and `workflow_get` to find suitable templates. Provide path-appropriate explanations of template selection strategies.",
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.",
35
36
  "guidance": [
36
- "ADAPTIVE GUIDANCE: Tailor your explanation depth to the selected learning path. Basic users need detailed explanations, Advanced users need concise expert context.",
37
- "QUALITY FOCUS: All paths should result in high-quality workflows. The difference is in teaching approach, not final capability.",
38
- "PATH EXPLANATION: Clearly explain what each learning path offers so users can make an informed choice.",
39
- "TEMPLATE STRATEGY: Focus on structural similarity rather than domain similarity when recommending templates.",
40
- "PROGRESSIVE TEACHING: Even in basic path, introduce advanced features when the use case demands them - just with more explanation."
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
41
  ],
42
42
  "askForFiles": true,
43
43
  "requireConfirmation": true
44
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
+ },
45
56
  {
46
57
  "id": "phase-2-basic",
47
58
  "runCondition": {"var": "learningPath", "equals": "basic"},
48
59
  "title": "Phase 2: Guided Workflow Creation (Basic Path)",
49
- "prompt": "Let's create your workflow step-by-step with detailed explanations! 🌱\n\n**UNDERSTANDING WORKFLOWS:**\nA workflow is like a recipe that guides someone (or an AI) through a complex task. It has:\n- **Metadata**: Name, description, and settings\n- **Steps**: The actual instructions to follow\n- **Features**: Special capabilities like conditional logic\n\n**STEP 1: Create Your Workflow File**\nAgent: Ask the user for a filename (e.g., `my-workflow.json`) and create the file using the template from Phase 1. Explain each field as you add it.\n\n**STEP 2: Build the Structure Together**\nWe'll go through each part of your workflow:\n\n1. **Basic Info** (`id`, `name`, `version`, `description`)\n - Agent: Explain why each field matters and help craft clear, descriptive content\n\n2. **Setup Requirements** (`preconditions`)\n - Agent: Explain what preconditions are and why they prevent problems\n\n3. **Global Rules** (`metaGuidance`)\n - Agent: Explain the difference between global rules and step-specific instructions\n\n4. **The Action Steps** (`steps`)\n - Agent: Start with simple linear steps, but explain that workflows can also have:\n - **Conditional steps**: \"Do this IF condition is true\"\n - **Context variables**: Information that flows between steps\n - **Validation**: Automatic quality checks\n - If the user's workflow needs these features, introduce them with clear examples\n\n**LEARNING FOCUS:** Understanding what each piece does and why it's useful.",
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.",
50
62
  "guidance": [
51
63
  "EXPLAIN EVERYTHING: This user is learning. Explain the purpose of each JSON field and workflow concept.",
52
64
  "PROGRESSIVE FEATURES: Start with basics, introduce advanced features (conditional steps, context variables) when the use case needs them - with full explanations.",
@@ -81,7 +93,8 @@
81
93
  "id": "phase-2-intermediate",
82
94
  "runCondition": {"var": "learningPath", "equals": "intermediate"},
83
95
  "title": "Phase 2: Structured Workflow Development (Intermediate Path)",
84
- "prompt": "Let's build your workflow with a structured approach and best practices! 🚀\n\n**STEP 1: Initialize Workflow File**\nAgent: Request a filename and create the workflow file using the template from Phase 1. Use efficient, clear explanations.\n\n**STEP 2: Core Structure Development**\nWe'll build your workflow systematically:\n\n1. **Metadata & Identity** (`id`, `name`, `version`, `description`)\n - Focus on discoverability and clear communication\n - Best practice: Make names searchable and descriptions actionable\n\n2. **Operational Requirements** (`preconditions`, `metaGuidance`)\n - Define what's needed before starting\n - Establish global rules for consistency\n\n3. **Enhanced Features** (based on your workflow type):\n - **Clarification Prompts**: Gather better input upfront\n - **Validation Criteria**: Automatic quality checks\n - **Context Variables**: When you need information to flow between steps\n - **Conditional Logic**: For workflows with decision points\n\n4. **Step Architecture**\n - Design clear, actionable steps\n - Add confirmation gates for critical actions\n - Include file sharing when collaboration is needed\n\n**FEATURE RECOMMENDATIONS:**\nAgent: Based on the workflow type, recommend specific features. For example:\n- Coding workflows validation criteria + confirmation gates\n- Analysis workflows → context variables + clarification prompts\n- Process workflows conditional steps + clear guidance\n\n**EFFICIENCY FOCUS:** Building professionally structured workflows with appropriate features.",
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.",
85
98
  "guidance": [
86
99
  "STRUCTURED APPROACH: Follow a logical sequence with clear reasoning for each decision.",
87
100
  "FEATURE RECOMMENDATIONS: Suggest appropriate features based on workflow type and use case.",
@@ -116,7 +129,8 @@
116
129
  "id": "phase-2-advanced",
117
130
  "runCondition": {"var": "learningPath", "equals": "advanced"},
118
131
  "title": "Phase 2: Comprehensive Workflow Architecture (Advanced Path)",
119
- "prompt": "Let's architect a sophisticated workflow with full feature utilization! 🏆\n\n**STEP 1: Rapid File Initialization**\nAgent: Create the workflow file with the template foundation. Focus on architectural decisions.\n\n**STEP 2: Architectural Design**\nComprehensive workflow engineering:\n\n1. **Core Architecture** (`id`, `name`, `version`, `description`)\n - Semantic versioning strategy\n - Namespace considerations for organizational use\n - Description as API documentation\n\n2. **Operational Design** (`preconditions`, `metaGuidance`, `contextVariables`)\n - Comprehensive precondition modeling\n - Sophisticated metaGuidance for complex scenarios\n - Context variable architecture for data flow\n\n3. **Advanced Feature Implementation**:\n - **Complex Conditional Logic**: Nested conditions, multiple variable evaluation\n - **Validation Architecture**: Multi-layered validation with custom criteria\n - **User Experience Design**: Clarification prompts, confirmation patterns, file sharing\n - **Performance Considerations**: Step efficiency, resource optimization\n\n4. **Enterprise-Grade Features**:\n - **Error Handling**: Comprehensive failure modes\n - **Scalability**: Design for reuse and extension\n - **Maintainability**: Clear separation of concerns\n - **Integration**: API-ready for workflow orchestration systems\n\n**ARCHITECTURAL DECISIONS:**\nAgent: Discuss trade-offs and design patterns. Consider:\n- When to use conditional vs. separate workflows\n- Context variable scope and lifecycle\n- Validation strategy (fail-fast vs. comprehensive)\n- Step granularity for optimal user experience\n\n**MASTERY FOCUS:** Creating enterprise-grade workflows with sophisticated architecture.",
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.",
120
134
  "guidance": [
121
135
  "ARCHITECTURAL THINKING: Focus on design patterns, scalability, and maintainability.",
122
136
  "FULL FEATURE ACCESS: Leverage the complete feature set appropriately for the use case.",
@@ -151,7 +165,8 @@
151
165
  "id": "phase-3-basic",
152
166
  "runCondition": {"var": "learningPath", "equals": "basic"},
153
167
  "title": "Phase 3: Learning Through Validation (Basic Path)",
154
- "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:\n- **Syntax**: Is the JSON format correct?\n- **Structure**: Are all required fields present?\n- **Logic**: Do the conditions and references make sense?\n\n**STEP 1: Run Your First Validation**\nAgent: Use `workflow_validate_json` to check the workflow. Explain what the tool is doing and why each check matters.\n\n**STEP 2: Learning from Errors (Don't worry - errors are normal!)**\nAgent: If there are errors (and there usually are!):\n1. **Explain each error type** in simple terms\n2. **Show exactly where** the problem is\n3. **Explain why** it's a problem\n4. **Guide the fix** step-by-step\n5. **Rerun validation** to see progress\n\n**COMMON ERROR TYPES YOU MIGHT SEE:**\n- **Missing quotes**: JSON needs quotes around text\n- **Missing commas**: JSON items need separators\n- **Invalid references**: Steps referencing things that don't exist\n- **Logic errors**: Conditions that don't make sense\n\n**LEARNING GOAL:** Understanding what makes a workflow valid and why each rule exists.\n\nRemember: Every error is a learning opportunity! Professional developers deal with validation errors all the time.",
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.",
155
170
  "guidance": [
156
171
  "EDUCATIONAL APPROACH: Treat each error as a teaching moment. Explain what went wrong and why the rule exists.",
157
172
  "STEP-BY-STEP FIXES: Guide through each fix individually, don't overwhelm with multiple changes.",
@@ -165,7 +180,8 @@
165
180
  "id": "phase-3-intermediate",
166
181
  "runCondition": {"var": "learningPath", "equals": "intermediate"},
167
182
  "title": "Phase 3: Systematic Validation & Quality Assurance (Intermediate Path)",
168
- "prompt": "Time to validate and refine your workflow with systematic quality checks! 🚀\n\n**VALIDATION STRATEGY:**\nWe'll use a layered approach to ensure your workflow is both technically correct and professionally robust.\n\n**STEP 1: Comprehensive Validation**\nAgent: Execute `workflow_validate_json` for complete structural and logical validation.\n\n**STEP 2: Error Pattern Analysis**\nAgent: When issues are found:\n1. **Categorize errors** by type (syntax, logic, reference, etc.)\n2. **Identify patterns** that might indicate systemic issues\n3. **Prioritize fixes** (critical syntax errors first, then logic improvements)\n4. **Apply fixes systematically** using `edit_file`\n5. **Re-validate incrementally** to confirm progress\n\n**QUALITY CHECKPOINTS:**\n- **Structural Integrity**: All required fields, proper JSON formatting\n- **Logical Consistency**: Step references, condition logic, context variables\n- **Best Practice Compliance**: Naming conventions, description quality\n- **Feature Integration**: Proper use of advanced features\n\n**PROFESSIONAL PATTERNS:**\n- Group related fixes together for efficiency\n- Document any trade-offs or design decisions\n- Test edge cases in conditional logic\n- Ensure error messages are actionable\n\n**EFFICIENCY FOCUS:** Systematic error resolution with pattern recognition for faster iteration.",
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.",
169
185
  "guidance": [
170
186
  "SYSTEMATIC APPROACH: Handle errors methodically, grouping similar issues for efficient resolution.",
171
187
  "PATTERN RECOGNITION: Help user identify common error patterns and prevention strategies.",
@@ -179,7 +195,8 @@
179
195
  "id": "phase-3-advanced",
180
196
  "runCondition": {"var": "learningPath", "equals": "advanced"},
181
197
  "title": "Phase 3: Advanced Validation & Architectural Review (Advanced Path)",
182
- "prompt": "Execute comprehensive validation with performance and architectural considerations! 🏆\n\n**ENTERPRISE VALIDATION APPROACH:**\nMulti-layered validation encompassing syntax, logic, performance, and architectural integrity.\n\n**STEP 1: Comprehensive Technical Validation**\nAgent: Deploy `workflow_validate_json` for complete validation coverage.\n\n**STEP 2: Advanced Error Analysis & Resolution**\nAgent: For any issues identified:\n1. **Root Cause Analysis**: Trace errors to architectural decisions\n2. **Impact Assessment**: Evaluate consequences for scalability and maintainability\n3. **Strategic Resolution**: Fix underlying patterns, not just symptoms\n4. **Performance Optimization**: Consider validation implications for execution efficiency\n5. **Architectural Refinement**: Ensure fixes align with overall design principles\n\n**ENTERPRISE QUALITY GATES:**\n- **Architectural Consistency**: Design patterns, separation of concerns\n- **Performance Implications**: Validation overhead, execution efficiency\n- **Scalability Considerations**: Context variable scope, conditional complexity\n- **Maintainability Factors**: Code clarity, documentation completeness\n- **Integration Readiness**: API compatibility, orchestration system compliance\n\n**ADVANCED VALIDATION CONSIDERATIONS:**\n- **Complex Conditional Logic**: Nested condition validation, variable scope\n- **Context Variable Architecture**: Data flow integrity, lifecycle management\n- **Performance Optimization**: Validation caching, step efficiency\n- **Error Handling Strategy**: Graceful failure modes, recovery patterns\n\n**ARCHITECTURAL REFINEMENT:**\nUse validation feedback to refine architectural decisions and optimize for enterprise deployment.\n\n**MASTERY INDICATORS:** Zero validation errors, optimized performance, enterprise-ready architecture.",
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.",
183
200
  "guidance": [
184
201
  "ARCHITECTURAL PERSPECTIVE: View validation through the lens of overall system design and long-term maintainability.",
185
202
  "PERFORMANCE AWARENESS: Consider validation overhead and execution efficiency implications.",
@@ -193,7 +210,8 @@
193
210
  "id": "phase-4-basic",
194
211
  "runCondition": {"var": "learningPath", "equals": "basic"},
195
212
  "title": "Phase 4: Simple Testing & Improvement (Basic Path)",
196
- "prompt": "Excellent! Your workflow is technically sound. Now let's make sure it's clear and easy to use! 🌱\n\n**WHY TEST WORKFLOWS?**\nTesting helps us find problems before real users do. It's like having friends read your writing before you publish it!\n\n**STEP 1: Choose What to Test**\nUser: Pick one important step from your workflow - maybe the most complex one or the one users will struggle with most.\n\n**STEP 2: Simple Persona Testing**\nAgent: Let's test your chosen step by imagining different types of users:\n\n**👶 The Beginner User:**\n- Would someone new to this topic understand the instructions?\n- Are there any technical words that need explanation?\n- Are the steps clear and specific enough?\n\n**⚡ The Busy User:**\n- Could someone in a hurry misunderstand this?\n- Is it too long or wordy?\n- Could we make it clearer or more direct?\n\n**STEP 3: Make It Better**\nAgent: Based on what we find:\n1. **Explain each problem** in simple terms\n2. **Suggest specific improvements**\n3. **Make the changes** using `edit_file`\n4. **Check our work** with `workflow_validate`\n\n**LEARNING GOAL:** Understanding how to make instructions clear for everyone.\n\nRemember: Good workflows work for both experts and beginners!",
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.",
197
215
  "guidance": [
198
216
  "SIMPLE APPROACH: Focus on clarity and basic usability rather than complex edge cases.",
199
217
  "EDUCATIONAL FOCUS: Explain why each test matters and what good instructions look like.",
@@ -206,7 +224,8 @@
206
224
  "id": "phase-4-intermediate",
207
225
  "runCondition": {"var": "learningPath", "equals": "intermediate"},
208
226
  "title": "Phase 4: Systematic Testing & Quality Refinement (Intermediate Path)",
209
- "prompt": "Your workflow is validated and ready for comprehensive testing! Let's ensure it's robust and professional. 🚀\n\n**PROFESSIONAL TESTING STRATEGY:**\nSystematic evaluation across multiple user scenarios and edge cases.\n\n**STEP 1: Critical Step Selection**\nUser: Identify 1-2 critical steps that are either complex, have high impact, or involve user decision-making.\n\n**STEP 2: Multi-Persona Analysis**\nAgent: Evaluate selected steps through strategic perspectives:\n\n**🎓 Domain Expert Perspective:**\n- Does the step leverage domain knowledge appropriately?\n- Are there implied assumptions that should be explicit?\n- Could an expert efficiently navigate without losing important context?\n\n**⚡ Efficiency-Focused User:**\n- Can the step be completed quickly without sacrificing quality?\n- Are there unnecessary bottlenecks or redundant confirmations?\n- Is the cognitive load appropriate for the task complexity?\n\n**🔍 Quality-Conscious User:**\n- Does the step provide sufficient guidance for high-quality outcomes?\n- Are validation points appropriate and actionable?\n- Does the step prevent common mistakes effectively?\n\n**STEP 3: Strategic Refinements**\nAgent: Based on analysis:\n1. **Prioritize improvements** by impact and feasibility\n2. **Implement targeted enhancements** using `edit_file`\n3. **Validate consistency** with `workflow_validate`\n4. **Document rationale** for key design decisions\n\n**PROFESSIONAL FOCUS:** Balancing efficiency, quality, and usability for real-world deployment.",
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.",
210
229
  "guidance": [
211
230
  "STRATEGIC THINKING: Focus on improvements that have the highest impact on workflow effectiveness.",
212
231
  "PROFESSIONAL STANDARDS: Apply industry best practices for user experience and process design.",
@@ -219,7 +238,8 @@
219
238
  "id": "phase-4-advanced",
220
239
  "runCondition": {"var": "learningPath", "equals": "advanced"},
221
240
  "title": "Phase 4: Enterprise Testing & Architectural Refinement (Advanced Path)",
222
- "prompt": "Execute sophisticated testing with enterprise-grade analysis and optimization! 🏆\n\n**ENTERPRISE TESTING FRAMEWORK:**\nComprehensive evaluation encompassing usability, performance, scalability, and architectural integrity.\n\n**STEP 1: Strategic Component Selection**\nUser: Identify critical workflow components for analysis - focus on high-complexity steps, decision points, or integration touchpoints.\n\n**STEP 2: Advanced Multi-Dimensional Analysis**\nAgent: Execute comprehensive evaluation framework:\n\n**🏗️ Architectural Perspective:**\n- Evaluate step design patterns and consistency\n- Assess scalability implications and resource efficiency\n- Analyze integration points and API compatibility\n- Review error handling and recovery mechanisms\n\n**⚡ Performance & Efficiency Analysis:**\n- Identify potential execution bottlenecks\n- Evaluate context variable usage and lifecycle\n- Assess conditional logic complexity and optimization opportunities\n- Review validation overhead and optimization potential\n\n**🎯 Enterprise User Experience:**\n- Analyze workflows for enterprise deployment scenarios\n- Evaluate multi-user collaboration patterns\n- Assess compliance and audit trail requirements\n- Review customization and configuration flexibility\n\n**🔧 Maintenance & Evolution Considerations:**\n- Evaluate long-term maintainability and extensibility\n- Assess version management and backward compatibility\n- Review documentation and knowledge transfer requirements\n- Analyze monitoring and observability integration\n\n**STEP 3: Strategic Architectural Refinement**\nAgent: Based on comprehensive analysis:\n1. **Architect strategic improvements** addressing systemic opportunities\n2. **Optimize for enterprise deployment** with sophisticated enhancements\n3. **Validate architectural integrity** using `workflow_validate`\n4. **Document architectural decisions** and optimization rationale\n\n**MASTERY OUTCOME:** Enterprise-ready workflow optimized for scalability, maintainability, and sophisticated deployment scenarios.",
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.",
223
243
  "guidance": [
224
244
  "ARCHITECTURAL EXCELLENCE: Focus on sophisticated design patterns and enterprise-grade considerations.",
225
245
  "PERFORMANCE OPTIMIZATION: Identify and address efficiency opportunities across all dimensions.",