@fro.bot/systematic 2.0.1 → 2.0.3

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 (57) hide show
  1. package/agents/design/figma-design-sync.md +1 -1
  2. package/agents/document-review/coherence-reviewer.md +40 -0
  3. package/agents/document-review/design-lens-reviewer.md +46 -0
  4. package/agents/document-review/feasibility-reviewer.md +42 -0
  5. package/agents/document-review/product-lens-reviewer.md +50 -0
  6. package/agents/document-review/scope-guardian-reviewer.md +54 -0
  7. package/agents/document-review/security-lens-reviewer.md +38 -0
  8. package/agents/research/best-practices-researcher.md +2 -1
  9. package/agents/research/git-history-analyzer.md +1 -1
  10. package/agents/research/repo-research-analyst.md +164 -9
  11. package/agents/review/api-contract-reviewer.md +49 -0
  12. package/agents/review/correctness-reviewer.md +49 -0
  13. package/agents/review/data-migrations-reviewer.md +53 -0
  14. package/agents/review/maintainability-reviewer.md +49 -0
  15. package/agents/review/pattern-recognition-specialist.md +2 -1
  16. package/agents/review/performance-reviewer.md +51 -0
  17. package/agents/review/reliability-reviewer.md +49 -0
  18. package/agents/review/schema-drift-detector.md +12 -10
  19. package/agents/review/security-reviewer.md +51 -0
  20. package/agents/review/testing-reviewer.md +48 -0
  21. package/agents/workflow/pr-comment-resolver.md +1 -1
  22. package/agents/workflow/spec-flow-analyzer.md +60 -89
  23. package/dist/index.js +3 -3
  24. package/package.json +1 -1
  25. package/skills/agent-browser/SKILL.md +69 -48
  26. package/skills/ce-brainstorm/SKILL.md +2 -1
  27. package/skills/ce-compound/SKILL.md +26 -1
  28. package/skills/ce-compound-refresh/SKILL.md +11 -1
  29. package/skills/ce-ideate/SKILL.md +2 -1
  30. package/skills/ce-plan/SKILL.md +424 -414
  31. package/skills/ce-review/SKILL.md +12 -13
  32. package/skills/ce-review-beta/SKILL.md +506 -0
  33. package/skills/ce-review-beta/references/diff-scope.md +31 -0
  34. package/skills/ce-review-beta/references/findings-schema.json +128 -0
  35. package/skills/ce-review-beta/references/persona-catalog.md +50 -0
  36. package/skills/ce-review-beta/references/review-output-template.md +115 -0
  37. package/skills/ce-review-beta/references/subagent-template.md +56 -0
  38. package/skills/ce-work/SKILL.md +14 -6
  39. package/skills/ce-work-beta/SKILL.md +14 -8
  40. package/skills/claude-permissions-optimizer/SKILL.md +15 -14
  41. package/skills/deepen-plan/SKILL.md +348 -483
  42. package/skills/document-review/SKILL.md +160 -52
  43. package/skills/feature-video/SKILL.md +209 -178
  44. package/skills/file-todos/SKILL.md +72 -94
  45. package/skills/frontend-design/SKILL.md +243 -27
  46. package/skills/git-worktree/SKILL.md +37 -28
  47. package/skills/lfg/SKILL.md +7 -7
  48. package/skills/reproduce-bug/SKILL.md +154 -60
  49. package/skills/resolve-pr-parallel/SKILL.md +19 -12
  50. package/skills/resolve-todo-parallel/SKILL.md +9 -6
  51. package/skills/setup/SKILL.md +33 -56
  52. package/skills/slfg/SKILL.md +5 -5
  53. package/skills/test-browser/SKILL.md +69 -145
  54. package/skills/test-xcode/SKILL.md +61 -183
  55. package/skills/triage/SKILL.md +10 -10
  56. package/skills/ce-plan-beta/SKILL.md +0 -571
  57. package/skills/deepen-plan-beta/SKILL.md +0 -323
