wtf-p 0.4.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 (175) hide show
  1. package/README.md +146 -226
  2. package/bin/commands/doctor.js +88 -2
  3. package/bin/commands/install-logic.js +121 -26
  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/checkpoint.js +183 -0
  8. package/bin/lib/context-primer.js +214 -0
  9. package/bin/lib/manifest.js +62 -2
  10. package/bin/lib/utils.js +22 -1
  11. package/bin/uninstall.js +270 -111
  12. package/core/write-the-f-paper/references/agent-model-matrix.md +62 -0
  13. package/core/write-the-f-paper/references/checkpoints.md +160 -9
  14. package/core/write-the-f-paper/references/context-fidelity.md +153 -0
  15. package/core/write-the-f-paper/references/deviation-rules.md +150 -0
  16. package/core/write-the-f-paper/references/git-integration.md +80 -0
  17. package/core/write-the-f-paper/references/orchestrator-pattern.md +167 -0
  18. package/core/write-the-f-paper/references/planning-config.md +135 -0
  19. package/core/write-the-f-paper/references/ui-brand.md +186 -0
  20. package/core/write-the-f-paper/templates/UAT.md +80 -0
  21. package/core/write-the-f-paper/templates/base-prefs.yaml +42 -0
  22. package/core/write-the-f-paper/templates/config.json +31 -5
  23. package/core/write-the-f-paper/workflows/create-outline.wcn.md +1 -1
  24. package/core/write-the-f-paper/workflows/execute-outline.md +163 -0
  25. package/core/write-the-f-paper/workflows/execute-outline.wcn.md +73 -0
  26. package/core/write-the-f-paper/workflows/execute-section.wcn.md +141 -169
  27. package/core/write-the-f-paper/workflows/plan-section.wcn.md +96 -103
  28. package/core/write-the-f-paper/workflows/research-gap.md +27 -3
  29. package/core/write-the-f-paper/workflows/research-gap.wcn.md +18 -1
  30. package/core/write-the-f-paper/workflows/verify-work.md +251 -0
  31. package/core/write-the-f-paper/workflows/verify-work.wcn.md +74 -0
  32. package/package.json +19 -7
  33. package/vendors/claude/.claude-plugin/plugin.json +2 -2
  34. package/vendors/claude/agents/wtfp/argument-verifier.md +189 -0
  35. package/vendors/claude/agents/wtfp/citation-expert.md +1 -1
  36. package/vendors/claude/agents/wtfp/citation-formatter.md +1 -1
  37. package/vendors/claude/agents/wtfp/coherence-checker.md +167 -0
  38. package/vendors/claude/agents/wtfp/outliner.md +259 -0
  39. package/vendors/claude/agents/wtfp/plan-checker.md +249 -0
  40. package/vendors/claude/agents/wtfp/prose-polisher.md +166 -0
  41. package/vendors/claude/agents/wtfp/research-synthesizer.md +215 -0
  42. package/vendors/claude/agents/wtfp/section-planner.md +364 -0
  43. package/vendors/claude/agents/wtfp/section-reviewer.md +182 -0
  44. package/vendors/claude/agents/wtfp/section-writer.md +312 -0
  45. package/vendors/claude/commands/wtfp/add-todo.md +108 -0
  46. package/vendors/claude/commands/wtfp/analyze-bib.md +58 -236
  47. package/vendors/claude/commands/wtfp/audit-milestone.md +286 -0
  48. package/vendors/claude/commands/wtfp/check-refs.md +60 -133
  49. package/vendors/claude/commands/wtfp/check-todos.md +152 -0
  50. package/vendors/claude/commands/wtfp/checkpoint.md +105 -0
  51. package/vendors/claude/commands/wtfp/contribute.md +1 -1
  52. package/vendors/claude/commands/wtfp/create-outline.md +109 -195
  53. package/vendors/claude/commands/wtfp/create-poster.md +1 -1
  54. package/vendors/claude/commands/wtfp/create-slides.md +1 -1
  55. package/vendors/claude/commands/wtfp/discuss-section.md +1 -1
  56. package/vendors/claude/commands/wtfp/execute-outline.md +257 -0
  57. package/vendors/claude/commands/wtfp/export-latex.md +1 -1
  58. package/vendors/claude/commands/wtfp/help.md +174 -280
  59. package/vendors/claude/commands/wtfp/insert-section.md +1 -1
  60. package/vendors/claude/commands/wtfp/list-assumptions.md +1 -1
  61. package/vendors/claude/commands/wtfp/map-project.md +35 -124
  62. package/vendors/claude/commands/wtfp/new-paper.md +85 -320
  63. package/vendors/claude/commands/wtfp/pause-writing.md +1 -1
  64. package/vendors/claude/commands/wtfp/plan-milestone-gaps.md +255 -0
  65. package/vendors/claude/commands/wtfp/plan-revision.md +1 -1
  66. package/vendors/claude/commands/wtfp/plan-section.md +165 -190
  67. package/vendors/claude/commands/wtfp/polish-prose.md +66 -118
  68. package/vendors/claude/commands/wtfp/progress.md +82 -254
  69. package/vendors/claude/commands/wtfp/quick.md +107 -0
  70. package/vendors/claude/commands/wtfp/remove-section.md +1 -1
  71. package/vendors/claude/commands/wtfp/report-bug.md +1 -1
  72. package/vendors/claude/commands/wtfp/request-feature.md +1 -1
  73. package/vendors/claude/commands/wtfp/research-gap.md +138 -150
  74. package/vendors/claude/commands/wtfp/resume-writing.md +1 -1
  75. package/vendors/claude/commands/wtfp/review-section.md +55 -333
  76. package/vendors/claude/commands/wtfp/settings.md +197 -0
  77. package/vendors/claude/commands/wtfp/submit-milestone.md +248 -99
  78. package/vendors/claude/commands/wtfp/update.md +112 -0
  79. package/vendors/claude/commands/wtfp/verify-work.md +254 -0
  80. package/vendors/claude/commands/wtfp/write-section.md +144 -180
  81. package/vendors/gemini/agents/wtfp/argument-verifier.md +184 -0
  82. package/vendors/gemini/agents/wtfp/citation-expert.md +41 -0
  83. package/vendors/gemini/agents/wtfp/citation-formatter.md +38 -0
  84. package/vendors/gemini/agents/wtfp/coherence-checker.md +162 -0
  85. package/vendors/gemini/agents/wtfp/outliner.md +252 -0
  86. package/vendors/gemini/agents/wtfp/plan-checker.md +244 -0
  87. package/vendors/gemini/agents/wtfp/prose-polisher.md +158 -0
  88. package/vendors/gemini/agents/wtfp/research-synthesizer.md +205 -0
  89. package/vendors/gemini/agents/wtfp/section-planner.md +355 -0
  90. package/vendors/gemini/agents/wtfp/section-reviewer.md +175 -0
  91. package/vendors/gemini/agents/wtfp/section-writer.md +304 -0
  92. package/vendors/gemini/commands/wtfp/add-todo.toml +102 -0
  93. package/vendors/gemini/commands/wtfp/analyze-bib.toml +126 -0
  94. package/vendors/gemini/commands/wtfp/audit-milestone.toml +278 -0
  95. package/vendors/gemini/commands/wtfp/check-refs.toml +123 -0
  96. package/vendors/gemini/commands/wtfp/check-todos.toml +145 -0
  97. package/vendors/gemini/commands/wtfp/checkpoint.toml +96 -0
  98. package/vendors/gemini/commands/wtfp/contribute.toml +269 -0
  99. package/vendors/gemini/commands/wtfp/create-outline.toml +180 -0
  100. package/vendors/gemini/commands/wtfp/create-poster.toml +36 -0
  101. package/vendors/gemini/commands/wtfp/create-slides.toml +35 -0
  102. package/vendors/gemini/commands/wtfp/discuss-section.toml +62 -0
  103. package/vendors/gemini/commands/wtfp/execute-outline.toml +247 -0
  104. package/vendors/gemini/commands/wtfp/export-latex.toml +209 -0
  105. package/vendors/gemini/commands/wtfp/help.toml +184 -0
  106. package/vendors/gemini/commands/wtfp/insert-section.toml +123 -0
  107. package/vendors/gemini/commands/wtfp/list-assumptions.toml +104 -0
  108. package/vendors/gemini/commands/wtfp/map-project.toml +99 -0
  109. package/vendors/gemini/commands/wtfp/new-paper.toml +160 -0
  110. package/vendors/gemini/commands/wtfp/pause-writing.toml +140 -0
  111. package/vendors/gemini/commands/wtfp/plan-milestone-gaps.toml +249 -0
  112. package/vendors/gemini/commands/wtfp/plan-revision.toml +171 -0
  113. package/vendors/gemini/commands/wtfp/plan-section.toml +212 -0
  114. package/vendors/gemini/commands/wtfp/polish-prose.toml +114 -0
  115. package/vendors/gemini/commands/wtfp/progress.toml +145 -0
  116. package/vendors/gemini/commands/wtfp/quick.toml +96 -0
  117. package/vendors/gemini/commands/wtfp/remove-section.toml +140 -0
  118. package/vendors/gemini/commands/wtfp/report-bug.toml +126 -0
  119. package/vendors/gemini/commands/wtfp/request-feature.toml +155 -0
  120. package/vendors/gemini/commands/wtfp/research-gap.toml +214 -0
  121. package/vendors/gemini/commands/wtfp/resume-writing.toml +136 -0
  122. package/vendors/gemini/commands/wtfp/review-section.toml +121 -0
  123. package/vendors/gemini/commands/wtfp/settings.toml +191 -0
  124. package/vendors/gemini/commands/wtfp/submit-milestone.toml +351 -0
  125. package/vendors/gemini/commands/wtfp/update.toml +107 -0
  126. package/vendors/gemini/commands/wtfp/verify-work.toml +245 -0
  127. package/vendors/gemini/commands/wtfp/write-section.toml +228 -0
  128. package/vendors/opencode/agents/wtfp/argument-verifier.md +184 -0
  129. package/vendors/opencode/agents/wtfp/citation-expert.md +41 -0
  130. package/vendors/opencode/agents/wtfp/citation-formatter.md +38 -0
  131. package/vendors/opencode/agents/wtfp/coherence-checker.md +162 -0
  132. package/vendors/opencode/agents/wtfp/outliner.md +252 -0
  133. package/vendors/opencode/agents/wtfp/plan-checker.md +244 -0
  134. package/vendors/opencode/agents/wtfp/prose-polisher.md +158 -0
  135. package/vendors/opencode/agents/wtfp/research-synthesizer.md +205 -0
  136. package/vendors/opencode/agents/wtfp/section-planner.md +355 -0
  137. package/vendors/opencode/agents/wtfp/section-reviewer.md +175 -0
  138. package/vendors/opencode/agents/wtfp/section-writer.md +304 -0
  139. package/vendors/opencode/commands/wtfp/add-todo.md +103 -0
  140. package/vendors/opencode/commands/wtfp/analyze-bib.md +127 -0
  141. package/vendors/opencode/commands/wtfp/audit-milestone.md +279 -0
  142. package/vendors/opencode/commands/wtfp/check-refs.md +124 -0
  143. package/vendors/opencode/commands/wtfp/check-todos.md +146 -0
  144. package/vendors/opencode/commands/wtfp/checkpoint.md +97 -0
  145. package/vendors/opencode/commands/wtfp/contribute.md +266 -0
  146. package/vendors/opencode/commands/wtfp/create-outline.md +181 -0
  147. package/vendors/opencode/commands/wtfp/create-poster.md +37 -0
  148. package/vendors/opencode/commands/wtfp/create-slides.md +36 -0
  149. package/vendors/opencode/commands/wtfp/discuss-section.md +63 -0
  150. package/vendors/opencode/commands/wtfp/execute-outline.md +248 -0
  151. package/vendors/opencode/commands/wtfp/export-latex.md +210 -0
  152. package/vendors/opencode/commands/wtfp/help.md +185 -0
  153. package/vendors/opencode/commands/wtfp/insert-section.md +124 -0
  154. package/vendors/opencode/commands/wtfp/list-assumptions.md +105 -0
  155. package/vendors/opencode/commands/wtfp/map-project.md +100 -0
  156. package/vendors/opencode/commands/wtfp/new-paper.md +161 -0
  157. package/vendors/opencode/commands/wtfp/pause-writing.md +141 -0
  158. package/vendors/opencode/commands/wtfp/plan-milestone-gaps.md +250 -0
  159. package/vendors/opencode/commands/wtfp/plan-revision.md +174 -0
  160. package/vendors/opencode/commands/wtfp/plan-section.md +214 -0
  161. package/vendors/opencode/commands/wtfp/polish-prose.md +115 -0
  162. package/vendors/opencode/commands/wtfp/progress.md +146 -0
  163. package/vendors/opencode/commands/wtfp/quick.md +97 -0
  164. package/vendors/opencode/commands/wtfp/remove-section.md +141 -0
  165. package/vendors/opencode/commands/wtfp/report-bug.md +127 -0
  166. package/vendors/opencode/commands/wtfp/request-feature.md +156 -0
  167. package/vendors/opencode/commands/wtfp/research-gap.md +215 -0
  168. package/vendors/opencode/commands/wtfp/resume-writing.md +137 -0
  169. package/vendors/opencode/commands/wtfp/review-section.md +123 -0
  170. package/vendors/opencode/commands/wtfp/settings.md +192 -0
  171. package/vendors/opencode/commands/wtfp/submit-milestone.md +352 -0
  172. package/vendors/opencode/commands/wtfp/update.md +108 -0
  173. package/vendors/opencode/commands/wtfp/verify-work.md +246 -0
  174. package/vendors/opencode/commands/wtfp/write-section.md +228 -0
  175. package/vendors/claude/agents/wtfp/citation-retriever.md +0 -31
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: wtfp:review-section
3
- description: Run 3-layer verification on written sections
3
+ description: Review section for citations, coherence, and requirements
4
4
  argument-hint: "[section]"
