wtf-p 0.3.0 → 0.5.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 (183) hide show
  1. package/README.md +146 -208
  2. package/bin/commands/doctor.js +88 -2
  3. package/bin/commands/install-logic.js +127 -36
  4. package/bin/commands/status.js +22 -4
  5. package/bin/commands/update.js +5 -4
  6. package/bin/install.js +66 -26
  7. package/bin/lib/analyze-impact.js +105 -0
  8. package/bin/lib/bib-format.js +161 -0
  9. package/bin/lib/bib-index.js +104 -0
  10. package/bin/lib/checkpoint.js +183 -0
  11. package/bin/lib/citation-fetcher.js +299 -0
  12. package/bin/lib/citation-ranker.js +133 -0
  13. package/bin/lib/context-primer.js +214 -0
  14. package/bin/lib/manifest.js +80 -2
  15. package/bin/lib/scholar-lookup.js +188 -0
  16. package/bin/lib/semantic-scholar.js +184 -0
  17. package/bin/lib/utils.js +22 -1
  18. package/bin/uninstall.js +270 -111
  19. package/core/write-the-f-paper/references/agent-model-matrix.md +62 -0
  20. package/core/write-the-f-paper/references/checkpoints.md +160 -9
  21. package/core/write-the-f-paper/references/context-fidelity.md +153 -0
  22. package/core/write-the-f-paper/references/deviation-rules.md +150 -0
  23. package/core/write-the-f-paper/references/git-integration.md +80 -0
  24. package/core/write-the-f-paper/references/orchestrator-pattern.md +167 -0
  25. package/core/write-the-f-paper/references/planning-config.md +135 -0
  26. package/core/write-the-f-paper/references/ui-brand.md +186 -0
  27. package/core/write-the-f-paper/templates/UAT.md +80 -0
  28. package/core/write-the-f-paper/templates/base-prefs.yaml +42 -0
  29. package/core/write-the-f-paper/templates/config.json +31 -5
  30. package/core/write-the-f-paper/workflows/create-outline.wcn.md +1 -1
  31. package/core/write-the-f-paper/workflows/execute-outline.md +163 -0
  32. package/core/write-the-f-paper/workflows/execute-outline.wcn.md +73 -0
  33. package/core/write-the-f-paper/workflows/execute-section.wcn.md +141 -169
  34. package/core/write-the-f-paper/workflows/plan-section.wcn.md +96 -103
  35. package/core/write-the-f-paper/workflows/research-gap.md +27 -3
  36. package/core/write-the-f-paper/workflows/research-gap.wcn.md +18 -1
  37. package/core/write-the-f-paper/workflows/verify-work.md +251 -0
  38. package/core/write-the-f-paper/workflows/verify-work.wcn.md +74 -0
  39. package/package.json +19 -7
  40. package/vendors/claude/.claude-plugin/plugin.json +2 -2
  41. package/vendors/claude/agents/wtfp/argument-verifier.md +189 -0
  42. package/vendors/claude/agents/wtfp/citation-expert.md +45 -0
  43. package/vendors/claude/agents/wtfp/citation-formatter.md +42 -0
  44. package/vendors/claude/agents/wtfp/coherence-checker.md +167 -0
  45. package/vendors/claude/agents/wtfp/outliner.md +259 -0
  46. package/vendors/claude/agents/wtfp/plan-checker.md +249 -0
  47. package/vendors/claude/agents/wtfp/prose-polisher.md +166 -0
  48. package/vendors/claude/agents/wtfp/research-synthesizer.md +215 -0
  49. package/vendors/claude/agents/wtfp/section-planner.md +364 -0
  50. package/vendors/claude/agents/wtfp/section-reviewer.md +182 -0
  51. package/vendors/claude/agents/wtfp/section-writer.md +312 -0
  52. package/vendors/claude/commands/wtfp/add-todo.md +108 -0
  53. package/vendors/claude/commands/wtfp/analyze-bib.md +60 -249
  54. package/vendors/claude/commands/wtfp/audit-milestone.md +286 -0
  55. package/vendors/claude/commands/wtfp/check-refs.md +60 -131
  56. package/vendors/claude/commands/wtfp/check-todos.md +152 -0
  57. package/vendors/claude/commands/wtfp/checkpoint.md +105 -0
  58. package/vendors/claude/commands/wtfp/contribute.md +1 -1
  59. package/vendors/claude/commands/wtfp/create-outline.md +109 -195
  60. package/vendors/claude/commands/wtfp/create-poster.md +1 -1
  61. package/vendors/claude/commands/wtfp/create-slides.md +1 -1
  62. package/vendors/claude/commands/wtfp/discuss-section.md +1 -1
  63. package/vendors/claude/commands/wtfp/execute-outline.md +257 -0
  64. package/vendors/claude/commands/wtfp/export-latex.md +1 -1
  65. package/vendors/claude/commands/wtfp/help.md +174 -280
  66. package/vendors/claude/commands/wtfp/insert-section.md +1 -1
  67. package/vendors/claude/commands/wtfp/list-assumptions.md +1 -1
  68. package/vendors/claude/commands/wtfp/map-project.md +35 -124
  69. package/vendors/claude/commands/wtfp/new-paper.md +88 -362
  70. package/vendors/claude/commands/wtfp/pause-writing.md +1 -1
  71. package/vendors/claude/commands/wtfp/plan-milestone-gaps.md +255 -0
  72. package/vendors/claude/commands/wtfp/plan-revision.md +1 -1
  73. package/vendors/claude/commands/wtfp/plan-section.md +165 -190
  74. package/vendors/claude/commands/wtfp/polish-prose.md +66 -118
  75. package/vendors/claude/commands/wtfp/progress.md +82 -254
  76. package/vendors/claude/commands/wtfp/quick.md +107 -0
  77. package/vendors/claude/commands/wtfp/remove-section.md +1 -1
  78. package/vendors/claude/commands/wtfp/report-bug.md +1 -1
  79. package/vendors/claude/commands/wtfp/request-feature.md +1 -1
  80. package/vendors/claude/commands/wtfp/research-gap.md +138 -151
  81. package/vendors/claude/commands/wtfp/resume-writing.md +1 -1
  82. package/vendors/claude/commands/wtfp/review-section.md +55 -333
  83. package/vendors/claude/commands/wtfp/settings.md +197 -0
  84. package/vendors/claude/commands/wtfp/submit-milestone.md +248 -99
  85. package/vendors/claude/commands/wtfp/update.md +112 -0
  86. package/vendors/claude/commands/wtfp/verify-work.md +254 -0
  87. package/vendors/claude/commands/wtfp/write-section.md +144 -180
  88. package/vendors/claude/mcp/research-server/package.json +13 -0
  89. package/vendors/claude/mcp/research-server/src/index.js +133 -0
  90. package/vendors/gemini/agents/wtfp/argument-verifier.md +184 -0
  91. package/vendors/gemini/agents/wtfp/citation-expert.md +41 -0
  92. package/vendors/gemini/agents/wtfp/citation-formatter.md +38 -0
  93. package/vendors/gemini/agents/wtfp/coherence-checker.md +162 -0
  94. package/vendors/gemini/agents/wtfp/outliner.md +252 -0
  95. package/vendors/gemini/agents/wtfp/plan-checker.md +244 -0
  96. package/vendors/gemini/agents/wtfp/prose-polisher.md +158 -0
  97. package/vendors/gemini/agents/wtfp/research-synthesizer.md +205 -0
  98. package/vendors/gemini/agents/wtfp/section-planner.md +355 -0
  99. package/vendors/gemini/agents/wtfp/section-reviewer.md +175 -0
  100. package/vendors/gemini/agents/wtfp/section-writer.md +304 -0
  101. package/vendors/gemini/commands/wtfp/add-todo.toml +102 -0
  102. package/vendors/gemini/commands/wtfp/analyze-bib.toml +126 -0
  103. package/vendors/gemini/commands/wtfp/audit-milestone.toml +278 -0
  104. package/vendors/gemini/commands/wtfp/check-refs.toml +123 -0
  105. package/vendors/gemini/commands/wtfp/check-todos.toml +145 -0
  106. package/vendors/gemini/commands/wtfp/checkpoint.toml +96 -0
  107. package/vendors/gemini/commands/wtfp/contribute.toml +269 -0
  108. package/vendors/gemini/commands/wtfp/create-outline.toml +180 -0
  109. package/vendors/gemini/commands/wtfp/create-poster.toml +36 -0
  110. package/vendors/gemini/commands/wtfp/create-slides.toml +35 -0
  111. package/vendors/gemini/commands/wtfp/discuss-section.toml +62 -0
  112. package/vendors/gemini/commands/wtfp/execute-outline.toml +247 -0
  113. package/vendors/gemini/commands/wtfp/export-latex.toml +209 -0
  114. package/vendors/gemini/commands/wtfp/help.toml +184 -0
  115. package/vendors/gemini/commands/wtfp/insert-section.toml +123 -0
  116. package/vendors/gemini/commands/wtfp/list-assumptions.toml +104 -0
  117. package/vendors/gemini/commands/wtfp/map-project.toml +99 -0
  118. package/vendors/gemini/commands/wtfp/new-paper.toml +160 -0
  119. package/vendors/gemini/commands/wtfp/pause-writing.toml +140 -0
  120. package/vendors/gemini/commands/wtfp/plan-milestone-gaps.toml +249 -0
  121. package/vendors/gemini/commands/wtfp/plan-revision.toml +171 -0
  122. package/vendors/gemini/commands/wtfp/plan-section.toml +212 -0
  123. package/vendors/gemini/commands/wtfp/polish-prose.toml +114 -0
  124. package/vendors/gemini/commands/wtfp/progress.toml +145 -0
  125. package/vendors/gemini/commands/wtfp/quick.toml +96 -0
  126. package/vendors/gemini/commands/wtfp/remove-section.toml +140 -0
  127. package/vendors/gemini/commands/wtfp/report-bug.toml +126 -0
  128. package/vendors/gemini/commands/wtfp/request-feature.toml +155 -0
  129. package/vendors/gemini/commands/wtfp/research-gap.toml +214 -0
  130. package/vendors/gemini/commands/wtfp/resume-writing.toml +136 -0
  131. package/vendors/gemini/commands/wtfp/review-section.toml +121 -0
  132. package/vendors/gemini/commands/wtfp/settings.toml +191 -0
  133. package/vendors/gemini/commands/wtfp/submit-milestone.toml +351 -0
  134. package/vendors/gemini/commands/wtfp/update.toml +107 -0
  135. package/vendors/gemini/commands/wtfp/verify-work.toml +245 -0
  136. package/vendors/gemini/commands/wtfp/write-section.toml +228 -0
  137. package/vendors/opencode/agents/wtfp/argument-verifier.md +184 -0
  138. package/vendors/opencode/agents/wtfp/citation-expert.md +41 -0
  139. package/vendors/opencode/agents/wtfp/citation-formatter.md +38 -0
  140. package/vendors/opencode/agents/wtfp/coherence-checker.md +162 -0
  141. package/vendors/opencode/agents/wtfp/outliner.md +252 -0
  142. package/vendors/opencode/agents/wtfp/plan-checker.md +244 -0
  143. package/vendors/opencode/agents/wtfp/prose-polisher.md +158 -0
  144. package/vendors/opencode/agents/wtfp/research-synthesizer.md +205 -0
  145. package/vendors/opencode/agents/wtfp/section-planner.md +355 -0
  146. package/vendors/opencode/agents/wtfp/section-reviewer.md +175 -0
  147. package/vendors/opencode/agents/wtfp/section-writer.md +304 -0
  148. package/vendors/opencode/commands/wtfp/add-todo.md +103 -0
  149. package/vendors/opencode/commands/wtfp/analyze-bib.md +127 -0
  150. package/vendors/opencode/commands/wtfp/audit-milestone.md +279 -0
  151. package/vendors/opencode/commands/wtfp/check-refs.md +124 -0
  152. package/vendors/opencode/commands/wtfp/check-todos.md +146 -0
  153. package/vendors/opencode/commands/wtfp/checkpoint.md +97 -0
  154. package/vendors/opencode/commands/wtfp/contribute.md +266 -0
  155. package/vendors/opencode/commands/wtfp/create-outline.md +181 -0
  156. package/vendors/opencode/commands/wtfp/create-poster.md +37 -0
  157. package/vendors/opencode/commands/wtfp/create-slides.md +36 -0
  158. package/vendors/opencode/commands/wtfp/discuss-section.md +63 -0
  159. package/vendors/opencode/commands/wtfp/execute-outline.md +248 -0
  160. package/vendors/opencode/commands/wtfp/export-latex.md +210 -0
  161. package/vendors/opencode/commands/wtfp/help.md +185 -0
  162. package/vendors/opencode/commands/wtfp/insert-section.md +124 -0
  163. package/vendors/opencode/commands/wtfp/list-assumptions.md +105 -0
  164. package/vendors/opencode/commands/wtfp/map-project.md +100 -0
  165. package/vendors/opencode/commands/wtfp/new-paper.md +161 -0
  166. package/vendors/opencode/commands/wtfp/pause-writing.md +141 -0
  167. package/vendors/opencode/commands/wtfp/plan-milestone-gaps.md +250 -0
  168. package/vendors/opencode/commands/wtfp/plan-revision.md +174 -0
  169. package/vendors/opencode/commands/wtfp/plan-section.md +214 -0
  170. package/vendors/opencode/commands/wtfp/polish-prose.md +115 -0
  171. package/vendors/opencode/commands/wtfp/progress.md +146 -0
  172. package/vendors/opencode/commands/wtfp/quick.md +97 -0
  173. package/vendors/opencode/commands/wtfp/remove-section.md +141 -0
  174. package/vendors/opencode/commands/wtfp/report-bug.md +127 -0
  175. package/vendors/opencode/commands/wtfp/request-feature.md +156 -0
  176. package/vendors/opencode/commands/wtfp/research-gap.md +215 -0
  177. package/vendors/opencode/commands/wtfp/resume-writing.md +137 -0
  178. package/vendors/opencode/commands/wtfp/review-section.md +123 -0
  179. package/vendors/opencode/commands/wtfp/settings.md +192 -0
  180. package/vendors/opencode/commands/wtfp/submit-milestone.md +352 -0
  181. package/vendors/opencode/commands/wtfp/update.md +108 -0
  182. package/vendors/opencode/commands/wtfp/verify-work.md +246 -0
  183. package/vendors/opencode/commands/wtfp/write-section.md +228 -0
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: wtfp:help
3
- description: Show available WTF-P commands and usage guide
3
+ description: Show all WTF-P commands and how to use them
4
4
  allowed-tools: []
