@exaudeus/workrail 0.0.7 → 0.0.9

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.7",
3
+ "version": "0.0.9",
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
  ],