5
5
  allowed-tools:
6
6
  - Read
@@ -8,377 +8,103 @@ allowed-tools:
8
8
  - Write
9
9
  - Glob
10
10
  - Grep
11
+ - Task
11
12
  - AskUserQuestion
12
13
  ---
13
14
 
15
+ <execution_context>
16
+ @~/.claude/write-the-f-paper/workflows/review-section.md
17
+ </execution_context>
18
+
14
19
  <objective>
15
20
  User acceptance testing of written sections with configurable reviewer personas.
16
21
 
22
+ **Orchestrator role:** Validate section exists, select persona, resolve model profile, spawn section-reviewer agent, present results.
23
+
17
24
  Runs 3-layer verification:
18
25
  1. Citation Check (Mechanical)
19
26
  2. Argument Coherence (Logical)
20
27
  3. Rubric Check (Requirements)
21
-
22
- **Reviewer Personas** adjust critique intensity and focus:
23
- - Reviewer #2 (Hostile): Nitpicky, finds every flaw, assumes bad faith
24
- - Area Chair (Big Picture): Strategic, focuses on contribution significance
25
- - Camera-Ready Editor (Nitpicky): Formatting, style, polish details
26
- - Friendly Mentor (Constructive): Balanced, actionable suggestions
27
-
28
- Creates ISSUES.md if problems found.
29
-
30
- User performs verification; Claude guides and documents.
31
28
  </objective>