5
5
  ---
6
6
 
@@ -19,300 +19,217 @@ Output ONLY the reference content below. Do NOT add:
19
19
  <reference>
20
20
  # WTF-P Command Reference
21
21
 
22
- **WTF-P** (Write The F***ing Paper) creates hierarchical writing plans optimized for solo academic writing with Claude Code.
22
+ **WTF-P** (Write The F***ing Paper) gives you 36 commands for writing academic papers, proposals, presentations, and posters. You describe your research. WTF-P breaks it into sections you can plan, write, and review one at a time — tracking everything across sessions so you never lose context.
23
23
 
24
- ## Quick Start
24
+ ## Happy Path
25
25
 
26
- 1. `/wtfp:new-paper` - Initialize a new paper with vision
27
- 2. `/wtfp:create-outline` - Create document outline and sections
28
- 3. `/wtfp:plan-section <number>` - Create detailed plan for a section
29
- 4. `/wtfp:write-section <path>` - Execute the writing plan
26
+ New here? These five commands are the core loop. Run them in order:
30
27
 
31
- ## Core Workflow
28
+ | Step | Command | What it does |
29
+ |------|---------|-------------|
30
+ | 1 | `/wtfp:new-paper` | Start a new paper with guided interview and setup |
31
+ | 2 | `/wtfp:create-outline` | Build section outline, argument map, and word budgets |
32
+ | 3 | `/wtfp:plan-section 1` | Create detailed writing plan for a section |
33
+ | 4 | `/wtfp:write-section` | Write a section by executing its plan |
34
+ | 5 | `/wtfp:review-section 1` | Review section for citations, coherence, and requirements |
32
35
 
