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.
- package/LICENSE +21 -0
- package/README.md +338 -0
- package/bin/install.js +358 -0
- package/bin/uninstall.js +485 -0
- package/commands/wtfp/analyze-bib.md +326 -0
- package/commands/wtfp/check-refs.md +205 -0
- package/commands/wtfp/create-outline.md +275 -0
- package/commands/wtfp/discuss-section.md +71 -0
- package/commands/wtfp/export-latex.md +216 -0
- package/commands/wtfp/help.md +342 -0
- package/commands/wtfp/insert-section.md +130 -0
- package/commands/wtfp/list-assumptions.md +109 -0
- package/commands/wtfp/map-project.md +197 -0
- package/commands/wtfp/new-paper.md +443 -0
- package/commands/wtfp/pause-writing.md +145 -0
- package/commands/wtfp/plan-revision.md +180 -0
- package/commands/wtfp/plan-section.md +247 -0
- package/commands/wtfp/polish-prose.md +177 -0
- package/commands/wtfp/progress.md +325 -0
- package/commands/wtfp/remove-section.md +147 -0
- package/commands/wtfp/research-gap.md +235 -0
- package/commands/wtfp/resume-writing.md +142 -0
- package/commands/wtfp/review-section.md +409 -0
- package/commands/wtfp/submit-milestone.md +211 -0
- package/commands/wtfp/write-section.md +273 -0
- package/package.json +40 -0
- package/write-the-f-paper/references/checkpoints.md +213 -0
- package/write-the-f-paper/references/continuation-format.md +223 -0
- package/write-the-f-paper/references/git-integration.md +241 -0
- package/write-the-f-paper/references/imrad-structure.md +212 -0
- package/write-the-f-paper/references/length-estimation.md +148 -0
- package/write-the-f-paper/references/plan-format.md +361 -0
- package/write-the-f-paper/references/principles.md +158 -0
- package/write-the-f-paper/references/questioning.md +132 -0
- package/write-the-f-paper/references/research-pitfalls.md +208 -0
- package/write-the-f-paper/templates/config.json +30 -0
- package/write-the-f-paper/templates/context.md +179 -0
- package/write-the-f-paper/templates/continue-here.md +142 -0
- package/write-the-f-paper/templates/data-inventory.md +142 -0
- package/write-the-f-paper/templates/discovery.md +146 -0
- package/write-the-f-paper/templates/issues.md +59 -0
- package/write-the-f-paper/templates/manuscript.md +253 -0
- package/write-the-f-paper/templates/narrative-arc.md +227 -0
- package/write-the-f-paper/templates/outline.md +274 -0
- package/write-the-f-paper/templates/phase-prompt.md +348 -0
- package/write-the-f-paper/templates/prior-drafts.md +204 -0
- package/write-the-f-paper/templates/project-context/argument-structure.md +267 -0
- package/write-the-f-paper/templates/project-context/bibliography.md +152 -0
- package/write-the-f-paper/templates/project-context/gaps.md +122 -0
- package/write-the-f-paper/templates/project-context/imrad.md +140 -0
- package/write-the-f-paper/templates/project-context/peer-review.md +152 -0
- package/write-the-f-paper/templates/project-context/style-guide.md +198 -0
- package/write-the-f-paper/templates/project-context/tools.md +170 -0
- package/write-the-f-paper/templates/project.md +185 -0
- package/write-the-f-paper/templates/research.md +384 -0
- package/write-the-f-paper/templates/review-comments.md +253 -0
- package/write-the-f-paper/templates/revision-issues.md +169 -0
- package/write-the-f-paper/templates/roadmap.md +187 -0
- package/write-the-f-paper/templates/section-archive.md +178 -0
- package/write-the-f-paper/templates/section-context.md +114 -0
- package/write-the-f-paper/templates/section.md +128 -0
- package/write-the-f-paper/templates/state.md +244 -0
- package/write-the-f-paper/templates/summary.md +277 -0
- package/write-the-f-paper/venues/acm-cs.yaml +102 -0
- package/write-the-f-paper/venues/arxiv-ml.yaml +103 -0
- package/write-the-f-paper/venues/ieee-cs.yaml +100 -0
- package/write-the-f-paper/venues/nature.yaml +81 -0
- package/write-the-f-paper/venues/thesis-chapter.yaml +101 -0
- package/write-the-f-paper/workflows/create-outline.md +462 -0
- package/write-the-f-paper/workflows/create-outline.wcn.md +194 -0
- package/write-the-f-paper/workflows/discuss-section.md +249 -0
- package/write-the-f-paper/workflows/discuss-section.wcn.md +63 -0
- package/write-the-f-paper/workflows/execute-section.md +704 -0
- package/write-the-f-paper/workflows/execute-section.wcn.md +219 -0
- package/write-the-f-paper/workflows/list-assumptions.md +183 -0
- package/write-the-f-paper/workflows/list-assumptions.wcn.md +42 -0
- package/write-the-f-paper/workflows/lit-review-phase.md +281 -0
- package/write-the-f-paper/workflows/lit-review-phase.wcn.md +92 -0
- package/write-the-f-paper/workflows/map-project.md +359 -0
- package/write-the-f-paper/workflows/map-project.wcn.md +73 -0
- package/write-the-f-paper/workflows/plan-section.md +409 -0
- package/write-the-f-paper/workflows/plan-section.wcn.md +236 -0
- package/write-the-f-paper/workflows/research-gap.md +469 -0
- package/write-the-f-paper/workflows/research-gap.wcn.md +119 -0
- package/write-the-f-paper/workflows/resume-paper.md +274 -0
- package/write-the-f-paper/workflows/resume-paper.wcn.md +93 -0
- package/write-the-f-paper/workflows/review-section.md +329 -0
- package/write-the-f-paper/workflows/review-section.wcn.md +91 -0
- package/write-the-f-paper/workflows/submit-draft.md +368 -0
- package/write-the-f-paper/workflows/submit-draft.wcn.md +69 -0
- package/write-the-f-paper/workflows/transition.md +375 -0
- package/write-the-f-paper/workflows/transition.wcn.md +113 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: wtfp:pause-writing
|
|
3
|
+
description: Create context handoff when pausing work mid-section
|
|
4
|
+
allowed-tools:
|
|
5
|
+
- Read
|
|
6
|
+
- Bash
|
|
7
|
+
- Write
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<objective>
|
|
11
|
+
Create context handoff file when pausing work mid-section.
|
|
12
|
+
|
|
13
|
+
Captures current state so next session can resume seamlessly.
|
|
14
|
+
|
|
15
|
+
Creates .continue-here.md with current state and updates STATE.md.
|
|
16
|
+
</objective>
|
|
17
|
+
|
|
18
|
+
<process>
|
|
19
|
+
|
|
20
|
+
<step name="verify">
|
|
21
|
+
**Verify project exists:**
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
[ ! -f .planning/STATE.md ] && echo "ERROR: No project state found" && exit 1
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
</step>
|
|
28
|
+
|
|
29
|
+
<step name="gather">
|
|
30
|
+
**Gather current state:**
|
|
31
|
+
|
|
32
|
+
- Read STATE.md for current position
|
|
33
|
+
- Find any in-progress PLAN.md files
|
|
34
|
+
- Check for uncommitted changes
|
|
35
|
+
- Identify what was being worked on
|
|
36
|
+
</step>
|
|
37
|
+
|
|
38
|
+
<step name="handoff">
|
|
39
|
+
**Create .continue-here.md:**
|
|
40
|
+
|
|
41
|
+
In the current section directory:
|
|
42
|
+
|
|
43
|
+
```markdown
|
|
44
|
+
---
|
|
45
|
+
section: XX-name
|
|
46
|
+
task: [current task number]
|
|
47
|
+
total_tasks: [total]
|
|
48
|
+
status: [in_progress/blocked/almost_done]
|
|
49
|
+
last_updated: [ISO timestamp]
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
# Continue Here: [Section Name]
|
|
53
|
+
|
|
54
|
+
## Current State
|
|
55
|
+
[What's currently happening - in progress, waiting for input, etc.]
|
|
56
|
+
|
|
57
|
+
## Completed Work
|
|
58
|
+
- [Task 1]: [done]
|
|
59
|
+
- [Task 2]: [done]
|
|
60
|
+
- [Task 3]: [in progress - description of where stopped]
|
|
61
|
+
|
|
62
|
+
## Remaining Work
|
|
63
|
+
- [Task 4]: [not started]
|
|
64
|
+
- [Task 5]: [not started]
|
|
65
|
+
|
|
66
|
+
## Decisions Made
|
|
67
|
+
| Decision | Rationale |
|
|
68
|
+
|----------|-----------|
|
|
69
|
+
| [choice] | [why] |
|
|
70
|
+
|
|
71
|
+
## Blockers (if any)
|
|
72
|
+
- [What's blocking progress]
|
|
73
|
+
|
|
74
|
+
## Context Notes
|
|
75
|
+
[Any important context for resuming:
|
|
76
|
+
- Why work was paused
|
|
77
|
+
- What was being figured out
|
|
78
|
+
- Any insights not yet captured elsewhere]
|
|
79
|
+
|
|
80
|
+
## Next Action
|
|
81
|
+
[Exactly what to do when resuming]
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
*Paused: [timestamp]*
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
</step>
|
|
88
|
+
|
|
89
|
+
<step name="update_state">
|
|
90
|
+
**Update STATE.md:**
|
|
91
|
+
|
|
92
|
+
Add to Session Continuity section:
|
|
93
|
+
```markdown
|
|
94
|
+
## Session Continuity
|
|
95
|
+
- Last session: [timestamp]
|
|
96
|
+
- Handoff: .planning/sections/XX-name/.continue-here.md
|
|
97
|
+
- Status: [in_progress/blocked]
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
</step>
|
|
101
|
+
|
|
102
|
+
<step name="commit">
|
|
103
|
+
```bash
|
|
104
|
+
git add .planning/sections/XX-name/.continue-here.md .planning/STATE.md
|
|
105
|
+
git commit -m "$(cat <<'EOF'
|
|
106
|
+
wip: pause [section name]
|
|
107
|
+
|
|
108
|
+
Task [X] of [Y] in progress
|
|
109
|
+
EOF
|
|
110
|
+
)"
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
</step>
|
|
114
|
+
|
|
115
|
+
<step name="done">
|
|
116
|
+
**Present completion:**
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
Work paused:
|
|
120
|
+
|
|
121
|
+
- Handoff: .planning/sections/XX-name/.continue-here.md
|
|
122
|
+
- State: .planning/STATE.md updated
|
|
123
|
+
- Position: Task [X] of [Y]
|
|
124
|
+
|
|
125
|
+
## To Resume
|
|
126
|
+
|
|
127
|
+
`/wtfp:resume-writing`
|
|
128
|
+
|
|
129
|
+
This will restore full context and continue from task [X].
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
</step>
|
|
135
|
+
|
|
136
|
+
</process>
|
|
137
|
+
|
|
138
|
+
<success_criteria>
|
|
139
|
+
- [ ] .continue-here.md captures current state
|
|
140
|
+
- [ ] Completed work documented
|
|
141
|
+
- [ ] Remaining work listed
|
|
142
|
+
- [ ] Next action is clear and actionable
|
|
143
|
+
- [ ] STATE.md updated with handoff reference
|
|
144
|
+
- [ ] All committed to git
|
|
145
|
+
</success_criteria>
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: wtfp:plan-revision
|
|
3
|
+
description: Create fix plan from review issues
|
|
4
|
+
argument-hint: "[plan]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Write
|
|
9
|
+
- AskUserQuestion
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
<objective>
|
|
13
|
+
Create targeted revision plan from review issues.
|
|
14
|
+
|
|
15
|
+
Reads ISSUES.md and creates a REVISION.md plan to address identified problems.
|
|
16
|
+
|
|
17
|
+
Prioritizes blockers, then major issues, then minor issues.
|
|
18
|
+
</objective>
|
|
19
|
+
|
|
20
|
+
<execution_context>
|
|
21
|
+
@~/.claude/write-the-f-paper/workflows/plan-section.md
|
|
22
|
+
@~/.claude/write-the-f-paper/references/plan-format.md
|
|
23
|
+
</execution_context>
|
|
24
|
+
|
|
25
|
+
<process>
|
|
26
|
+
|
|
27
|
+
<step name="verify">
|
|
28
|
+
**Verify issues exist:**
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
ISSUES_FILE=".planning/sections/[section-dir]/$ARGUMENTS-ISSUES.md"
|
|
32
|
+
[ ! -f "$ISSUES_FILE" ] && echo "ERROR: No issues file found at $ISSUES_FILE" && exit 1
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
</step>
|
|
36
|
+
|
|
37
|
+
<step name="load">
|
|
38
|
+
**Load context:**
|
|
39
|
+
|
|
40
|
+
- Read the ISSUES.md file
|
|
41
|
+
- Read original PLAN.md for context
|
|
42
|
+
- Read SUMMARY.md for what was written
|
|
43
|
+
- Read the actual section content (paper/[section].md)
|
|
44
|
+
- Read PROJECT.md for requirements reference
|
|
45
|
+
</step>
|
|
46
|
+
|
|
47
|
+
<step name="triage">
|
|
48
|
+
**Triage issues:**
|
|
49
|
+
|
|
50
|
+
Group by severity:
|
|
51
|
+
- **Blockers:** Must fix before submission
|
|
52
|
+
- **Major:** Should fix, impacts quality
|
|
53
|
+
- **Minor:** Nice to fix if time allows
|
|
54
|
+
|
|
55
|
+
Use AskUserQuestion:
|
|
56
|
+
- header: "Revision Scope"
|
|
57
|
+
- question: "Which issues should we address?"
|
|
58
|
+
- options:
|
|
59
|
+
- "Blockers only" — Fix critical issues
|
|
60
|
+
- "Blockers + Major" — Fix important issues
|
|
61
|
+
- "All issues" — Comprehensive revision
|
|
62
|
+
- "Let me select" — I'll specify which
|
|
63
|
+
|
|
64
|
+
</step>
|
|
65
|
+
|
|
66
|
+
<step name="create_revision">
|
|
67
|
+
**Create REVISION.md:**
|
|
68
|
+
|
|
69
|
+
```markdown
|
|
70
|
+
---
|
|
71
|
+
section: XX-name
|
|
72
|
+
plan: YY-REVISION
|
|
73
|
+
issues_addressed: [list of issue IDs]
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
<objective>
|
|
77
|
+
Address review issues from [section] verification.
|
|
78
|
+
|
|
79
|
+
Fixes: [N] issues ([blockers] blockers, [major] major, [minor] minor)
|
|
80
|
+
</objective>
|
|
81
|
+
|
|
82
|
+
<execution_context>
|
|
83
|
+
@~/.claude/write-the-f-paper/workflows/execute-section.md
|
|
84
|
+
</execution_context>
|
|
85
|
+
|
|
86
|
+
<context>
|
|
87
|
+
@.planning/sections/XX-name/XX-YY-ISSUES.md
|
|
88
|
+
@.planning/sections/XX-name/XX-YY-SUMMARY.md
|
|
89
|
+
@paper/[section].md
|
|
90
|
+
</context>
|
|
91
|
+
|
|
92
|
+
<tasks>
|
|
93
|
+
|
|
94
|
+
<task type="auto">
|
|
95
|
+
<name>Fix [ISSUE-ID]: [description]</name>
|
|
96
|
+
<issue>[Full issue description]</issue>
|
|
97
|
+
<location>[Where in document]</location>
|
|
98
|
+
<action>
|
|
99
|
+
[Specific fix instructions]
|
|
100
|
+
</action>
|
|
101
|
+
<verify>
|
|
102
|
+
- [ ] Issue resolved
|
|
103
|
+
- [ ] No new issues introduced
|
|
104
|
+
</verify>
|
|
105
|
+
</task>
|
|
106
|
+
|
|
107
|
+
[... task per issue ...]
|
|
108
|
+
|
|
109
|
+
</tasks>
|
|
110
|
+
|
|
111
|
+
<verification>
|
|
112
|
+
- [ ] All addressed issues resolved
|
|
113
|
+
- [ ] No regression in other checks
|
|
114
|
+
- [ ] Word count still within target
|
|
115
|
+
</verification>
|
|
116
|
+
|
|
117
|
+
<success_criteria>
|
|
118
|
+
- [ ] [N] issues fixed
|
|
119
|
+
- [ ] Section passes re-verification
|
|
120
|
+
</success_criteria>
|
|
121
|
+
|
|
122
|
+
<output>
|
|
123
|
+
- Updated paper/[section].md
|
|
124
|
+
- REVISION-SUMMARY.md
|
|
125
|
+
</output>
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
</step>
|
|
129
|
+
|
|
130
|
+
<step name="commit">
|
|
131
|
+
```bash
|
|
132
|
+
git add .planning/sections/XX-name/XX-YY-REVISION.md
|
|
133
|
+
git commit -m "$(cat <<'EOF'
|
|
134
|
+
plan(XX-YY): revision plan
|
|
135
|
+
|
|
136
|
+
Addresses: [N] issues
|
|
137
|
+
Scope: [blockers/major/all]
|
|
138
|
+
EOF
|
|
139
|
+
)"
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
</step>
|
|
143
|
+
|
|
144
|
+
<step name="done">
|
|
145
|
+
**Present completion:**
|
|
146
|
+
|
|
147
|
+
```
|
|
148
|
+
Revision plan created:
|
|
149
|
+
|
|
150
|
+
- Plan: .planning/sections/XX-name/XX-YY-REVISION.md
|
|
151
|
+
- Issues addressed: [N]
|
|
152
|
+
- Scope: [blockers/major/all]
|
|
153
|
+
|
|
154
|
+
## Issues to Fix
|
|
155
|
+
[List of issues]
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## ▶ Next Up
|
|
160
|
+
|
|
161
|
+
**Execute revision** — apply fixes
|
|
162
|
+
|
|
163
|
+
`/wtfp:write-section .planning/sections/XX-name/XX-YY-REVISION.md`
|
|
164
|
+
|
|
165
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
```
|
|
169
|
+
|
|
170
|
+
</step>
|
|
171
|
+
|
|
172
|
+
</process>
|
|
173
|
+
|
|
174
|
+
<success_criteria>
|
|
175
|
+
- [ ] Issues triaged by severity
|
|
176
|
+
- [ ] User selected scope
|
|
177
|
+
- [ ] REVISION.md created with specific fixes
|
|
178
|
+
- [ ] Each issue has a targeted task
|
|
179
|
+
- [ ] Clear verification criteria
|
|
180
|
+
</success_criteria>
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: wtfp:plan-section
|
|
3
|
+
description: Create detailed writing plan for a section (PLAN.md)
|
|
4
|
+
argument-hint: "[section]"
|
|
5
|
+
allowed-tools:
|
|
6
|
+
- Read
|
|
7
|
+
- Bash
|
|
8
|
+
- Write
|
|
9
|
+
- Glob
|
|
10
|
+
- Grep
|
|
11
|
+
- AskUserQuestion
|
|
12
|
+
- WebFetch
|
|
13
|
+
- mcp__context7__*
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
<objective>
|
|
17
|
+
Create executable writing plan with context injection and task breakdown.
|
|
18
|
+
|
|
19
|
+
Purpose: Break down roadmap sections into concrete, executable PLAN.md files that Claude can execute.
|
|
20
|
+
Output: One or more PLAN.md files in the section directory (.planning/sections/XX-name/{section}-{plan}-PLAN.md)
|
|
21
|
+
</objective>
|
|
22
|
+
|
|
23
|
+
<execution_context>
|
|
24
|
+
@~/.claude/write-the-f-paper/workflows/plan-section.md
|
|
25
|
+
@~/.claude/write-the-f-paper/templates/phase-prompt.md
|
|
26
|
+
@~/.claude/write-the-f-paper/references/plan-format.md
|
|
27
|
+
@~/.claude/write-the-f-paper/references/length-estimation.md
|
|
28
|
+
@~/.claude/write-the-f-paper/references/checkpoints.md
|
|
29
|
+
</execution_context>
|
|
30
|
+
|
|
31
|
+
<context>
|
|
32
|
+
Section number: $ARGUMENTS (optional - auto-detects next unplanned section if not provided)
|
|
33
|
+
|
|
34
|
+
**Load project state first:**
|
|
35
|
+
@.planning/STATE.md
|
|
36
|
+
|
|
37
|
+
**Load roadmap:**
|
|
38
|
+
@.planning/ROADMAP.md
|
|
39
|
+
|
|
40
|
+
**Load structure documents:**
|
|
41
|
+
@.planning/structure/argument-map.md
|
|
42
|
+
@.planning/structure/outline.md
|
|
43
|
+
@.planning/structure/narrative-arc.md
|
|
44
|
+
|
|
45
|
+
**Load section context if exists (created by /wtfp:discuss-section):**
|
|
46
|
+
Check for and read `.planning/sections/XX-name/{section}-CONTEXT.md` - contains vision and decisions from section discussion.
|
|
47
|
+
|
|
48
|
+
**Load sources if exists:**
|
|
49
|
+
Check for `.planning/sources/` and load relevant documents based on section needs.
|
|
50
|
+
</context>
|
|
51
|
+
|
|
52
|
+
<process>
|
|
53
|
+
|
|
54
|
+
<step name="verify">
|
|
55
|
+
1. Check .planning/ directory exists (error if not - user should run /wtfp:new-paper)
|
|
56
|
+
2. If section number provided via $ARGUMENTS, validate it exists in roadmap
|
|
57
|
+
3. If no section number, detect next unplanned section from roadmap
|
|
58
|
+
</step>
|
|
59
|
+
|
|
60
|
+
<step name="load_context">
|
|
61
|
+
**Load all relevant context:**
|
|
62
|
+
|
|
63
|
+
- Read PROJECT.md for paper vision and core argument
|
|
64
|
+
- Read ROADMAP.md for section goal and dependencies
|
|
65
|
+
- Read argument-map.md for claims relevant to this section
|
|
66
|
+
- Read outline.md for word budget and structure
|
|
67
|
+
- Read any prior SUMMARY.md files for context from completed sections
|
|
68
|
+
- Check for CONTEXT.md in section directory
|
|
69
|
+
- Check for RESEARCH.md in section directory
|
|
70
|
+
</step>
|
|
71
|
+
|
|
72
|
+
<step name="writing_mode">
|
|
73
|
+
**Determine writing mode for this section:**
|
|
74
|
+
|
|
75
|
+
Based on section type and user preference, select mode:
|
|
76
|
+
|
|
77
|
+
| Section Type | Recommended Mode |
|
|
78
|
+
|--------------|------------------|
|
|
79
|
+
| Abstract | Reviewer (user writes, Claude critiques) |
|
|
80
|
+
| Introduction | Co-Author (Claude drafts, user refines) |
|
|
81
|
+
| Methods | Co-Author (often procedural) |
|
|
82
|
+
| Results | Scaffold (Claude outlines, user writes) |
|
|
83
|
+
| Discussion | Reviewer (requires judgment) |
|
|
84
|
+
| Conclusion | Reviewer (synthesis) |
|
|
85
|
+
|
|
86
|
+
Use AskUserQuestion:
|
|
87
|
+
- header: "Writing Mode"
|
|
88
|
+
- question: "How should Claude help with [section name]?"
|
|
89
|
+
- options:
|
|
90
|
+
- "Co-Author" — Claude drafts, you refine
|
|
91
|
+
- "Scaffold" — Claude outlines, you fill in
|
|
92
|
+
- "Reviewer" — You write, Claude critiques
|
|
93
|
+
|
|
94
|
+
</step>
|
|
95
|
+
|
|
96
|
+
<step name="break_into_tasks">
|
|
97
|
+
**Break section into writing tasks:**
|
|
98
|
+
|
|
99
|
+
Consider:
|
|
100
|
+
- Word target for section
|
|
101
|
+
- Logical subsections or paragraphs
|
|
102
|
+
- Arguments that need to be made
|
|
103
|
+
- Evidence that needs to be presented
|
|
104
|
+
- Citations that need to be woven in
|
|
105
|
+
|
|
106
|
+
For a typical section (500-1000 words):
|
|
107
|
+
- Task 1: Opening hook + context setup
|
|
108
|
+
- Task 2: Main argument development
|
|
109
|
+
- Task 3: Evidence and support
|
|
110
|
+
- Task 4: Transition to next section
|
|
111
|
+
|
|
112
|
+
Keep tasks atomic (one paragraph cluster or argument each).
|
|
113
|
+
</step>
|
|
114
|
+
|
|
115
|
+
<step name="create_plan">
|
|
116
|
+
**Create PLAN.md:**
|
|
117
|
+
|
|
118
|
+
```markdown
|
|
119
|
+
---
|
|
120
|
+
section: XX-name
|
|
121
|
+
plan: YY
|
|
122
|
+
mode: [co-author/scaffold/reviewer]
|
|
123
|
+
word_target: [X]
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
<objective>
|
|
127
|
+
[What this plan accomplishes - 1-2 sentences]
|
|
128
|
+
|
|
129
|
+
Purpose: [What the reader will understand after this section]
|
|
130
|
+
Output: [Word count] words of [section type] covering [topics]
|
|
131
|
+
</objective>
|
|
132
|
+
|
|
133
|
+
<execution_context>
|
|
134
|
+
@~/.claude/write-the-f-paper/workflows/execute-section.md
|
|
135
|
+
@~/.claude/write-the-f-paper/templates/summary.md
|
|
136
|
+
</execution_context>
|
|
137
|
+
|
|
138
|
+
<context>
|
|
139
|
+
@.planning/PROJECT.md
|
|
140
|
+
@.planning/ROADMAP.md
|
|
141
|
+
@.planning/structure/argument-map.md
|
|
142
|
+
@.planning/sources/literature.md (if relevant)
|
|
143
|
+
@.planning/sections/[prior-section]/[prior]-SUMMARY.md (if exists)
|
|
144
|
+
</context>
|
|
145
|
+
|
|
146
|
+
<tasks>
|
|
147
|
+
|
|
148
|
+
<task type="auto" mode="[co-author/scaffold/reviewer]">
|
|
149
|
+
<name>[Task name - what's being written]</name>
|
|
150
|
+
<target>[Word count for this task]</target>
|
|
151
|
+
<action>
|
|
152
|
+
[Specific writing instructions]
|
|
153
|
+
- Key points to make: [list]
|
|
154
|
+
- Tone: [academic/persuasive/explanatory]
|
|
155
|
+
- Citations needed: [yes/no, which]
|
|
156
|
+
- Connect to: [prior/next section]
|
|
157
|
+
</action>
|
|
158
|
+
<verify>
|
|
159
|
+
- [ ] Advances core argument
|
|
160
|
+
- [ ] Word count within range
|
|
161
|
+
- [ ] Flows from previous content
|
|
162
|
+
</verify>
|
|
163
|
+
<done>
|
|
164
|
+
[X] words written covering [topic], ready for [next task/review]
|
|
165
|
+
</done>
|
|
166
|
+
</task>
|
|
167
|
+
|
|
168
|
+
<task type="auto" mode="[mode]">
|
|
169
|
+
[... additional tasks ...]
|
|
170
|
+
</task>
|
|
171
|
+
|
|
172
|
+
</tasks>
|
|
173
|
+
|
|
174
|
+
<verification>
|
|
175
|
+
- [ ] Total word count: [target] ± 10%
|
|
176
|
+
- [ ] All key arguments from argument-map addressed
|
|
177
|
+
- [ ] Citations included where claims made
|
|
178
|
+
- [ ] Logical flow maintained
|
|
179
|
+
- [ ] Connects to prior section (if not first)
|
|
180
|
+
- [ ] Sets up next section (if not last)
|
|
181
|
+
</verification>
|
|
182
|
+
|
|
183
|
+
<success_criteria>
|
|
184
|
+
- [ ] Section draft complete
|
|
185
|
+
- [ ] Word target met
|
|
186
|
+
- [ ] Core argument advanced
|
|
187
|
+
- [ ] Ready for review or next section
|
|
188
|
+
</success_criteria>
|
|
189
|
+
|
|
190
|
+
<output>
|
|
191
|
+
- Written section content (in paper/ directory or inline)
|
|
192
|
+
- SUMMARY.md documenting what was written
|
|
193
|
+
- Updated STATE.md with progress
|
|
194
|
+
</output>
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
</step>
|
|
198
|
+
|
|
199
|
+
<step name="commit">
|
|
200
|
+
```bash
|
|
201
|
+
git add .planning/sections/XX-name/XX-YY-PLAN.md
|
|
202
|
+
git commit -m "$(cat <<'EOF'
|
|
203
|
+
plan(XX-YY): [section name] writing plan
|
|
204
|
+
|
|
205
|
+
[One-liner objective]
|
|
206
|
+
|
|
207
|
+
Tasks: [N], Target: [X] words, Mode: [mode]
|
|
208
|
+
EOF
|
|
209
|
+
)"
|
|
210
|
+
```
|
|
211
|
+
</step>
|
|
212
|
+
|
|
213
|
+
<step name="done">
|
|
214
|
+
**Present completion:**
|
|
215
|
+
|
|
216
|
+
```
|
|
217
|
+
Plan created:
|
|
218
|
+
|
|
219
|
+
- Plan: .planning/sections/XX-name/XX-YY-PLAN.md
|
|
220
|
+
- Tasks: [N]
|
|
221
|
+
- Word target: [X]
|
|
222
|
+
- Mode: [co-author/scaffold/reviewer]
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## ▶ Next Up
|
|
227
|
+
|
|
228
|
+
**[Section Name]** — execute writing plan
|
|
229
|
+
|
|
230
|
+
`/wtfp:write-section .planning/sections/XX-name/XX-YY-PLAN.md`
|
|
231
|
+
|
|
232
|
+
<sub>`/clear` first → fresh context window</sub>
|
|
233
|
+
|
|
234
|
+
---
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
</step>
|
|
238
|
+
|
|
239
|
+
</process>
|
|
240
|
+
|
|
241
|
+
<success_criteria>
|
|
242
|
+
- One or more PLAN.md files created in .planning/sections/XX-name/
|
|
243
|
+
- Each plan has: objective, execution_context, context, tasks, verification, success_criteria, output
|
|
244
|
+
- Tasks are specific enough for Claude to execute
|
|
245
|
+
- Writing mode selected appropriately for section type
|
|
246
|
+
- User knows next steps (execute plan or review/adjust)
|
|
247
|
+
</success_criteria>
|