@monoes/monomindcli 1.6.8 → 1.7.0

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,6 +1,6 @@
1
1
  ---
2
2
  name: monomind-createtask
3
- description: "Monomind — Ingest a prompt, file, or folder, deeply understand it, generate a full implementation plan, and create self-contained tasks on monotask that coder agents can pick up"
3
+ description: "Monomind — Ingest a prompt, file, or folder, deeply understand it, generate agent-optimized tasks on monotask with smart grouping, prerequisites, and session memory"
4
4
  ---
5
5
 
6
6
  If `$ARGUMENTS` is empty, output this and STOP:
@@ -12,7 +12,7 @@ If `$ARGUMENTS` is empty, output this and STOP:
12
12
  > - `/monomind:createtask docs/superpowers/specs/2026-04-27-swarm-tab-redesign-design.md`
13
13
  > - `/monomind:createtask docs/superpowers/specs/`
14
14
  >
15
- > This command deeply analyzes your input, generates a full implementation plan, and creates self-contained tasks on monotask that simple coder agents can execute without additional context.
15
+ > This command deeply analyzes your input, generates an implementation plan, and creates **agent-optimized** tasks on monotask grouped so each agent gets full context, with prerequisites ensuring execution order.
16
16
 
17
17
  Do NOT proceed further if no arguments were provided.
18
18
 
@@ -125,12 +125,20 @@ The agent MUST produce a structured analysis:
125
125
  "name": "component or module name",
126
126
  "description": "what it does",
127
127
  "dependencies": ["other components it depends on"],
128
- "files_likely_affected": ["paths from graphify or educated guesses"]
128
+ "files_likely_affected": ["paths from graphify or educated guesses"],
129
+ "shared_context_with": ["other component names that share state, models, or interfaces"]
129
130
  }
130
131
  ],
131
132
  "technical_constraints": ["any constraints, tech stack requirements, or limitations mentioned"],
132
133
  "acceptance_criteria": ["testable conditions for when this is done"],
133
- "risks": ["potential pitfalls, ambiguities, or unknowns"]
134
+ "risks": ["potential pitfalls, ambiguities, or unknowns"],
135
+ "context_chains": [
136
+ {
137
+ "chain_name": "descriptive name for this context group",
138
+ "components": ["ordered list of components that share context and should be done by same agent or sequentially"],
139
+ "reason": "why these must share context (shared types, same file, state dependency, etc.)"
140
+ }
141
+ ]
134
142
  }