33
- ```
34
- Initialization -> Outlining -> Planning -> Writing -> Review
35
- ```
36
-
37
- ### Paper Initialization
38
-
39
- **`/wtfp:new-paper`**
40
- Initialize new paper project with deep context gathering.
41
-
42
- - Creates `.planning/PROJECT.md` (paper vision and requirements)
43
- - Creates `.planning/config.json` (workflow mode)
44
- - Creates structure docs (argument-map, outline, narrative-arc)
45
- - Asks about paper type, target venue, core argument
46
- - Commits initialization files to git
47
-
48
- Usage: `/wtfp:new-paper`
49
-
50
- **`/wtfp:create-outline`**
51
- Create section roadmap and state tracking for initialized paper.
52
-
53
- - Creates `.planning/ROADMAP.md` (section breakdown)
54
- - Creates `.planning/STATE.md` (writing memory)
55
- - Creates `.planning/sections/` directories
56
- - Establishes word budget per section
57
-
58
- Usage: `/wtfp:create-outline`
59
-
60
- **`/wtfp:map-project`**
61
- Map existing source materials for brownfield writing projects.
36
+ Repeat steps 3-5 for each section. Run `/wtfp:progress` anytime to see where you are and what to do next.
62
37
 
63
- - Indexes existing literature, data, and prior drafts
64
- - Creates `.planning/sources/` with organized references
65
- - Covers: literature.md, data.md, prior-drafts.md
66
- - Use before `/wtfp:new-paper` on existing writing projects
38
+ ## All Commands
67
39
 
