@exaudeus/workrail 0.0.2 → 0.0.4

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.
Files changed (31) hide show
  1. package/README.md +30 -0
  2. package/dist/cli.js +140 -23
  3. package/dist/cli.js.map +1 -1
  4. package/dist/infrastructure/storage/multi-directory-workflow-storage.d.ts +50 -0
  5. package/dist/infrastructure/storage/multi-directory-workflow-storage.d.ts.map +1 -0
  6. package/dist/infrastructure/storage/multi-directory-workflow-storage.js +209 -0
  7. package/dist/infrastructure/storage/multi-directory-workflow-storage.js.map +1 -0
  8. package/dist/infrastructure/storage/storage.d.ts +7 -2
  9. package/dist/infrastructure/storage/storage.d.ts.map +1 -1
  10. package/dist/infrastructure/storage/storage.js +15 -2
  11. package/dist/infrastructure/storage/storage.js.map +1 -1
  12. package/dist/utils/config.d.ts +11 -2
  13. package/dist/utils/config.d.ts.map +1 -1
  14. package/dist/utils/config.js +6 -3
  15. package/dist/utils/config.js.map +1 -1
  16. package/package.json +4 -2
  17. package/spec/examples/adaptive-ticket-creation.json +170 -0
  18. package/spec/examples/ai-task-prompt-workflow.json +80 -0
  19. package/spec/examples/coding-task-workflow.json +141 -0
  20. package/spec/examples/conditional-workflow-example.json +216 -0
  21. package/spec/examples/invalid-workflow.json +20 -0
  22. package/spec/examples/valid-workflow.json +118 -0
  23. package/spec/mcp-api-v1.0.md +714 -0
  24. package/spec/mcp-compliance-summary.md +211 -0
  25. package/spec/mcp-protocol-handshake.md +603 -0
  26. package/spec/workflow.schema.json +327 -0
  27. package/workflows/adaptive-ticket-creation.json +257 -0
  28. package/workflows/coding-task-workflow.json +115 -0
  29. package/workflows/mr-review-workflow.json +79 -0
  30. package/workflows/presentation-creation.json +245 -0
  31. package/workflows/workflow-for-workflows.json +74 -0