32
29
 
33
- <execution_context>
34
- @~/.claude/write-the-f-paper/workflows/review-section.md
35
- </execution_context>
30
+ <context>
31
+ Section: $ARGUMENTS (section number or path)
32
+ </context>
36
33
 
37
34
  <process>
38
35
 
39
- <step name="verify">
40
- **Verify section exists:**
36
+ ## 1. Validate Environment and Resolve Model Profile
41
37
 
42
38
  ```bash
43
- # Check for written content
44
39
  ls paper/*.md 2>/dev/null || echo "No content in paper/ directory"
45
-
46
- # Check for SUMMARY indicating writing complete
47
- ls .planning/sections/*/SUMMARY.md 2>/dev/null | head -5
40
+ ls .planning/ 2>/dev/null
48
41
  ```
49
42
 
50
- </step>
51
-
52
- <step name="load">
53
- **Load context for review:**
43
+ **Resolve model profile:**
44
+ ```bash
45
+ MODEL_PROFILE=$(cat .planning/config.json 2>/dev/null | grep -o '"model_profile"[[:space:]]*:[[:space:]]*"[^"]*"' | grep -o '"[^"]*"$' | tr -d '"' || echo "balanced")
46
+ ```
54
47
 
55
- - Read the written section content (paper/[section].md)
56
- - Read PROJECT.md for requirements
57
- - Read argument-map.md for expected claims
58
- - Read outline.md for structure expectations
59
- - Read sources/literature.md for citation expectations
60
- - Read SUMMARY.md for what was intended
61
- </step>
48
+ | Agent | quality | balanced | budget |
49
+ |-------|---------|----------|--------|
50
+ | section-reviewer | opus | sonnet | haiku |
62
51
 