68
- Usage: `/wtfp:map-project`
40
+ ### Setup
69
41
 
70
- ### Section Planning
42
+ | Command | Description |
43
+ |---------|-------------|
44
+ | `/wtfp:new-paper` | Start a new paper with guided interview and setup |
45
+ | `/wtfp:create-outline` | Build section outline, argument map, and word budgets |
46
+ | `/wtfp:map-project` | Index existing drafts, data, and references for a project |
71
47
 
72
- **`/wtfp:discuss-section <number>`**
73
- Help articulate your vision for a section before planning.
48
+ ```
49
+ /wtfp:new-paper # Answer questions about your research, get PROJECT.md
50
+ /wtfp:create-outline # Produces ROADMAP.md, argument-map, narrative-arc
51
+ /wtfp:map-project # Got existing files? Index them first, then new-paper
52
+ ```
74
53
 
75
- - Captures how you imagine this section working
76
- - Creates CONTEXT.md with your vision, essentials, and boundaries
77
- - Use when you have ideas about how something should read/feel
54
+ ### Planning
78
55
 
79
- Usage: `/wtfp:discuss-section 2`
56
+ | Command | Description |
57
+ |---------|-------------|
58
+ | `/wtfp:discuss-section [N]` | Discuss your vision for a section before planning it |
59
+ | `/wtfp:research-gap [N]` | Research literature and domain knowledge for a section |
60
+ | `/wtfp:list-assumptions [N]` | Preview intended approach for a section before writing |
61
+ | `/wtfp:plan-section [N]` | Create detailed writing plan for a section |
80
62
 