135
143
  ```
136
144
 
@@ -138,99 +146,49 @@ Store as `ANALYSIS`.
138
146
 
139
147
  ---
140
148
 
141
- ## Step 4: Generate Implementation Plan
149
+ ## Step 4: Generate Agent-Optimized Implementation Plan
142
150
 
143
151
  Spawn a `planner` agent via the Agent tool. Provide it with:
144
152
 
145
- - The `ANALYSIS` from Step 3
153
+ - The `ANALYSIS` from Step 3 (including `context_chains`)
146
154
  - The `FULL_CONTEXT`
147
155
  - The `REPO_NAME` and project info
156
+ - **The Task Grouping Rules and Card Format from `monomind-task-engine` skill (Sections 1 & 2)** — include them verbatim in the agent prompt so it produces correctly structured tasks
148
157
 
149
- The agent MUST produce an ordered list of implementation tasks. Each task must be **completely self-contained** a coder agent with NO prior context should be able to execute it by reading only the task card.
158
+ The agent MUST produce a `TASKS` array following the `monomind-task-engine` card format (Section 2). Each task must comply with all 7 grouping rules (Section 1).
150
159
 
151
- For each task, produce:
160
+ Store as `TASKS` array.
152
161
 
153
- ```json
154
- {
155
- "title": "Short action-oriented title (e.g. 'Add webhook retry logic with exponential backoff')",
156
- "description": "Detailed description: WHAT to build, WHY it's needed, WHERE it fits in the system",
157
- "context": "All relevant context a coder needs: existing patterns to follow, related files, API shapes, data models, config values. Include specific file paths from graphify results when available.",
158
- "acceptance_criteria": ["list of testable conditions that prove this task is done"],
159
- "checklist": ["step-by-step implementation steps the coder should follow"],
160
- "agent_type": "recommended agent type (e.g. coder, backend-dev, Frontend Developer, Security Engineer)",
161
- "priority": "critical | high | medium | low",
162
- "effort": 1-10,
163
- "dependencies": ["titles of other tasks that must complete first, or empty array"]
164
- }
165
- ```
162
+ ---
166
163
 
167
- **Rules for task generation:**
168
- - Tasks MUST be ordered so dependencies come first.
169
- - Each task should take a single agent 5-30 minutes to complete.
170
- - Tasks that are too large MUST be split.
171
- - Every task MUST include enough context that the coder doesn't need to read the original document.
172
- - Include a test-writing step in every task's checklist.
173
- - Assign agent types from available agents (coder, backend-dev, Frontend Developer, Security Engineer, etc.) based on the task domain.
164
+ ## Step 5: Create Tasks, Store Memory, and Review
174
165
 
175
- Store as `TASKS` array.
166
+ Invoke the `monomind-task-engine` skill (Sections 3-7) with these parameters:
176
167
 
177
- ---
168
+ | Parameter | Value |
169
+ |-----------|-------|
170
+ | `TASKS` | The array from Step 4 |
171
+ | `TASK_BOARD_ID` | From Step 2 (or let the engine set up the board) |
172
+ | `REPO_NAME` | From Step 1c |
173
+ | `SOURCE_TAG` | `"monomind-createtask"` |
174
+ | `SOURCE_SUMMARY` | First 100 chars of `$ARGUMENTS` |
175
+ | `PARENT_CARD_ID` | _(none — createtask has no parent card)_ |
178
176
 
179
- ## Step 5: Create Tasks on Monotask Board
180
-
181
- For each task in the `TASKS` array, in dependency order:
182
-
183
- 1. **Create the card** in the `Todo` column (dependency-free tasks) or `Backlog` column (has unfinished dependencies):
184
- ```bash
185
- monotask card create $TASK_BOARD_ID $COL_TODO "<title>" --json
186
- ```
187
- Store the returned `CARD_ID`.
188
-
189
- 2. **Set description** with the full context block:
190
- ```bash
191
- monotask card set-description $TASK_BOARD_ID $CARD_ID "<description>\n\n## Context\n<context>"
192
- ```
193
-
194
- 3. **Add agent assignment comment**:
195
- ```bash
196
- monotask card comment add $TASK_BOARD_ID $CARD_ID "Assigned agent: <agent_type>"
197
- ```
198
-
199
- 4. **Add acceptance criteria comment**:
200
- ```bash
201
- monotask card comment add $TASK_BOARD_ID $CARD_ID "Acceptance criteria:\n- <criterion 1>\n- <criterion 2>\n..."
202
- ```
203
-
204
- 5. **Add dependency comment** (if any):
205
- ```bash
206
- monotask card comment add $TASK_BOARD_ID $CARD_ID "Dependencies: <task title 1>, <task title 2>"
207
- ```
208
-
209
- 6. **Set priority**:
210
- ```bash
211
- monotask card set-priority $TASK_BOARD_ID $CARD_ID <1-4>
212
- ```
213
- Map: critical=1, high=2, medium=3, low=4.
214
-
215
- 7. **Create checklist** with implementation steps:
216
- ```bash
217
- monotask checklist add $TASK_BOARD_ID $CARD_ID "Implementation Steps" --json
218
- ```
219
- Store `CHECKLIST_ID`, then for each step:
220
- ```bash
221
- monotask checklist item-add $TASK_BOARD_ID $CARD_ID $CHECKLIST_ID "<step>"
222
- ```
223
-
224
- Batch card creation commands where possible to reduce round-trips.
177
+ The engine will:
178
+ 1. Create all cards on the monotask board (Section 4)
179
+ 2. Store execution strategy in session memory (Section 5)
180
+ 3. Run the **Final Dependency & Critical Path Review** (Section 6) — a fresh Code Reviewer agent validates prerequisites, context groups, critical path, parallel safety, and agent assignments
181
+ 4. Fix any blocker issues automatically, present warnings to user
182
+ 5. Present execution offer with mode recommendation (Section 7)
225
183
 
226
184
  ---
227
185
 
228
- ## Step 6: Exploration Session — Suggest Missing Pieces
186
+ ## Step 7: Exploration Session — Suggest Missing Pieces
229
187
 
230
188
  After all tasks are created, spawn a **second** `Software Architect` agent (fresh context) via the Agent tool. Provide it with:
231
189
 
232
190
  - The `ANALYSIS` from Step 3
233
- - The complete list of `TASKS` already created (titles + descriptions)
191
+ - The complete list of `TASKS` already created (titles + descriptions + context groups)
234
192
  - The `FULL_CONTEXT`
235
193
 
236
194
  The agent must act as a **critical reviewer** and identify:
@@ -241,7 +199,8 @@ The agent must act as a **critical reviewer** and identify:
241
199
  {
242
200
  "title": "What's missing",
243
201
  "description": "Why this matters and what should be done",
244
- "category": "testing | documentation | error-handling | monitoring | security | performance | accessibility | deployment | migration"
202
+ "category": "testing | documentation | error-handling | monitoring | security | performance | accessibility | deployment | migration",
203
+ "context_group": "which existing context group this belongs to, or 'new'"
245
204
  }
246
205
  ],
247
206
  "upcoming_plans": [
@@ -254,17 +213,6 @@ The agent must act as a **critical reviewer** and identify:
254
213
  }
255
214
  ```