63
- <step name="select_persona">
64
- **Select reviewer persona:**
52
+ ## 2. Select Reviewer Persona
65
53
 
66
54
  Use AskUserQuestion:
67
55
  - header: "Reviewer"
68
56
  - question: "What type of review do you want?"
69
57
  - options:
58
+ - "Friendly Mentor" — Balanced, constructive, actionable (Recommended)
70
59
  - "Reviewer #2 (Hostile)" — Nitpicky, assumes worst, finds every flaw
71
60
  - "Area Chair (Big Picture)" — Strategic focus on contribution and impact
72
61
  - "Camera-Ready Editor" — Formatting, style, polish, consistency
73
- - "Friendly Mentor" — Balanced, constructive, actionable (Recommended)
74
-
75
- **Persona behaviors:**
76
-
77
- ### Reviewer #2 (Hostile)
78
- - Questions every claim without citation
79
- - Assumes methodology is flawed until proven
80
- - Finds ambiguity in clear statements
81
- - Demands more experiments/evidence
82
- - Tone: "The authors fail to..." / "It is unclear why..."
83
- - Severity bias: Escalates minor issues to major
84
-
85
- ### Area Chair (Big Picture)
86
- - Focuses on: Is the contribution significant?
87
- - Asks: Would this paper advance the field?
88
- - Checks: Is the evaluation convincing for the claims made?
89
- - Less concerned with minor formatting
90
- - Tone: "The main contribution..." / "The significance..."
91
- - Severity bias: Ignores minor, focuses on blockers
92
-
93
- ### Camera-Ready Editor
94
- - Formatting consistency (headings, spacing, fonts)
95
- - Figure/table placement and references
96
- - Citation style compliance
97
- - Grammar, typos, awkward phrasing
98
- - LaTeX/formatting warnings
99
- - Tone: "Line X has..." / "Figure Y should..."
100
- - Severity bias: Many minor issues
101
-
102
- ### Friendly Mentor
103
- - Balanced critique with encouragement
104
- - Every criticism paired with suggestion
105
- - Prioritizes actionable feedback
106
- - Acknowledges what works well
107
- - Tone: "Consider..." / "This works well, but could be stronger if..."
108
- - Severity bias: Realistic assessment
109
-
110
- Store selected persona for use in all verification steps.
111
-
112
- </step>
113
-
114
- <step name="citation_check">
115
- **Layer 1: Citation Check (Mechanical)**
116
-
117
- Adjust intensity based on persona:
118
-
119
- **If Reviewer #2 (Hostile):**
120
- ```
121
- ## Citation Check (Hostile Mode)
122
-
123
- I'm looking for EVERY missing citation:
124
-
125
- - [ ] ALL factual claims have citations (even "obvious" ones)
126
- - [ ] Claims of novelty properly qualified
127
- - [ ] No weasel words hiding missing citations ("studies show...", "it is known...")
128
- - [ ] Self-citation ratio appropriate (not self-promotional)
129
- - [ ] Recent work cited (nothing newer doing this?)
130
- - [ ] Foundational work cited (did you read the classics?)
131
-
132
- **Potential issues I see:**
133
- [Claude actively identifies potential issues in hostile mode]
134
- ```
135
-
136
- **If Area Chair:**
137
- ```
138
- ## Citation Check (Strategic)
139
-
140
- Focus on citation credibility:
141
-
142
- - [ ] Key claims backed by strong citations
143
- - [ ] Methodology citations are appropriate
144
- - [ ] Comparison baselines properly cited
145
- - [ ] Not over-citing tangential work
146
-
147
- **Big picture:**
148
- ```
149
-
150
- **If Camera-Ready Editor:**
151
- ```
152
- ## Citation Check (Formatting)
153
-
154
- - [ ] Citation format consistent throughout ([N] vs (Author, Year))
155
- - [ ] All citations resolve in bibliography
156
- - [ ] No duplicate entries
157
- - [ ] Citation style matches venue requirements
158
- - [ ] Page numbers where required
159
- ```
160
-
161
- **If Friendly Mentor:**
162
- ```
163
- ## Citation Check
164
-
165
- Let's make sure your citations are solid:
166
-
167
- - [ ] Factual claims have citations
168
- - [ ] Format is consistent
169
- - [ ] Bibliography is complete
170
-
171
- **What's working well:** [note positives]
172
- **Suggestions:**
173
- ```
174
-
175
- Use AskUserQuestion:
176
- - header: "Citations"
177
- - question: "Any citation issues found?"
178
- - options:
179
- - "All clear" — Citations look good
180
- - "Issues found" — I'll list them
181
- - "Skip this check" — Move to next layer
182
-
183
- If issues found, prompt for details.
184
-
185
- </step>
186
-
187
- <step name="coherence_check">
188
- **Layer 2: Argument Coherence (Logical)**
189
-
190
- Adjust intensity based on persona:
191
-
192
- **If Reviewer #2 (Hostile):**
193
- ```
194
- ## Argument Coherence (Hostile Mode)
195
-
196
- I'm stress-testing your logic:
197
-
198
- - [ ] Every claim PROVEN, not just stated
199
- - [ ] Assumptions explicitly stated and justified
200
- - [ ] Alternative explanations addressed
201
- - [ ] Limitations acknowledged (or I'll find them)
202
- - [ ] No logical leaps ("clearly" / "obviously" hiding weak reasoning)
203
- - [ ] Statistics interpreted correctly
204
- - [ ] Causation vs correlation distinguished
205
-
206
- **Logical weaknesses I see:**
207
- [Claude actively identifies logical gaps in hostile mode]
208
-
209
- **Questions a hostile reviewer would ask:**
210
- - "How do you know X causes Y?"
211
- - "What about alternative explanation Z?"
212
- - "Your sample size is only N..."
213
- ```
214
62
 