81
- **`/wtfp:research-gap <number>`**
82
- Comprehensive literature/domain research for a section.
63
+ ```
64
+ /wtfp:discuss-section 2 # Talk through your vision before committing to a plan
65
+ /wtfp:research-gap 3 # Find key citations and standard approaches
66
+ /wtfp:list-assumptions 3 # See what Claude intends — course-correct early
67
+ /wtfp:plan-section 1 # Creates .planning/sections/01-intro/01-01-PLAN.md
68
+ ```
83
69
 
84
- - Discovers standard approaches, key citations, gaps
85
- - Creates RESEARCH.md with "how experts write this" knowledge
86
- - Use for literature reviews, methodology justification, etc.
70
+ ### Writing
87
71
 
88
- Usage: `/wtfp:research-gap 3`
72
+ | Command | Description |
73
+ |---------|-------------|
74
+ | `/wtfp:write-section <path>` | Write a section by executing its plan |
75
+ | `/wtfp:execute-outline` | Write all sections in parallel, then check coherence |
76
+ | `/wtfp:quick <task>` | Run a small writing fix without full planning overhead |
89
77
 
90
- **`/wtfp:list-assumptions <number>`**
91
- See what Claude is planning to write before it starts.
78
+ ```
79
+ /wtfp:write-section .planning/sections/01-introduction/01-01-PLAN.md
80
+ /wtfp:execute-outline # Writes all sections by wave, checks coherence after
81
+ /wtfp:quick "add citation for Smith2023 in methods"
82
+ ```
92
83
 
93
- - Shows Claude's intended approach for a section
94
- - Lets you course-correct if Claude misunderstood your vision
95
- - No files created - conversational output only
84
+ ### Review and Revision
96
85
 
97
- Usage: `/wtfp:list-assumptions 3`
86
+ | Command | Description |
87
+ |---------|-------------|
88
+ | `/wtfp:review-section [N]` | Review section for citations, coherence, and requirements |
89
+ | `/wtfp:verify-work [N]` | Test a written section against its plan, one check at a time |
90
+ | `/wtfp:plan-revision [N]` | Create revision plan from review issues |
91
+ | `/wtfp:polish-prose [N]` | Improve clarity, flow, and academic voice in written prose |
98
92
 
99
- **`/wtfp:plan-section <number>`**
100
- Create detailed writing plan for a specific section.
93
+ ```
94
+ /wtfp:review-section 2 # Runs citation, coherence, and rubric checks
95
+ /wtfp:verify-work 2 # Walk through acceptance tests one at a time
96
+ /wtfp:plan-revision 02-01 # Turn ISSUES.md into a fix plan
97
+ /wtfp:polish-prose 2 # Kill AI-speak, tighten prose, adjust voice
98
+ ```
101
99
 
102
- - Generates `.planning/sections/XX-section-name/XX-YY-PLAN.md`
103
- - Breaks section into concrete writing tasks
104
- - Includes verification criteria and word targets
105
- - Multiple plans per section supported (XX-01, XX-02, etc.)
100
+ ### Citations
106
101
 
107
- Usage: `/wtfp:plan-section 1`
108
- Result: Creates `.planning/sections/01-introduction/01-01-PLAN.md`
102
+ | Command | Description |
103
+ |---------|-------------|
104
+ | `/wtfp:analyze-bib` | Analyze bibliography and map citations to sections |
105
+ | `/wtfp:check-refs` | Audit BibTeX for missing, duplicate, or broken references |
109
106
 
110
- ### Writing Execution
107
+ ```
108
+ /wtfp:analyze-bib # Deep analysis — maps each reference to sections
109
+ /wtfp:check-refs # Finds missing keys, duplicates, broken entries
110
+ ```
111
111
 
112
- **`/wtfp:write-section <path>`**
113
- Execute a PLAN.md file directly.
112
+ ### Progress and Sessions
114
113
 
115
- - Writes section content following the plan
116
- - Creates SUMMARY.md after completion
117
- - Updates STATE.md with word counts and progress
118
- - Supports three modes: Co-Author, Scaffold, Reviewer
114
+ | Command | Description |
115
+ |---------|-------------|
116
+ | `/wtfp:progress` | Show writing progress and suggest next step |
117
+ | `/wtfp:pause-writing` | Save current progress so you can resume later |
118
+ | `/wtfp:resume-writing` | Resume writing from a previous session |
119
+ | `/wtfp:checkpoint <save/restore/list>` | Save, restore, or list paper state snapshots |
119
120
 