256
215
 
257
- **Areas to explore:**
258
- - Missing test coverage (unit, integration, e2e)
259
- - Error handling and edge cases not covered
260
- - Documentation that should be created or updated
261
- - Security considerations (input validation, auth, rate limiting)
262
- - Performance implications (caching, indexing, pagination)
263
- - Monitoring and observability (logging, metrics, alerts)
264
- - Migration or backwards compatibility concerns
265
- - Deployment steps or configuration changes needed
266
- - Accessibility requirements (for UI tasks)
267
-
268
216
  ### Present to User
269
217
 
270
218
  Output the suggestions in a clear format:
@@ -272,10 +220,10 @@ Output the suggestions in a clear format:
272
220
  ```
273
221
  ## Missing Pieces
274
222
 
275
- | # | Category | Title | Description |
276
- |---|-------------|------------------------------------|----------------------------|
277
- | 1 | testing | Add integration tests for webhook | Currently only unit tests |
278
- | 2 | security | Rate-limit webhook endpoints | Prevent abuse |
223
+ | # | Category | Title | Context Group | Description |
224
+ |---|-------------|------------------------------------|---------------|----------------------------|
225
+ | 1 | testing | Add integration tests for webhook | webhook-chain | Currently only unit tests |
226
+ | 2 | security | Rate-limit webhook endpoints | independent | Prevent abuse |
279
227
 
280
228
  ## Potential Follow-ups
281
229
 
@@ -289,19 +237,19 @@ Then ask:
289
237
  > **Found N missing pieces and M potential follow-ups.**
290
238
  >
291
239
  > Reply with the numbers you want to add as tasks (e.g., `1, 3, 5` or `all` or `none`).
292
- > Missing pieces will be added to **Todo**. Follow-ups will be added to **Backlog**.
240
+ > Missing pieces will be added to their context group. Follow-ups go to **Backlog**.
293
241
 
294
242
  ### Process User Selection
295
243
 
296
244
  If the user selects items:
297
- 1. For each selected **missing piece**: Create a task card in `Todo` with full context (same Step 5 process). Add a comment: `"Source: exploration — missing piece"`.
298
- 2. For each selected **follow-up**: Create a task card in `Backlog` with full context. Add a comment: `"Source: exploration — follow-up suggestion"`.
245
+ 1. For each selected **missing piece**: Create a task card following the same grouping rules (Step 4). If it belongs to an existing context group, add prerequisite links. Add comment: `"Source: exploration — missing piece"`.
246
+ 2. For each selected **follow-up**: Create a task card in `Backlog`. Add comment: `"Source: exploration — follow-up suggestion"`.
299
247
 
300
248
  If the user says `none` or declines, skip.
301
249
 
302
250
  ---
303
251
 
304
- ## Step 7: Final Summary
252
+ ## Step 8: Final Summary
305
253
 
306
254
  Output:
307
255
 
@@ -311,30 +259,44 @@ Output:
311
259
  **Source:** <prompt text | file path | folder path>
312
260
  **Space:** $REPO_NAME (ID: $SPACE_ID)
313
261
  **Board:** monomind-task (ID: $TASK_BOARD_ID)
262
+ **Execution strategy:** <parallel | minimal | sequential>
263
+
264
+ ### Context Groups
314
265
 
315
- ### Tasks Created
266
+ | Group | Tasks | Agent | Mode |
267
+ |--------------------|-------|-----------------|------------|
268
+ | <group name> | 3 | backend-dev | sequential |
269
+ | <group name> | 2 | Frontend Developer | sequential |
270
+ | independent | 4 | mixed | parallel |
316
271
 
317
- | # | Title | Agent | Priority | Column |
318
- |---|----------------------------------------|-------------|----------|---------|
319
- | 1 | <title> | backend-dev | high | Todo |
320
- | 2 | <title> | coder | medium | Todo |
321
- | 3 | <title> | Frontend Developer | medium | Backlog |
272
+ ### All Tasks
322
273
 
323
- **Total:** N tasks in Todo, M tasks in Backlog
324
- **Estimated effort:** X points
274
+ | # | Title | Agent | Priority | Group | Prerequisites |
275
+ |---|----------------------------------------|-------------|----------|--------------|---------------|
276
+ | 1 | <title> | backend-dev | high | api-chain | — |
277
+ | 2 | <title> | backend-dev | high | api-chain | Task 1 |
278
+ | 3 | <title> | coder | medium | independent | — |
279
+
280
+ **Total:** N tasks (X in Todo, Y in Backlog)
281
+ **Estimated effort:** Z points
282
+ **Recommended mode:** <parallel | minimal | sequential> — <one-line reason>
325
283
  ```