@@ -6,8 +6,11 @@ declare const configSchema: z.ZodObject<{
6
6
  HOST: z.ZodDefault<z.ZodString>;
7
7
  MCP_SERVER_HOST: z.ZodDefault<z.ZodString>;
8
8
  MCP_SERVER_PORT: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
9
- WORKFLOW_STORAGE_PATH: z.ZodDefault<z.ZodString>;
9
+ WORKFLOW_STORAGE_PATH: z.ZodOptional<z.ZodString>;
10
10
  WORKFLOW_STORAGE_TYPE: z.ZodDefault<z.ZodEnum<["file", "database"]>>;
11
+ WORKFLOW_INCLUDE_BUNDLED: z.ZodDefault<z.ZodEffects<z.ZodString, boolean, string>>;
12
+ WORKFLOW_INCLUDE_USER: z.ZodDefault<z.ZodEffects<z.ZodString, boolean, string>>;
13
+ WORKFLOW_INCLUDE_PROJECT: z.ZodDefault<z.ZodEffects<z.ZodString, boolean, string>>;
11
14
  JWT_SECRET: z.ZodDefault<z.ZodString>;
12
15
  MCP_API_KEY: z.ZodOptional<z.ZodString>;
13
16
  MAX_INPUT_SIZE: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
@@ -36,7 +39,6 @@ declare const configSchema: z.ZodObject<{
36
39
  MCP_DEBUG: z.ZodDefault<z.ZodEffects<z.ZodString, boolean, string>>;
37
40
  MCP_TIMEOUT: z.ZodDefault<z.ZodPipeline<z.ZodEffects<z.ZodString, number, string>, z.ZodNumber>>;
38
41
  }, "strip", z.ZodTypeAny, {
39
- WORKFLOW_STORAGE_PATH: string;
40
42
  CACHE_TTL: number;
41
43
  NODE_ENV: "test" | "development" | "production";
42
44
  PORT: number;
@@ -44,6 +46,9 @@ declare const configSchema: z.ZodObject<{
44
46
  MCP_SERVER_HOST: string;
45
47
  MCP_SERVER_PORT: number;
46
48
  WORKFLOW_STORAGE_TYPE: "file" | "database";
49
+ WORKFLOW_INCLUDE_BUNDLED: boolean;
50
+ WORKFLOW_INCLUDE_USER: boolean;
51
+ WORKFLOW_INCLUDE_PROJECT: boolean;
47
52
  JWT_SECRET: string;
48
53
  MAX_INPUT_SIZE: number;
49
54
  RATE_LIMIT_WINDOW: number;
@@ -67,6 +72,7 @@ declare const configSchema: z.ZodObject<{
67
72
  MCP_PROTOCOL_VERSION: string;
68
73
  MCP_DEBUG: boolean;
69
74
  MCP_TIMEOUT: number;
75
+ WORKFLOW_STORAGE_PATH?: string | undefined;
70
76
  MCP_API_KEY?: string | undefined;
71
77
  DATABASE_URL?: string | undefined;
72
78
  REDIS_URL?: string | undefined;
@@ -79,6 +85,9 @@ declare const configSchema: z.ZodObject<{
79
85
  MCP_SERVER_HOST?: string | undefined;
80
86
  MCP_SERVER_PORT?: string | undefined;
81
87
  WORKFLOW_STORAGE_TYPE?: "file" | "database" | undefined;
88
+ WORKFLOW_INCLUDE_BUNDLED?: string | undefined;
89
+ WORKFLOW_INCLUDE_USER?: string | undefined;
90
+ WORKFLOW_INCLUDE_PROJECT?: string | undefined;
82
91
  JWT_SECRET?: string | undefined;
83
92
  MCP_API_KEY?: string | undefined;
84
93
  MAX_INPUT_SIZE?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/utils/config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAMlD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0DhB,CAAC;AAMH,qBAAa,aAAa;IACxB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAgB;IACvC,OAAO,CAAC,MAAM,CAA+B;IAE7C,OAAO;WAIO,WAAW,IAAI,aAAa;IAO1C;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAqBzB;;OAEG;IACI,SAAS,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC;IAIhD;;OAEG;IACI,eAAe,IAAI,YAAY;IA2Bt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C;IAgC9C;;OAEG;IACI,MAAM,IAAI,IAAI;CAGtB;AAMD,eAAO,MAAM,MAAM,eAA8B,CAAC;AAElD;;GAEG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAE/G;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAazD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI;IAAE,KAAK,EAAE,OAAO,CAAC;IAAC,MAAM,EAAE,MAAM,EAAE,CAAA;CAAE,CA0B5E;AAED;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,IAAI,CAIzC"}
@@ -20,8 +20,11 @@ const configSchema = zod_1.z.object({
20
20
  MCP_SERVER_HOST: zod_1.z.string().default('localhost'),
21
21
  MCP_SERVER_PORT: zod_1.z.string().transform(Number).pipe(zod_1.z.number().min(1).max(65535)).default('3000'),
22
22
  // Workflow storage
23
- WORKFLOW_STORAGE_PATH: zod_1.z.string().default('./workflows'),
23
+ WORKFLOW_STORAGE_PATH: zod_1.z.string().optional(),
24
24
  WORKFLOW_STORAGE_TYPE: zod_1.z.enum(['file', 'database']).default('file'),
25
+ WORKFLOW_INCLUDE_BUNDLED: zod_1.z.string().transform(val => val !== 'false').default('true'),
26
+ WORKFLOW_INCLUDE_USER: zod_1.z.string().transform(val => val !== 'false').default('true'),
27
+ WORKFLOW_INCLUDE_PROJECT: zod_1.z.string().transform(val => val !== 'false').default('true'),
25
28
  // Security settings
26
29
  JWT_SECRET: zod_1.z.string().min(32, 'JWT secret must be at least 32 characters').default('your-super-secret-jwt-key-change-this-in-production'),
27
30
  MCP_API_KEY: zod_1.z.string().optional(),
@@ -113,7 +116,7 @@ class Configuration {
113
116
  logLevel: this.config.LOG_LEVEL,
114
117
  workflowStorage: {
115
118
  type: this.config.WORKFLOW_STORAGE_TYPE,
116
- path: this.config.WORKFLOW_STORAGE_PATH,
119
+ path: this.config.WORKFLOW_STORAGE_PATH || './workflows',
117
120
  },
118
121
  security: {
119
122
  jwtSecret: this.config.JWT_SECRET,
@@ -236,7 +239,7 @@ class Configuration {
236
239
  logLevel: this.config.LOG_LEVEL,
237
240
  workflowStorage: {
238
241
  type: this.config.WORKFLOW_STORAGE_TYPE,
239
- path: this.config.WORKFLOW_STORAGE_PATH,
242
+ path: this.config.WORKFLOW_STORAGE_PATH || './workflows',
240
243
  },
241
244
  security: {
242
245
  hasApiKey: !!this.config.MCP_API_KEY,
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/utils/config.ts"],"names":[],"mappings":";AAAA,kCAAkC;AAClC,8DAA8D;;;AAwT9D,8BAEC;AAKD,4CAaC;AAKD,sDA0BC;AAKD,gDAIC;AAlXD,6BAAwB;AAGxB,gFAAgF;AAChF,wBAAwB;AACxB,gFAAgF;AAEhF,MAAM,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5B,qBAAqB;IACrB,QAAQ,EAAE,OAAC,CAAC,IAAI,CAAC,CAAC,aAAa,EAAE,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IAC9E,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACrF,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC;IAEnC,2BAA2B;IAC3B,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC;IAChD,eAAe,EAAE,OAAC,CAAC,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cAAM,CAAC,YAAY,EAAE,EAAE,CAAC;QAC1B,IAAI,cAAM,CAAC,GAAG,CAAC,YAAY,CAAC,KAAK,qDAAqD,EAAE,CAAC;YACvF,MAAM,CAAC,IAAI,CAAC,0CAA0C,CAAC,CAAC;QAC1D,CAAC;QACD,IAAI,cAAM,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;YACxB,MAAM,CAAC,IAAI,CAAC,wCAAwC,CAAC,CAAC;QACxD,CAAC;IACH,CAAC;IAED,OAAO;QACL,KAAK,EAAE,MAAM,CAAC,MAAM,KAAK,CAAC;QAC1B,MAAM;KACP,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,SAAgB,kBAAkB;IAChC,MAAM,OAAO,GAAG,cAAM,CAAC,gBAAgB,EAAE,CAAC;IAC1C,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;IACtC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;AAChD,CAAC"}
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@exaudeus/workrail",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "MCP server for structured workflow orchestration and step-by-step task guidance",
5
5
  "license": "MIT",
6
6
  "bin": {
7
7
  "workrail": "dist/mcp-server.js"
8
8
  },
9
9
  "files": [
10
- "dist"
10
+ "dist",
11
+ "spec",
12
+ "workflows"
11
13
  ],
12
14
  "scripts": {
13
15
  "build": "tsc && shx chmod +x dist/*.js",
@@ -0,0 +1,170 @@
1
+ {
2
+ "id": "adaptive-ticket-creation",
3
+ "name": "Adaptive Ticket Creation Workflow",
4
+ "version": "0.0.1",
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
+ "preconditions": [
7
+ "User has provided a clear objective for the ticket(s) to be created",
8
+ "Agent has access to relevant context (PRDs, Figma links, etc.) if available",
9
+ "Agent has file system access for persistent feedback mechanism",
10
+ "Agent can maintain context variables throughout the workflow"
11
+ ],
12
+ "clarificationPrompts": [
13
+ "What is the main feature or task you want to implement?",
14
+ "Do you have any supporting documentation (PRDs, designs, specs)?",
15
+ "What are your team's Jira conventions or preferences?",
16
+ "Are there any specific constraints or requirements?",
17
+ "What is the expected timeline or priority level?"
18
+ ],
19
+ "steps": [
20
+ {
21
+ "id": "phase-0-intelligent-triage",
22
+ "title": "Phase 0: Intelligent Triage & Path Selection",
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
+ "guidance": [
25
+ "Look for complexity indicators: scope size, unknowns, dependencies, team impact",
26
+ "Make the decision autonomously based on the request analysis",
27
+ "Set context variables that will be used in subsequent conditional steps"
28
+ ],
29
+ "requireConfirmation": true
30
+ },
31
+ {
32
+ "id": "phase-a1-simple-ticket-gen",
33
+ "title": "Path A: Simple Ticket Generation",
34
+ "runCondition": {
35
+ "var": "pathComplexity",
36
+ "equals": "Simple"
37
+ },
38
+ "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.",
39
+ "guidance": [
40
+ "This is the complete fast track - workflow ends after this step",
41
+ "Focus on quality over quantity - one excellent ticket",
42
+ "Include all necessary context for the developer"
43
+ ],
44
+ "requireConfirmation": true
45
+ },
46
+ {
47
+ "id": "phase-c0-context-priming",
48
+ "title": "Path C, Phase 0: Comprehensive Context Gathering",
49
+ "runCondition": {
50
+ "or": [
51
+ {"var": "pathComplexity", "equals": "Standard"},
52
+ {"var": "pathComplexity", "equals": "Epic"}
53
+ ]
54
+ },
55
+ "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.",
56
+ "guidance": [
57
+ "Thorough context gathering is critical for complex projects",
58
+ "Don't proceed without sufficient information",
59
+ "Set context variables for team conventions and project details"
60
+ ],
61
+ "askForFiles": true,
62
+ "requireConfirmation": true
63
+ },
64
+ {
65
+ "id": "phase-c1-analysis-and-questions",
66
+ "title": "Path C, Phase 1: Analysis & Risk Identification",
67
+ "runCondition": {
68
+ "or": [
69
+ {"var": "pathComplexity", "equals": "Standard"},
70
+ {"var": "pathComplexity", "equals": "Epic"}
71
+ ]
72
+ },
73
+ "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.",
74
+ "guidance": [
75
+ "This is a critical risk reduction step",
76
+ "Better to ask questions now than discover issues later",
77
+ "Focus on blockers and high-impact unknowns"
78
+ ],
79
+ "requireConfirmation": true
80
+ },
81
+ {
82
+ "id": "phase-c2-high-level-plan",
83
+ "title": "Path C, Phase 2: Create High-Level Plan",
84
+ "runCondition": {
85
+ "or": [
86
+ {"var": "pathComplexity", "equals": "Standard"},
87
+ {"var": "pathComplexity", "equals": "Epic"}
88
+ ]
89
+ },
90
+ "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.",
91
+ "guidance": [
92
+ "This plan becomes the foundation for all ticket generation",
93
+ "Be explicit about scope to prevent misunderstandings",
94
+ "For Standard path, this leads directly to ticket generation"
95
+ ],
96
+ "requireConfirmation": true
97
+ },
98
+ {
99
+ "id": "phase-c3a-epic-decomposition",
100
+ "title": "Path C, Phase 3a: Epic Decomposition",
101
+ "runCondition": {
102
+ "var": "pathComplexity",
103
+ "equals": "Epic"
104
+ },
105
+ "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.",
106
+ "guidance": [
107
+ "Epic path only - creates the story hierarchy",
108
+ "Focus on logical groupings that make sense for development",
109
+ "Consider team capacity and parallel work opportunities"
110
+ ],
111
+ "requireConfirmation": true
112
+ },
113
+ {
114
+ "id": "phase-c3b-estimation-and-dependencies",
115
+ "title": "Path C, Phase 3b: Estimation & Dependency Mapping",
116
+ "runCondition": {
117
+ "var": "pathComplexity",
118
+ "equals": "Epic"
119
+ },
120
+ "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.",
121
+ "guidance": [
122
+ "Epic path only - adds planning details",
123
+ "Conservative estimates are better than optimistic ones",
124
+ "Identify critical path items and potential bottlenecks"
125
+ ],
126
+ "requireConfirmation": true
127
+ },
128
+ {
129
+ "id": "phase-c4-batch-ticket-generation",
130
+ "title": "Path C, Phase 4: Batch Ticket Generation",
131
+ "runCondition": {
132
+ "or": [
133
+ {"var": "pathComplexity", "equals": "Standard"},
134
+ {"var": "pathComplexity", "equals": "Epic"}
135
+ ]
136
+ },
137
+ "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.",
138
+ "guidance": [
139
+ "Automated batch generation saves significant time",
140
+ "Ensure consistency across all tickets",
141
+ "Include all necessary metadata and relationships"
142
+ ],
143
+ "requireConfirmation": true
144
+ },
145
+ {
146
+ "id": "phase-c5-continuous-improvement",
147
+ "title": "Path C, Phase 5: Continuous Improvement & Learning",
148
+ "runCondition": {
149
+ "var": "pathComplexity",
150
+ "equals": "Epic"
151
+ },
152
+ "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.",
153
+ "guidance": [
154
+ "Epic path only - creates persistent learning",
155
+ "Focus on actionable, specific rules",
156
+ "This makes the AI smarter over time"
157
+ ],
158
+ "requireConfirmation": true
159
+ }
160
+ ],
161
+ "metaGuidance": [
162
+ "Maintain the persona of an expert Product Manager and Mobile Tech Lead",
163
+ "Make autonomous decisions based on context analysis rather than asking users to choose",
164
+ "If crucial information is missing, pause and request it with clear justification",
165
+ "Accumulate and maintain context throughout the workflow",
166
+ "Focus on creating high-quality, actionable tickets",
167
+ "Use team conventions and persistent rules to ensure consistency",
168
+ "Prioritize thoroughness for complex projects, efficiency for simple ones"
169
+ ]
170
+ }
@@ -0,0 +1,80 @@
1
+ {
2
+ "id": "ai-task-prompt-workflow",
3
+ "name": "AI Task Prompt Workflow",
4
+ "description": "A structured sequence of prompts designed to guide AI coding agents through various development tasks with clarity, thoroughness, and better outcomes",
5
+ "preconditions": [
6
+ "Development environment is set up and accessible",
7
+ "Codebase files are available for analysis",
8
+ "Task requirements are clear and well-defined",
9
+ "AI agent has access to necessary tools and files"
10
+ ],
11
+ "clarificationPrompts": [
12
+ "What is the main goal or feature you want to implement?",
13
+ "Are there any specific constraints or requirements to consider?",
14
+ "Which parts of the codebase are most likely to be affected?",
15
+ "What is the expected timeline or priority for this task?",
16
+ "Are there any existing patterns or conventions to follow?"
17
+ ],
18
+ "steps": [
19
+ {
20
+ "id": "codebase-analysis",
21
+ "title": "Deep Codebase Analysis",
22
+ "prompt": "**PREP**: Understand the current codebase structure and architecture.\n\n**IMPLEMENT**: Perform a comprehensive analysis of the codebase to identify:\n- Main modules, layers, and architectural patterns\n- Core domain models and important classes\n- Conventions and design decisions used consistently\n- Testing strategy and code quality patterns\n\n**VERIFY**: Confirm understanding by summarizing the key findings and identifying potential areas for improvement.",
23
+ "askForFiles": true,
24
+ "requireConfirmation": true
25
+ },
26
+ {
27
+ "id": "task-briefing",
28
+ "title": "Task Briefing and Initial Scope",
29
+ "prompt": "**PREP**: Review the task description and requirements thoroughly.\n\n**IMPLEMENT**: Analyze the task and prepare to engage with the codebase by:\n- Summarizing the task in your own words\n- Identifying immediate questions or ambiguities\n- Assessing which parts of the codebase need investigation\n- Determining if deep codebase analysis is needed\n\n**VERIFY**: Confirm understanding and list any missing information that needs clarification.",
30
+ "requireConfirmation": true
31
+ },
32
+ {
33
+ "id": "pre-implementation-planning",
34
+ "title": "Pre-Implementation Planning",
35
+ "prompt": "**PREP**: Review the task requirements and codebase analysis to understand the scope.\n\n**IMPLEMENT**: Create a thorough, actionable plan of attack that includes:\n- Goal clarification and success criteria\n- Impact assessment of affected codebase parts\n- Implementation strategy with discrete, actionable steps\n- Risk identification and mitigation strategies\n- Testing and validation requirements\n\n**VERIFY**: Review the plan for completeness, feasibility, and alignment with best practices.",
36
+ "askForFiles": true,
37
+ "requireConfirmation": true
38
+ },
39
+ {
40
+ "id": "prepare-step-implementation",
41
+ "title": "Prepare for Step Implementation",
42
+ "prompt": "**PREP**: Review the approved implementation plan and current codebase state.\n\n**IMPLEMENT**: For the next step in the plan:\n- Confirm previous steps are completed and validated\n- Re-read the step description carefully\n- Identify required inputs, files, and definitions\n- Perform pre-implementation checks for validity\n\n**VERIFY**: Confirm readiness to proceed with the specific step implementation.",
43
+ "askForFiles": true,
44
+ "requireConfirmation": true
45
+ },
46
+ {
47
+ "id": "execute-planned-step",
48
+ "title": "Execute Planned Step",
49
+ "prompt": "**PREP**: Review the specific step requirements and current codebase state.\n\n**IMPLEMENT**: Execute only the specified step from the approved plan:\n- Focus on the specific task without deviation\n- Use available tools appropriately (edit_file, create_file, etc.)\n- Follow existing coding conventions and patterns\n- Record all changes made\n- Make minor adjustments within scope if needed\n\n**VERIFY**: Confirm step completion and prepare for post-implementation verification.",
50
+ "askForFiles": true,
51
+ "requireConfirmation": true
52
+ },
53
+ {
54
+ "id": "post-step-verification",
55
+ "title": "Post-Step Verification",
56
+ "prompt": "**PREP**: Review the completed step and implementation plan.\n\n**IMPLEMENT**: Perform comprehensive self-review of the completed step:\n- Verify file changes match the step description\n- Check plan alignment and completeness\n- Validate compilation and runtime safety\n- Assess test coverage and code quality\n- Review for side effects and safety\n- Ensure proper commit message and dependencies\n\n**VERIFY**: Confirm the step is complete, correct, and ready for the next phase.",
57
+ "askForFiles": true,
58
+ "requireConfirmation": true
59
+ },
60
+ {
61
+ "id": "final-review",
62
+ "title": "Final Review and Task Completion",
63
+ "prompt": "**PREP**: Review all completed steps and the original task requirements.\n\n**IMPLEMENT**: Perform holistic review of all changes:\n- Verify holistic cohesion of all implemented changes\n- Confirm all requirements and success criteria are met\n- Assess architectural integrity and consistency\n- Review code cleanliness and documentation\n- Evaluate testing coverage and potential follow-ups\n\n**VERIFY**: Provide concise summary of completed work and confirm task fulfillment.",
64
+ "askForFiles": true,
65
+ "requireConfirmation": true
66
+ }
67
+ ],
68
+ "metaGuidance": [
69
+ "Always follow the prep/implement/verify pattern for each step",
70
+ "Use appropriate models for different phases (reasoning vs tool-use)",
71
+ "Never make assumptions - ask for clarification when needed",
72
+ "Focus on one task at a time - avoid scope creep",
73
+ "Maintain code quality and follow existing conventions",
74
+ "Test thoroughly and validate each step before proceeding",
75
+ "Document decisions and changes clearly",
76
+ "Consider edge cases and error handling",
77
+ "Keep commits atomic and well-described",
78
+ "Review and verify before moving to the next step"
79
+ ]
80
+ }
@@ -0,0 +1,141 @@
1
+ {
2
+ "id": "coding-task-workflow",
3
+ "name": "Excellent Adaptive Coding Workflow with Devil's Advocate Review",
4
+ "version": "0.0.1",
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
+ "preconditions": [
7
+ "User has a clear task description (e.g., from Jira, a dev doc, or a BRD).",
8
+ "The agent has access to necessary tools like `grep`, file readers/editors, and a terminal for commands.",
9
+ "The agent has access to the relevant codebase files."
10
+ ],
11
+ "metaGuidance": [
12
+ "This workflow follows the PREP -> IMPLEMENT -> VERIFY pattern for each step in the plan.",
13
+ "Human approval is required after the Devil's Advocate review and before final completion.",
14
+ "Each implementation step should be a small, logical, and committable chunk of work.",
15
+ "The agent should never guess or assume. Always ask for clarification or use tools to find missing information.",
16
+ "Maintain existing coding conventions and architectural patterns found in the codebase."
17
+ ],
18
+ "steps": [
19
+ {
20
+ "id": "phase-0-intelligent-triage",
21
+ "title": "Phase 0: Intelligent Task Triage & Complexity Analysis",
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
+ "guidance": [
24
+ "Be thorough in your analysis - this determines the entire workflow path",
25
+ "Consider both technical complexity and business risk",
26
+ "When in doubt, err on the side of more thorough analysis (higher complexity)",
27
+ "Always allow human override of your classification",
28
+ "Set context variables that will be used for conditional step execution"
29
+ ],
30
+ "requireConfirmation": true
31
+ },
32
+ {
33
+ "id": "phase-1-scoping",
34
+ "runCondition": {"var": "taskComplexity", "not_equals": "Small"},
35
+ "title": "Phase 1: Task Briefing & Scope Definition",
36
+ "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?'",
37
+ "guidance": [
38
+ "Provide a complete task description. Vague requests will lead to poor plans and wasted effort.",
39
+ "This step is automatically skipped for Small tasks based on the complexity classification"
40
+ ]
41
+ },
42
+ {
43
+ "id": "phase-1b-deep-analysis-mandatory",
44
+ "runCondition": {"var": "taskComplexity", "equals": "Large"},
45
+ "title": "Phase 1b: Mandatory Deep Codebase Analysis",
46
+ "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.",
47
+ "askForFiles": true,
48
+ "guidance": [
49
+ "This step is mandatory for Large tasks due to their complexity and risk",
50
+ "Ensure all relevant source files are attached or accessible to the agent before running this step",
51
+ "Be thorough - this analysis will inform the entire implementation strategy"
52
+ ]
53
+ },
54
+ {
55
+ "id": "phase-1b-deep-analysis-optional",
56
+ "runCondition": {
57
+ "and": [
58
+ {"var": "taskComplexity", "equals": "Medium"},
59
+ {"var": "requestDeepAnalysis", "equals": true}
60
+ ]
61
+ },
62
+ "title": "Phase 1b: Optional Deep Codebase Analysis",
63
+ "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.",
64
+ "askForFiles": true,
65
+ "guidance": [
66
+ "This optional analysis was requested for a Medium task",
67
+ "Ensure all relevant source files are attached or accessible to the agent before running this step",
68
+ "Focus on areas most relevant to the current task"
69
+ ]
70
+ },
71
+ {
72
+ "id": "phase-2-planning",
73
+ "runCondition": {"var": "taskComplexity", "not_equals": "Small"},
74
+ "title": "Phase 2: Create Detailed Implementation Plan",
75
+ "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.",
76
+ "guidance": [
77
+ "The agent will now proceed to critique its own plan in the next step. Withhold your final approval until after that critique.",
78
+ "This step is automatically skipped for Small tasks based on the complexity classification"
79
+ ]
80
+ },
81
+ {
82
+ "id": "phase-2b-devil-advocate-review",
83
+ "runCondition": {"var": "taskComplexity", "not_equals": "Small"},
84
+ "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.",
86
+ "guidance": [
87
+ "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
+ "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.",
89
+ "After this review, you can ask the agent to create a final, amended version of the plan before you give your final approval to proceed with implementation.",
90
+ "This step is automatically skipped for Small tasks based on the complexity classification"
91
+ ],
92
+ "requireConfirmation": true
93
+ },
94
+ {
95
+ "id": "phase-3-iterative-implementation",
96
+ "title": "Phase 3: Iterative Implementation (PREP -> IMPLEMENT -> VERIFY)",
97
+ "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.",
98
+ "guidance": [
99
+ "**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
+ "**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.",
101
+ "**IMPLEMENT:** After preparation is confirmed, you will IMPLEMENT the step. Focus only on this single step. Use your tools to make the necessary code changes, adhering to all quality standards. Provide a commit message upon completion.",
102
+ "**VERIFY:** Immediately after implementation, you must VERIFY your work. Your verification for this step **is not complete until you have**:\n1. **Written necessary unit/integration tests** for the new logic.\n2. **Run the full test suite** to ensure no regressions were introduced.\n3. **Performed a critical self-review** of the changes against the plan, checking for code quality, side effects, and architectural alignment.\n\n**Failure Protocol:** If a verification failure cannot be resolved after two attempts, you must halt. Do not try a third time. Instead, present a summary of the problem, detail your failed attempts, and recommend a course of action to the user (e.g., 'revert this step and re-plan', 'request more information', 'proceed with a known issue')."
103
+ ]
104
+ },
105
+ {
106
+ "id": "phase-4-final-review",
107
+ "title": "Phase 4: Final Review & Completion",
108
+ "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.",
109
+ "guidance": [
110
+ "This is the final quality check. Ensure the agent's summary and checklist validation align with your understanding of the completed work."
111
+ ],
112
+ "requireConfirmation": true,
113
+ "validationCriteria": [
114
+ {
115
+ "type": "contains",
116
+ "value": "checklist",
117
+ "message": "Should reference the final review checklist"
118
+ },
119
+ {
120
+ "type": "contains",
121
+ "value": "complete",
122
+ "message": "Should confirm completion of all requirements"
123
+ },
124
+ {
125
+ "type": "length",
126
+ "min": 150,
127
+ "condition": {
128
+ "var": "taskComplexity",
129
+ "not_equals": "Small"
130
+ },
131
+ "message": "Complex tasks require detailed final review"
132
+ },
133
+ {
134
+ "type": "regex",
135
+ "pattern": "(?!.*TODO)",
136
+ "message": "Should not contain TODO items"
137
+ }
138
+ ]
139
+ }
140
+ ]
141
+ }