120
- Usage: `/wtfp:write-section .planning/sections/01-introduction/01-01-PLAN.md`
121
+ ```
122
+ /wtfp:progress # Visual progress bar + intelligent next action
123
+ /wtfp:pause-writing # Creates .continue-here with full context
124
+ /wtfp:resume-writing # Reads STATE.md, shows where you left off
125
+ /wtfp:checkpoint save draft-1 # Git-tagged snapshot you can restore later
126
+ /wtfp:checkpoint list # Show all checkpoints
127
+ ```
121
128
 
122
129
  ### Outline Management
123
130
 
124
- **`/wtfp:add-section <description>`**
125
- Add new section to end of current structure.
126
-
127
- - Appends to ROADMAP.md
128
- - Uses next sequential number
129
- - Updates section directory structure
130
-
131
- Usage: `/wtfp:add-section "Add limitations subsection"`
132
-
133
- **`/wtfp:insert-section <after> <description>`**
134
- Insert urgent section between existing sections.
135
-
136
- - Creates intermediate section (e.g., 3.1 between 3 and 4)
137
- - Useful for discovered gaps that must be addressed
138
- - Maintains section ordering
139
-
140
- Usage: `/wtfp:insert-section 3 "Add methodology detail"`
141
- Result: Creates Section 3.1
142
-
143
- **`/wtfp:remove-section <number>`**
144
- Remove a future section and renumber subsequent sections.
145
-
146
- - Deletes section directory and all references
147
- - Renumbers all subsequent sections to close the gap
148
- - Only works on future (unwritten) sections
149
- - Git commit preserves historical record
150
-
151
- Usage: `/wtfp:remove-section 7`
152
-
153
- ### Review & Revision
154
-
155
- **`/wtfp:review-section [number]`**
156
- User acceptance testing of written sections.
157
-
158
- - Runs 3-layer verification (Citation, Coherence, Rubric)
159
- - Identifies issues needing revision
160
- - Creates ISSUES.md if problems found
161
-
162
- Usage: `/wtfp:review-section 2`
163
-
164
- **`/wtfp:plan-revision <plan>`**
165
- Create fix plan from review issues.
166
-
167
- - Reads ISSUES.md for the section
168
- - Creates targeted revision plan
169
- - Addresses specific reviewer/verification comments
131
+ | Command | Description |
132
+ |---------|-------------|
133
+ | `/wtfp:insert-section <after> <desc>` | Insert a new section between existing sections |
134
+ | `/wtfp:remove-section [N]` | Remove an unwritten section and renumber the rest |
170
135
 
171
- Usage: `/wtfp:plan-revision 02-01`
172
-
173
- ### Progress Tracking
174
-
175
- **`/wtfp:progress`**
176
- Check writing status and intelligently route to next action.
177
-
178
- - Shows visual progress bar and word count
179
- - Summarizes recent work from SUMMARY files
180
- - Displays current position and what's next
181
- - Offers to execute next plan or create it if missing
182
-
183
- Usage: `/wtfp:progress`
184
-
185
- ### Session Management
186
-
187
- **`/wtfp:resume-writing`**
188
- Resume work from previous session with full context restoration.
189
-
190
- - Reads STATE.md for writing context
191
- - Shows current position and recent progress
192
- - Offers next actions based on project state
193
-
194
- Usage: `/wtfp:resume-writing`
195
-
196
- **`/wtfp:pause-writing`**
197
- Create context handoff when pausing work mid-section.
198
-
199
- - Creates .continue-here file with current state
200
- - Updates STATE.md session continuity section
201
- - Captures in-progress work context
136
+ ```
137
+ /wtfp:insert-section 3 "Add methodology detail" # Creates Section 3.1
138
+ /wtfp:remove-section 7 # Deletes and renumbers
139
+ ```
202
140
 
203
- Usage: `/wtfp:pause-writing`
141
+ ### Export and Submission
204
142
 
205
- ### Export & Submission
143
+ | Command | Description |
144
+ |---------|-------------|
145
+ | `/wtfp:export-latex` | Export paper to LaTeX with bibliography and formatting |
146
+ | `/wtfp:audit-milestone` | Run pre-submission checks on sections, citations, and word counts |
147
+ | `/wtfp:plan-milestone-gaps` | Create fix plans for gaps found by audit-milestone |
148
+ | `/wtfp:submit-milestone <version>` | Archive a completed draft or submission version |
206
149
 
207
- **`/wtfp:export-latex`**
208
- Export paper to LaTeX format.
150
+ ```
151
+ /wtfp:export-latex # Generates .tex + references.bib in paper/
152
+ /wtfp:audit-milestone # 5-check pre-submission audit → MILESTONE-AUDIT.md
153
+ /wtfp:plan-milestone-gaps # Reads audit, creates fix plans for each gap
154
+ /wtfp:submit-milestone "initial-submission" # Archives to milestones/
155
+ ```
209
156
 
