@every-env/compound-plugin 0.9.0 → 2.34.2

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 (121) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/.github/workflows/publish.yml +20 -10
  3. package/.releaserc.json +31 -0
  4. package/AGENTS.md +6 -1
  5. package/CHANGELOG.md +76 -0
  6. package/CLAUDE.md +16 -3
  7. package/README.md +83 -16
  8. package/bun.lock +977 -0
  9. package/docs/plans/2026-02-14-feat-auto-detect-install-and-gemini-sync-plan.md +360 -0
  10. package/docs/plans/2026-02-25-feat-windsurf-global-scope-support-plan.md +627 -0
  11. package/docs/plans/2026-03-01-feat-ce-command-aliases-backwards-compatible-deprecation-plan.md +261 -0
  12. package/docs/plans/2026-03-01-fix-setup-skill-non-claude-llm-fallback-plan.md +140 -0
  13. package/docs/plans/2026-03-03-feat-sync-claude-mcp-all-supported-providers-plan.md +639 -0
  14. package/docs/plans/feature_opencode-commands-as-md-and-config-merge.md +574 -0
  15. package/docs/solutions/adding-converter-target-providers.md +693 -0
  16. package/docs/solutions/plugin-versioning-requirements.md +7 -3
  17. package/docs/specs/windsurf.md +477 -0
  18. package/package.json +10 -4
  19. package/plans/landing-page-launchkit-refresh.md +2 -2
  20. package/plugins/compound-engineering/.claude-plugin/plugin.json +2 -2
  21. package/plugins/compound-engineering/CHANGELOG.md +82 -1
  22. package/plugins/compound-engineering/CLAUDE.md +14 -7
  23. package/plugins/compound-engineering/README.md +10 -7
  24. package/plugins/compound-engineering/agents/research/git-history-analyzer.md +1 -1
  25. package/plugins/compound-engineering/agents/research/learnings-researcher.md +1 -1
  26. package/plugins/compound-engineering/agents/review/code-simplicity-reviewer.md +1 -1
  27. package/plugins/compound-engineering/commands/ce/brainstorm.md +145 -0
  28. package/plugins/compound-engineering/commands/ce/compound.md +240 -0
  29. package/plugins/compound-engineering/commands/ce/plan.md +636 -0
  30. package/plugins/compound-engineering/commands/ce/review.md +525 -0
  31. package/plugins/compound-engineering/commands/ce/work.md +470 -0
  32. package/plugins/compound-engineering/commands/create-agent-skill.md +1 -1
  33. package/plugins/compound-engineering/commands/deepen-plan.md +6 -6
  34. package/plugins/compound-engineering/commands/deploy-docs.md +1 -1
  35. package/plugins/compound-engineering/commands/feature-video.md +15 -6
  36. package/plugins/compound-engineering/commands/heal-skill.md +1 -1
  37. package/plugins/compound-engineering/commands/lfg.md +3 -3
  38. package/plugins/compound-engineering/commands/slfg.md +3 -3
  39. package/plugins/compound-engineering/commands/test-xcode.md +2 -2
  40. package/plugins/compound-engineering/commands/workflows/brainstorm.md +4 -123
  41. package/plugins/compound-engineering/commands/workflows/compound.md +4 -234
  42. package/plugins/compound-engineering/commands/workflows/plan.md +4 -562
  43. package/plugins/compound-engineering/commands/workflows/review.md +4 -522
  44. package/plugins/compound-engineering/commands/workflows/work.md +4 -448
  45. package/plugins/compound-engineering/skills/brainstorming/SKILL.md +3 -3
  46. package/plugins/compound-engineering/skills/create-agent-skills/workflows/add-workflow.md +6 -0
  47. package/plugins/compound-engineering/skills/create-agent-skills/workflows/create-new-skill.md +6 -0
  48. package/plugins/compound-engineering/skills/document-review/SKILL.md +1 -1
  49. package/plugins/compound-engineering/skills/file-todos/SKILL.md +1 -1
  50. package/plugins/compound-engineering/skills/git-worktree/SKILL.md +5 -5
  51. package/plugins/compound-engineering/skills/proof/SKILL.md +185 -0
  52. package/plugins/compound-engineering/skills/resolve-pr-parallel/SKILL.md +1 -1
  53. package/plugins/compound-engineering/skills/setup/SKILL.md +8 -2
  54. package/src/commands/convert.ts +101 -24
  55. package/src/commands/install.ts +102 -45
  56. package/src/commands/sync.ts +43 -62
  57. package/src/converters/claude-to-openclaw.ts +240 -0
  58. package/src/converters/claude-to-opencode.ts +12 -10
  59. package/src/converters/claude-to-qwen.ts +238 -0
  60. package/src/converters/claude-to-windsurf.ts +205 -0
  61. package/src/index.ts +2 -1
  62. package/src/parsers/claude-home.ts +55 -3
  63. package/src/sync/codex.ts +38 -62
  64. package/src/sync/commands.ts +198 -0
  65. package/src/sync/copilot.ts +14 -36
  66. package/src/sync/droid.ts +50 -9
  67. package/src/sync/gemini.ts +135 -0
  68. package/src/sync/json-config.ts +47 -0
  69. package/src/sync/kiro.ts +49 -0
  70. package/src/sync/mcp-transports.ts +19 -0
  71. package/src/sync/openclaw.ts +18 -0
  72. package/src/sync/opencode.ts +10 -30
  73. package/src/sync/pi.ts +12 -36
  74. package/src/sync/qwen.ts +66 -0
  75. package/src/sync/registry.ts +141 -0
  76. package/src/sync/skills.ts +21 -0
  77. package/src/sync/windsurf.ts +59 -0
  78. package/src/targets/index.ts +60 -1
  79. package/src/targets/openclaw.ts +96 -0
  80. package/src/targets/opencode.ts +76 -10
  81. package/src/targets/qwen.ts +64 -0
  82. package/src/targets/windsurf.ts +104 -0
  83. package/src/types/kiro.ts +3 -1
  84. package/src/types/openclaw.ts +52 -0
  85. package/src/types/opencode.ts +7 -8
  86. package/src/types/qwen.ts +51 -0
  87. package/src/types/windsurf.ts +35 -0
  88. package/src/utils/codex-agents.ts +1 -1
  89. package/src/utils/detect-tools.ts +37 -0
  90. package/src/utils/files.ts +14 -0
  91. package/src/utils/resolve-output.ts +50 -0
  92. package/src/utils/secrets.ts +24 -0
  93. package/src/utils/symlink.ts +4 -6
  94. package/tests/claude-home.test.ts +46 -0
  95. package/tests/cli.test.ts +180 -0
  96. package/tests/converter.test.ts +43 -10
  97. package/tests/detect-tools.test.ts +119 -0
  98. package/tests/openclaw-converter.test.ts +200 -0
  99. package/tests/opencode-writer.test.ts +142 -5
  100. package/tests/qwen-converter.test.ts +238 -0
  101. package/tests/resolve-output.test.ts +131 -0
  102. package/tests/sync-codex.test.ts +64 -0
  103. package/tests/sync-copilot.test.ts +60 -4
  104. package/tests/sync-droid.test.ts +44 -4
  105. package/tests/sync-gemini.test.ts +160 -0
  106. package/tests/sync-kiro.test.ts +83 -0
  107. package/tests/sync-openclaw.test.ts +51 -0
  108. package/tests/sync-qwen.test.ts +75 -0
  109. package/tests/sync-windsurf.test.ts +89 -0
  110. package/tests/windsurf-converter.test.ts +573 -0
  111. package/tests/windsurf-writer.test.ts +359 -0
  112. package/docs/css/docs.css +0 -675
  113. package/docs/css/style.css +0 -2886
  114. package/docs/index.html +0 -1046
  115. package/docs/js/main.js +0 -225
  116. package/docs/pages/agents.html +0 -649
  117. package/docs/pages/changelog.html +0 -534
  118. package/docs/pages/commands.html +0 -523
  119. package/docs/pages/getting-started.html +0 -582
  120. package/docs/pages/mcp-servers.html +0 -409
  121. package/docs/pages/skills.html +0 -611
