wtf-p 0.1.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 (92) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +338 -0
  3. package/bin/install.js +358 -0
  4. package/bin/uninstall.js +485 -0
  5. package/commands/wtfp/analyze-bib.md +326 -0
  6. package/commands/wtfp/check-refs.md +205 -0
  7. package/commands/wtfp/create-outline.md +275 -0
  8. package/commands/wtfp/discuss-section.md +71 -0
  9. package/commands/wtfp/export-latex.md +216 -0
  10. package/commands/wtfp/help.md +342 -0
  11. package/commands/wtfp/insert-section.md +130 -0
  12. package/commands/wtfp/list-assumptions.md +109 -0
  13. package/commands/wtfp/map-project.md +197 -0
  14. package/commands/wtfp/new-paper.md +443 -0
  15. package/commands/wtfp/pause-writing.md +145 -0
  16. package/commands/wtfp/plan-revision.md +180 -0
  17. package/commands/wtfp/plan-section.md +247 -0
  18. package/commands/wtfp/polish-prose.md +177 -0
  19. package/commands/wtfp/progress.md +325 -0
  20. package/commands/wtfp/remove-section.md +147 -0
  21. package/commands/wtfp/research-gap.md +235 -0
  22. package/commands/wtfp/resume-writing.md +142 -0
  23. package/commands/wtfp/review-section.md +409 -0
  24. package/commands/wtfp/submit-milestone.md +211 -0
  25. package/commands/wtfp/write-section.md +273 -0
  26. package/package.json +40 -0
  27. package/write-the-f-paper/references/checkpoints.md +213 -0
  28. package/write-the-f-paper/references/continuation-format.md +223 -0
  29. package/write-the-f-paper/references/git-integration.md +241 -0
  30. package/write-the-f-paper/references/imrad-structure.md +212 -0
  31. package/write-the-f-paper/references/length-estimation.md +148 -0
  32. package/write-the-f-paper/references/plan-format.md +361 -0
  33. package/write-the-f-paper/references/principles.md +158 -0
  34. package/write-the-f-paper/references/questioning.md +132 -0
  35. package/write-the-f-paper/references/research-pitfalls.md +208 -0
  36. package/write-the-f-paper/templates/config.json +30 -0
  37. package/write-the-f-paper/templates/context.md +179 -0
  38. package/write-the-f-paper/templates/continue-here.md +142 -0
  39. package/write-the-f-paper/templates/data-inventory.md +142 -0
  40. package/write-the-f-paper/templates/discovery.md +146 -0
  41. package/write-the-f-paper/templates/issues.md +59 -0
  42. package/write-the-f-paper/templates/manuscript.md +253 -0
  43. package/write-the-f-paper/templates/narrative-arc.md +227 -0
  44. package/write-the-f-paper/templates/outline.md +274 -0
  45. package/write-the-f-paper/templates/phase-prompt.md +348 -0
  46. package/write-the-f-paper/templates/prior-drafts.md +204 -0
  47. package/write-the-f-paper/templates/project-context/argument-structure.md +267 -0
  48. package/write-the-f-paper/templates/project-context/bibliography.md +152 -0
  49. package/write-the-f-paper/templates/project-context/gaps.md +122 -0
  50. package/write-the-f-paper/templates/project-context/imrad.md +140 -0
  51. package/write-the-f-paper/templates/project-context/peer-review.md +152 -0
  52. package/write-the-f-paper/templates/project-context/style-guide.md +198 -0
  53. package/write-the-f-paper/templates/project-context/tools.md +170 -0
  54. package/write-the-f-paper/templates/project.md +185 -0
  55. package/write-the-f-paper/templates/research.md +384 -0
  56. package/write-the-f-paper/templates/review-comments.md +253 -0
  57. package/write-the-f-paper/templates/revision-issues.md +169 -0
  58. package/write-the-f-paper/templates/roadmap.md +187 -0
  59. package/write-the-f-paper/templates/section-archive.md +178 -0
  60. package/write-the-f-paper/templates/section-context.md +114 -0
  61. package/write-the-f-paper/templates/section.md +128 -0
  62. package/write-the-f-paper/templates/state.md +244 -0
  63. package/write-the-f-paper/templates/summary.md +277 -0
  64. package/write-the-f-paper/venues/acm-cs.yaml +102 -0
  65. package/write-the-f-paper/venues/arxiv-ml.yaml +103 -0
  66. package/write-the-f-paper/venues/ieee-cs.yaml +100 -0
  67. package/write-the-f-paper/venues/nature.yaml +81 -0
  68. package/write-the-f-paper/venues/thesis-chapter.yaml +101 -0
  69. package/write-the-f-paper/workflows/create-outline.md +462 -0
  70. package/write-the-f-paper/workflows/create-outline.wcn.md +194 -0
  71. package/write-the-f-paper/workflows/discuss-section.md +249 -0
  72. package/write-the-f-paper/workflows/discuss-section.wcn.md +63 -0
  73. package/write-the-f-paper/workflows/execute-section.md +704 -0
  74. package/write-the-f-paper/workflows/execute-section.wcn.md +219 -0
  75. package/write-the-f-paper/workflows/list-assumptions.md +183 -0
  76. package/write-the-f-paper/workflows/list-assumptions.wcn.md +42 -0
  77. package/write-the-f-paper/workflows/lit-review-phase.md +281 -0
  78. package/write-the-f-paper/workflows/lit-review-phase.wcn.md +92 -0
  79. package/write-the-f-paper/workflows/map-project.md +359 -0
  80. package/write-the-f-paper/workflows/map-project.wcn.md +73 -0
  81. package/write-the-f-paper/workflows/plan-section.md +409 -0
  82. package/write-the-f-paper/workflows/plan-section.wcn.md +236 -0
  83. package/write-the-f-paper/workflows/research-gap.md +469 -0
  84. package/write-the-f-paper/workflows/research-gap.wcn.md +119 -0
  85. package/write-the-f-paper/workflows/resume-paper.md +274 -0
  86. package/write-the-f-paper/workflows/resume-paper.wcn.md +93 -0
  87. package/write-the-f-paper/workflows/review-section.md +329 -0
  88. package/write-the-f-paper/workflows/review-section.wcn.md +91 -0
  89. package/write-the-f-paper/workflows/submit-draft.md +368 -0
  90. package/write-the-f-paper/workflows/submit-draft.wcn.md +69 -0
  91. package/write-the-f-paper/workflows/transition.md +375 -0
  92. package/write-the-f-paper/workflows/transition.wcn.md +113 -0