210
- - Generates .tex file from markdown sections
211
- - Creates references.bib from literature index
212
- - Applies journal/conference template
213
- - Outputs to paper/ directory
157
+ ### Presentations and Posters
214
158
 
215
- Usage: `/wtfp:export-latex`
159
+ | Command | Description |
160
+ |---------|-------------|
161
+ | `/wtfp:create-slides` | Generate presentation slides from paper content |
162
+ | `/wtfp:create-poster` | Generate academic poster from paper content |
216
163
 
217
- **`/wtfp:submit-milestone <version>`**
218
- Archive completed submission round.
164
+ ```
165
+ /wtfp:create-slides # Marp-based markdown slides from your paper
166
+ /wtfp:create-poster # Academic poster layout from key sections
167
+ ```
219
168
 
220
- - Creates MILESTONES.md entry with stats
221
- - Archives full details to milestones/ directory
222
- - Prepares workspace for revision round
169
+ ### Todos
223
170
 
224
- Usage: `/wtfp:submit-milestone "initial-submission"`
171
+ | Command | Description |
172
+ |---------|-------------|
173
+ | `/wtfp:add-todo <description>` | Capture a quick note or task without breaking your flow |
174
+ | `/wtfp:check-todos` | Review pending todos and act on, defer, or dismiss each |
225
175
 
226
- ### Issue Management
176
+ ```
177
+ /wtfp:add-todo "Check whether Smith2024 contradicts our methodology claim"
178
+ /wtfp:check-todos # Walk through each — act, defer, dismiss, or done
179
+ ```
227
180
 
228
- **`/wtfp:consider-gaps`**
229
- Review deferred issues and gaps.
181
+ ### Settings and Utilities
230
182
 
231
- - Analyzes all open issues against current draft
232
- - Identifies resolved issues (can close)
233
- - Identifies urgent gaps (should address now)
234
- - Identifies natural fits for upcoming sections
183
+ | Command | Description |
184
+ |---------|-------------|
185
+ | `/wtfp:settings` | View and edit project settings interactively |
186
+ | `/wtfp:update` | Check for updates and install newer version |
187
+ | `/wtfp:help` | Show all WTF-P commands and how to use them |
235
188
 
236
- Usage: `/wtfp:consider-gaps`
189
+ ### Contributing
237
190
 
238
- ### Utility Commands
191
+ | Command | Description |
192
+ |---------|-------------|
193
+ | `/wtfp:report-bug` | Report a bug via GitHub issue |
194
+ | `/wtfp:request-feature` | Request a new feature via GitHub issue |
195
+ | `/wtfp:contribute` | Walk through contributing code to WTF-P via pull request |
239
196
 
240
- **`/wtfp:help`**
241
- Show this command reference.
197
+ ## Files and Structure
242
198
 
243
- ## Files & Structure
199
+ WTF-P creates a `.planning/` directory in your project:
244
200
 
245
201
  ```
246
202
  .planning/
247
- ├── PROJECT.md # Paper vision
248
- ├── ROADMAP.md # Section breakdown
249
- ├── STATE.md # Writing memory & progress
250
- ├── ISSUES.md # Deferred enhancements
251
- ├── config.json # Workflow mode & settings
252
- ├── structure/ # Document structure
253
- │ ├── argument-map.md # Claim → Evidence → Conclusion
254
- │ ├── outline.md # Section skeleton
255
- │ └── narrative-arc.md # Story structure
256
- ├── sources/ # Source materials
257
- │ ├── literature.md # Bibliography index
258
- │ ├── data.md # Figures, tables, evidence
259
- │ └── prior-drafts.md # Existing material to incorporate
260
- ├── grant/ # Grant-specific (if applicable)
261
- │ ├── specific-aims.md # Goal hierarchy
262
- │ ├── budget.md # Budget structure
263
- │ └── reviewer-framing.md # Why fund this
264
- └── sections/
265
- ├── 01-introduction/
266
- │ ├── 01-01-PLAN.md
267
- │ └── 01-01-SUMMARY.md
268
- └── 02-methods/
269
- ├── 02-01-PLAN.md
270
- └── 02-01-SUMMARY.md
271
-
272
- paper/ # Output files
273
- ├── paper.tex # LaTeX output
274
- ├── paper.md # Markdown output
275
- ├── references.bib # Bibliography
276
- └── figures/ # Figure files
203
+ PROJECT.md Paper vision and requirements
204
+ ROADMAP.md Section breakdown with status
205
+ STATE.md Writing progress and session context
206
+ config.json Project settings
207
+ structure/
208
+ argument-map.md Claims mapped to evidence and sections
209
+ outline.md Section structure and word budgets
210
+ narrative-arc.md Story flow across sections
211
+ sources/
212
+ literature.md Bibliography index
213
+ data.md Figures, tables, evidence
214
+ prior-drafts.md Existing material to incorporate
215
+ sections/
216
+ 01-introduction/
217
+ 01-01-PLAN.md Writing plan
218
+ 01-01-SUMMARY.md Completion record
219
+ 02-methods/
220
+ 02-01-PLAN.md
221
+ 02-01-SUMMARY.md
222
+
223
+ paper/ Written output
224
+ paper.md Assembled paper
225
+ paper.tex LaTeX output (after export)
226
+ references.bib Bibliography
227
+ figures/ Figure files
277
228
  ```
