maestro-flow 0.3.14 → 0.3.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,157 @@
1
+ # Workflow Template Schema — for maestro-composer Phase 5
2
+
3
+ ## Template JSON
4
+
5
+ File location: `~/.maestro/templates/workflows/<slug>.json`
6
+
7
+ ```json
8
+ {
9
+ "template_id": "wft-<slug>-<YYYYMMDD>",
10
+ "name": "Human readable template name",
11
+ "description": "Brief description of what this workflow achieves",
12
+ "version": "1.0",
13
+ "created_at": "2026-04-26T10:00:00Z",
14
+ "source_session": "WFD-<slug>-<date>",
15
+ "tags": ["feature", "medium"],
16
+
17
+ "context_schema": {
18
+ "goal": {
19
+ "type": "string",
20
+ "required": true,
21
+ "description": "Main task goal or feature to implement"
22
+ },
23
+ "scope": {
24
+ "type": "string",
25
+ "required": false,
26
+ "description": "Target file or module scope",
27
+ "default": "src/**/*"
28
+ }
29
+ },
30
+
31
+ "nodes": [
32
+ { /* see Node Type Definitions below */ }
33
+ ],
34
+
35
+ "edges": [
36
+ { "from": "N-001", "to": "CP-01" },
37
+ { "from": "CP-01", "to": "N-002" }
38
+ ],
39
+
40
+ "checkpoints": ["CP-01", "CP-02"],
41
+
42
+ "execution_mode": "serial",
43
+
44
+ "metadata": {
45
+ "node_count": 3,
46
+ "checkpoint_count": 2
47
+ }
48
+ }
49
+ ```
50
+
51
+ ## Node Type Definitions
52
+
53
+ ### skill node
54
+ ```json
55
+ {
56
+ "id": "N-001",
57
+ "name": "Plan Feature",
58
+ "type": "skill",
59
+ "executor": "maestro-plan",
60
+ "args_template": "{goal}",
61
+ "input_ports": ["requirement"],
62
+ "output_ports": ["plan"],
63
+ "parallel_group": null,
64
+ "on_fail": "abort"
65
+ }
66
+ ```
67
+
68
+ ### cli node
69
+ ```json
70
+ {
71
+ "id": "N-002",
72
+ "name": "Analyze Architecture",
73
+ "type": "cli",
74
+ "executor": "maestro delegate",
75
+ "cli_tool": "gemini",
76
+ "cli_mode": "analysis",
77
+ "cli_rule": "analysis-review-architecture",
78
+ "args_template": "PURPOSE: {goal}\nTASK: ...\nMODE: analysis\nCONTEXT: @**/*\nEXPECTED: ...\nCONSTRAINTS: ...",
79
+ "input_ports": ["analysis-topic"],
80
+ "output_ports": ["analysis"],
81
+ "parallel_group": null,
82
+ "on_fail": "abort"
83
+ }
84
+ ```
85
+
86
+ ### command node
87
+
88
+ > Note: maestro2 currently has no namespace commands. This type is reserved for future use.
89
+ > All commands are top-level skill nodes (e.g. `quality-refactor` instead of `workflow:refactor-cycle`).
90
+
91
+ ```json
92
+ {
93
+ "id": "N-003",
94
+ "name": "Refactor Module",
95
+ "type": "skill",
96
+ "executor": "quality-refactor",
97
+ "args_template": "{goal}",
98
+ "input_ports": ["codebase"],
99
+ "output_ports": ["refactored-code"],
100
+ "parallel_group": null,
101
+ "on_fail": "abort"
102
+ }
103
+ ```
104
+
105
+ ### agent node
106
+ ```json
107
+ {
108
+ "id": "N-004",
109
+ "name": "Deep Analysis",
110
+ "type": "agent",
111
+ "executor": "general-purpose",
112
+ "args_template": "Task: {goal}\n\nContext from previous step:\n{prev_output}",
113
+ "input_ports": ["requirement"],
114
+ "output_ports": ["analysis"],
115
+ "parallel_group": null,
116
+ "run_in_background": false,
117
+ "on_fail": "abort"
118
+ }
119
+ ```
120
+
121
+ ### checkpoint node
122
+ ```json
123
+ {
124
+ "id": "CP-01",
125
+ "name": "Checkpoint: After Plan",
126
+ "type": "checkpoint",
127
+ "description": "Plan artifact saved before execution proceeds",
128
+ "auto_continue": true,
129
+ "save_fields": ["session_id", "artifacts", "output_path"]
130
+ }
131
+ ```
132
+
133
+ ## Template Index
134
+
135
+ File location: `~/.maestro/templates/workflows/index.json`
136
+
137
+ ```json
138
+ {
139
+ "templates": [
140
+ {
141
+ "template_id": "wft-feature-tdd-review-20260426",
142
+ "name": "Feature TDD with Review",
143
+ "path": "~/.maestro/templates/workflows/feature-tdd-review.json",
144
+ "tags": ["feature", "complex"],
145
+ "created_at": "2026-04-26T10:00:00Z",
146
+ "node_count": 5
147
+ }
148
+ ]
149
+ }
150
+ ```
151
+
152
+ ## Naming Conventions
153
+
154
+ - **Template name**: Human readable, e.g. "Feature TDD with Review"
155
+ - **Slug**: kebab-case from name, e.g. `feature-tdd-review`
156
+ - **Template ID**: `wft-<slug>-<YYYYMMDD>`, e.g. `wft-feature-tdd-review-20260426`
157
+ - **Versioning**: If slug already exists with different content, append `-v2`, `-v3`