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,169 @@
1
+ # Revision Issues Template
2
+
3
+ Template for `.planning/sections/XX-name/{section}-{plan}-ISSUES.md` - section-scoped issues discovered during verification.
4
+
5
+ **Purpose:** Capture issues found during `/wtfp:review-section`. Unlike global ISSUES.md (for deferred enhancements), this file tracks problems in specific written sections.
6
+
7
+ **Location:** Same directory as the SUMMARY.md being reviewed.
8
+
9
+ ---
10
+
11
+ ## File Template
12
+
13
+ ```markdown
14
+ # Revision Issues: Section [X] Plan [Y]
15
+
16
+ **Reviewed:** [date]
17
+ **Source:** [path to SUMMARY.md that was reviewed]
18
+ **Reviewer:** User via /wtfp:review-section
19
+
20
+ ## Open Issues
21
+
22
+ ### REV-001: [Brief description]
23
+
24
+ **Discovered:** [date]
25
+ **Section/Plan:** [XX]-[YY]
26
+ **Severity:** [Critical/Major/Minor/Polish]
27
+ **Verification Layer:** [Citation/Coherence/Rubric]
28
+ **Description:** [Detailed description of the problem]
29
+ **Location:** [Paragraph/sentence where issue appears]
30
+ **Expected:** [What should be there]
31
+ **Actual:** [What is currently there]
32
+ **Suggested Fix:** [How to address this]
33
+
34
+ ### REV-002: [Brief description]
35
+
36
+ ...
37
+
38
+ ## Resolved Issues
39
+
40
+ [Moved here after /wtfp:plan-revision executes and fixes are verified]
41
+
42
+ ### REV-001: [Brief description]
43
+ **Resolved:** [date] - Fixed in [section]-[plan]-FIX.md
44
+ **Commit:** [hash]
45
+
46
+ ---
47
+
48
+ *Section: XX-name*
49
+ *Plan: YY*
50
+ *Reviewed: [date]*
51
+ ```
52
+
53
+ ---
54
+
55
+ ## Severity Guide
56
+
57
+ | Severity | Definition | Example |
58
+ |----------|------------|---------|
59
+ | **Critical** | Factual error or logical contradiction | Claim contradicts data, wrong citation |
60
+ | **Major** | Significant argument weakness | Missing evidence, unclear logic |
61
+ | **Minor** | Issue affects clarity or flow | Awkward transition, unclear sentence |
62
+ | **Polish** | Style or preference issue | Could be tighter, alternative wording |
63
+
64
+ ## Verification Layer
65
+
66
+ | Layer | What It Checks | Example Issues |
67
+ |-------|----------------|----------------|
68
+ | **Citation** | All claims supported, citations correct | Unsupported claim, wrong page number |
69
+ | **Coherence** | Argument flows logically | Claim doesn't follow from evidence |
70
+ | **Rubric** | Meets requirements | Over word limit, missing required section |
71
+
72
+ ---
73
+
74
+ ## REV Numbering
75
+
76
+ - **Prefix:** `REV-` (distinguishes from ISS- enhancement issues)
77
+ - **Scope:** Per-file numbering (REV-001, REV-002, etc. within each file)
78
+ - **No global numbering:** Each {section}-{plan}-ISSUES.md has its own sequence
79
+
80
+ ---
81
+
82
+ <good_examples>
83
+ ```markdown
84
+ # Revision Issues: Section 3 Plan 1
85
+
86
+ **Reviewed:** 2025-01-15
87
+ **Source:** .planning/sections/03-methods/03-01-SUMMARY.md
88
+ **Reviewer:** User via /wtfp:review-section
89
+
90
+ ## Open Issues
91
+
92
+ ### REV-001: Sample size justification missing
93
+
94
+ **Discovered:** 2025-01-15
95
+ **Section/Plan:** 03-01
96
+ **Severity:** Major
97
+ **Verification Layer:** Coherence
98
+ **Description:** The methods section states N=45 but provides no justification for this sample size. Reviewers typically expect power analysis or precedent citation.
99
+ **Location:** Participants subsection, paragraph 2
100
+ **Expected:** Justification for sample size (power analysis, precedent, or acknowledged limitation)
101
+ **Actual:** Just states "Forty-five participants were recruited" with no justification
102
+ **Suggested Fix:** Add either (a) power analysis showing N=45 sufficient for expected effect size, (b) citation to similar studies with comparable N, or (c) acknowledge as limitation
103
+
104
+ ### REV-002: Missing IRB number
105
+
106
+ **Discovered:** 2025-01-15
107
+ **Section/Plan:** 03-01
108
+ **Severity:** Critical
109
+ **Verification Layer:** Rubric
110
+ **Description:** Journal requirements specify IRB approval number must appear in methods. Currently absent.
111
+ **Location:** Ethical considerations paragraph
112
+ **Expected:** "This study was approved by [Institution] IRB (#XXXX-XXXX)"
113
+ **Actual:** States "This study was approved by the institutional review board" without number
114
+ **Suggested Fix:** Add IRB number from user's records: #2024-0123
115
+
116
+ ### REV-003: Passive voice in procedure description
117
+
118
+ **Discovered:** 2025-01-15
119
+ **Section/Plan:** 03-01
120
+ **Severity:** Polish
121
+ **Verification Layer:** Rubric
122
+ **Description:** Journal style guide prefers active voice. Several sentences use passive construction.
123
+ **Location:** Procedure subsection, sentences 2-4
124
+ **Expected:** Active voice: "Participants completed..."
125
+ **Actual:** Passive voice: "The survey was completed by participants..."
126
+ **Suggested Fix:** Convert to active voice throughout procedure
127
+
128
+ ## Resolved Issues
129
+
130
+ [None yet]
131
+
132
+ ---
133
+
134
+ *Section: 03-methods*
135
+ *Plan: 01*
136
+ *Reviewed: 2025-01-15*
137
+ ```
138
+ </good_examples>
139
+
140
+ <guidelines>
141
+ **When to create:**
142
+ - First time /wtfp:review-section finds an issue for a plan
143
+ - One file per plan reviewed
144
+
145
+ **Location:**
146
+ - `.planning/sections/XX-name/{section}-{plan}-ISSUES.md`
147
+ - Lives alongside SUMMARY.md being reviewed
148
+
149
+ **Difference from global ISSUES.md:**
150
+ - Global ISSUES.md: Deferred enhancements (nice-to-haves)
151
+ - Revision ISSUES.md: Actual problems found during review
152
+
153
+ **Workflow:**
154
+ 1. /wtfp:review-section creates this file with issues
155
+ 2. /wtfp:plan-revision reads this file and creates FIX.md plan
156
+ 3. After FIX.md executes, issues move to "Resolved" section
157
+ 4. File becomes historical record of what was found and fixed
158
+
159
+ **Resolution:**
160
+ - Don't delete resolved issues - move to "Resolved Issues" section
161
+ - Include fix reference (commit hash, plan that fixed it)
162
+ - File serves as audit trail
163
+
164
+ **Severity assignment:**
165
+ - Critical: Would cause rejection - must fix before submission
166
+ - Major: Significant weakness - should fix before submission
167
+ - Minor: Noticeable issue - fix if time permits
168
+ - Polish: Optional improvement - defer to final pass
169
+ </guidelines>
@@ -0,0 +1,187 @@
1
+ # Roadmap Template
2
+
3
+ Template for `.planning/ROADMAP.md`.
4
+
5
+ ## Initial Roadmap (Paper/Grant)
6
+
7
+ ```markdown
8
+ # Roadmap: [Paper/Grant Title]
9
+
10
+ ## Overview
11
+
12
+ [One paragraph describing the writing journey from outline to submission]
13
+
14
+ ## Document Structure
15
+
16
+ **Type:** [IMRaD / Grant-NSF / Grant-NIH / Thesis Chapter / Custom]
17
+
18
+ **Target Length:** [Total word count or page limit]
19
+
20
+ ## Domain Expertise
21
+
22
+ [Paths to domain knowledge that inform writing. These documents serve as indexes — during section planning, read them to find relevant context.]
23
+
24
+ - .planning/structure/argument-map.md
25
+ - .planning/structure/outline.md
26
+ - .planning/sources/literature.md
27
+
28
+ Or: None — new project
29
+
30
+ ## Sections
31
+
32
+ **Section Numbering:**
33
+ - Integer sections (1, 2, 3): Planned document structure
34
+ - Decimal sections (2.1, 2.2): Urgent insertions (marked with INSERTED)
35
+
36
+ Decimal sections appear between their surrounding integers in numeric order.
37
+
38
+ - [ ] **Section 1: [Name]** - [One-line description]
39
+ - [ ] **Section 2: [Name]** - [One-line description]
40
+ - [ ] **Section 3: [Name]** - [One-line description]
41
+ - [ ] **Section 4: [Name]** - [One-line description]
42
+
43
+ ## Section Details
44
+
45
+ ### Section 1: [Name]
46
+ **Goal**: [What this section accomplishes for the reader]
47
+ **Depends on**: Nothing (first section) or Argument map
48
+ **Research**: Unlikely (writing from notes) / Likely (need to read more literature)
49
+ **Plans**: [Number of writing plans, e.g., "2 plans" or "TBD"]
50
+ **Word budget**: [Target word count]
51
+
52
+ Plans:
53
+ - [ ] 01-01: [Brief description of first writing plan]
54
+ - [ ] 01-02: [Brief description of second writing plan]
55
+
56
+ ### Section 2: [Name]
57
+ **Goal**: [What this section accomplishes]
58
+ **Depends on**: Section 1 (builds on introduction)
59
+ **Research**: Likely (methods need detail)
60
+ **Research topics**: [What needs investigating]
61
+ **Plans**: [Number of plans]
62
+ **Word budget**: [Target word count]
63
+
64
+ Plans:
65
+ - [ ] 02-01: [Brief description]
66
+ - [ ] 02-02: [Brief description]
67
+
68
+ ### Section 2.1: Critical Addition (INSERTED)
69
+ **Goal**: [Urgent writing inserted between sections]
70
+ **Depends on**: Section 2
71
+ **Plans**: 1 plan
72
+
73
+ Plans:
74
+ - [ ] 2.1-01: [Description]
75
+
76
+ ### Section 3: [Name]
77
+ **Goal**: [What this section accomplishes]
78
+ **Depends on**: Section 2
79
+ **Research**: Unlikely (reporting results)
80
+ **Plans**: [Number of plans]
81
+ **Word budget**: [Target word count]
82
+
83
+ Plans:
84
+ - [ ] 03-01: [Brief description]
85
+ - [ ] 03-02: [Brief description]
86
+
87
+ ### Section 4: [Name]
88
+ **Goal**: [What this section accomplishes]
89
+ **Depends on**: Sections 1-3 (synthesis)
90
+ **Research**: Unlikely (interpretation)
91
+ **Plans**: [Number of plans]
92
+ **Word budget**: [Target word count]
93
+
94
+ Plans:
95
+ - [ ] 04-01: [Brief description]
96
+
97
+ ## Word Budget
98
+
99
+ | Section | Target | Current | Status |
100
+ |---------|--------|---------|--------|
101
+ | Abstract | 250 | 0 | Not started |
102
+ | Introduction | 800 | 0 | Not started |
103
+ | Methods | 1200 | 0 | Not started |
104
+ | Results | 1500 | 0 | Not started |
105
+ | Discussion | 1200 | 0 | Not started |
106
+ | **Total** | **5000** | **0** | **0%** |
107
+
108
+ ## Progress
109
+
110
+ **Execution Order:**
111
+ Sections execute in numeric order: 2 → 2.1 → 2.2 → 3 → 3.1 → 4
112
+
113
+ | Section | Plans Complete | Status | Completed |
114
+ |---------|----------------|--------|-----------|
115
+ | 1. [Name] | 0/2 | Not started | - |
116
+ | 2. [Name] | 0/2 | Not started | - |
117
+ | 3. [Name] | 0/2 | Not started | - |
118
+ | 4. [Name] | 0/1 | Not started | - |
119
+ ```
120
+
121
+ <guidelines>
122
+ **Initial planning:**
123
+ - Section count depends on document structure (IMRaD: 5-6, Grant: varies by funder)
124
+ - Each section delivers a coherent argument
125
+ - Sections can have 1+ plans (split if complex or long)
126
+ - Plans use naming: {section}-{plan}-PLAN.md (e.g., 01-02-PLAN.md)
127
+ - Word budgets help pace writing
128
+ - Progress table updated by write workflow
129
+
130
+ **Research flags:**
131
+ - `Research: Likely` - Need to read more literature, verify facts, find citations
132
+ - `Research: Unlikely` - Writing from notes, existing data, established knowledge
133
+ - Include `Research topics:` when Likely
134
+ - Flags are hints, not mandates - validate at planning time
135
+
136
+ **After milestones (submissions) complete:**
137
+ - Collapse completed revision rounds in `<details>` tags
138
+ - Add new revision sections for upcoming work
139
+ - Keep continuous section numbering across revisions
140
+ </guidelines>
141
+
142
+ <status_values>
143
+ - `Not started` - Haven't begun
144
+ - `In progress` - Currently writing
145
+ - `Draft` - First pass complete, needs revision
146
+ - `Complete` - Done (add completion date)
147
+ - `Deferred` - Pushed to later (with reason)
148
+ </status_values>
149
+
150
+ ## Grant-Specific Roadmap
151
+
152
+ For grant proposals, adapt the structure:
153
+
154
+ ```markdown
155
+ # Roadmap: [Grant Title]
156
+
157
+ ## Overview
158
+
159
+ [One paragraph describing the proposal journey from aims to submission]
160
+
161
+ ## Document Structure
162
+
163
+ **Type:** Grant-NSF / Grant-NIH / [Other]
164
+ **Deadline:** [Submission date]
165
+ **Target Length:** [Page limit per section]
166
+
167
+ ## Sections
168
+
169
+ - [ ] **Section 1: Specific Aims** - One-page summary of goals
170
+ - [ ] **Section 2: Significance** - Why this matters
171
+ - [ ] **Section 3: Innovation** - What's new
172
+ - [ ] **Section 4: Approach** - How we'll do it
173
+ - [ ] **Section 5: Timeline & Budget** - When and what resources
174
+
175
+ ## Section Details
176
+
177
+ ### Section 1: Specific Aims
178
+ **Goal**: Capture reviewer attention, state hypothesis and aims
179
+ **Depends on**: Approach must be planned first
180
+ **Word budget**: 1 page (350-400 words)
181
+ **Plans**: 1 plan
182
+
183
+ Plans:
184
+ - [ ] 01-01: Draft specific aims page
185
+
186
+ [...]
187
+ ```
@@ -0,0 +1,178 @@
1
+ # Section Archive Template
2
+
3
+ Template for `.planning/archive/round-[N]/` - preserves state after completing a submission round.
4
+
5
+ **Purpose:** Snapshot the project state before major transitions (submission, revision, resubmission) for context preservation and rollback capability.
6
+
7
+ ---
8
+
9
+ ## Directory Structure
10
+
11
+ ```
12
+ .planning/
13
+ ├── archive/
14
+ │ ├── round-1/ # Initial submission
15
+ │ │ ├── PROJECT.md # Copy of project state
16
+ │ │ ├── STATE.md # Copy of state at submission
17
+ │ │ ├── ROADMAP.md # Copy of roadmap
18
+ │ │ ├── sections/ # Copy of all section plans/summaries
19
+ │ │ └── ARCHIVE-NOTES.md # What was submitted, outcome
20
+ │ │
21
+ │ ├── round-2/ # After R1 revision
22
+ │ │ └── ...
23
+ │ │
24
+ │ └── round-3/ # After R2 revision (if needed)
25
+ │ └── ...
26
+ ```
27
+
28
+ ## Archive Notes Template
29
+
30
+ ```markdown
31
+ # Archive: Round [N]
32
+
33
+ **Archived:** [date]
34
+ **Event:** [Initial submission / R1 revision / R2 revision / Accepted]
35
+ **Venue:** [Journal/Conference name]
36
+
37
+ ## Submission Details
38
+
39
+ **Submitted:** [date]
40
+ **Manuscript ID:** [if assigned]
41
+ **Word count:** [total words at submission]
42
+ **Files submitted:**
43
+ - manuscript.pdf
44
+ - supplementary.pdf (if applicable)
45
+ - cover_letter.pdf
46
+
47
+ ## State at Submission
48
+
49
+ **Sections complete:**
50
+ - [x] Abstract
51
+ - [x] Introduction
52
+ - [x] Methods
53
+ - [x] Results
54
+ - [x] Discussion
55
+ - [x] References
56
+
57
+ **Verification status:**
58
+ - Citation check: Pass
59
+ - Coherence check: Pass
60
+ - Rubric check: Pass
61
+
62
+ **Known limitations:**
63
+ - [Issues we're aware of but submitted anyway]
64
+
65
+ ## Outcome
66
+
67
+ **Decision:** [Pending / Accept / Minor revision / Major revision / Reject]
68
+ **Decision date:** [date]
69
+ **Reviews received:** [N] reviewers
70
+
71
+ ## Summary of Changes (from previous round)
72
+
73
+ [If Round 2+:]
74
+ - [Major change 1]
75
+ - [Major change 2]
76
+ - [Major change 3]
77
+
78
+ ## Next Steps
79
+
80
+ [What happens after this round]
81
+
82
+ ---
83
+
84
+ *Archived by /wtfp:submit-milestone*
85
+ *Round: [N]*
86
+ ```
87
+
88
+ <guidelines>
89
+ **When to archive:**
90
+ - Before submitting manuscript
91
+ - Before starting major revision
92
+ - After acceptance (final archive)
93
+
94
+ **What to archive:**
95
+ - PROJECT.md - Project vision at that point
96
+ - STATE.md - Position and progress
97
+ - ROADMAP.md - Section structure
98
+ - All section PLAN.md and SUMMARY.md files
99
+ - ARCHIVE-NOTES.md - Meta information
100
+
101
+ **What NOT to archive:**
102
+ - The actual manuscript files (those are in paper/)
103
+ - Working files that will be recreated
104
+ - Temporary analysis files
105
+
106
+ **Archive naming:**
107
+ - round-1: Initial submission
108
+ - round-2: After first revision
109
+ - round-3+: Subsequent revisions
110
+ - Use descriptive names if needed: round-2-major-revision
111
+
112
+ **Workflow:**
113
+ 1. /wtfp:submit-milestone creates archive
114
+ 2. Archive preserves state for reference
115
+ 3. New revision work starts fresh in .planning/
116
+ 4. Can reference archive for context during revision
117
+ </guidelines>
118
+
119
+ <example>
120
+ ```markdown
121
+ # Archive: Round 1
122
+
123
+ **Archived:** 2025-02-15
124
+ **Event:** Initial submission
125
+ **Venue:** CHI 2025
126
+
127
+ ## Submission Details
128
+
129
+ **Submitted:** 2025-02-15
130
+ **Manuscript ID:** chi25-papers-1234
131
+ **Word count:** 9,847
132
+ **Files submitted:**
133
+ - manuscript.pdf (main paper)
134
+ - supplementary.pdf (appendix with framework details)
135
+ - cover_letter.pdf
136
+
137
+ ## State at Submission
138
+
139
+ **Sections complete:**
140
+ - [x] Abstract (247 words)
141
+ - [x] Introduction (892 words)
142
+ - [x] Literature Review (1,523 words)
143
+ - [x] Methods (1,245 words)
144
+ - [x] Results (2,156 words)
145
+ - [x] Discussion (1,834 words)
146
+ - [x] Conclusion (412 words)
147
+ - [x] References (65 citations)
148
+
149
+ **Verification status:**
150
+ - Citation check: Pass (all 65 citations verified)
151
+ - Coherence check: Pass (argument flows confirmed)
152
+ - Rubric check: Pass (CHI format, word limit, sections)
153
+
154
+ **Known limitations:**
155
+ - Sample size (N=45) may draw questions - addressed in limitations
156
+ - Framework not yet validated with large-scale study - noted as future work
157
+
158
+ ## Outcome
159
+
160
+ **Decision:** Pending
161
+ **Decision date:** Expected 2025-04-01
162
+ **Reviews received:** -
163
+
164
+ ## Summary of Changes (from previous round)
165
+
166
+ N/A - Initial submission
167
+
168
+ ## Next Steps
169
+
170
+ - Wait for reviews (expected April)
171
+ - If revision requested, use /wtfp:import-reviews to begin
172
+
173
+ ---
174
+
175
+ *Archived by /wtfp:submit-milestone*
176
+ *Round: 1*
177
+ ```
178
+ </example>
@@ -0,0 +1,114 @@
1
+ # Section Context Template
2
+
3
+ Template for `.planning/SECTION-CONTEXT.md` - temporary handoff file from discuss-section to plan-section.
4
+
5
+ **Purpose:** Persist section discussion context so `/clear` can be used between commands. This file is consumed by `/wtfp:plan-section` and deleted after the plan is created.
6
+
7
+ ---
8
+
9
+ ## File Template
10
+
11
+ ```markdown
12
+ # Section Context
13
+
14
+ **Generated:** [date]
15
+ **Status:** Ready for /wtfp:plan-section
16
+
17
+ <section_goal>
18
+ ## Section Goal
19
+
20
+ [What this section should accomplish for the reader - identified during discussion]
21
+
22
+ **Section:** [Section number and name]
23
+ **Purpose:** [Why this section matters for the overall argument]
24
+ **Word budget:** [Target word count]
25
+
26
+ </section_goal>
27
+
28
+ <key_arguments>
29
+ ## Key Arguments to Make
30
+
31
+ [Arguments identified during discussion - the substance of this section]
32
+
33
+ 1. **[Argument 1]**: [How to support it]
34
+ 2. **[Argument 2]**: [How to support it]
35
+ 3. **[Argument 3]**: [How to support it]
36
+
37
+ </key_arguments>
38
+
39
+ <sources_to_use>
40
+ ## Sources to Use
41
+
42
+ [Material available for this section]
43
+
44
+ **Literature:**
45
+ - [Citation 1]: [How to use it]
46
+ - [Citation 2]: [How to use it]
47
+
48
+ **Data:**
49
+ - [Figure/table 1]: [Where to place]
50
+ - [Figure/table 2]: [Where to place]
51
+
52
+ **Prior drafts:**
53
+ - [Material]: [What to incorporate]
54
+
55
+ </sources_to_use>
56
+
57
+ <structure_hints>
58
+ ## Structure Hints
59
+
60
+ [Rough organization discussed with user]
61
+
62
+ - Opening: [What to establish first]
63
+ - Middle: [Main content flow]
64
+ - Closing: [How to conclude/transition]
65
+
66
+ </structure_hints>
67
+
68
+ <constraints>
69
+ ## Constraints
70
+
71
+ [Any constraints or boundaries mentioned during discussion]
72
+
73
+ - [Constraint 1]
74
+ - [Constraint 2]
75
+
76
+ </constraints>
77
+
78
+ <notes>
79
+ ## Additional Context
80
+
81
+ [Anything else captured during discussion that informs the section]
82
+
83
+ </notes>
84
+
85
+ ---
86
+
87
+ *This file is temporary. It will be deleted after /wtfp:plan-section creates the plan.*
88
+ ```
89
+
90
+ <guidelines>
91
+ **This is a handoff artifact, not permanent documentation.**
92
+
93
+ The file exists only to pass context from `discuss-section` to `plan-section` across a `/clear` boundary.
94
+
95
+ **Lifecycle:**
96
+ 1. `/wtfp:discuss-section` creates this file at end of discussion
97
+ 2. User runs `/clear` (safe now - context is persisted)
98
+ 3. `/wtfp:plan-section` reads this file
99
+ 4. `/wtfp:plan-section` uses context to create detailed plan
100
+ 5. `/wtfp:plan-section` deletes this file after successful creation
101
+
102
+ **Content should include:**
103
+ - Section goal and purpose
104
+ - Key arguments to make
105
+ - Sources available (literature, data, prior drafts)
106
+ - Rough structure hints
107
+ - Constraints or boundaries
108
+ - Notes from discussion
109
+
110
+ **Content should NOT include:**
111
+ - Detailed paragraph structure (that comes during planning)
112
+ - Exact citations with page numbers (defer to writing)
113
+ - Final word allocations (planning refines these)
114
+ </guidelines>