278
229
 
279
- ## Writing Modes
280
-
281
- Claude adapts its role per section:
282
-
283
- **Co-Author Mode**
284
- - Claude drafts, you refine
285
- - Best for: Initial drafts, methods, boilerplate
286
-
287
- **Scaffold Mode**
288
- - Claude outlines, you write
289
- - Best for: Arguments, results interpretation
290
-
291
- **Reviewer Mode**
292
- - You write, Claude critiques
293
- - Best for: Abstract, discussion, conclusions
294
-
295
- ## Verification Layers
296
-
297
- **1. Citation Check (Mechanical)**
298
- - All claims have citations
299
- - Citations formatted correctly
300
- - No broken references
301
-
302
- **2. Argument Coherence (Logical)**
303
- - Claims follow from evidence
304
- - No logical contradictions
305
- - Flow between paragraphs
306
-
307
- **3. Rubric Check (Requirements)**
308
- - All required sections present
309
- - Word/page limits met
310
- - Formatting requirements met
311
-
312
230
  ## Common Workflows
313
231
 
314
232
  **Starting a new paper:**
315
-
316
233
  ```
317
234
  /wtfp:new-paper
318
235
  /wtfp:create-outline
@@ -320,51 +237,28 @@ Claude adapts its role per section:
320
237
  /wtfp:write-section .planning/sections/01-introduction/01-01-PLAN.md
321
238
  ```
322
239
 
323
- **Resuming work after a break:**
240
+ **Resuming after a break:**
241
+ ```
242
+ /wtfp:progress
243
+ ```
324
244
 
245
+ **Reviving a stalled project with existing files:**
325
246
  ```
326
- /wtfp:progress # See where you left off and continue
247
+ /wtfp:map-project
248
+ /wtfp:new-paper
327
249
  ```
328
250
 
329
251
  **Handling reviewer comments:**
330
-
331
252
  ```
332
- /wtfp:import-reviews # Import reviewer comments
333
- /wtfp:plan-revision # Plan fixes
334
- /wtfp:write-section # Execute revisions
335
- /wtfp:respond-reviews # Generate response doc
253
+ /wtfp:plan-revision 02-01
254
+ /wtfp:write-section .planning/sections/02-methods/02-01-PLAN.md
336
255
  ```
337
256
 
338
- ## Contributing to WTF-P
339
-
340
- Found a bug or want a new feature? Use these commands:
341
-
342
- **`/wtfp:report-bug`**
343
- Report a bug via GitHub issue.
344
- - Guides you through describing the problem
345
- - Collects environment info automatically
346
- - Creates well-formatted issue with `gh` CLI
347
-
348
- **`/wtfp:request-feature`**
349
- Request a new feature via GitHub issue.
350
- - Helps articulate what you need and why
351
- - Checks for duplicate requests
352
- - Can lead into implementation if desired
353
-
354
- **`/wtfp:contribute`**
355
- Guide through contributing code via Pull Request.
356
- - Fork → Branch → Implement → Test → PR workflow
357
- - Works for new commands, bug fixes, docs
358
- - Follows project conventions automatically
359
-
360
257
  ## Getting Help
361
258
 
362
- - Read `.planning/PROJECT.md` for paper vision
363
- - Read `.planning/STATE.md` for current context
364
- - Check `.planning/ROADMAP.md` for section status
365
- - Run `/wtfp:progress` to check where you're at
366
- - Report bugs: `/wtfp:report-bug`
367
- - Request features: `/wtfp:request-feature`
259
+ - `/wtfp:progress` — See where you are and what to do next
260
+ - `/wtfp:report-bug` — Report a bug
261
+ - `/wtfp:request-feature` — Request a feature
368
262
  - GitHub: https://github.com/akougkas/wtf-p
369
263
  </reference>
370
264
  </process>
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: wtfp:insert-section
3
- description: Insert urgent section between existing sections
3
+ description: Insert a new section between existing sections
4
4
  argument-hint: "<after> <description>"
5
5
  allowed-tools:
6
6
  - Read
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: wtfp:list-assumptions
3
- description: See what Claude is planning to write before it starts
3
+ description: Preview intended approach for a section before writing
4
4
  argument-hint: "[section]"
5
5
  allowed-tools:
6
6
  - Read