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,227 @@
1
+ # Narrative Arc Template
2
+
3
+ Template for `.planning/structure/narrative-arc.md` — the story structure of your paper.
4
+
5
+ **Purpose:** Map the narrative flow that makes your paper compelling beyond the logical argument.
6
+
7
+ ---
8
+
9
+ ## File Template
10
+
11
+ ```markdown
12
+ # Narrative Arc
13
+
14
+ **Created:** [date]
15
+ **Last updated:** [date]
16
+
17
+ ## The Story
18
+
19
+ ### Act 1: The Problem (Introduction)
20
+
21
+ **World state:** [Current understanding in the field]
22
+ - What exists: [Current tools, methods, knowledge]
23
+ - What works: [What's going well]
24
+ - Who's affected: [Who deals with this domain]
25
+
26
+ **Tension:** [What's wrong, missing, or broken]
27
+ - The gap: [What doesn't exist that should]
28
+ - The pain: [Problems caused by this gap]
29
+ - The stakes: [What happens if unresolved]
30
+
31
+ **Stakes:** [Why it matters]
32
+ - For researchers: [Impact on the field]
33
+ - For practitioners: [Impact on practice]
34
+ - Broader: [Societal or scientific significance]
35
+
36
+ ### Act 2: The Journey (Methods + Results)
37
+
38
+ **Approach:** [How we tackled the problem]
39
+ - Strategy: [Overall approach]
40
+ - Innovation: [What's new about how we did it]
41
+ - Why this way: [Justification for approach]
42
+
43
+ **Obstacles:** [Challenges faced]
44
+ - Expected challenges: [What we anticipated]
45
+ - Surprises: [What we didn't expect]
46
+ - How overcome: [How we addressed challenges]
47
+
48
+ **Discovery:** [What we found]
49
+ - Main finding: [The headline result]
50
+ - Supporting findings: [Additional results]
51
+ - Unexpected: [Surprising discoveries]
52
+
53
+ ### Act 3: The Resolution (Discussion)
54
+
55
+ **Insight:** [What it means]
56
+ - Interpretation: [How to understand the findings]
57
+ - Significance: [Why these findings matter]
58
+ - Contribution: [What we've added to knowledge]
59
+
60
+ **Transformation:** [How understanding changes]
61
+ - Before: [What people thought/did before]
62
+ - After: [What they can think/do now]
63
+ - Shift: [The conceptual or practical change]
64
+
65
+ **Horizon:** [What comes next]
66
+ - Immediate: [Next steps from this work]
67
+ - Future: [Longer-term possibilities]
68
+ - Open questions: [What remains unanswered]
69
+
70
+ ## Reader Experience
71
+
72
+ **Hook:** [Why they keep reading past abstract]
73
+ - Opening question or scenario
74
+ - Why this matters to them
75
+ - Promise of insight
76
+
77
+ **Promise:** [What they'll learn]
78
+ - New understanding
79
+ - Practical tools or methods
80
+ - Answer to important question
81
+
82
+ **Payoff:** [The "aha" moment]
83
+ - Where the insight lands
84
+ - How findings click together
85
+ - Satisfying resolution
86
+
87
+ ## Pacing
88
+
89
+ **Speed up (less detail):**
90
+ - Background everyone knows
91
+ - Standard methods
92
+ - Expected/confirmatory results
93
+
94
+ **Slow down (more detail):**
95
+ - Novel contributions
96
+ - Key methodology
97
+ - Surprising or important findings
98
+ - Critical interpretations
99
+
100
+ ## Emotional Journey
101
+
102
+ | Section | Reader Feeling | Desired Transition |
103
+ |---------|----------------|-------------------|
104
+ | Opening | Curious | → Engaged |
105
+ | Problem | Concerned | → Motivated |
106
+ | Approach | Interested | → Hopeful |
107
+ | Findings | Attentive | → Satisfied |
108
+ | Meaning | Understanding | → Convinced |
109
+ | Future | Thoughtful | → Inspired |
110
+
111
+ ## Key Moments
112
+
113
+ **The hook:** [Opening line/scenario]
114
+ "[Draft opening sentence or scenario]"
115
+
116
+ **The turn:** [Where problem becomes opportunity]
117
+ "[Draft sentence that pivots from gap to contribution]"
118
+
119
+ **The reveal:** [Where main finding is presented]
120
+ "[Draft sentence presenting key result]"
121
+
122
+ **The resolution:** [Final takeaway]
123
+ "[Draft closing message]"
124
+
125
+ ---
126
+
127
+ *Narrative arc for: [Paper title]*
128
+ *Update when story structure changes*
129
+ ```
130
+
131
+ <guidelines>
132
+
133
+ **Why narrative matters:**
134
+ - Readers remember stories, not just facts
135
+ - Narrative creates engagement and flow
136
+ - Good papers tell a coherent story
137
+ - Even technical papers benefit from arc
138
+
139
+ **The three-act structure:**
140
+ - Act 1: Establish problem and stakes
141
+ - Act 2: Journey through investigation
142
+ - Act 3: Resolution and meaning
143
+
144
+ **Reader experience:**
145
+ - Hook: Why start reading
146
+ - Promise: What they'll gain
147
+ - Payoff: Satisfying conclusion
148
+
149
+ **Pacing:**
150
+ - Not everything needs equal detail
151
+ - Emphasize what's new and important
152
+ - Don't belabor the obvious
153
+
154
+ **Integration with argument-map:**
155
+ - Argument map = logical structure
156
+ - Narrative arc = emotional/experiential structure
157
+ - Both needed for compelling paper
158
+ </guidelines>
159
+
160
+ <example>
161
+ ```markdown
162
+ # Narrative Arc
163
+
164
+ **Created:** 2025-01-15
165
+ **Last updated:** 2025-01-20
166
+
167
+ ## The Story
168
+
169
+ ### Act 1: The Problem (Introduction)
170
+
171
+ **World state:** AI writing tools are everywhere
172
+ - What exists: ChatGPT, Claude, and dozens of specialized tools
173
+ - What works: General writing assistance is improving rapidly
174
+ - Who's affected: Researchers, students, professionals
175
+
176
+ **Tension:** Researchers don't know how to use them effectively
177
+ - The gap: No systematic guidance for academic contexts
178
+ - The pain: Ad hoc usage leads to quality issues, ethical concerns
179
+ - The stakes: Potential to help or harm research quality
180
+
181
+ **Stakes:** Getting this right matters
182
+ - For researchers: More productive, ethical AI use
183
+ - For science: Better research communication
184
+ - Broader: Setting norms for a transformative technology
185
+
186
+ ### Act 2: The Journey (Methods + Results)
187
+
188
+ **Approach:** Build and test a framework
189
+ - Strategy: Interview researchers, synthesize needs, develop guidance
190
+ - Innovation: Discipline-specific rather than generic approach
191
+ - Why this way: One size doesn't fit all academic contexts
192
+
193
+ **Discovery:** Framework improves outcomes
194
+ - Main finding: Researchers with framework reported better quality, less anxiety
195
+ - Supporting: Specific strategies vary by discipline but principles transfer
196
+ - Unexpected: Ethical clarity reduced anxiety more than productivity tips
197
+
198
+ ### Act 3: The Resolution (Discussion)
199
+
200
+ **Insight:** It's about integration, not replacement
201
+ - The framework succeeds because it treats AI as tool, not author
202
+ - Key is matching AI strengths to researcher needs
203
+ - Transparency resolves most ethical concerns
204
+
205
+ **Transformation:**
206
+ - Before: "Should I use AI?" (anxiety, confusion)
207
+ - After: "How should I use AI for this task?" (confident, intentional)
208
+
209
+ ## Key Moments
210
+
211
+ **The hook:**
212
+ "Dr. Chen stared at her half-finished methods section, the AI-generated text feeling foreign, the blank space feeling worse."
213
+
214
+ **The turn:**
215
+ "Yet the solution isn't to avoid AI tools—it's to integrate them intentionally."
216
+
217
+ **The reveal:**
218
+ "Researchers using the framework reported 40% less writing anxiety while maintaining quality standards."
219
+
220
+ **The resolution:**
221
+ "The question is no longer whether AI belongs in research writing, but how to use it responsibly."
222
+
223
+ ---
224
+
225
+ *Narrative arc for: AI-Assisted Writing Framework*
226
+ ```
227
+ </example>
@@ -0,0 +1,274 @@
1
+ # Document Outline Template
2
+
3
+ Template for `.planning/structure/outline.md` — the section skeleton with word budgets.
4
+
5
+ **Purpose:** Define the detailed structure of your document before writing.
6
+
7
+ ---
8
+
9
+ ## File Template
10
+
11
+ ```markdown
12
+ # Document Outline
13
+
14
+ **Created:** [date]
15
+ **Last updated:** [date]
16
+ **Total target:** [X] words
17
+
18
+ ## Template Type
19
+
20
+ **Structure:** [IMRaD / Grant-NSF / Grant-NIH / Thesis / Custom]
21
+ **Format:** [LaTeX / Markdown / Word]
22
+
23
+ ## Outline
24
+
25
+ ### 1. Abstract ([X] words)
26
+
27
+ **Purpose:** Summarize entire paper in one paragraph
28
+
29
+ - Background/Context (1-2 sentences)
30
+ - Gap/Problem (1 sentence)
31
+ - Approach (1-2 sentences)
32
+ - Key findings (2-3 sentences)
33
+ - Implications (1-2 sentences)
34
+
35
+ ### 2. Introduction ([X] words)
36
+
37
+ **Purpose:** Establish context, gap, and contribution
38
+
39
+ #### 2.1 Opening Hook
40
+ - [Opening strategy: scenario / question / surprising fact]
41
+ - Establish relevance and grab attention
42
+
43
+ #### 2.2 Context
44
+ - [Background paragraph 1: what exists]
45
+ - [Background paragraph 2: current state]
46
+
47
+ #### 2.3 The Gap
48
+ - [Transition to what's missing]
49
+ - [Articulate the specific gap]
50
+
51
+ #### 2.4 Our Contribution
52
+ - [What this paper provides]
53
+ - [Specific thesis statement]
54
+
55
+ #### 2.5 Roadmap (optional)
56
+ - [Brief preview of paper structure]
57
+
58
+ ### 3. Related Work / Literature Review ([X] words)
59
+
60
+ **Purpose:** Position contribution against existing work
61
+
62
+ #### 3.1 Theme 1: [Name]
63
+ - [Key works in this thread]
64
+ - [How they relate to our work]
65
+
66
+ #### 3.2 Theme 2: [Name]
67
+ - [Key works in this thread]
68
+ - [How they relate to our work]
69
+
70
+ #### 3.3 Theme 3: [Name]
71
+ - [Key works in this thread]
72
+ - [How they relate to our work]
73
+
74
+ #### 3.4 Positioning Statement
75
+ - [How our work differs/advances beyond prior work]
76
+
77
+ ### 4. Methods ([X] words)
78
+
79
+ **Purpose:** Enable replication, establish validity
80
+
81
+ #### 4.1 Participants / Sample
82
+ - [Who/what was studied]
83
+ - [Sample size and characteristics]
84
+ - [Recruitment/selection]
85
+
86
+ #### 4.2 Materials / Instruments
87
+ - [Tools, surveys, systems used]
88
+ - [Relevant details for replication]
89
+
90
+ #### 4.3 Procedure
91
+ - [Step-by-step what happened]
92
+ - [Timeline and conditions]
93
+
94
+ #### 4.4 Analysis
95
+ - [How data was analyzed]
96
+ - [Statistical tests or qualitative approach]
97
+
98
+ #### 4.5 Ethical Considerations
99
+ - [IRB, consent, etc.]
100
+
101
+ ### 5. Results ([X] words)
102
+
103
+ **Purpose:** Present findings objectively
104
+
105
+ #### 5.1 Main Finding 1
106
+ - [Description of finding]
107
+ - [Supporting data: stats, quotes, figures]
108
+
109
+ #### 5.2 Main Finding 2
110
+ - [Description of finding]
111
+ - [Supporting data]
112
+
113
+ #### 5.3 Main Finding 3
114
+ - [Description of finding]
115
+ - [Supporting data]
116
+
117
+ #### 5.4 Additional Analyses
118
+ - [Secondary or exploratory findings]
119
+
120
+ ### 6. Discussion ([X] words)
121
+
122
+ **Purpose:** Interpret findings and situate in field
123
+
124
+ #### 6.1 Summary of Findings
125
+ - [Brief recap of key results]
126
+
127
+ #### 6.2 Interpretation
128
+ - [What the findings mean]
129
+ - [Why they turned out this way]
130
+
131
+ #### 6.3 Relation to Prior Work
132
+ - [How findings compare to existing research]
133
+ - [What's consistent, what's different]
134
+
135
+ #### 6.4 Implications
136
+ - [For theory]
137
+ - [For practice]
138
+
139
+ #### 6.5 Limitations
140
+ - [Honest assessment of weaknesses]
141
+ - [How they affect interpretation]
142
+
143
+ #### 6.6 Future Work
144
+ - [What comes next]
145
+ - [Open questions]
146
+
147
+ ### 7. Conclusion ([X] words)
148
+
149
+ **Purpose:** Final takeaway
150
+
151
+ - [Restate main contribution]
152
+ - [Key implications]
153
+ - [Closing thought]
154
+
155
+ ## Word Budget
156
+
157
+ | Section | Target | % of Paper | Notes |
158
+ |---------|--------|------------|-------|
159
+ | Abstract | 250 | - | Last to write |
160
+ | Introduction | 800 | 10% | Funnel to contribution |
161
+ | Literature | 1200 | 15% | Organize thematically |
162
+ | Methods | 1200 | 15% | Detail for replication |
163
+ | Results | 2000 | 25% | Data-driven |
164
+ | Discussion | 1800 | 23% | Interpretation |
165
+ | Conclusion | 400 | 5% | Memorable close |
166
+ | **Total** | **7650** | **~93%** | + refs, figures |
167
+
168
+ ## Dependencies
169
+
170
+ | Section | Depends On | Blocks |
171
+ |---------|------------|--------|
172
+ | Abstract | All other sections | - |
173
+ | Introduction | Argument map | Literature |
174
+ | Literature | Sources | Methods |
175
+ | Methods | Data collection complete | Results |
176
+ | Results | Methods | Discussion |
177
+ | Discussion | Results, Literature | Conclusion |
178
+ | Conclusion | Discussion | - |
179
+
180
+ ---
181
+
182
+ *Outline for: [Paper title]*
183
+ *Update as structure evolves*
184
+ ```
185
+
186
+ <guidelines>
187
+
188
+ **Outline depth:**
189
+ - Section level: Main sections
190
+ - Subsection level: Major divisions
191
+ - Point level: Key items to cover
192
+
193
+ **Word budgets:**
194
+ - Flexible, not rigid
195
+ - Guide pacing
196
+ - Adjust based on content
197
+
198
+ **Dependencies:**
199
+ - What needs to exist before writing each section
200
+ - Helps plan writing order
201
+
202
+ **When to update:**
203
+ - After initial planning
204
+ - When structure changes during writing
205
+ - After feedback on drafts
206
+
207
+ **Integration:**
208
+ - Feeds into ROADMAP.md section definitions
209
+ - Informs section PLAN.md structure
210
+ - Checked during verification
211
+ </guidelines>
212
+
213
+ <example>
214
+ ```markdown
215
+ # Document Outline
216
+
217
+ **Created:** 2025-01-15
218
+ **Last updated:** 2025-01-20
219
+ **Total target:** 8000 words
220
+
221
+ ## Template Type
222
+
223
+ **Structure:** IMRaD with Literature Review
224
+ **Format:** LaTeX (CHI template)
225
+
226
+ ## Outline
227
+
228
+ ### 1. Abstract (200 words)
229
+ - Context: AI writing tools proliferating
230
+ - Gap: No framework for academic use
231
+ - Approach: Interview + framework development + pilot
232
+ - Finding: Framework improves outcomes
233
+ - Implication: Guidance for responsible adoption
234
+
235
+ ### 2. Introduction (850 words)
236
+
237
+ #### 2.1 Opening Hook (100 words)
238
+ - Scenario: Researcher struggling with AI-generated text
239
+ - Hook question: How should researchers use AI tools?
240
+
241
+ #### 2.2 Context (250 words)
242
+ - AI tool proliferation (stats from Smith 2023)
243
+ - Current state: ad hoc usage, confusion
244
+
245
+ #### 2.3 The Gap (200 words)
246
+ - Transition: "Yet despite this growth..."
247
+ - Gap: No systematic guidance for academic contexts
248
+ - Consequence: Quality and ethical concerns
249
+
250
+ #### 2.4 Our Contribution (200 words)
251
+ - Thesis: Discipline-specific framework needed
252
+ - What we provide: Framework + validation
253
+ - Preview: "The following sections..."
254
+
255
+ [... continues for all sections ...]
256
+
257
+ ## Word Budget
258
+
259
+ | Section | Target | Actual | Status |
260
+ |---------|--------|--------|--------|
261
+ | Abstract | 200 | 0 | Not started |
262
+ | Introduction | 850 | 0 | Not started |
263
+ | Literature | 1200 | 0 | Not started |
264
+ | Methods | 1400 | 0 | Not started |
265
+ | Results | 2000 | 0 | Not started |
266
+ | Discussion | 1500 | 0 | Not started |
267
+ | Conclusion | 350 | 0 | Not started |
268
+ | **Total** | **7500** | **0** | **0%** |
269
+
270
+ ---
271
+
272
+ *Outline for: AI-Assisted Writing Framework*
273
+ ```
274
+ </example>