215
- **If Area Chair:**
216
- ```
217
- ## Argument Coherence (Strategic)
218
-
219
- Does the argument support a strong contribution?
63
+ ## 3. Read Context Files
220
64
 
221
- - [ ] Core thesis is clear and significant
222
- - [ ] Evidence supports the main claims
223
- - [ ] Contribution is differentiated from prior work
224
- - [ ] Limitations don't undermine the contribution
225
-
226
- **Strategic assessment:**
227
- ```
65
+ ```bash
66
+ SECTION_CONTENT=$(cat paper/*.md 2>/dev/null)
67
+ PROJECT_CONTENT=$(cat .planning/PROJECT.md)
68
+ ARGMAP_CONTENT=$(cat .planning/structure/argument-map.md 2>/dev/null)
69
+ OUTLINE_CONTENT=$(cat .planning/structure/outline.md 2>/dev/null)
70
+ SUMMARY_CONTENT=$(cat .planning/sections/*/SUMMARY.md 2>/dev/null | head -200)
228
71
 
229
- **If Camera-Ready Editor:**
72
+ SECTION_DIR=$(ls -d .planning/sections/${SECTION}-* 2>/dev/null | head -1)
73
+ CONTEXT_CONTENT=$(cat "${SECTION_DIR}"/*-CONTEXT.md 2>/dev/null)
230
74
  ```