@@ -1,571 +0,0 @@
1
- ---
2
- name: ce:plan-beta
3
- description: '[BETA] Transform feature descriptions or requirements into structured implementation plans grounded in repo patterns and research. Use when the user says ''plan this'', ''create a plan'', ''write a tech plan'', ''plan the implementation'', ''how should we build'', ''what''s the approach for'', ''break this down'', or when a brainstorm/requirements document is ready for technical planning. Best when requirements are at least roughly defined; for exploratory or ambiguous requests, prefer ce:brainstorm first.'
4
- argument-hint: '[feature description, requirements doc path, or improvement idea]'
5
- disable-model-invocation: true
6
- ---
7
-
8
- # Create Technical Plan
9
-
10
- **Note: The current year is 2026.** Use this when dating plans and searching for recent documentation.
11
-
12
- `ce:brainstorm` defines **WHAT** to build. `ce:plan` defines **HOW** to build it. `ce:work` executes the plan.
13
-
14
- This workflow produces a durable implementation plan. It does **not** implement code, run tests, or learn from execution-time results. If the answer depends on changing code and seeing what happens, that belongs in `ce:work`, not here.
15
-
16
- ## Interaction Method
17
-
18
- Use the platform's question tool when available. When asking the user a question, prefer the platform's blocking question tool if one exists (`question` in OpenCode, `request_user_input` in Codex, `ask_user` in Gemini). Otherwise, present numbered options in chat and wait for the user's reply before proceeding.
19
-
20
- Ask one question at a time. Prefer a concise single-select choice when natural options exist.
21
-
22
- ## Feature Description
23
-
24
- <feature_description> #$ARGUMENTS </feature_description>
25
-
26
- **If the feature description above is empty, ask the user:** "What would you like to plan? Please describe the feature, bug fix, or improvement you have in mind."
27
-
28
- Do not proceed until you have a clear planning input.
29
-
30
- ## Core Principles
31
-
32
- 1. **Use requirements as the source of truth** - If `ce:brainstorm` produced a requirements document, planning should build from it rather than re-inventing behavior.
33
- 2. **Decisions, not code** - Capture approach, boundaries, files, dependencies, risks, and test scenarios. Do not pre-write implementation code or shell command choreography.
34
- 3. **Research before structuring** - Explore the codebase, institutional learnings, and external guidance when warranted before finalizing the plan.
35
- 4. **Right-size the artifact** - Small work gets a compact plan. Large work gets more structure. The philosophy stays the same at every depth.
36
- 5. **Separate planning from execution discovery** - Resolve planning-time questions here. Explicitly defer execution-time unknowns to implementation.
37
- 6. **Keep the plan portable** - The plan should work as a living document, review artifact, or issue body without embedding tool-specific executor instructions.
38
-
39
- ## Plan Quality Bar
40
-
41
- Every plan should contain:
42
- - A clear problem frame and scope boundary
43
- - Concrete requirements traceability back to the request or origin document
44
- - Exact file paths for the work being proposed
45
- - Explicit test file paths for feature-bearing implementation units
46
- - Decisions with rationale, not just tasks
47
- - Existing patterns or code references to follow
48
- - Specific test scenarios and verification outcomes
49
- - Clear dependencies and sequencing
50
-
51
- A plan is ready when an implementer can start confidently without needing the plan to write the code for them.
52
-
53
- ## Workflow
54
-
55
- ### Phase 0: Resume, Source, and Scope
56
-
57
- #### 0.1 Resume Existing Plan Work When Appropriate
58
-
59
- If the user references an existing plan file or there is an obvious recent matching plan in `docs/plans/`:
60
- - Read it
61
- - Confirm whether to update it in place or create a new plan
62
- - If updating, preserve completed checkboxes and revise only the still-relevant sections
63
-
64
- #### 0.2 Find Upstream Requirements Document
65
-
66
- Before asking planning questions, search `docs/brainstorms/` for files matching `*-requirements.md`.
67
-
68
- **Relevance criteria:** A requirements document is relevant if:
69
- - The topic semantically matches the feature description
70
- - It was created within the last 30 days (use judgment to override if the document is clearly still relevant or clearly stale)
71
- - It appears to cover the same user problem or scope
72
-
73
- If multiple source documents match, ask which one to use using the platform's blocking question tool when available (see Interaction Method). Otherwise, present numbered options in chat and wait for the user's reply before proceeding.
74
-
75
- #### 0.3 Use the Source Document as Primary Input
76
-
77
- If a relevant requirements document exists:
78
- 1. Read it thoroughly
79
- 2. Announce that it will serve as the origin document for planning
80
- 3. Carry forward all of the following:
81
- - Problem frame
82
- - Requirements and success criteria
83
- - Scope boundaries
84
- - Key decisions and rationale
85
- - Dependencies or assumptions
86
- - Outstanding questions, preserving whether they are blocking or deferred
87
- 4. Use the source document as the primary input to planning and research
88
- 5. Reference important carried-forward decisions in the plan with `(see origin: <source-path>)`
89
- 6. Do not silently omit source content — if the origin document discussed it, the plan must address it even if briefly. Before finalizing, scan each section of the origin document to verify nothing was dropped.
90
-
91
- If no relevant requirements document exists, planning may proceed from the user's request directly.
92
-
93
- #### 0.4 No-Requirements-Doc Fallback
94
-
95
- If no relevant requirements document exists:
96
- - Assess whether the request is already clear enough for direct technical planning
97
- - If the ambiguity is mainly product framing, user behavior, or scope definition, recommend `ce:brainstorm` first
98
- - If the user wants to continue here anyway, run a short planning bootstrap instead of refusing
99
-
100
- The planning bootstrap should establish:
101
- - Problem frame
102
- - Intended behavior
103
- - Scope boundaries and obvious non-goals
104
- - Success criteria
105
- - Blocking questions or assumptions
106
-
107
- Keep this bootstrap brief. It exists to preserve direct-entry convenience, not to replace a full brainstorm.
108
-
109
- If the bootstrap uncovers major unresolved product questions:
110
- - Recommend `ce:brainstorm` again
111
- - If the user still wants to continue, require explicit assumptions before proceeding
112
-
113
- #### 0.5 Classify Outstanding Questions Before Planning
114
-
115
- If the origin document contains `Resolve Before Planning` or similar blocking questions:
116
- - Review each one before proceeding
117
- - Reclassify it into planning-owned work **only if** it is actually a technical, architectural, or research question
118
- - Keep it as a blocker if it would change product behavior, scope, or success criteria
119
-
120
- If true product blockers remain:
121
- - Surface them clearly
122
- - Ask the user, using the platform's blocking question tool when available (see Interaction Method), whether to:
123
- 1. Resume `ce:brainstorm` to resolve them
124
- 2. Convert them into explicit assumptions or decisions and continue
125
- - Do not continue planning while true blockers remain unresolved
126
-
127
- #### 0.6 Assess Plan Depth
128
-
129
- Classify the work into one of these plan depths:
130
-
131
- - **Lightweight** - small, well-bounded, low ambiguity
132
- - **Standard** - normal feature or bounded refactor with some technical decisions to document
133
- - **Deep** - cross-cutting, strategic, high-risk, or highly ambiguous implementation work
134
-
135
- If depth is unclear, ask one targeted question and then continue.
136
-
137
- ### Phase 1: Gather Context
138
-
139
- #### 1.1 Local Research (Always Runs)
140
-
141
- Prepare a concise planning context summary (a paragraph or two) to pass as input to the research agents:
142
- - If an origin document exists, summarize the problem frame, requirements, and key decisions from that document
143
- - Otherwise use the feature description directly
144
-
145
- Run these agents in parallel:
146
-
147
- - task systematic:research:repo-research-analyst(planning context summary)
148
- - task systematic:research:learnings-researcher(planning context summary)
149
-
150
- Collect:
151
- - Existing patterns and conventions to follow
152
- - Relevant files, modules, and tests
153
- - AGENTS.md guidance that materially affects the plan
154
- - Institutional learnings from `docs/solutions/`
155
-
156
- #### 1.2 Decide on External Research
157
-
158
- Based on the origin document, user signals, and local findings, decide whether external research adds value.
159
-
160
- **Read between the lines.** Pay attention to signals from the conversation so far:
161
- - **User familiarity** — Are they pointing to specific files or patterns? They likely know the codebase well.
162
- - **User intent** — Do they want speed or thoroughness? Exploration or execution?
163
- - **Topic risk** — Security, payments, external APIs warrant more caution regardless of user signals.
164
- - **Uncertainty level** — Is the approach clear or still open-ended?
165
-
166
- **Always lean toward external research when:**
167
- - The topic is high-risk: security, payments, privacy, external APIs, migrations, compliance
168
- - The codebase lacks relevant local patterns
169
- - The user is exploring unfamiliar territory
170
-
171
- **Skip external research when:**
172
- - The codebase already shows a strong local pattern
173
- - The user already knows the intended shape
174
- - Additional external context would add little practical value
175
-
176
- Announce the decision briefly before continuing. Examples:
177
- - "Your codebase has solid patterns for this. Proceeding without external research."
178
- - "This involves payment processing, so I'll research current best practices first."
179
-
180
- #### 1.3 External Research (Conditional)
181
-
182
- If Step 1.2 indicates external research is useful, run these agents in parallel:
183
-
184
- - task systematic:research:best-practices-researcher(planning context summary)
185
- - task systematic:research:framework-docs-researcher(planning context summary)
186
-
187
- #### 1.4 Consolidate Research
188
-
189
- Summarize:
190
- - Relevant codebase patterns and file paths
191
- - Relevant institutional learnings
192
- - External references and best practices, if gathered
193
- - Related issues, PRs, or prior art
194
- - Any constraints that should materially shape the plan
195
-
196
- #### 1.5 Flow and Edge-Case Analysis (Conditional)
197
-
198
- For **Standard** or **Deep** plans, or when user flow completeness is still unclear, run:
199
-
200
- - task systematic:workflow:spec-flow-analyzer(planning context summary, research findings)
201
-
202
- Use the output to:
203
- - Identify missing edge cases, state transitions, or handoff gaps
204
- - Tighten requirements trace or verification strategy
205
- - Add only the flow details that materially improve the plan
206
-
207
- ### Phase 2: Resolve Planning Questions
208
-
209
- Build a planning question list from:
210
- - Deferred questions in the origin document
211
- - Gaps discovered in repo or external research
212
- - Technical decisions required to produce a useful plan
213
-
214
- For each question, decide whether it should be:
215
- - **Resolved during planning** - the answer is knowable from repo context, documentation, or user choice
216
- - **Deferred to implementation** - the answer depends on code changes, runtime behavior, or execution-time discovery
217
-
218
- Ask the user only when the answer materially affects architecture, scope, sequencing, or risk and cannot be responsibly inferred. Use the platform's blocking question tool when available (see Interaction Method).
219
-
220
- **Do not** run tests, build the app, or probe runtime behavior in this phase. The goal is a strong plan, not partial execution.
221
-
222
- ### Phase 3: Structure the Plan
223
-
224
- #### 3.1 Title and File Naming
225
-
226
- - Draft a clear, searchable title using conventional format such as `feat: Add user authentication` or `fix: Prevent checkout double-submit`
227
- - Determine the plan type: `feat`, `fix`, or `refactor`
228
- - Build the filename following the repository convention: `docs/plans/YYYY-MM-DD-NNN-<type>-<descriptive-name>-beta-plan.md`
229
- - Create `docs/plans/` if it does not exist
230
- - Check existing files for today's date to determine the next sequence number (zero-padded to 3 digits, starting at 001)
231
- - Keep the descriptive name concise (3-5 words) and kebab-cased
232
- - Append `-beta` before `-plan` to distinguish from stable-generated plans
233
- - Examples: `2026-01-15-001-feat-user-authentication-flow-beta-plan.md`, `2026-02-03-002-fix-checkout-race-condition-beta-plan.md`
234
- - Avoid: missing sequence numbers, vague names like "new-feature", invalid characters (colons, spaces)
235
-
236
- #### 3.2 Stakeholder and Impact Awareness
237
-
238
- For **Standard** or **Deep** plans, briefly consider who is affected by this change — end users, developers, operations, other teams — and how that should shape the plan. For cross-cutting work, note affected parties in the System-Wide Impact section.
239
-
240
- #### 3.3 Break Work into Implementation Units
241
-
242
- Break the work into logical implementation units. Each unit should represent one meaningful change that an implementer could typically land as an atomic commit.
243
-
244
- Good units are:
245
- - Focused on one component, behavior, or integration seam
246
- - Usually touching a small cluster of related files
247
- - Ordered by dependency
248
- - Concrete enough for execution without pre-writing code
249
- - Marked with checkbox syntax for progress tracking
250
-
251
- Avoid:
252
- - 2-5 minute micro-steps
253
- - Units that span multiple unrelated concerns
254
- - Units that are so vague an implementer still has to invent the plan
255
-
256
- #### 3.4 Define Each Implementation Unit
257
-
258
- For each unit, include:
259
- - **Goal** - what this unit accomplishes
260
- - **Requirements** - which requirements or success criteria it advances
261
- - **Dependencies** - what must exist first
262
- - **Files** - exact file paths to create, modify, or test
263
- - **Approach** - key decisions, data flow, component boundaries, or integration notes
264
- - **Patterns to follow** - existing code or conventions to mirror
265
- - **Test scenarios** - specific behaviors, edge cases, and failure paths to cover
266
- - **Verification** - how an implementer should know the unit is complete, expressed as outcomes rather than shell command scripts
267
-
268
- Every feature-bearing unit should include the test file path in `**Files:**`.
269
-
270
- #### 3.5 Keep Planning-Time and Implementation-Time Unknowns Separate
271
-
272
- If something is important but not knowable yet, record it explicitly under deferred implementation notes rather than pretending to resolve it in the plan.
273
-
274
- Examples:
275
- - Exact method or helper names
276
- - Final SQL or query details after touching real code
277
- - Runtime behavior that depends on seeing actual test failures
278
- - Refactors that may become unnecessary once implementation starts
279
-
280
- ### Phase 4: Write the Plan
281
-
282
- Use one planning philosophy across all depths. Change the amount of detail, not the boundary between planning and execution.
283
-
284
- #### 4.1 Plan Depth Guidance
285
-
286
- **Lightweight**
287
- - Keep the plan compact
288
- - Usually 2-4 implementation units
289
- - Omit optional sections that add little value
290
-
291
- **Standard**
292
- - Use the full core template
293
- - Usually 3-6 implementation units
294
- - Include risks, deferred questions, and system-wide impact when relevant
295
-
296
- **Deep**
297
- - Use the full core template plus optional analysis sections
298
- - Usually 4-8 implementation units
299
- - Group units into phases when that improves clarity
300
- - Include alternatives considered, documentation impacts, and deeper risk treatment when warranted
301
-
302
- #### 4.1b Optional Deep Plan Extensions
303
-
304
- For sufficiently large, risky, or cross-cutting work, add the sections that genuinely help:
305
- - **Alternative Approaches Considered**
306
- - **Success Metrics**
307
- - **Dependencies / Prerequisites**
308
- - **Risk Analysis & Mitigation**
309
- - **Phased Delivery**
310
- - **Documentation Plan**
311
- - **Operational / Rollout Notes**
312
- - **Future Considerations** only when they materially affect current design
313
-
314
- Do not add these as boilerplate. Include them only when they improve execution quality or stakeholder alignment.
315
-
316
- #### 4.2 Core Plan Template
317
-
318
- Omit clearly inapplicable optional sections, especially for Lightweight plans.
319
-
320
- ```markdown
321
- ---
322
- title: [Plan Title]
323
- type: [feat|fix|refactor]
324
- status: active
325
- date: YYYY-MM-DD
326
- origin: docs/brainstorms/YYYY-MM-DD-<topic>-requirements.md # include when planning from a requirements doc
327
- deepened: YYYY-MM-DD # optional, set later by deepen-plan-beta when the plan is substantively strengthened
328
- ---
329
-
330
- # [Plan Title]
331
-
332
- ## Overview
333
-
334
- [What is changing and why]
335
-
336
- ## Problem Frame
337
-
338
- [Summarize the user/business problem and context. Reference the origin doc when present.]
339
-
340
- ## Requirements Trace
341
-
342
- - R1. [Requirement or success criterion this plan must satisfy]
343
- - R2. [Requirement or success criterion this plan must satisfy]
344
-
345
- ## Scope Boundaries
346
-
347
- - [Explicit non-goal or exclusion]
348
-
349
- ## Context & Research
350
-
351
- ### Relevant Code and Patterns
352
-
353
- - [Existing file, class, component, or pattern to follow]
354
-
355
- ### Institutional Learnings
356
-
357
- - [Relevant `docs/solutions/` insight]
358
-
359
- ### External References
360
-
361
- - [Relevant external docs or best-practice source, if used]
362
-
363
- ## Key Technical Decisions
364
-
365
- - [Decision]: [Rationale]
366
-
367
- ## Open Questions
368
-
369
- ### Resolved During Planning
370
-
371
- - [Question]: [Resolution]
372
-
373
- ### Deferred to Implementation
374
-
375
- - [Question or unknown]: [Why it is intentionally deferred]
376
-
377
- ## Implementation Units
378
-
379
- - [ ] **Unit 1: [Name]**
380
-
381
- **Goal:** [What this unit accomplishes]
382
-
383
- **Requirements:** [R1, R2]
384
-
385
- **Dependencies:** [None / Unit 1 / external prerequisite]
386
-
387
- **Files:**
388
- - Create: `path/to/new_file`
389
- - Modify: `path/to/existing_file`
390
- - Test: `path/to/test_file`
391
-
392
- **Approach:**
393
- - [Key design or sequencing decision]
394
-
395
- **Patterns to follow:**
396
- - [Existing file, class, or pattern]
397
-
398
- **Test scenarios:**
399
- - [Specific scenario with expected behavior]
400
- - [Edge case or failure path]
401
-
402
- **Verification:**
403
- - [Outcome that should hold when this unit is complete]
404
-
405
- ## System-Wide Impact
406
-
407
- - **Interaction graph:** [What callbacks, middleware, observers, or entry points may be affected]
408
- - **Error propagation:** [How failures should travel across layers]
409
- - **State lifecycle risks:** [Partial-write, cache, duplicate, or cleanup concerns]
410
- - **API surface parity:** [Other interfaces that may require the same change]
411
- - **Integration coverage:** [Cross-layer scenarios unit tests alone will not prove]
412
-
413
- ## Risks & Dependencies
414
-
415
- - [Meaningful risk, dependency, or sequencing concern]
416
-
417
- ## Documentation / Operational Notes
418
-
419
- - [Docs, rollout, monitoring, or support impacts when relevant]
420
-
421
- ## Sources & References
422
-
423
- - **Origin document:** [docs/brainstorms/YYYY-MM-DD-<topic>-requirements.md](path)
424
- - Related code: [path or symbol]
425
- - Related PRs/issues: #[number]
426
- - External docs: [url]
427
- ```
428
-
429
- For larger `Deep` plans, extend the core template only when useful with sections such as:
430
-
431
- ```markdown
432
- ## Alternative Approaches Considered
433
-
434
- - [Approach]: [Why rejected or not chosen]
435
-
436
- ## Success Metrics
437
-
438
- - [How we will know this solved the intended problem]
439
-
440
- ## Dependencies / Prerequisites
441
-
442
- - [Technical, organizational, or rollout dependency]
443
-
444
- ## Risk Analysis & Mitigation
445
-
446
- - [Risk]: [Mitigation]
447
-
448
- ## Phased Delivery
449
-
450
- ### Phase 1
451
- - [What lands first and why]
452
-
453
- ### Phase 2
454
- - [What follows and why]
455
-
456
- ## Documentation Plan
457
-
458
- - [Docs or runbooks to update]
459
-
460
- ## Operational / Rollout Notes
461
-
462
- - [Monitoring, migration, feature flag, or rollout considerations]
463
- ```
464
-
465
- #### 4.3 Planning Rules
466
-
467
- - Prefer path plus class/component/pattern references over brittle line numbers
468
- - Keep implementation units checkable with `- [ ]` syntax for progress tracking
469
- - Do not include fenced implementation code blocks unless the plan itself is about code shape as a design artifact
470
- - Do not include git commands, commit messages, or exact test command recipes
471
- - Do not pretend an execution-time question is settled just to make the plan look complete
472
- - Include mermaid diagrams when they clarify relationships or flows that prose alone would make hard to follow — ERDs for data model changes, sequence diagrams for multi-service interactions, state diagrams for lifecycle transitions, flowcharts for complex branching logic
473
-
474
- ### Phase 5: Final Review, Write File, and Handoff
475
-
476
- #### 5.1 Review Before Writing
477
-
478
- Before finalizing, check:
479
- - The plan does not invent product behavior that should have been defined in `ce:brainstorm`
480
- - If there was no origin document, the bounded planning bootstrap established enough product clarity to plan responsibly
481
- - Every major decision is grounded in the origin document or research
482
- - Each implementation unit is concrete, dependency-ordered, and implementation-ready
483
- - Test scenarios are specific without becoming test code
484
- - Deferred items are explicit and not hidden as fake certainty
485
-
486
- If the plan originated from a requirements document, re-read that document and verify:
487
- - The chosen approach still matches the product intent
488
- - Scope boundaries and success criteria are preserved
489
- - Blocking questions were either resolved, explicitly assumed, or sent back to `ce:brainstorm`
490
- - Every section of the origin document is addressed in the plan — scan each section to confirm nothing was silently dropped
491
-
492
- #### 5.2 Write Plan File
493
-
494
- **REQUIRED: Write the plan file to disk before presenting any options.**
495
-
496
- Use the write tool to save the complete plan to:
497
-
498
- ```text
499
- docs/plans/YYYY-MM-DD-NNN-<type>-<descriptive-name>-beta-plan.md
500
- ```
501
-
502
- Confirm:
503
-
504
- ```text
505
- Plan written to docs/plans/[filename]
506
- ```
507
-
508
- **Pipeline mode:** If invoked from an automated workflow such as LFG, SLFG, or any `disable-model-invocation` context, skip interactive questions. Make the needed choices automatically and proceed to writing the plan.
509
-
510
- #### 5.3 Post-Generation Options
511
-
512
- After writing the plan file, present the options using the platform's blocking question tool when available (see Interaction Method). Otherwise present numbered options in chat and wait for the user's reply before proceeding.
513
-
514
- **Question:** "Plan ready at `docs/plans/YYYY-MM-DD-NNN-<type>-<name>-beta-plan.md`. What would you like to do next?"
515
-
516
- **Options:**
517
- 1. **Open plan in editor** - Open the plan file for review
518
- 2. **Run `/deepen-plan-beta`** - Stress-test weak sections with targeted research when the plan needs more confidence
519
- 3. **Run `document-review` skill** - Improve the plan through structured document review
520
- 4. **Share to Proof** - Upload the plan for collaborative review and sharing
521
- 5. **Start `/ce:work`** - Begin implementing this plan in the current environment
522
- 6. **Start `/ce:work` in another session** - Begin implementing in a separate agent session when the current platform supports it
523
- 7. **Create Issue** - Create an issue in the configured tracker
524
-
525
- Based on selection:
526
- - **Open plan in editor** → Open `docs/plans/<plan_filename>.md` using the current platform's file-open or editor mechanism (e.g., `open` on macOS, `xdg-open` on Linux, or the IDE's file-open API)
527
- - **`/deepen-plan-beta`** → Call `/deepen-plan-beta` with the plan path
528
- - **`document-review` skill** → Load the `document-review` skill with the plan path
529
- - **Share to Proof** → Upload the plan:
530
- ```bash
531
- CONTENT=$(cat docs/plans/<plan_filename>.md)
532
- TITLE="Plan: <plan title from frontmatter>"
533
- RESPONSE=$(curl -s -X POST https://www.proofeditor.ai/share/markdown \
534
- -H "Content-Type: application/json" \
535
- -d "$(jq -n --arg title "$TITLE" --arg markdown "$CONTENT" --arg by "ai:compound" '{title: $title, markdown: $markdown, by: $by}')")
536
- PROOF_URL=$(echo "$RESPONSE" | jq -r '.tokenUrl')
537
- ```
538
- Display `View & collaborate in Proof: <PROOF_URL>` if successful, then return to the options
539
- - **`/ce:work`** → Call `/ce:work` with the plan path
540
- - **`/ce:work` in another session** → If the current platform supports launching a separate agent session, start `/ce:work` with the plan path there. Otherwise, explain the limitation briefly and offer to run `/ce:work` in the current session instead.
541
- - **Create Issue** → Follow the Issue Creation section below
542
- - **Other** → Accept free text for revisions and loop back to options
543
-
544
- If running with ultrathink enabled, or the platform's reasoning/effort level is set to max or extra-high, automatically run `/deepen-plan-beta` only when the plan is `Standard` or `Deep`, high-risk, or still shows meaningful confidence gaps in decisions, sequencing, system-wide impact, risks, or verification.
545
-
546
- ## Issue Creation
547
-
548
- When the user selects "Create Issue", detect their project tracker from `AGENTS.md`:
549
-
550
- 1. Look for `project_tracker: github` or `project_tracker: linear`
551
- 2. If GitHub:
552
-
553
- ```bash
554
- gh issue create --title "<type>: <title>" --body-file <plan_path>
555
- ```
556
-
557
- 3. If Linear:
558
-
559
- ```bash
560
- linear issue create --title "<title>" --description "$(cat <plan_path>)"
561
- ```
562
-
563
- 4. If no tracker is configured:
564
- - Ask which tracker they use using the platform's blocking question tool when available (see Interaction Method)
565
- - Suggest adding the tracker to `AGENTS.md` for future runs
566
-
567
- After issue creation:
568
- - Display the issue URL
569
- - Ask whether to proceed to `/ce:work`
570
-
571
- NEVER CODE! Research, decide, and write the plan.