@@ -0,0 +1,249 @@
1
+ <purpose>
2
+ Gather section context through collaborative thinking before planning. Help the user articulate their vision for how this section should read, what it needs to accomplish, and what makes it effective.
3
+
4
+ You are a thinking partner, not an interviewer. The user is the expert on their research — you are the writing advisor. Your job is to understand their vision, not interrogate them about technical details they know and you don't.
5
+ </purpose>
6
+
7
+ <philosophy>
8
+ **User = researcher/expert. Claude = writing advisor.**
9
+
10
+ The user doesn't know (and shouldn't need to know):
11
+ - Academic writing conventions for their venue (you research)
12
+ - Optimal section structure (you figure out during planning)
13
+ - How to balance technical depth (you help calibrate)
14
+ - Citation density norms (you research)
15
+
16
+ The user DOES know:
17
+ - What their research actually found
18
+ - What story they want to tell
19
+ - What's the key insight readers should take away
20
+ - What they're most proud of and most worried about
21
+
22
+ Ask about their vision and findings. Figure out structure yourself.
23
+ </philosophy>
24
+
25
+ <process>
26
+
27
+ <step name="validate_section" priority="first">
28
+ Section number: $ARGUMENTS (required)
29
+
30
+ Validate section exists in roadmap:
31
+
32
+ ```bash
33
+ if [ -f .planning/ROADMAP.md ]; then
34
+ cat .planning/ROADMAP.md | grep "Section ${SECTION}:"
35
+ else
36
+ echo "No roadmap found"
37
+ fi
38
+ ```
39
+
40
+ **If section not found:**
41
+
42
+ ```
43
+ Error: Section ${SECTION} not found in roadmap.
44
+
45
+ Use /wtfp:progress to see available sections.
46
+ ```
47
+
48
+ Exit workflow.
49
+
50
+ **If section found:**
51
+ Parse section details from roadmap:
52
+
53
+ - Section number
54
+ - Section name
55
+ - Section description/goal
56
+ - Word budget
57
+ - Status (should be "Not started" or "In progress")
58
+
59
+ Continue to check_existing.
60
+ </step>
61
+
62
+ <step name="check_existing">
63
+ Check if CONTEXT.md already exists for this section:
64
+
65
+ ```bash
66
+ ls .planning/sections/${SECTION}-*/CONTEXT.md 2>/dev/null
67
+ ls .planning/sections/${SECTION}-*/${SECTION}-CONTEXT.md 2>/dev/null
68
+ ```
69
+
70
+ **If exists:**
71
+
72
+ ```
73
+ Section ${SECTION} already has context: [path to CONTEXT.md]
74
+
75
+ What's next?
76
+ 1. Update context - Review and revise existing context
77
+ 2. View existing - Show me the current context
78
+ 3. Skip - Use existing context as-is
79
+ ```
80
+
81
+ Wait for user response.
82
+
83
+ If "Update context": Load existing CONTEXT.md, continue to questioning
84
+ If "View existing": Read and display CONTEXT.md, then offer update/skip
85
+ If "Skip": Exit workflow
86
+
87
+ **If doesn't exist:**
88
+ Continue to questioning.
89
+ </step>
90
+
91
+ <step name="questioning">
92
+ **CRITICAL: ALL questions use AskUserQuestion. Never ask inline text questions.**
93
+
94
+ Present initial context from roadmap, then immediately use AskUserQuestion:
95
+
96
+ ```
97
+ Section ${SECTION}: ${SECTION_NAME}
98
+
99
+ From the roadmap: ${SECTION_DESCRIPTION}
100
+ Word budget: ${WORD_BUDGET} words
101
+ ```
102
+
103
+ **1. Open:**
104
+
105
+ Use AskUserQuestion:
106
+ - header: "Vision"
107
+ - question: "What's the main thing you want readers to take away from this section?"
108
+ - options: 2-3 interpretations based on the section type + "Let me explain it"
109
+
110
+ **2. Follow the thread:**
111
+
112
+ Based on their response, use AskUserQuestion:
113
+ - header: "[Topic they mentioned]"
114
+ - question: "You mentioned [X] — what makes that the key insight?"
115
+ - options: 2-3 interpretations + "Something else"
116
+
117
+ **3. Find the core:**
118
+
119
+ Use AskUserQuestion:
120
+ - header: "Essential"
121
+ - question: "If you could only keep one paragraph, what would it absolutely have to say?"
122
+ - options: Key aspects they've mentioned + "Let me think about this"
123
+
124
+ **4. Find boundaries:**
125
+
126
+ Use AskUserQuestion:
127
+ - header: "Scope"
128
+ - question: "What should this section explicitly NOT cover (even if readers might expect it)?"
129
+ - options: Things that might be tempting to include + "Nothing specific" + "Let me list them"
130
+
131
+ **5. Capture concerns (optional):**
132
+
133
+ If they seem worried about something, use AskUserQuestion:
134
+ - header: "Concerns"
135
+ - question: "What are you most worried about with this section?"
136
+ - options: Contextual options based on conversation + "No major concerns" + "Let me describe"
137
+
138
+ CRITICAL — What NOT to ask:
139
+ - Citation formatting (you look that up)
140
+ - Section structure conventions (you figure out)
141
+ - Word count strategies (you plan)
142
+ - How to start the section (you propose)
143
+
144
+ **6. Decision gate:**
145
+
146
+ Use AskUserQuestion:
147
+ - header: "Ready?"
148
+ - question: "Ready to capture this context, or explore more?"
149
+ - options (ALL THREE REQUIRED):
150
+ - "Create CONTEXT.md" - I've shared my vision
151
+ - "Ask more questions" - Help me think through this more
152
+ - "Let me add context" - I have more to share
153
+
154
+ If "Ask more questions" → return to step 2 with new probes.
155
+ If "Let me add context" → receive input → return to step 2.
156
+ Loop until "Create CONTEXT.md" selected.
157
+ </step>
158
+
159
+ <step name="write_context">
160
+ Create CONTEXT.md capturing the user's vision.
161
+
162
+ Use template from ~/.claude/write-the-f-paper/templates/context.md
163
+
164
+ **File location:** `.planning/sections/${SECTION}-${SLUG}/${SECTION}-CONTEXT.md`
165
+
166
+ **If section directory doesn't exist yet:**
167
+ Create it: `.planning/sections/${SECTION}-${SLUG}/`
168
+
169
+ Use roadmap section name for slug (lowercase, hyphens).
170
+
171
+ Populate template sections with VISION context (not technical planning):
172
+
173
+ - `<vision>`: What the user wants readers to take away
174
+ - `<essential>`: The core content that must be present
175
+ - `<boundaries>`: What's explicitly out of scope
176
+ - `<concerns>`: What they're worried about
177
+ - `<notes>`: Any other context gathered
178
+
179
+ Do NOT populate with your own structural analysis. That comes during planning.
180
+
181
+ Write file.
182
+ </step>
183
+
184
+ <step name="confirm_creation">
185
+ Present CONTEXT.md summary:
186
+
187
+ ```
188
+ Created: .planning/sections/${SECTION}-${SLUG}/${SECTION}-CONTEXT.md
189
+
190
+ ## Vision
191
+ [What they want readers to take away]
192
+
193
+ ## Essential
194
+ [Core content that must be present]
195
+
196
+ ## Boundaries
197
+ [What's out of scope]
198
+
199
+ ---
200
+
201
+ ## Next Up
202
+
203
+ **Section ${SECTION}: [Name]** — [Goal from ROADMAP.md]
204
+
205
+ `/wtfp:plan-section ${SECTION}`
206
+
207
+ <sub>`/clear` first → fresh context window</sub>
208
+
209
+ ---
210
+
211
+ **Also available:**
212
+ - `/wtfp:research-gap [topic]` — investigate literature first
213
+ - Review/edit CONTEXT.md before continuing
214
+
215
+ ---
216
+ ```
217
+
218
+ </step>
219
+
220
+ <step name="git_commit">
221
+ Commit section context:
222
+
223
+ ```bash
224
+ git add .planning/sections/${SECTION}-${SLUG}/${SECTION}-CONTEXT.md
225
+ git commit -m "$(cat <<'EOF'
226
+ docs(${SECTION}): capture section context
227
+
228
+ Section ${SECTION}: ${SECTION_NAME}
229
+ - Vision and goals documented
230
+ - Essential content identified
231
+ - Scope boundaries defined
232
+ EOF
233
+ )"
234
+ ```
235
+
236
+ Confirm: "Committed: docs(${SECTION}): capture section context"
237
+ </step>
238
+
239
+ </process>
240
+
241
+ <success_criteria>
242
+
243
+ - Section validated against roadmap
244
+ - Vision gathered through collaborative thinking (not interrogation)
245
+ - User's imagination captured: takeaway, essential content, boundaries
246
+ - CONTEXT.md created in section directory
247
+ - CONTEXT.md committed to git
248
+ - User knows next steps (typically: research or plan the section)
249
+ </success_criteria>
@@ -0,0 +1,63 @@
1
+ <purpose>
2
+ Gather section context through collaborative thinking before planning. Help the user articulate their vision for how this section should read, what it needs to accomplish, and what makes it effective.
3
+
4
+ You are a thinking partner, not an interviewer. The user is the expert on their research — you are the writing advisor. Your job is to understand their vision, not interrogate them about technical details they know and you don't.
5
+ </purpose>
6
+
7
+ <philosophy>
8
+ **User = researcher/expert. Claude = writing advisor.**
9
+
10
+ The user doesn't know (and shouldn't need to know):
11
+ - Academic writing conventions for their venue (you research)
12
+ - Optimal section structure (you figure out during planning)
13
+ - How to balance technical depth (you help calibrate)
14
+ - Citation density norms (you research)
15
+
16
+ The user DOES know:
17
+ - What their research actually found
18
+ - What story they want to tell
19
+ - What's the key insight readers should take away
20
+ - What they're most proud of and most worried about
21
+
22
+ Ask about their vision and findings. Figure out structure yourself.
23
+ </philosophy>
24
+
25
+ <process>
26
+
27
+ [step:validate_section p=1]
28
+ RUN: if [ -f .planning/ROADMAP.md ]; then
29
+ IF section_not_found → ```
30
+ IF section_found → parse_fields
31
+ [/step]
32
+
33
+ [step:check_existing]
34
+ RUN: ls .planning/sections/${SECTION}-*/CONTEXT.md 2>/dev/null
35
+ IF exists → ```
36
+ IF doesnt_exist → Continue to questioning.
37
+ [/step]
38
+
39
+ [step:questioning]
40
+ [/step]
41
+
42
+ [step:write_context]
43
+ IF section_directory_doesnt_exist_yet → Create it: `.planning/sections/${SECTION}-${SLU...
44
+ [/step]
45
+
46
+ [step:confirm_creation]
47
+ [/step]
48
+
49
+ [step:git_commit]
50
+ RUN: git add .planning/sections/${SECTION}-${SLUG}/${SECTION}-CONTEXT.md
51
+ [/step]
52
+
53
+ </process>
54
+
55
+ <success_criteria>
56
+
57
+ - Section validated against roadmap
58
+ - Vision gathered through collaborative thinking (not interrogation)
59
+ - User's imagination captured: takeaway, essential content, boundaries
60
+ - CONTEXT.md created in section directory
61
+ - CONTEXT.md committed to git
62
+ - User knows next steps (typically: research or plan the section)
63
+ </success_criteria>