@@ -1,568 +1,10 @@
1
1
  ---
2
2
  name: workflows:plan
3
- description: Transform feature descriptions into well-structured project plans following conventions
3
+ description: "[DEPRECATED] Use /ce:plan instead renamed for clarity."
4
4
  argument-hint: "[feature description, bug report, or improvement idea]"
5
+ disable-model-invocation: true
5
6
  ---
6
7
 
7
- # Create a plan for a new feature or bug fix
8
+ NOTE: /workflows:plan is deprecated. Please use /ce:plan instead. This alias will be removed in a future version.
8
9
 
9
- ## Introduction
10
-
11
- **Note: The current year is 2026.** Use this when dating plans and searching for recent documentation.
12
-
13
- Transform feature descriptions, bug reports, or improvement ideas into well-structured markdown files issues that follow project conventions and best practices. This command provides flexible detail levels to match your needs.
14
-
15
- ## Feature Description
16
-
17
- <feature_description> #$ARGUMENTS </feature_description>
18
-
19
- **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."
20
-
21
- Do not proceed until you have a clear feature description from the user.
22
-
23
- ### 0. Idea Refinement
24
-
25
- **Check for brainstorm output first:**
26
-
27
- Before asking questions, look for recent brainstorm documents in `docs/brainstorms/` that match this feature:
28
-
29
- ```bash
30
- ls -la docs/brainstorms/*.md 2>/dev/null | head -10
31
- ```
32
-
33
- **Relevance criteria:** A brainstorm is relevant if:
34
- - The topic (from filename or YAML frontmatter) semantically matches the feature description
35
- - Created within the last 14 days
36
- - If multiple candidates match, use the most recent one
37
-
38
- **If a relevant brainstorm exists:**
39
- 1. Read the brainstorm document
40
- 2. Announce: "Found brainstorm from [date]: [topic]. Using as context for planning."
41
- 3. Extract key decisions, chosen approach, and open questions
42
- 4. **Skip the idea refinement questions below** - the brainstorm already answered WHAT to build
43
- 5. Use brainstorm decisions as input to the research phase
44
-
45
- **If multiple brainstorms could match:**
46
- Use **AskUserQuestion tool** to ask which brainstorm to use, or whether to proceed without one.
47
-
48
- **If no brainstorm found (or not relevant), run idea refinement:**
49
-
50
- Refine the idea through collaborative dialogue using the **AskUserQuestion tool**:
51
-
52
- - Ask questions one at a time to understand the idea fully
53
- - Prefer multiple choice questions when natural options exist
54
- - Focus on understanding: purpose, constraints and success criteria
55
- - Continue until the idea is clear OR user says "proceed"
56
-
57
- **Gather signals for research decision.** During refinement, note:
58
-
59
- - **User's familiarity**: Do they know the codebase patterns? Are they pointing to examples?
60
- - **User's intent**: Speed vs thoroughness? Exploration vs execution?
61
- - **Topic risk**: Security, payments, external APIs warrant more caution
62
- - **Uncertainty level**: Is the approach clear or open-ended?
63
-
64
- **Skip option:** If the feature description is already detailed, offer:
65
- "Your description is clear. Should I proceed with research, or would you like to refine it further?"
66
-
67
- ## Main Tasks
68
-
69
- ### 1. Local Research (Always Runs - Parallel)
70
-
71
- <thinking>
72
- First, I need to understand the project's conventions, existing patterns, and any documented learnings. This is fast and local - it informs whether external research is needed.
73
- </thinking>
74
-
75
- Run these agents **in parallel** to gather local context:
76
-
77
- - Task repo-research-analyst(feature_description)
78
- - Task learnings-researcher(feature_description)
79
-
80
- **What to look for:**
81
- - **Repo research:** existing patterns, CLAUDE.md guidance, technology familiarity, pattern consistency
82
- - **Learnings:** documented solutions in `docs/solutions/` that might apply (gotchas, patterns, lessons learned)
83
-
84
- These findings inform the next step.
85
-
86
- ### 1.5. Research Decision
87
-
88
- Based on signals from Step 0 and findings from Step 1, decide on external research.
89
-
90
- **High-risk topics → always research.** Security, payments, external APIs, data privacy. The cost of missing something is too high. This takes precedence over speed signals.
91
-
92
- **Strong local context → skip external research.** Codebase has good patterns, CLAUDE.md has guidance, user knows what they want. External research adds little value.
93
-
94
- **Uncertainty or unfamiliar territory → research.** User is exploring, codebase has no examples, new technology. External perspective is valuable.
95
-
96
- **Announce the decision and proceed.** Brief explanation, then continue. User can redirect if needed.
97
-
98
- Examples:
99
- - "Your codebase has solid patterns for this. Proceeding without external research."
100
- - "This involves payment processing, so I'll research current best practices first."
101
-
102
- ### 1.5b. External Research (Conditional)
103
-
104
- **Only run if Step 1.5 indicates external research is valuable.**
105
-
106
- Run these agents in parallel:
107
-
108
- - Task best-practices-researcher(feature_description)
109
- - Task framework-docs-researcher(feature_description)
110
-
111
- ### 1.6. Consolidate Research
112
-
113
- After all research steps complete, consolidate findings:
114
-
115
- - Document relevant file paths from repo research (e.g., `app/services/example_service.rb:42`)
116
- - **Include relevant institutional learnings** from `docs/solutions/` (key insights, gotchas to avoid)
117
- - Note external documentation URLs and best practices (if external research was done)
118
- - List related issues or PRs discovered
119
- - Capture CLAUDE.md conventions
120
-
121
- **Optional validation:** Briefly summarize findings and ask if anything looks off or missing before proceeding to planning.
122
-
123
- ### 2. Issue Planning & Structure
124
-
125
- <thinking>
126
- Think like a product manager - what would make this issue clear and actionable? Consider multiple perspectives
127
- </thinking>
128
-
129
- **Title & Categorization:**
130
-
131
- - [ ] Draft clear, searchable issue title using conventional format (e.g., `feat: Add user authentication`, `fix: Cart total calculation`)
132
- - [ ] Determine issue type: enhancement, bug, refactor
133
- - [ ] Convert title to filename: add today's date prefix, strip prefix colon, kebab-case, add `-plan` suffix
134
- - Example: `feat: Add User Authentication` → `2026-01-21-feat-add-user-authentication-plan.md`
135
- - Keep it descriptive (3-5 words after prefix) so plans are findable by context
136
-
137
- **Stakeholder Analysis:**
138
-
139
- - [ ] Identify who will be affected by this issue (end users, developers, operations)
140
- - [ ] Consider implementation complexity and required expertise
141
-
142
- **Content Planning:**
143
-
144
- - [ ] Choose appropriate detail level based on issue complexity and audience
145
- - [ ] List all necessary sections for the chosen template
146
- - [ ] Gather supporting materials (error logs, screenshots, design mockups)
147
- - [ ] Prepare code examples or reproduction steps if applicable, name the mock filenames in the lists
148
-
149
- ### 3. SpecFlow Analysis
150
-
151
- After planning the issue structure, run SpecFlow Analyzer to validate and refine the feature specification:
152
-
153
- - Task compound-engineering:workflow:spec-flow-analyzer(feature_description, research_findings)
154
-
155
- **SpecFlow Analyzer Output:**
156
-
157
- - [ ] Review SpecFlow analysis results
158
- - [ ] Incorporate any identified gaps or edge cases into the issue
159
- - [ ] Update acceptance criteria based on SpecFlow findings
160
-
161
- ### 4. Choose Implementation Detail Level
162
-
163
- Select how comprehensive you want the issue to be, simpler is mostly better.
164
-
165
- #### 📄 MINIMAL (Quick Issue)
166
-
167
- **Best for:** Simple bugs, small improvements, clear features
168
-
169
- **Includes:**
170
-
171
- - Problem statement or feature description
172
- - Basic acceptance criteria
173
- - Essential context only
174
-
175
- **Structure:**
176
-
177
- ````markdown
178
- ---
179
- title: [Issue Title]
180
- type: [feat|fix|refactor]
181
- status: active
182
- date: YYYY-MM-DD
183
- ---
184
-
185
- # [Issue Title]
186
-
187
- [Brief problem/feature description]
188
-
189
- ## Acceptance Criteria
190
-
191
- - [ ] Core requirement 1
192
- - [ ] Core requirement 2
193
-
194
- ## Context
195
-
196
- [Any critical information]
197
-
198
- ## MVP
199
-
200
- ### test.rb
201
-
202
- ```ruby
203
- class Test
204
- def initialize
205
- @name = "test"
206
- end
207
- end
208
- ```
209
-
210
- ## References
211
-
212
- - Related issue: #[issue_number]
213
- - Documentation: [relevant_docs_url]
214
- ````
215
-
216
- #### 📋 MORE (Standard Issue)
217
-
218
- **Best for:** Most features, complex bugs, team collaboration
219
-
220
- **Includes everything from MINIMAL plus:**
221
-
222
- - Detailed background and motivation
223
- - Technical considerations
224
- - Success metrics
225
- - Dependencies and risks
226
- - Basic implementation suggestions
227
-
228
- **Structure:**
229
-
230
- ```markdown
231
- ---
232
- title: [Issue Title]
233
- type: [feat|fix|refactor]
234
- status: active
235
- date: YYYY-MM-DD
236
- ---
237
-
238
- # [Issue Title]
239
-
240
- ## Overview
241
-
242
- [Comprehensive description]
243
-
244
- ## Problem Statement / Motivation
245
-
246
- [Why this matters]
247
-
248
- ## Proposed Solution
249
-
250
- [High-level approach]
251
-
252
- ## Technical Considerations
253
-
254
- - Architecture impacts
255
- - Performance implications
256
- - Security considerations
257
-
258
- ## Acceptance Criteria
259
-
260
- - [ ] Detailed requirement 1
261
- - [ ] Detailed requirement 2
262
- - [ ] Testing requirements
263
-
264
- ## Success Metrics
265
-
266
- [How we measure success]
267
-
268
- ## Dependencies & Risks
269
-
270
- [What could block or complicate this]
271
-
272
- ## References & Research
273
-
274
- - Similar implementations: [file_path:line_number]
275
- - Best practices: [documentation_url]
276
- - Related PRs: #[pr_number]
277
- ```
278
-
279
- #### 📚 A LOT (Comprehensive Issue)
280
-
281
- **Best for:** Major features, architectural changes, complex integrations
282
-
283
- **Includes everything from MORE plus:**
284
-
285
- - Detailed implementation plan with phases
286
- - Alternative approaches considered
287
- - Extensive technical specifications
288
- - Resource requirements and timeline
289
- - Future considerations and extensibility
290
- - Risk mitigation strategies
291
- - Documentation requirements
292
-
293
- **Structure:**
294
-
295
- ```markdown
296
- ---
297
- title: [Issue Title]
298
- type: [feat|fix|refactor]
299
- status: active
300
- date: YYYY-MM-DD
301
- ---
302
-
303
- # [Issue Title]
304
-
305
- ## Overview
306
-
307
- [Executive summary]
308
-
309
- ## Problem Statement
310
-
311
- [Detailed problem analysis]
312
-
313
- ## Proposed Solution
314
-
315
- [Comprehensive solution design]
316
-
317
- ## Technical Approach
318
-
319
- ### Architecture
320
-
321
- [Detailed technical design]
322
-
323
- ### Implementation Phases
324
-
325
- #### Phase 1: [Foundation]
326
-
327
- - Tasks and deliverables
328
- - Success criteria
329
- - Estimated effort
330
-
331
- #### Phase 2: [Core Implementation]
332
-
333
- - Tasks and deliverables
334
- - Success criteria
335
- - Estimated effort
336
-
337
- #### Phase 3: [Polish & Optimization]
338
-
339
- - Tasks and deliverables
340
- - Success criteria
341
- - Estimated effort
342
-
343
- ## Alternative Approaches Considered
344
-
345
- [Other solutions evaluated and why rejected]
346
-
347
- ## Acceptance Criteria
348
-
349
- ### Functional Requirements
350
-
351
- - [ ] Detailed functional criteria
352
-
353
- ### Non-Functional Requirements
354
-
355
- - [ ] Performance targets
356
- - [ ] Security requirements
357
- - [ ] Accessibility standards
358
-
359
- ### Quality Gates
360
-
361
- - [ ] Test coverage requirements
362
- - [ ] Documentation completeness
363
- - [ ] Code review approval
364
-
365
- ## Success Metrics
366
-
367
- [Detailed KPIs and measurement methods]
368
-
369
- ## Dependencies & Prerequisites
370
-
371
- [Detailed dependency analysis]
372
-
373
- ## Risk Analysis & Mitigation
374
-
375
- [Comprehensive risk assessment]
376
-
377
- ## Resource Requirements
378
-
379
- [Team, time, infrastructure needs]
380
-
381
- ## Future Considerations
382
-
383
- [Extensibility and long-term vision]
384
-
385
- ## Documentation Plan
386
-
387
- [What docs need updating]
388
-
389
- ## References & Research
390
-
391
- ### Internal References
392
-
393
- - Architecture decisions: [file_path:line_number]
394
- - Similar features: [file_path:line_number]
395
- - Configuration: [file_path:line_number]
396
-
397
- ### External References
398
-
399
- - Framework documentation: [url]
400
- - Best practices guide: [url]
401
- - Industry standards: [url]
402
-
403
- ### Related Work
404
-
405
- - Previous PRs: #[pr_numbers]
406
- - Related issues: #[issue_numbers]
407
- - Design documents: [links]
408
- ```
409
-
410
- ### 5. Issue Creation & Formatting
411
-
412
- <thinking>
413
- Apply best practices for clarity and actionability, making the issue easy to scan and understand
414
- </thinking>
415
-
416
- **Content Formatting:**
417
-
418
- - [ ] Use clear, descriptive headings with proper hierarchy (##, ###)
419
- - [ ] Include code examples in triple backticks with language syntax highlighting
420
- - [ ] Add screenshots/mockups if UI-related (drag & drop or use image hosting)
421
- - [ ] Use task lists (- [ ]) for trackable items that can be checked off
422
- - [ ] Add collapsible sections for lengthy logs or optional details using `<details>` tags
423
- - [ ] Apply appropriate emoji for visual scanning (🐛 bug, ✨ feature, 📚 docs, ♻️ refactor)
424
-
425
- **Cross-Referencing:**
426
-
427
- - [ ] Link to related issues/PRs using #number format
428
- - [ ] Reference specific commits with SHA hashes when relevant
429
- - [ ] Link to code using GitHub's permalink feature (press 'y' for permanent link)
430
- - [ ] Mention relevant team members with @username if needed
431
- - [ ] Add links to external resources with descriptive text
432
-
433
- **Code & Examples:**
434
-
435
- ````markdown
436
- # Good example with syntax highlighting and line references
437
-
438
-
439
- ```ruby
440
- # app/services/user_service.rb:42
441
- def process_user(user)
442
-
443
- # Implementation here
444
-
445
- end
446
- ```
447
-
448
- # Collapsible error logs
449
-
450
- <details>
451
- <summary>Full error stacktrace</summary>
452
-
453
- `Error details here...`
454
-
455
- </details>
456
- ````
457
-
458
- **AI-Era Considerations:**
459
-
460
- - [ ] Account for accelerated development with AI pair programming
461
- - [ ] Include prompts or instructions that worked well during research
462
- - [ ] Note which AI tools were used for initial exploration (Claude, Copilot, etc.)
463
- - [ ] Emphasize comprehensive testing given rapid implementation
464
- - [ ] Document any AI-generated code that needs human review
465
-
466
- ### 6. Final Review & Submission
467
-
468
- **Pre-submission Checklist:**
469
-
470
- - [ ] Title is searchable and descriptive
471
- - [ ] Labels accurately categorize the issue
472
- - [ ] All template sections are complete
473
- - [ ] Links and references are working
474
- - [ ] Acceptance criteria are measurable
475
- - [ ] Add names of files in pseudo code examples and todo lists
476
- - [ ] Add an ERD mermaid diagram if applicable for new model changes
477
-
478
- ## Write Plan File
479
-
480
- **REQUIRED: Write the plan file to disk before presenting any options.**
481
-
482
- ```bash
483
- mkdir -p docs/plans/
484
- ```
485
-
486
- Use the Write tool to save the complete plan to `docs/plans/YYYY-MM-DD-<type>-<descriptive-name>-plan.md`. This step is mandatory and cannot be skipped — even when running as part of LFG/SLFG or other automated pipelines.
487
-
488
- Confirm: "Plan written to docs/plans/[filename]"
489
-
490
- **Pipeline mode:** If invoked from an automated workflow (LFG, SLFG, or any `disable-model-invocation` context), skip all AskUserQuestion calls. Make decisions automatically and proceed to writing the plan without interactive prompts.
491
-
492
- ## Output Format
493
-
494
- **Filename:** Use the date and kebab-case filename from Step 2 Title & Categorization.
495
-
496
- ```
497
- docs/plans/YYYY-MM-DD-<type>-<descriptive-name>-plan.md
498
- ```
499
-
500
- Examples:
501
- - ✅ `docs/plans/2026-01-15-feat-user-authentication-flow-plan.md`
502
- - ✅ `docs/plans/2026-02-03-fix-checkout-race-condition-plan.md`
503
- - ✅ `docs/plans/2026-03-10-refactor-api-client-extraction-plan.md`
504
- - ❌ `docs/plans/2026-01-15-feat-thing-plan.md` (not descriptive - what "thing"?)
505
- - ❌ `docs/plans/2026-01-15-feat-new-feature-plan.md` (too vague - what feature?)
506
- - ❌ `docs/plans/2026-01-15-feat: user auth-plan.md` (invalid characters - colon and space)
507
- - ❌ `docs/plans/feat-user-auth-plan.md` (missing date prefix)
508
-
509
- ## Post-Generation Options
510
-
511
- After writing the plan file, use the **AskUserQuestion tool** to present these options:
512
-
513
- **Question:** "Plan ready at `docs/plans/YYYY-MM-DD-<type>-<name>-plan.md`. What would you like to do next?"
514
-
515
- **Options:**
516
- 1. **Open plan in editor** - Open the plan file for review
517
- 2. **Run `/deepen-plan`** - Enhance each section with parallel research agents (best practices, performance, UI)
518
- 3. **Run `/technical_review`** - Technical feedback from code-focused reviewers (DHH, Kieran, Simplicity)
519
- 4. **Review and refine** - Improve the document through structured self-review
520
- 5. **Start `/workflows:work`** - Begin implementing this plan locally
521
- 6. **Start `/workflows:work` on remote** - Begin implementing in Claude Code on the web (use `&` to run in background)
522
- 7. **Create Issue** - Create issue in project tracker (GitHub/Linear)
523
-
524
- Based on selection:
525
- - **Open plan in editor** → Run `open docs/plans/<plan_filename>.md` to open the file in the user's default editor
526
- - **`/deepen-plan`** → Call the /deepen-plan command with the plan file path to enhance with research
527
- - **`/technical_review`** → Call the /technical_review command with the plan file path
528
- - **Review and refine** → Load `document-review` skill.
529
- - **`/workflows:work`** → Call the /workflows:work command with the plan file path
530
- - **`/workflows:work` on remote** → Run `/workflows:work docs/plans/<plan_filename>.md &` to start work in background for Claude Code web
531
- - **Create Issue** → See "Issue Creation" section below
532
- - **Other** (automatically provided) → Accept free text for rework or specific changes
533
-
534
- **Note:** If running `/workflows:plan` with ultrathink enabled, automatically run `/deepen-plan` after plan creation for maximum depth and grounding.
535
-
536
- Loop back to options after Simplify or Other changes until user selects `/workflows:work` or `/technical_review`.
537
-
538
- ## Issue Creation
539
-
540
- When user selects "Create Issue", detect their project tracker from CLAUDE.md:
541
-
542
- 1. **Check for tracker preference** in user's CLAUDE.md (global or project):
543
- - Look for `project_tracker: github` or `project_tracker: linear`
544
- - Or look for mentions of "GitHub Issues" or "Linear" in their workflow section
545
-
546
- 2. **If GitHub:**
547
-
548
- Use the title and type from Step 2 (already in context - no need to re-read the file):
549
-
550
- ```bash
551
- gh issue create --title "<type>: <title>" --body-file <plan_path>
552
- ```
553
-
554
- 3. **If Linear:**
555
-
556
- ```bash
557
- linear issue create --title "<title>" --description "$(cat <plan_path>)"
558
- ```
559
-
560
- 4. **If no tracker configured:**
561
- Ask user: "Which project tracker do you use? (GitHub/Linear/Other)"
562
- - Suggest adding `project_tracker: github` or `project_tracker: linear` to their CLAUDE.md
563
-
564
- 5. **After creation:**
565
- - Display the issue URL
566
- - Ask if they want to proceed to `/workflows:work` or `/technical_review`
567
-
568
- NEVER CODE! Just research and write the plan.
10
+ /ce:plan $ARGUMENTS