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,91 @@
1
+ <purpose>
2
+ Run three-layer verification on written sections. Extract deliverables from SUMMARY.md,
3
+ generate verification checklist, guide user through each check, log issues.
4
+
5
+ The USER performs judgment-based verification — Claude runs mechanical checks,
6
+ identifies potential issues, and guides the verification process.
7
+ </purpose>
8
+
9
+ <three_layers>
10
+ Academic writing verification has three distinct layers:
11
+
12
+ **1. Citation Check (Mechanical)** - Claude can run this
13
+ - All claims have citations where needed
14
+ - Citations formatted correctly for style
15
+ - All cited works appear in bibliography
16
+ - No broken references or [CITE:] placeholders
17
+ - Page numbers where required by style
18
+
19
+ **2. Argument Coherence (Logical)** - Claude identifies, user verifies
20
+ - Claims follow from evidence
21
+ - No logical contradictions
22
+ - Thesis supported throughout
23
+ - Counterarguments addressed
24
+ - Flow between paragraphs
25
+
26
+ **3. Rubric Check (Requirements)** - Both verify
27
+ - Required sections present
28
+ - Word/page limits met
29
+ - Formatting requirements met
30
+ - All required elements included
31
+ - Submission checklist complete
32
+ </three_layers>
33
+
34
+ <process>
35
+
36
+ [step:identify]
37
+ RUN: find .planning/sections -name "*SUMMARY.md" -type f -exec ls -lt {} + | head -5
38
+ [/step]
39
+
40
+ [step:extract]
41
+ [/step]
42
+
43
+ [step:layer_1_citation_check]
44
+ IF issues_found → Present for resolution before continuing.
45
+ [/step]
46
+
47
+ [step:layer_2_coherence_check]
48
+ [/step]
49
+
50
+ [step:layer_3_rubric_check]
51
+ [/step]
52
+
53
+ [step:collect_issues]
54
+ [/step]
55
+
56
+ [step:log_issues]
57
+ [/step]
58
+
59
+ [step:summarize]
60
+ [/step]
61
+
62
+ [step:offer_next]
63
+ [/step]
64
+
65
+ </process>
66
+
67
+ <verification_by_section_type>
68
+ **Different sections emphasize different checks:**
69
+
70
+ | Section | Citation Heavy | Coherence Heavy | Rubric Heavy |
71
+ |---------|---------------|-----------------|--------------|
72
+ | Abstract | Low | Medium | High (word limit) |
73
+ | Introduction | High (gap) | High (argument) | Medium |
74
+ | Related Work | Very High | High (synthesis) | Medium |
75
+ | Methods | Low | Medium | High (completeness) |
76
+ | Results | Low (own data) | Medium | High (all findings) |
77
+ | Discussion | High (context) | Very High | Medium |
78
+
79
+ Adjust verification emphasis accordingly.
80
+ </verification_by_section_type>
81
+
82
+ <success_criteria>
83
+ - [ ] Section/plan identified from SUMMARY.md
84
+ - [ ] Layer 1 (Citation) check completed
85
+ - [ ] Layer 2 (Coherence) issues identified for user verification
86
+ - [ ] Layer 3 (Rubric) check completed
87
+ - [ ] All issues categorized by severity
88
+ - [ ] Issues logged to section ISSUES.md if Critical/Major
89
+ - [ ] Summary presented with clear verdict
90
+ - [ ] User knows next steps based on results
91
+ </success_criteria>
@@ -0,0 +1,368 @@
1
+ <purpose>
2
+ Prepare a completed draft for submission. Run final verification, compile output,
3
+ generate submission checklist, and archive the submission round.
4
+
5
+ This workflow marks the end of a writing milestone and prepares for either
6
+ submission or revision cycle.
7
+ </purpose>
8
+
9
+ <when_to_use>
10
+ - All sections are complete
11
+ - Document is ready for submission or review
12
+ - User wants to compile final output
13
+ - Preparing for peer review
14
+ - Creating submission package
15
+ </when_to_use>
16
+
17
+ <process>
18
+
19
+ <step name="verify_document_complete" priority="first">
20
+ Check that all sections are complete:
21
+
22
+ ```bash
23
+ # Check roadmap for incomplete sections
24
+ cat .planning/ROADMAP.md | grep -E "^\s*-\s*\[.\]" | grep -v "\[x\]"
25
+ ```
26
+
27
+ **If incomplete sections found:**
28
+
29
+ ```
30
+ Document has incomplete sections:
31
+ [List incomplete sections]
32
+
33
+ Options:
34
+ 1. Complete remaining sections first
35
+ 2. Submit partial draft (mark incomplete sections)
36
+ 3. Review what's left
37
+ ```
38
+
39
+ Wait for user decision.
40
+
41
+ **If all sections complete:**
42
+ Continue to full_verification.
43
+ </step>
44
+
45
+ <step name="full_verification">
46
+ Run comprehensive verification across all sections.
47
+
48
+ **Layer 1: Citation Check (Mechanical)**
49
+
50
+ ```
51
+ Scanning all sections for citation issues...
52
+
53
+ ## Citation Inventory
54
+
55
+ Total citations: [N]
56
+ Unique sources: [N]
57
+ Bibliography entries: [N]
58
+
59
+ ### Citation Issues
60
+ - [ ] [Any uncited claims]
61
+ - [ ] [Any broken references]
62
+ - [ ] [Any format inconsistencies]
63
+
64
+ ### Bibliography Check
65
+ - [ ] All in-text citations have bibliography entries
66
+ - [ ] No orphan bibliography entries
67
+ - [ ] Format consistent throughout
68
+ ```
69
+
70
+ **Layer 2: Argument Coherence (Logical)**
71
+
72
+ ```
73
+ Checking argument flow across sections...
74
+
75
+ ## Argument Assessment
76
+
77
+ ### Thesis Support
78
+ Central claim: [from PROJECT.md]
79
+
80
+ Support chain:
81
+ - Introduction establishes: [check]
82
+ - Methods supports: [check]
83
+ - Results demonstrate: [check]
84
+ - Discussion interprets: [check]
85
+
86
+ ### Cross-Section Consistency
87
+ - [ ] No contradictions between sections
88
+ - [ ] Terminology consistent
89
+ - [ ] Claims match evidence
90
+
91
+ ### Flow
92
+ - [ ] Transitions between sections smooth
93
+ - [ ] Narrative arc complete
94
+ - [ ] Reader journey makes sense
95
+ ```
96
+
97
+ **Layer 3: Rubric Check (Requirements)**
98
+
99
+ ```
100
+ Checking submission requirements...
101
+
102
+ ## Requirements Check
103
+
104
+ ### Document Structure
105
+ - [ ] All required sections present
106
+ - [ ] Section order correct
107
+ - [ ] Abstract present and complete
108
+
109
+ ### Length
110
+ Target: [from PROJECT.md]
111
+ Actual: [calculated]
112
+ Status: [within limits / over / under]
113
+
114
+ ### Formatting
115
+ - [ ] Title page (if required)
116
+ - [ ] Author information (if required)
117
+ - [ ] Page numbers
118
+ - [ ] Margins and spacing
119
+ - [ ] Font requirements
120
+
121
+ ### Required Elements
122
+ [Based on venue/type:]
123
+ - [ ] [Required element 1]
124
+ - [ ] [Required element 2]
125
+ - [ ] [Required element 3]
126
+ ```
127
+
128
+ **Present verification summary:**
129
+
130
+ ```
131
+ ## Full Document Verification
132
+
133
+ ### Results
134
+ - Citation Check: [PASS/ISSUES - N issues]
135
+ - Coherence Check: [PASS/ISSUES - N issues]
136
+ - Rubric Check: [PASS/ISSUES - N issues]
137
+
138
+ ### Issues Found
139
+ [List any issues by severity: Critical, Major, Minor]
140
+
141
+ ### Verdict
142
+ [READY FOR SUBMISSION / NEEDS WORK / CRITICAL ISSUES]
143
+ ```
144
+
145
+ If issues found, ask if user wants to address them or proceed anyway.
146
+ </step>
147
+
148
+ <step name="compile_output">
149
+ Compile the final document output.
150
+
151
+ **Determine output format:**
152
+ ```bash
153
+ cat .planning/PROJECT.md | grep -i "format\|output"
154
+ ```
155
+
156
+ **For LaTeX output:**
157
+ ```bash
158
+ # Compile LaTeX
159
+ cd paper/
160
+ pdflatex paper.tex
161
+ bibtex paper
162
+ pdflatex paper.tex
163
+ pdflatex paper.tex
164
+ ```
165
+
166
+ **For Markdown output:**
167
+ ```bash
168
+ # Concatenate sections
169
+ cat paper/sections/*.md > paper/paper-full.md
170
+ ```
171
+
172
+ **Verify output:**
173
+ ```bash
174
+ ls -la paper/paper.pdf 2>/dev/null || ls -la paper/paper-full.md
175
+ ```
176
+
177
+ **Report:**
178
+ ```
179
+ ## Compiled Output
180
+
181
+ Output file: [path]
182
+ Format: [LaTeX PDF / Markdown / Other]
183
+ Word count: [final count]
184
+ Pages: [if applicable]
185
+ ```
186
+ </step>
187
+
188
+ <step name="generate_submission_checklist">
189
+ Generate submission-specific checklist based on venue.
190
+
191
+ ```
192
+ ## Submission Checklist
193
+
194
+ ### Document
195
+ - [ ] Title page complete and accurate
196
+ - [ ] Abstract within word limit
197
+ - [ ] All sections present and complete
198
+ - [ ] References formatted per venue style
199
+ - [ ] Figures/tables numbered and captioned
200
+
201
+ ### Files
202
+ - [ ] Main document file ([format])
203
+ - [ ] Separate figures (if required)
204
+ - [ ] Supplementary materials (if applicable)
205
+ - [ ] Cover letter (if required)
206
+
207
+ ### Venue Requirements
208
+ [Parse from PROJECT.md constraints]
209
+ - [ ] [Venue-specific requirement 1]
210
+ - [ ] [Venue-specific requirement 2]
211
+ - [ ] [Venue-specific requirement 3]
212
+
213
+ ### Final Checks
214
+ - [ ] Author names spelled correctly
215
+ - [ ] Affiliations accurate
216
+ - [ ] Corresponding author designated
217
+ - [ ] Keywords provided (if required)
218
+ - [ ] Funding acknowledgments (if applicable)
219
+ - [ ] Conflict of interest statement (if required)
220
+
221
+ ### Before Clicking Submit
222
+ - [ ] Co-authors have approved final version
223
+ - [ ] Read through one more time
224
+ - [ ] Checked submission portal requirements
225
+ ```
226
+ </step>
227
+
228
+ <step name="create_submission_archive">
229
+ Archive this submission round for future reference.
230
+
231
+ ```bash
232
+ mkdir -p .planning/submissions/round-1
233
+ ```
234
+
235
+ **Copy key files to archive:**
236
+
237
+ ```bash
238
+ # Copy final output
239
+ cp paper/paper.pdf .planning/submissions/round-1/ 2>/dev/null
240
+ cp paper/paper-full.md .planning/submissions/round-1/ 2>/dev/null
241
+
242
+ # Create submission record
243
+ cat > .planning/submissions/round-1/SUBMISSION.md << 'EOF'
244
+ # Submission Round 1
245
+
246
+ ## Submission Details
247
+ - **Date:** [today]
248
+ - **Venue:** [from PROJECT.md]
249
+ - **Title:** [from PROJECT.md]
250
+ - **Word count:** [final count]
251
+
252
+ ## Document State
253
+ - All sections: Complete
254
+ - Verification: [PASS/status]
255
+ - Output: [file name]
256
+
257
+ ## Files Submitted
258
+ - [List files]
259
+
260
+ ## Notes
261
+ [Any submission notes]
262
+
263
+ ## For Revision
264
+ If revisions requested, see:
265
+ - /wtfp:plan-revision - Create revision plan
266
+ - .planning/submissions/round-1/reviewer-comments.md - Import comments here
267
+ EOF
268
+ ```
269
+
270
+ Commit the archive:
271
+ ```bash
272
+ git add .planning/submissions/round-1/
273
+ git commit -m "docs: archive submission round 1
274
+
275
+ - Document complete and verified
276
+ - [N] sections, [word count] words
277
+ - Ready for submission to [venue]
278
+ "
279
+ ```
280
+ </step>
281
+
282
+ <step name="update_state">
283
+ Update STATE.md to reflect submission:
284
+
285
+ ```markdown
286
+ ## Current Position
287
+
288
+ Section: [N] of [N] (Complete)
289
+ Plan: All complete
290
+ Status: Submitted (Round 1)
291
+ Last activity: [today] — Prepared submission
292
+
293
+ ## Word Count
294
+
295
+ Target: [target] words
296
+ Final: [actual] words
297
+
298
+ ## Submission History
299
+
300
+ | Round | Date | Venue | Status |
301
+ |-------|------|-------|--------|
302
+ | 1 | [today] | [venue] | Submitted |
303
+ ```
304
+ </step>
305
+
306
+ <step name="offer_next">
307
+ Present completion summary and next steps:
308
+
309
+ ```
310
+ ## Submission Prepared
311
+
312
+ **Document:** [title]
313
+ **Venue:** [venue]
314
+ **Word count:** [final]
315
+ **Output:** [file path]
316
+
317
+ **Archive created:** .planning/submissions/round-1/
318
+
319
+ ---
320
+
321
+ ## Submission Checklist
322
+
323
+ [Present the generated checklist]
324
+
325
+ ---
326
+
327
+ ## After Submission
328
+
329
+ When you receive reviewer feedback:
330
+
331
+ `/wtfp:plan-revision` — Import comments and create revision plan
332
+
333
+ ---
334
+
335
+ ## Also Available
336
+
337
+ - Review compiled output
338
+ - Re-run verification
339
+ - Edit before final submission
340
+
341
+ ---
342
+ ```
343
+ </step>
344
+
345
+ </process>
346
+
347
+ <revision_cycle>
348
+ **After receiving reviewer feedback:**
349
+
350
+ 1. Import comments: Create `.planning/submissions/round-1/reviewer-comments.md`
351
+ 2. Run `/wtfp:plan-revision` to create revision plan
352
+ 3. Execute revisions as new writing plans
353
+ 4. Run `/wtfp:submit-draft` again for Round 2
354
+
355
+ This creates a clear record of each submission round and its revisions.
356
+ </revision_cycle>
357
+
358
+ <success_criteria>
359
+ Submit draft is complete when:
360
+ - [ ] All sections verified as complete
361
+ - [ ] Full verification run (citation, coherence, rubric)
362
+ - [ ] Critical issues addressed (or explicitly deferred)
363
+ - [ ] Output compiled (PDF or final document)
364
+ - [ ] Submission checklist generated
365
+ - [ ] Archive created for this round
366
+ - [ ] STATE.md updated
367
+ - [ ] User knows next steps (submit, then await feedback)
368
+ </success_criteria>
@@ -0,0 +1,69 @@
1
+ <purpose>
2
+ Prepare a completed draft for submission. Run final verification, compile output,
3
+ generate submission checklist, and archive the submission round.
4
+
5
+ This workflow marks the end of a writing milestone and prepares for either
6
+ submission or revision cycle.
7
+ </purpose>
8
+
9
+ <when_to_use>
10
+ - All sections are complete
11
+ - Document is ready for submission or review
12
+ - User wants to compile final output
13
+ - Preparing for peer review
14
+ - Creating submission package
15
+ </when_to_use>
16
+
17
+ <process>
18
+
19
+ [step:verify_document_complete p=1]
20
+ IF incomplete_sections_found → ```
21
+ IF all_sections_complete → Continue to full_verification.
22
+ [/step]
23
+
24
+ [step:full_verification]
25
+ [/step]
26
+
27
+ [step:compile_output]
28
+ RUN: cat .planning/PROJECT.md | grep -i "format\|output"
29
+ RUN: ls -la paper/paper.pdf 2>/dev/null || ls -la paper/paper-full.md
30
+ [/step]
31
+
32
+ [step:generate_submission_checklist]
33
+ [/step]
34
+
35
+ [step:create_submission_archive]
36
+ RUN: mkdir -p .planning/submissions/round-1
37
+ RUN: git add .planning/submissions/round-1/
38
+ [/step]
39
+
40
+ [step:update_state]
41
+ [/step]
42
+
43
+ [step:offer_next]
44
+ [/step]
45
+
46
+ </process>
47
+
48
+ <revision_cycle>
49
+ **After receiving reviewer feedback:**
50
+
51
+ 1. Import comments: Create `.planning/submissions/round-1/reviewer-comments.md`
52
+ 2. Run `/wtfp:plan-revision` to create revision plan
53
+ 3. Execute revisions as new writing plans
54
+ 4. Run `/wtfp:submit-draft` again for Round 2
55
+
56
+ This creates a clear record of each submission round and its revisions.
57
+ </revision_cycle>
58
+
59
+ <success_criteria>
60
+ Submit draft is complete when:
61
+ - [ ] All sections verified as complete
62
+ - [ ] Full verification run (citation, coherence, rubric)
63
+ - [ ] Critical issues addressed (or explicitly deferred)
64
+ - [ ] Output compiled (PDF or final document)
65
+ - [ ] Submission checklist generated
66
+ - [ ] Archive created for this round
67
+ - [ ] STATE.md updated
68
+ - [ ] User knows next steps (submit, then await feedback)
69
+ </success_criteria>