pi-maestro-flow 0.2.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.
Files changed (179) hide show
  1. package/README.md +124 -0
  2. package/agents/aggregator.md +27 -0
  3. package/agents/cli-explore-agent.md +188 -0
  4. package/agents/cross-role-reviewer.md +171 -0
  5. package/agents/delegate.md +19 -0
  6. package/agents/explorer.md +23 -0
  7. package/agents/impeccable-agent.md +99 -0
  8. package/agents/ralph-executor.md +81 -0
  9. package/agents/reference.md +24 -0
  10. package/agents/role-design-author.md +220 -0
  11. package/agents/team-supervisor.md +143 -0
  12. package/agents/team-worker.md +237 -0
  13. package/agents/ui-design-agent.md +270 -0
  14. package/agents/workflow-analyzer.md +116 -0
  15. package/agents/workflow-codebase-mapper.md +77 -0
  16. package/agents/workflow-collab-planner.md +147 -0
  17. package/agents/workflow-debugger.md +104 -0
  18. package/agents/workflow-executor.md +133 -0
  19. package/agents/workflow-external-researcher.md +86 -0
  20. package/agents/workflow-integration-checker.md +83 -0
  21. package/agents/workflow-nyquist-auditor.md +85 -0
  22. package/agents/workflow-phase-researcher.md +85 -0
  23. package/agents/workflow-plan-checker.md +100 -0
  24. package/agents/workflow-planner.md +200 -0
  25. package/agents/workflow-project-researcher.md +74 -0
  26. package/agents/workflow-research-synthesizer.md +70 -0
  27. package/agents/workflow-reviewer.md +82 -0
  28. package/agents/workflow-roadmapper.md +81 -0
  29. package/agents/workflow-verifier.md +120 -0
  30. package/package.json +58 -0
  31. package/skills/codify-to-knowhow/SKILL.md +167 -0
  32. package/skills/delegation-check/SKILL.md +297 -0
  33. package/skills/domain-add/SKILL.md +75 -0
  34. package/skills/insight-challenge/SKILL.md +226 -0
  35. package/skills/learn-decompose/SKILL.md +124 -0
  36. package/skills/learn-follow/SKILL.md +163 -0
  37. package/skills/learn-investigate/SKILL.md +160 -0
  38. package/skills/learn-second-opinion/SKILL.md +128 -0
  39. package/skills/maestro/SKILL.md +239 -0
  40. package/skills/maestro-amend/SKILL.md +169 -0
  41. package/skills/maestro-analyze/SKILL.md +173 -0
  42. package/skills/maestro-blueprint/SKILL.md +159 -0
  43. package/skills/maestro-brainstorm/SKILL.md +193 -0
  44. package/skills/maestro-collab/SKILL.md +181 -0
  45. package/skills/maestro-companion/SKILL.md +536 -0
  46. package/skills/maestro-composer/SKILL.md +192 -0
  47. package/skills/maestro-execute/SKILL.md +193 -0
  48. package/skills/maestro-fork/SKILL.md +104 -0
  49. package/skills/maestro-grill/SKILL.md +151 -0
  50. package/skills/maestro-guard/SKILL.md +124 -0
  51. package/skills/maestro-help/SKILL.md +328 -0
  52. package/skills/maestro-impeccable/SKILL.md +302 -0
  53. package/skills/maestro-init/SKILL.md +151 -0
  54. package/skills/maestro-merge/SKILL.md +90 -0
  55. package/skills/maestro-milestone-audit/SKILL.md +117 -0
  56. package/skills/maestro-milestone-complete/SKILL.md +133 -0
  57. package/skills/maestro-milestone-release/SKILL.md +131 -0
  58. package/skills/maestro-next/SKILL.md +269 -0
  59. package/skills/maestro-overlay/SKILL.md +203 -0
  60. package/skills/maestro-plan/SKILL.md +194 -0
  61. package/skills/maestro-player/SKILL.md +184 -0
  62. package/skills/maestro-quick/SKILL.md +117 -0
  63. package/skills/maestro-ralph/SKILL.md +905 -0
  64. package/skills/maestro-ralph-cli/SKILL.md +976 -0
  65. package/skills/maestro-ralph-cli-execute/SKILL.md +229 -0
  66. package/skills/maestro-ralph-execute/SKILL.md +409 -0
  67. package/skills/maestro-ralph-v2/SKILL.md +1198 -0
  68. package/skills/maestro-roadmap/SKILL.md +157 -0
  69. package/skills/maestro-swarm-workflow/SKILL.md +272 -0
  70. package/skills/maestro-tools-execute/SKILL.md +143 -0
  71. package/skills/maestro-tools-register/SKILL.md +192 -0
  72. package/skills/maestro-ui-codify/SKILL.md +127 -0
  73. package/skills/maestro-universal-workflow/SKILL.md +622 -0
  74. package/skills/maestro-update/SKILL.md +156 -0
  75. package/skills/manage-codebase-rebuild/SKILL.md +111 -0
  76. package/skills/manage-drift-realign/SKILL.md +159 -0
  77. package/skills/manage-harvest/SKILL.md +121 -0
  78. package/skills/manage-issue/SKILL.md +88 -0
  79. package/skills/manage-issue-discover/SKILL.md +104 -0
  80. package/skills/manage-kg-extractors/SKILL.md +147 -0
  81. package/skills/manage-knowhow/SKILL.md +102 -0
  82. package/skills/manage-knowhow-capture/SKILL.md +109 -0
  83. package/skills/manage-knowledge-audit/SKILL.md +147 -0
  84. package/skills/manage-status/SKILL.md +80 -0
  85. package/skills/manage-wiki/SKILL.md +104 -0
  86. package/skills/odyssey-debug/SKILL.md +344 -0
  87. package/skills/odyssey-improve/SKILL.md +423 -0
  88. package/skills/odyssey-planex/SKILL.md +542 -0
  89. package/skills/odyssey-review-test-fix/SKILL.md +392 -0
  90. package/skills/odyssey-ui/SKILL.md +388 -0
  91. package/skills/prompt-generator/SKILL.md +470 -0
  92. package/skills/quality-auto-test/SKILL.md +168 -0
  93. package/skills/quality-debug/SKILL.md +176 -0
  94. package/skills/quality-refactor/SKILL.md +108 -0
  95. package/skills/quality-retrospective/SKILL.md +134 -0
  96. package/skills/quality-review/SKILL.md +169 -0
  97. package/skills/quality-sync/SKILL.md +90 -0
  98. package/skills/quality-test/SKILL.md +183 -0
  99. package/skills/scholar-anti-ai-writing/SKILL.md +173 -0
  100. package/skills/scholar-anti-ai-writing/references/patterns-chinese.md +242 -0
  101. package/skills/scholar-anti-ai-writing/references/patterns-english.md +242 -0
  102. package/skills/scholar-citation-verify/SKILL.md +166 -0
  103. package/skills/scholar-citation-verify/references/api-usage.md +372 -0
  104. package/skills/scholar-citation-verify/references/common-errors.md +384 -0
  105. package/skills/scholar-citation-verify/references/verification-rules.md +399 -0
  106. package/skills/scholar-experiment/SKILL.md +321 -0
  107. package/skills/scholar-ideation/SKILL.md +288 -0
  108. package/skills/scholar-latex-organizer/SKILL.md +186 -0
  109. package/skills/scholar-publish/SKILL.md +220 -0
  110. package/skills/scholar-rebuttal-pro/README.md +313 -0
  111. package/skills/scholar-rebuttal-pro/SKILL.md +511 -0
  112. package/skills/scholar-review/SKILL.md +227 -0
  113. package/skills/scholar-thesis-docx/README.md +111 -0
  114. package/skills/scholar-thesis-docx/README_EN.md +108 -0
  115. package/skills/scholar-thesis-docx/SKILL.md +212 -0
  116. package/skills/scholar-thesis-docx/references/failure-patterns-and-quality-gates.md +178 -0
  117. package/skills/scholar-thesis-docx/references/figure-and-code-rules.md +33 -0
  118. package/skills/scholar-thesis-docx/references/paper-format-workflow.md +68 -0
  119. package/skills/scholar-thesis-docx/references/script-usage.md +157 -0
  120. package/skills/scholar-thesis-docx/scripts/audit_docx_ooxml.py +429 -0
  121. package/skills/scholar-thesis-docx/scripts/check_word_com.ps1 +50 -0
  122. package/skills/scholar-thesis-docx/scripts/export_word_pdf.ps1 +62 -0
  123. package/skills/scholar-thesis-docx/scripts/normalize_word_styles.ps1 +498 -0
  124. package/skills/scholar-thesis-docx/scripts/render_mermaid_figure.ps1 +148 -0
  125. package/skills/scholar-writing/SKILL.md +296 -0
  126. package/skills/security-audit/SKILL.md +244 -0
  127. package/skills/skill-generator/SKILL.md +472 -0
  128. package/skills/skill-iter-tune/SKILL.md +382 -0
  129. package/skills/skill-simplify/SKILL.md +63 -0
  130. package/skills/skill-tuning/SKILL.md +174 -0
  131. package/skills/spec-add/SKILL.md +105 -0
  132. package/skills/spec-load/SKILL.md +98 -0
  133. package/skills/spec-remove/SKILL.md +74 -0
  134. package/skills/spec-setup/SKILL.md +75 -0
  135. package/skills/team-adversarial-swarm/SKILL.md +233 -0
  136. package/skills/team-adversarial-swarm/scripts/__pycache__/pheromone.cpython-313.pyc +0 -0
  137. package/skills/team-adversarial-swarm/scripts/__pycache__/scoring.cpython-313.pyc +0 -0
  138. package/skills/team-adversarial-swarm/scripts/aco.py +473 -0
  139. package/skills/team-adversarial-swarm/scripts/pheromone.py +144 -0
  140. package/skills/team-adversarial-swarm/scripts/scoring.py +92 -0
  141. package/skills/team-adversarial-swarm/scripts/test_aco.py +475 -0
  142. package/skills/team-arch-opt/SKILL.md +158 -0
  143. package/skills/team-brainstorm/SKILL.md +171 -0
  144. package/skills/team-coordinate/SKILL.md +266 -0
  145. package/skills/team-designer/SKILL.md +160 -0
  146. package/skills/team-executor/SKILL.md +189 -0
  147. package/skills/team-frontend/SKILL.md +136 -0
  148. package/skills/team-frontend-debug/SKILL.md +198 -0
  149. package/skills/team-interactive-craft/SKILL.md +141 -0
  150. package/skills/team-issue/SKILL.md +171 -0
  151. package/skills/team-lifecycle-v4/SKILL.md +209 -0
  152. package/skills/team-motion-design/SKILL.md +142 -0
  153. package/skills/team-perf-opt/SKILL.md +175 -0
  154. package/skills/team-planex/SKILL.md +137 -0
  155. package/skills/team-quality-assurance/SKILL.md +147 -0
  156. package/skills/team-review/SKILL.md +147 -0
  157. package/skills/team-roadmap-dev/SKILL.md +169 -0
  158. package/skills/team-swarm/SKILL.md +178 -0
  159. package/skills/team-swarm/scripts/aco.py +473 -0
  160. package/skills/team-swarm/scripts/pheromone.py +144 -0
  161. package/skills/team-swarm/scripts/scoring.py +92 -0
  162. package/skills/team-swarm/scripts/test_aco.py +475 -0
  163. package/skills/team-tech-debt/SKILL.md +128 -0
  164. package/skills/team-testing/SKILL.md +143 -0
  165. package/skills/team-ui-polish/SKILL.md +141 -0
  166. package/skills/team-uidesign/SKILL.md +144 -0
  167. package/skills/team-ultra-analyze/SKILL.md +173 -0
  168. package/skills/team-ux-improve/SKILL.md +151 -0
  169. package/skills/team-visual-a11y/SKILL.md +156 -0
  170. package/skills/workflow-skill-designer/SKILL.md +496 -0
  171. package/src/extension/index.ts +222 -0
  172. package/src/extension/schemas.ts +131 -0
  173. package/src/providers/cli-tools-loader.ts +74 -0
  174. package/src/providers/provider-registry.ts +130 -0
  175. package/src/tools/delegate.ts +85 -0
  176. package/src/tools/explore.ts +134 -0
  177. package/src/tools/moa.ts +213 -0
  178. package/src/tools/status.ts +99 -0
  179. package/src/tools/wait.ts +166 -0