231
- ## Argument Coherence (Light Touch)
232
75
 
233
- Basic logical flow:
76
+ ## 4. Spawn wtfp-section-reviewer Agent
234
77
 
235
- - [ ] Paragraphs in logical order
236
- - [ ] Transitions present
237
- - [ ] No obvious contradictions
238
78
  ```
239
-
240
- **If Friendly Mentor:**
79
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
80
+ WTF-P ► REVIEWING SECTION
81
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
241
82
  ```
242
- ## Argument Coherence
243
-
244
- Let's strengthen your argument:
245
83
 
246
- - [ ] Claims follow from evidence
247
- - [ ] Logic flows naturally
248
- - [ ] Counter-arguments addressed
249
-
250
- **Strengths:** [what's working]
251
- **Opportunities:** [where to strengthen]
252
84
  ```
253
-
254
- **Cross-reference with argument-map.md:**
255
- - [ ] Claim 1 addressed: [yes/no/partial]
256
- - [ ] Claim 2 addressed: [yes/no/partial]
257
- - [ ] ...
258
-
259
- Use AskUserQuestion:
260
- - header: "Coherence"
261
- - question: "Any logical/flow issues found?"
262
- - options:
263
- - "All clear" — Logic flows well
264
- - "Issues found" — I'll list them
265
- - "Skip this check" — Move to next layer
266
-
267
- </step>
268
-
269
- <step name="rubric_check">
270
- **Layer 3: Rubric Check (Requirements)**
271
-
272
- Present checklist based on PROJECT.md requirements:
273
-
85
+ Task(
86
+ prompt="First, read ~/.claude/agents/wtfp/section-reviewer.md for your role and instructions.\n\n" + filled_review_prompt,
87
+ subagent_type="general-purpose",
88
+ model="{reviewer_model}",
89
+ description="Review Section {X}"
90
+ )
274
91
  ```
275
- ## Rubric Check
276
-
277
- Review against requirements:
278
-
279
- **Structure:**
280
- - [ ] All required elements present
281
- - [ ] Follows expected structure (IMRaD, etc.)
282
- - [ ] Appropriate for target venue
283
92
 
284
- **Length:**
285
- - [ ] Word count: [current] / [target] ([variance]%)
286
- - [ ] Within acceptable range
93
+ Review prompt includes: `<section_content>` with written text, `<review_persona>` with selected persona, `<project_context>` with PROJECT + argument-map + outline, `<user_decisions>` with CONTEXT_CONTENT.
287
94
 
288
- **Formatting:**
289
- - [ ] Heading levels correct
290
- - [ ] Figure/table references correct
291
- - [ ] Consistent style throughout
95
+ ## 5. Handle Reviewer Return
292
96
 
293
- **Content Requirements:**
294
- - [ ] [Requirement 1 from PROJECT.md]: [met/not met]
295
- - [ ] [Requirement 2 from PROJECT.md]: [met/not met]
97
+ **`## REVIEW COMPLETE`:** Present results, route to next action.
296
98
 
297
- **Issues found:**
298
- ```
299
-
300
- Use AskUserQuestion:
301
- - header: "Requirements"
302
- - question: "Any requirement issues found?"
303
- - options:
304
- - "All clear" — Requirements met
305
- - "Issues found" — I'll list them
306
-
307
- </step>
308
-
309
- <step name="issues">
310
- **Create ISSUES.md if problems found:**
311
-
312
- ```markdown
313
- ---
314
- section: XX-name
315
- plan: YY
316
- review_date: [date]
317
- ---
99
+ ## 6. Present Results
318
100
 
319
- # Review Issues: [Section Name]
320
-
321
- ## Reviewer Persona: [Selected Persona]
322
-
323
- ## Citation Issues
324
- | ID | Issue | Severity | Location |
325
- |----|-------|----------|----------|
326
- | CIT-1 | [description] | [Major/Minor] | [line/para] |
327
-
328
- ## Coherence Issues
329
- | ID | Issue | Severity | Location |
330
- |----|-------|----------|----------|
331
- | COH-1 | [description] | [Major/Minor] | [line/para] |
332
-
333
- ## Requirement Issues
334
- | ID | Issue | Severity | Requirement |
335
- |----|-------|----------|-------------|
336
- | REQ-1 | [description] | [Major/Minor] | [which req] |
337
-
338
- ## Summary
339
- - Total issues: [N]
340
- - Blockers (must fix): [N]
341
- - Major (should fix): [N]
342
- - Minor (nice to fix): [N]
343
-
344
- ---
345
- *Reviewed: [date]*
346
- ```
347
-
348
- </step>
349
-
350
- <step name="commit">
351
- ```bash
352
- git add .planning/sections/XX-name/XX-YY-ISSUES.md
353
- git commit -m "$(cat <<'EOF'
354
- review(XX-YY): [section name] verification
355
-
356
- Issues found: [N] ([blockers] blockers)
357
- EOF
358
- )"
359
- ```
360
-
361
- </step>
362
-
363
- <step name="done">
364
- **Present results:**
365
-
366
- ```
367
- Review complete:
368
-
369
- - Section: [name]
370
- - Issues: .planning/sections/XX-name/XX-YY-ISSUES.md
371
-
372
- ## Summary
373
- - Citation check: [pass/issues]
374
- - Coherence check: [pass/issues]
375
- - Rubric check: [pass/issues]
376
-
377
- Total: [N] issues ([blockers] blockers, [major] major, [minor] minor)
101
+ </process>
378
102
 