326
284
 
327
285
  ---
328
286
 
329
- ## Step 8: Offer to Execute
287
+ ## Step 9: Offer to Execute
330
288
 
331
289
  If there are tasks in Todo, ask:
332
290
 
333
- > **N tasks are ready for execution.** Want me to start `/monomind:do` to process them?
291
+ > **N tasks are ready for execution.** How do you want to run them?
292
+ >
293
+ > 1. **Parallel** — Spawn one agent per context group + independent tasks run simultaneously. Fastest, best for independent work. (~N agents)
294
+ > 2. **Minimal** — 2-3 agents: one per major context group, one for independents. Balanced cost/speed.
295
+ > 3. **Sequential** — One agent processes tasks in order. Slowest but cheapest, best for heavy shared state.
334
296
  >
335
- > It will pick up tasks one by one, execute them with the assigned agent, review for bugs, and loop until the queue is empty.
297
+ > Recommended: **<mode>** <reason>
336
298
 
337
- If the user agrees, invoke:
299
+ If the user agrees or picks a mode, invoke:
338
300
  ```
339
- Skill("monomind-do", "--space $SPACE_ID --board $TASK_BOARD_ID")
301
+ Skill("monomind-do", "--space $SPACE_ID --board $TASK_BOARD_ID --mode <parallel|minimal|sequential>")
340
302
  ```