@@ -0,0 +1,186 @@
1
+ ---
2
+ name: scholar-latex-organizer
3
+ description: "Organize messy conference LaTeX template .zip files into clean Overleaf-ready structure. Extracts, analyzes, cleans up, and generates README with submission requirements. Triggers on \"organize LaTeX template\", \"clean up template\", \"prepare Overleaf template\", \"整理LaTeX模板\"."
4
+ allowed-tools: Read Write Edit Bash Glob Grep WebSearch WebFetch AskUserQuestion TodoWrite
5
+ ---
6
+
7
+ # Scholar LaTeX Organizer
8
+
9
+ Transform messy conference LaTeX template .zip files into clean, Overleaf-ready submission templates. Official templates often contain excessive examples and disorganized files — this skill converts them into templates ready for writing.
10
+
11
+ ## Pre-load (before execution)
12
+
13
+ 1. **Codebase docs**: If `.workflow/codebase/ARCHITECTURE.md` exists, read for project context
14
+ 2. **Specs**: `maestro load --type spec --category coding` — load coding conventions
15
+ 3. **Wiki knowledge**: `maestro search "academic writing research paper" --json` — top 5 entries as prior context
16
+ 4. All optional — proceed without if unavailable
17
+
18
+ ## Architecture Overview
19
+
20
+ ```
21
+ User: "Organize this LaTeX template"
22
+ |
23
+ v
24
+ ┌──────────────────────────────────────────────────────────────┐
25
+ │ SKILL.md (Orchestrator) │
26
+ │ Collect preferences → Dispatch phases → Track progress │
27
+ └──────────┬───────────────────────────────────────────────────┘
28
+ |
29
+ ┌───────┼───────────┬──────────────┐
30
+ v v v v
31
+ ┌──────┐┌──────────┐┌──────────────┐
32
+ │ P1 ││ P2 ││ P3 │
33
+ │Extract││ Cleanup ││ README & │
34
+ │ & ││ & ││ Finalize │
35
+ │Analyze││ Organize ││ │
36
+ └──┬───┘└────┬─────┘└──────┬───────┘
37
+ │ │ │
38
+ v v v
39
+ analysis clean output/
40
+ + plan structure (Overleaf-ready)
41
+ ```
42
+
43
+ ## Key Design Principles
44
+
45
+ 1. **Analyze-then-confirm**: First present findings, then execute after user approval.
46
+ 2. **Preserve template integrity**: Keep all .sty/.cls files unchanged — only clean up .tex content.
47
+ 3. **Section separation**: Split monolithic main.tex into modular text/ files.
48
+ 4. **Conference-aware**: Detect document class and apply conference-specific configurations.
49
+
50
+ ## Interactive Preference Collection
51
+
52
+ Before dispatching to any phase, collect these preferences:
53
+
54
+ ```
55
+ Questions to ask the user:
56
+
57
+ 1. Template Source
58
+ "Where is the template .zip file? (path)"
59
+ → templatePath
60
+
61
+ 2. Conference Info
62
+ "Conference name or submission page URL (for extracting requirements)"
63
+ → conferenceInfo
64
+
65
+ 3. Output Directory
66
+ "Where should the organized template go? (default: ./output/)"
67
+ → outputDir
68
+
69
+ 4. Section Structure
70
+ Options: Standard (intro/related/method/experiments/conclusion) | Custom
71
+ → sectionStructure
72
+ ```
73
+
74
+ Store responses as `organizerPreferences` context for all phases.
75
+
76
+ ## Auto Mode Defaults
77
+
78
+ When `workflowPreferences.autoYes === true`:
79
+ - Use .zip file from cwd or recent downloads
80
+ - Standard section structure
81
+ - Output to ./output/
82
+ - Auto-detect conference from template
83
+ - Skip confirmation prompts
84
+
85
+ ## Execution Flow
86
+
87
+ > **COMPACT DIRECTIVE**: Context compression MUST check TodoWrite phase status.
88
+ > The phase currently marked `in_progress` is the active execution phase — preserve its FULL content.
89
+ > Only compress phases marked `completed` or `pending`.
90
+
91
+ ### TodoWrite Setup
92
+
93
+ ```
94
+ LaTeX Template Organization:
95
+ - [ ] Phase 1: Extract & Analyze — extract zip, identify files, diagnose issues
96
+ - [ ] Phase 2: Cleanup & Organize — create structure, clean main.tex, copy assets
97
+ - [ ] Phase 3: README & Finalize — generate README, verify compilation
98
+ ```
99
+
100
+ ### Phase Sequence
101
+
102
+ ```
103
+ Phase 1: Extract & Analyze
104
+ └─ Ref: phases/01-extract-analyze.md
105
+ ├─ Input: templatePath, conferenceInfo
106
+ └─ Output: analysisResult (file inventory, main file, issues, conference type)
107
+
108
+ Phase 2: Cleanup & Organize
109
+ └─ Ref: phases/02-cleanup-organize.md
110
+ ├─ Input: analysisResult, sectionStructure, outputDir
111
+ └─ Output: organized template in outputDir/
112
+
113
+ Phase 3: README & Finalize
114
+ └─ Ref: phases/03-readme-finalize.md
115
+ ├─ Input: analysisResult, conferenceInfo, outputDir
116
+ └─ Output: README.md + final verification
117
+ ```
118
+
119
+ **Phase Reference Documents** (read on-demand when phase executes):
120
+
121
+ | Phase | Document | Purpose | Compact |
122
+ |-------|----------|---------|---------|
123
+ | 1 | [phases/01-extract-analyze.md](phases/01-extract-analyze.md) | Extract and analyze template | TodoWrite driven |
124
+ | 2 | [phases/02-cleanup-organize.md](phases/02-cleanup-organize.md) | Clean up and restructure | TodoWrite driven + sentinel |
125
+ | 3 | [phases/03-readme-finalize.md](phases/03-readme-finalize.md) | Generate README, finalize | TodoWrite driven |
126
+
127
+ **Compact Rules**:
128
+ 1. **TodoWrite `in_progress`** → preserve full content, do not compress
129
+ 2. **TodoWrite `completed`** → may compress to summary
130
+ 3. **sentinel fallback** → phases marked with sentinel contain compact sentinel; if only sentinel remains, **must immediately `Read()` to recover**
131
+
132
+ ## Core Rules
133
+
134
+ 1. **Never modify .sty/.cls files**: Style files are sacred — copy as-is.
135
+ 2. **Present plan before executing**: Show cleanup plan and wait for user confirmation.
136
+ 3. **Keep Overleaf-compatible**: Empty directories need placeholder files (Overleaf auto-deletes empty dirs).
137
+ 4. **Preserve compilation**: The output must compile without errors using the detected compiler.
138
+ 5. **Conference-specific configs**: Apply correct anonymous/review mode settings per conference.
139
+
140
+ ## Common Conference Templates
141
+
142
+ | Conference | Document Class | Key Config |
143
+ |------------|---------------|------------|
144
+ | KDD (ACM) | `acmart` | `nonacm` option for anonymous submission |
145
+ | ACM Conferences | `acmart` | `anonymous,review` options |
146
+ | CVPR/ICCV | `cvpr` | Two-column, strict page limits |
147
+ | NeurIPS | `neurips_20XX` | Anonymous review |
148
+ | ICLR | `iclr20XX_conference` | Two-column |
149
+ | AAAI | `aaaiXX` | Two-column, 8 pages + refs |
150
+
151
+ ## Data Flow
152
+
153
+ ```
154
+ Phase 1 ──analysisResult──→ Phase 2
155
+ Phase 1 ──analysisResult──→ Phase 3
156
+
157
+ Output structure:
158
+ outputDir/
159
+ ├── main.tex (cleaned main file)
160
+ ├── text/ (section files)
161
+ │ ├── 01-introduction.tex
162
+ │ ├── 02-related-work.tex
163
+ │ ├── 03-method.tex
164
+ │ ├── 04-experiments.tex
165
+ │ └── 05-conclusion.tex
166
+ ├── figures/ (image files)
167
+ ├── tables/ (table files + example)
168
+ ├── styles/ (.sty/.cls files)
169
+ ├── references.bib (bibliography)
170
+ └── README.md (usage guide)
171
+ ```
172
+
173
+ ## Error Handling
174
+
175
+ | Error | Action |
176
+ |-------|--------|
177
+ | Zip extraction fails | Check file integrity, ask user to re-download |
178
+ | Main file not identifiable | List all .tex files, ask user to choose |
179
+ | Missing dependency (.sty/.cls) | Warn user, suggest CTAN download |
180
+ | Conference info unavailable | Fall back to template comments + documentclass detection |
181
+ | Compilation fails after cleanup | Revert to minimal cleanup, report what needs manual fix |
182
+
183
+ ## Related Skills
184
+
185
+ - **scholar-writing**: Phase 6 (Conference Formatting) uses organized templates
186
+ - **scholar-publish**: Uses templates for camera-ready preparation
@@ -0,0 +1,220 @@
1
+ ---
2
+ name: scholar-publish
3
+ description: "Post-acceptance conference preparation workflow covering presentation slides, academic posters, and promotion content. Triggers on \"scholar publish\", \"conference preparation\", \"prepare presentation\", \"create poster\", \"write promotion\", \"post-acceptance\"."
4
+ allowed-tools: AskUserQuestion TodoWrite Read Write Edit Bash Glob Grep
5
+ ---
6
+
7
+ # Scholar Publish
8
+
9
+ Post-acceptance conference preparation workflow that helps researchers create presentation materials, academic posters, and promotional content for accepted papers.
10
+
11
+ ## Pre-load (before execution)
12
+
13
+ 1. **Codebase docs**: If `.workflow/codebase/ARCHITECTURE.md` exists, read for project context
14
+ 2. **Specs**: `maestro load --type spec --category coding` — load coding conventions
15
+ 3. **Wiki knowledge**: `maestro search "academic writing research paper" --json` — top 5 entries as prior context
16
+ 4. All optional — proceed without if unavailable
17
+
18
+ ## Architecture Overview
19
+
20
+ ```
21
+ ┌──────────────────────────────────────────────────────────────┐
22
+ │ /scholar-publish │
23
+ │ Orchestrator: Preference Collection + Selective Phase Dispatch │
24
+ └──────────────────────┬───────────────────────────────────────┘
25
+
26
+ ┌─────────────┼─────────────┐
27
+ ↓ ↓ ↓
28
+ ┌───────────┐ ┌───────────┐ ┌───────────┐
29
+ │ Phase 1 │ │ Phase 2 │ │ Phase 3 │
30
+ │ Presenta- │ │ Poster │ │ Promotion │
31
+ │ tion │ │ Design │ │ Content │
32
+ └─────┬─────┘ └─────┬─────┘ └─────┬─────┘
33
+ ↓ ↓ ↓
34
+ presentation- poster- promotion-
35
+ outline.md outline.md content.md
36
+ ```
37
+
38
+ **Data Flow**:
39
+ ```
40
+ User Input: accepted paper + preferences (outputs, duration, poster size)
41
+ → Phase 1 (presentation): paper → slide outline + timing plan + Q&A prep
42
+ → Phase 2 (poster): paper → poster layout + design specs + QR code plan
43
+ → Phase 3 (promotion): paper → Twitter thread + LinkedIn post + blog draft
44
+ Each phase runs independently based on user selection.
45
+ ```
46
+
47
+ ## Key Design Principles
48
+
49
+ 1. **Selective Execution**: User chooses which outputs to generate - phases run independently
50
+ 2. **Paper-Driven Content**: All outputs derive from the accepted paper's key messages
51
+ 3. **Practical Guidelines**: Concrete specifications (font sizes, timing, layout dimensions)
52
+ 4. **Platform-Aware**: Each promotion channel has its own tone, format, and best practices
53
+
54
+ ## Interactive Preference Collection
55
+
56
+ Collect workflow preferences via AskUserQuestion before dispatching to phases:
57
+
58
+ ```
59
+ Step 1: Identify paper context
60
+ Ask: "Please provide the accepted paper (file path, summary, or key details):
61
+ - Paper title
62
+ - Conference/venue name
63
+ - Key contributions (2-3 bullet points)
64
+ - Co-authors (for tagging in promotion)"
65
+
66
+ Step 2: Select outputs to generate
67
+ AskUserQuestion:
68
+ question: "Which outputs would you like to generate?"
69
+ options:
70
+ - "Presentation slides outline" → enablePresentation = true
71
+ - "Academic poster design" → enablePoster = true
72
+ - "Promotion content (Twitter/LinkedIn/blog)" → enablePromotion = true
73
+ - "All of the above" → enableAll = true
74
+
75
+ Step 3: Conditional preferences (based on selection)
76
+ IF enablePresentation:
77
+ Ask: "Talk duration?" options: ["15 minutes", "20 minutes", "30 minutes", "Other"]
78
+ IF enablePoster:
79
+ Ask: "Poster format?" options: ["Portrait (24x36in / A0)", "Landscape (36x24in / A0)", "Check with conference"]
80
+ IF enablePromotion:
81
+ Ask: "Which platforms?" options: ["Twitter/X thread", "LinkedIn post", "Blog post", "All platforms"]
82
+ ```
83
+
84
+ **Preference Variables** (passed to phases):
85
+ - `paperContext`: title, venue, contributions, authors
86
+ - `enablePresentation`, `enablePoster`, `enablePromotion`
87
+ - `talkDuration`: 15 | 20 | 30 (minutes)
88
+ - `posterFormat`: portrait | landscape
89
+ - `promotionPlatforms`: twitter | linkedin | blog | all
90
+
91
+ ## Execution Flow
92
+
93
+ > **COMPACT DIRECTIVE**: Context compression MUST check TodoWrite phase status.
94
+ > The phase currently marked `in_progress` is the active execution phase - preserve its FULL content.
95
+ > Only compress phases marked `completed` or `pending`.
96
+
97
+ ### Phase 0: Input Processing & Preference Collection
98
+
99
+ Parse user input and collect preferences (described above). Convert free-text paper description to structured format:
100
+
101
+ ```
102
+ PAPER_TITLE: [title]
103
+ VENUE: [conference/journal name]
104
+ CONTRIBUTIONS: [key points]
105
+ AUTHORS: [author list]
106
+ ```
107
+
108
+ Then dispatch to selected phases.
109
+
110
+ ---
111
+
112
+ ### Phase 1: Presentation Slide Creation (if enablePresentation)
113
+ Ref: phases/01-presentation.md
114
+
115
+ Create a structured presentation outline with slide-by-slide content, timing plan, visual design guidance, and Q&A preparation.
116
+
117
+ **Output**: `presentation-outline.md`
118
+
119
+ ---
120
+
121
+ ### Phase 2: Academic Poster Design (if enablePoster)
122
+ Ref: phases/02-poster.md
123
+
124
+ Design a poster layout with section placement, typography specs, visual hierarchy, and print-ready guidelines.
125
+
126
+ **Output**: `poster-outline.md`
127
+
128
+ ---
129
+
130
+ ### Phase 3: Promotion Content Creation (if enablePromotion)
131
+ Ref: phases/03-promotion.md
132
+
133
+ Generate platform-specific promotion content: Twitter/X thread, LinkedIn post, and blog draft.
134
+
135
+ **Output**: `promotion-content.md`
136
+
137
+ ---
138
+
139
+ **Phase Reference Documents** (read on-demand when phase executes):
140
+
141
+ | Phase | Document | Purpose | Compact |
142
+ |-------|----------|---------|---------|
143
+ | 1 | [phases/01-presentation.md](phases/01-presentation.md) | Slide outline creation | TodoWrite driven |
144
+ | 2 | [phases/02-poster.md](phases/02-poster.md) | Poster layout design | TodoWrite driven |
145
+ | 3 | [phases/03-promotion.md](phases/03-promotion.md) | Multi-platform promotion | TodoWrite driven |
146
+
147
+ **Compact Rules**:
148
+ 1. **TodoWrite `in_progress`** -> preserve full content, do not compress
149
+ 2. **TodoWrite `completed`** -> can compress to summary
150
+ 3. Phases are independent - only load the phase being executed
151
+
152
+ ## Core Rules
153
+
154
+ 1. **Paper first**: Read and understand the paper before generating any content
155
+ 2. **One key message per slide**: Never overload a single slide with multiple ideas
156
+ 3. **Audience-appropriate**: Adjust technical depth for the target venue
157
+ 4. **Visual over text**: Prefer figures, diagrams, and bullet points over paragraphs
158
+ 5. **Platform conventions**: Each social platform has distinct formatting expectations
159
+ 6. **Conference compliance**: Check specific venue requirements for poster size, talk duration
160
+
161
+ ## Data Flow
162
+
163
+ ```
164
+ paperContext (from user input)
165
+
166
+ ├─→ Phase 1: paperContext + talkDuration → presentation-outline.md
167
+ │ └─ slide count, timing, structure, visual design, Q&A prep
168
+
169
+ ├─→ Phase 2: paperContext + posterFormat → poster-outline.md
170
+ │ └─ layout, typography, sections, QR code, print specs
171
+
172
+ └─→ Phase 3: paperContext + promotionPlatforms → promotion-content.md
173
+ └─ Twitter thread, LinkedIn post, blog draft
174
+ ```
175
+
176
+ ## TodoWrite Pattern
177
+
178
+ ```
179
+ Phase starts:
180
+ → Sub-tasks ATTACHED to TodoWrite (in_progress + pending)
181
+ → Execute sub-tasks sequentially within the phase
182
+
183
+ Phase ends:
184
+ → Sub-tasks COLLAPSED to completed summary
185
+ → Next selected phase begins (or workflow completes)
186
+ ```
187
+
188
+ Example TodoWrite lifecycle:
189
+ ```
190
+ [in_progress] Generate presentation outline
191
+ [in_progress] Extract key messages from paper
192
+ [pending] Create slide structure
193
+ [pending] Add timing plan
194
+ [pending] Write Q&A preparation notes
195
+ → After completion:
196
+ [completed] Generate presentation outline (12 slides, 20min talk)
197
+ ```
198
+
199
+ ## Error Handling
200
+
201
+ 1. **Missing paper content**: Ask user to provide paper file path or paste key sections
202
+ 2. **Unclear venue requirements**: Use standard defaults, note assumptions in output
203
+ 3. **Platform-specific failures**: Generate available platforms, skip unavailable ones
204
+ 4. **Content too long/short**: Adjust based on guidelines (slide count for duration, word count for blog)
205
+
206
+ ## Coordinator Checklist
207
+
208
+ **Before each phase**:
209
+ - [ ] Paper context is available and parsed
210
+ - [ ] Phase-specific preferences collected (duration/format/platforms)
211
+ - [ ] Output file path determined
212
+
213
+ **After each phase**:
214
+ - [ ] Output file written and verified
215
+ - [ ] TodoWrite updated (phase marked completed)
216
+ - [ ] Next phase dispatched (if selected)
217
+
218
+ **After all phases**:
219
+ - [ ] Summary of generated outputs presented to user
220
+ - [ ] File paths listed for easy access