379
- ---
103
+ <offer_next>
380
104
 
381
- ## ▶ Next Up
105
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
106
+ WTF-P ► REVIEW COMPLETE
107
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
382
108
 
383
109
  [If issues found:]
384
110
  **Plan revisions** — address identified issues
@@ -392,18 +118,14 @@ Total: [N] issues ([blockers] blockers, [major] major, [minor] minor)
392
118
 
393
119
  <sub>`/clear` first → fresh context window</sub>
394
120
 
395
- ---
396
- ```
397
-
398
- </step>
121
+ ───────────────────────────────────────────
399
122
 
400
- </process>
123
+ </offer_next>
401
124
 
402
125
  <success_criteria>
403
126
  - [ ] Reviewer persona selected
404
- - [ ] All 3 verification layers executed (intensity adjusted to persona)
405
- - [ ] User guided through each check
406
- - [ ] Issues documented in ISSUES.md with persona noted
407
- - [ ] Severity levels assigned (persona-appropriate)
127
+ - [ ] Section-reviewer spawned with full context
128
+ - [ ] All 3 verification layers executed
129
+ - [ ] Issues documented in ISSUES.md
408
130
  - [ ] Clear next steps provided
409
131
  </success_criteria>
@@ -0,0 +1,197 @@
1
+ ---
2
+ name: wtfp:settings
3
+ description: View and edit project settings interactively
4
+ allowed-tools:
5
+ - Read
6
+ - Bash
7
+ - Write
8
+ - AskUserQuestion
9
+ ---
10
+
11
+ <objective>
12
+ Interactive config editor for .planning/config.json.
13
+
14
+ Reads current config, presents categories, allows edits, shows diff of changes before applying.
15
+
16
+ No subagents needed - orchestrator handles all interaction directly.
17
+ </objective>
18
+
19
+ <context>
20
+ No arguments. Requires .planning/config.json to exist.
21
+ </context>
22
+
23
+ <process>
24
+
25
+ ## 1. Validate Environment
26
+
27
+ ```bash
28
+ [ ! -f .planning/config.json ] && echo "ERROR: No config. Run /wtfp:new-paper" && exit 1
29
+ ```
30
+
31
+ Read current config:
32
+ ```bash
33
+ CONFIG_CONTENT=$(cat .planning/config.json)
34
+ ```
35
+
36
+ Store original for diff comparison later.
37
+
38
+ ## 2. Display Current Settings
39
+
40
+ Present settings organized by category (matching planning-config.md structure):
41
+
42
+ ```
43
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
44
+ WTF-P ► SETTINGS
45
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
46
+
47
+ ## General
48
+ mode: interactive
49
+ depth: standard
50
+ document_type: paper
51
+ output_format: markdown
52
+ model_profile: balanced
53
+ venue_template: (none)
54
+
55
+ ## Gates
56
+ confirm_outline: true
57
+ confirm_plan: true
58
+ confirm_write: true
59
+ confirm_review: true
60
+ execute_next_section: true
61
+ issues_review: true
62
+ confirm_transition: true
63
+ confirm_submission: true
64
+
65
+ ## Writing
66
+ claude_mode: co-author
67
+ citation_style: apa
68
+ verify_on_complete: true
69
+
70
+ ## Workflow
71
+ research: true
72
+ plan_check: true
73
+ verifier: true
74
+
75
+ ## Verification
76
+ citation_check: true
77
+ coherence_check: true
78
+ rubric_check: true
79
+
80
+ ## Planning
81
+ commit_docs: true
82
+ search_gitignored: false
83
+
84
+ ## Parallelization
85
+ enabled: false
86
+ plan_level: true
87
+ task_level: false
88
+ skip_checkpoints: true
89
+ max_concurrent_agents: 3
90
+ min_plans_for_parallel: 2
91
+
92
+ ## Safety
93
+ always_confirm_destructive: true
94
+ always_confirm_external_services: true
95
+ backup_before_major_edits: true
96
+
97
+ ## Git
98
+ branching_strategy: none
99
+ section_branch_template: wtfp/section-{section}-{slug}
100
+ submission_branch_template: wtfp/{milestone}-{slug}
101
+ squash_on_merge: false
102
+
103
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
104
+ ```
105
+
106
+ ## 3. Category Selection
107
+
108
+ Use AskUserQuestion:
109
+ - header: "Edit Settings"
110
+ - question: "Which category to modify?"
111
+ - options: "General" | "Gates" | "Writing" | "Workflow" | "Verification" | "Planning" | "Parallelization" | "Safety" | "Git" | "Done"
112
+
113
+ **If "Done":** Skip to Step 6.
114
+
115
+ ## 4. Edit Keys in Category
116
+
117
+ For chosen category, present each key with current value and ask for new value.
118
+
119
+ **For boolean keys:** Use AskUserQuestion:
120
+ - options: "true" | "false" | "Keep current"
121
+
122
+ **For string keys with known options:**
123
+ - `mode`: "interactive" | "yolo" | "Keep current"
124
+ - `depth`: "quick" | "standard" | "thorough" | "Keep current"
125
+ - `document_type`: "paper" | "thesis" | "proposal" | "report" | "Keep current"
126
+ - `output_format`: "markdown" | "latex" | "Keep current"
127
+ - `model_profile`: "quality" | "balanced" | "budget" | "Keep current"
128
+ - `claude_mode`: "co-author" | "scaffold" | "reviewer" | "Keep current"
129
+ - `citation_style`: "apa" | "ieee" | "chicago" | "mla" | "vancouver" | "Keep current"
130
+ - `branching_strategy`: "none" | "section" | "submission" | "Keep current"
131
+
132
+ **For numeric keys:** Use AskUserQuestion with text input.
133
+ - `max_concurrent_agents`: Accept integer value
134
+ - `min_plans_for_parallel`: Accept integer value
135
+
136
+ **For string template keys:** Use AskUserQuestion with text input.
137
+ - `section_branch_template`: Accept string value
138
+ - `submission_branch_template`: Accept string value
139
+ - `venue_template`: Accept string value or "none"
140
+
141
+ Track all changes made.
142
+
143
+ ## 5. Compute and Show Diff
144
+
145
+ If any changes were made, show diff before applying:
146
+
147
+ ```
148
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
149
+ WTF-P ► SETTINGS CHANGED
150
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
151
+
152
+ Changes:
153
+ mode: interactive -> yolo
154
+ gates.confirm_plan: true -> false
155
+
156
+ Apply changes?
157
+ ```
158
+
159
+ Use AskUserQuestion:
160
+ - header: "Confirm Changes"
161
+ - question: "Apply these changes?"
162
+ - options: "Yes, apply" | "No, discard" | "Edit more"
163
+
164
+ **If "Yes, apply":** Write updated config.json.
165
+
166
+ **If "No, discard":** Discard changes, return to category selection.
167
+
168
+ **If "Edit more":** Return to Step 3.
169
+
170
+ ## 6. Exit
171
+
172
+ If no changes or after applying changes, show final banner:
173
+
174
+ ```
175
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
176
+ WTF-P ► SETTINGS SAVED
177
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
178
+ ```
179
+
180
+ Or if no changes:
181
+
182
+ ```
183
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
184
+ WTF-P ► SETTINGS UNCHANGED
185
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
186
+ ```
187
+
188
+ No git commit for settings changes (config.json is a working file).
189
+
190
+ </process>
191
+
192
+ <success_criteria>
193
+ - [ ] Current config displayed by category
194
+ - [ ] User can select category and edit keys
195
+ - [ ] Diff shown before applying
196
+ - [ ] config.json updated if changes confirmed
197
+ </success_criteria>