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,223 @@
1
+ # Continuation Format
2
+
3
+ Standard format for presenting next steps after completing a command or workflow.
4
+
5
+ ## Core Structure
6
+
7
+ ```
8
+ ---
9
+
10
+ ## ▶ Next Up
11
+
12
+ **{identifier}: {name}** — {one-line description}
13
+
14
+ `{command to copy-paste}`
15
+
16
+ <sub>`/clear` first → fresh context window</sub>
17
+
18
+ ---
19
+
20
+ **Also available:**
21
+ - `{alternative option 1}` — description
22
+ - `{alternative option 2}` — description
23
+
24
+ ---
25
+ ```
26
+
27
+ ## Format Rules
28
+
29
+ 1. **Always show what it is** — name + description, never just a command path
30
+ 2. **Pull context from source** — ROADMAP.md for sections, PLAN.md `<objective>` for plans
31
+ 3. **Command in inline code** — backticks, easy to copy-paste, renders as clickable link
32
+ 4. **`/clear` explanation** — always include, keeps it concise but explains why
33
+ 5. **"Also available" not "Other options"** — sounds more app-like
34
+ 6. **Visual separators** — `---` above and below to make it stand out
35
+
36
+ ## Variants
37
+
38
+ ### Execute Next Plan
39
+
40
+ ```
41
+ ---
42
+
43
+ ## ▶ Next Up
44
+
45
+ **02-01: Methods Overview** — Draft study design and participant sections
46
+
47
+ `/wtfp:write-section .planning/sections/02-methods/02-01-PLAN.md`
48
+
49
+ <sub>`/clear` first → fresh context window</sub>
50
+
51
+ ---
52
+
53
+ **Also available:**
54
+ - Review plan before executing
55
+ - `/wtfp:list-assumptions 2` — check assumptions
56
+
57
+ ---
58
+ ```
59
+
60
+ ### Plan a Section
61
+
62
+ ```
63
+ ---
64
+
65
+ ## ▶ Next Up
66
+
67
+ **Section 2: Methods** — Describe study design, participants, and procedures
68
+
69
+ `/wtfp:plan-section 2`
70
+
71
+ <sub>`/clear` first → fresh context window</sub>
72
+
73
+ ---
74
+
75
+ **Also available:**
76
+ - `/wtfp:discuss-section 2` — gather context first
77
+ - `/wtfp:research-gap 2` — investigate literature
78
+
79
+ ---
80
+ ```
81
+
82
+ ### Section Complete, Ready for Next
83
+
84
+ ```
85
+ ---
86
+
87
+ ## ✓ Section 2 Complete
88
+
89
+ 2/2 plans executed
90
+ 800 words written
91
+
92
+ ## ▶ Next Up
93
+
94
+ **Section 3: Results** — Present main findings and analyses
95
+
96
+ `/wtfp:plan-section 3`
97
+
98
+ <sub>`/clear` first → fresh context window</sub>
99
+
100
+ ---
101
+
102
+ **Also available:**
103
+ - `/wtfp:review-section 2` — verify before continuing
104
+ - `/wtfp:discuss-section 3` — gather context first
105
+
106
+ ---
107
+ ```
108
+
109
+ ### Multiple Equal Options
110
+
111
+ When there's no clear primary action:
112
+
113
+ ```
114
+ ---
115
+
116
+ ## ▶ Next Up
117
+
118
+ **Section 3: Results** — Present main findings and analyses
119
+
120
+ **To plan directly:** `/wtfp:plan-section 3`
121
+
122
+ **To discuss context first:** `/wtfp:discuss-section 3`
123
+
124
+ **To research literature:** `/wtfp:research-gap 3`
125
+
126
+ <sub>`/clear` first → fresh context window</sub>
127
+
128
+ ---
129
+ ```
130
+
131
+ ### Draft Complete
132
+
133
+ ```
134
+ ---
135
+
136
+ ## 🎉 Draft Complete
137
+
138
+ All 6 sections written
139
+ Total: 6,500 words
140
+
141
+ ## ▶ Next Up
142
+
143
+ **Review & Polish** — Verify and prepare for submission
144
+
145
+ `/wtfp:review-section` — run full verification
146
+ `/wtfp:export-latex` — generate LaTeX output
147
+
148
+ <sub>`/clear` first → fresh context window</sub>
149
+
150
+ ---
151
+
152
+ **Also available:**
153
+ - `/wtfp:submit-milestone "draft-1"` — archive this version
154
+
155
+ ---
156
+ ```
157
+
158
+ ## Pulling Context
159
+
160
+ ### For sections (from ROADMAP.md):
161
+
162
+ ```markdown
163
+ ### 2. Methods
164
+ - **Goal**: Describe study design, participants, and procedures
165
+ - **Word Target**: 1500 words
166
+ ```
167
+
168
+ Extract: `**Section 2: Methods** — Describe study design, participants, and procedures`
169
+
170
+ ### For plans (from PLAN.md `<objective>`):
171
+
172
+ ```xml
173
+ <objective>
174
+ Draft the study design and participant description.
175
+
176
+ Purpose: Establish methodological rigor and replicability.
177
+ Output: 800 words covering design, participants, procedures.
178
+ </objective>
179
+ ```
180
+
181
+ Extract: `**02-01: Methods Overview** — Draft study design and participant sections`
182
+
183
+ ## Anti-Patterns
184
+
185
+ ### Don't: Command-only (no context)
186
+
187
+ ```
188
+ ## To Continue
189
+
190
+ Run `/clear`, then paste:
191
+ /wtfp:write-section .planning/sections/02-methods/02-01-PLAN.md
192
+ ```
193
+
194
+ User has no idea what 02-01 is about.
195
+
196
+ ### Don't: Missing /clear explanation
197
+
198
+ ```
199
+ `/wtfp:plan-section 3`
200
+
201
+ Run /clear first.
202
+ ```
203
+
204
+ Doesn't explain why. User might skip it.
205
+
206
+ ### Don't: "Other options" language
207
+
208
+ ```
209
+ Other options:
210
+ - Review roadmap
211
+ ```
212
+
213
+ Sounds like an afterthought. Use "Also available:" instead.
214
+
215
+ ### Don't: Fenced code blocks for commands
216
+
217
+ ```
218
+ ```
219
+ /wtfp:plan-section 3
220
+ ```
221
+ ```
222
+
223
+ Fenced blocks inside templates create nesting ambiguity. Use inline backticks instead.
@@ -0,0 +1,241 @@
1
+ <overview>
2
+ Git integration for WTF-P framework.
3
+ </overview>
4
+
5
+ <core_principle>
6
+
7
+ **Commit outcomes, not process.**
8
+
9
+ The git log should read like a changelog of what was written, not a diary of planning activity.
10
+ </core_principle>
11
+
12
+ <commit_points>
13
+
14
+ | Event | Commit? | Why |
15
+ | ----------------------- | ------- | ------------------------------------------------ |
16
+ | PROJECT + OUTLINE created | YES | Paper initialization |
17
+ | PLAN.md created | NO | Intermediate - commit with plan completion |
18
+ | RESEARCH.md created | NO | Intermediate |
19
+ | CONTEXT.md created | NO | Intermediate |
20
+ | **Writing task completed** | YES | Atomic unit of work (1 commit per task) |
21
+ | **Plan completed** | YES | Metadata commit (SUMMARY + STATE + ROADMAP) |
22
+ | Handoff created | YES | WIP state preserved |
23
+
24
+ </commit_points>
25
+
26
+ <git_check>
27
+
28
+ ```bash
29
+ [ -d .git ] && echo "GIT_EXISTS" || echo "NO_GIT"
30
+ ```
31
+
32
+ If NO_GIT: Run `git init` silently. WTF-P projects always get their own repo.
33
+ </git_check>
34
+
35
+ <commit_formats>
36
+
37
+ <format name="initialization">
38
+ ## Paper Initialization (project + outline together)
39
+
40
+ ```
41
+ docs: initialize [paper-title] ([N] sections)
42
+
43
+ [One-liner thesis from PROJECT.md]
44
+
45
+ Sections:
46
+ 1. [section-name]: [goal]
47
+ 2. [section-name]: [goal]
48
+ 3. [section-name]: [goal]
49
+ ```
50
+
51
+ What to commit:
52
+
53
+ ```bash
54
+ git add .planning/
55
+ git commit
56
+ ```
57
+
58
+ </format>
59
+
60
+ <format name="task-completion">
61
+ ## Task Completion (During Plan Execution)
62
+
63
+ Each writing task gets its own commit immediately after completion.
64
+
65
+ ```
66
+ {type}({section}-{plan}): {task-name}
67
+
68
+ - [Key content 1]
69
+ - [Key content 2]
70
+ - [Key content 3]
71
+ ```
72
+
73
+ **Commit types:**
74
+ - `write` - New content written
75
+ - `revise` - Content revised/improved
76
+ - `cite` - Citations added
77
+ - `polish` - Prose refined
78
+ - `docs` - Metadata updates
79
+
80
+ **Examples:**
81
+
82
+ ```bash
83
+ # Standard writing task
84
+ git add paper/introduction.md
85
+ git commit -m "write(01-01): draft introduction opening
86
+
87
+ - Establishes research gap (~200 words)
88
+ - Cites Smith2023 and Jones2022
89
+ - Transitions to thesis statement
90
+ "
91
+
92
+ # Revision task
93
+ git add paper/methods.md
94
+ git commit -m "revise(02-01): strengthen methods clarity
95
+
96
+ - Added participant demographics
97
+ - Clarified procedure timeline
98
+ - Added missing protocol details
99
+ "
100
+
101
+ # Citation task
102
+ git add paper/discussion.md .planning/sources/literature.md
103
+ git commit -m "cite(04-01): add supporting citations
104
+
105
+ - Added Chen2024 for alternative interpretation
106
+ - Updated literature index
107
+ "
108
+ ```
109
+
110
+ </format>
111
+
112
+ <format name="plan-completion">
113
+ ## Plan Completion (After All Tasks Done)
114
+
115
+ After all tasks committed, one final metadata commit captures plan completion.
116
+
117
+ ```
118
+ docs({section}-{plan}): complete [section-name] plan
119
+
120
+ Tasks completed: [N]/[N]
121
+ Words written: [X]
122
+ - [Task 1 name]
123
+ - [Task 2 name]
124
+ - [Task 3 name]
125
+
126
+ SUMMARY: .planning/sections/XX-name/{section}-{plan}-SUMMARY.md
127
+ ```
128
+
129
+ What to commit:
130
+
131
+ ```bash
132
+ git add .planning/sections/XX-name/{section}-{plan}-PLAN.md
133
+ git add .planning/sections/XX-name/{section}-{plan}-SUMMARY.md
134
+ git add .planning/STATE.md
135
+ git add .planning/ROADMAP.md
136
+ git commit
137
+ ```
138
+
139
+ **Note:** Paper content NOT included - already committed per-task.
140
+
141
+ </format>
142
+
143
+ <format name="handoff">
144
+ ## Handoff (WIP)
145
+
146
+ ```
147
+ wip: [section-name] paused at task [X]/[Y]
148
+
149
+ Current: [task name]
150
+ [If blocked:] Blocked: [reason]
151
+ ```
152
+
153
+ What to commit:
154
+
155
+ ```bash
156
+ git add .planning/
157
+ git commit
158
+ ```
159
+
160
+ </format>
161
+ </commit_formats>
162
+
163
+ <example_log>
164
+
165
+ **Per-task commits for academic writing:**
166
+ ```
167
+ # Section 04 - Discussion
168
+ 1a2b3c docs(04-01): complete discussion plan
169
+ 4d5e6f write(04-01): draft implications and future work
170
+ 7g8h9i write(04-01): draft interpretation of findings
171
+ 0j1k2l write(04-01): draft summary of results
172
+
173
+ # Section 03 - Results
174
+ 3m4n5o docs(03-01): complete results plan
175
+ 6p7q8r write(03-01): draft supporting analyses
176
+ 9s0t1u write(03-01): draft main findings
177
+
178
+ # Section 02 - Methods
179
+ 5y6z7a docs(02-01): complete methods plan
180
+ 8b9c0d write(02-01): draft analysis approach
181
+ 1e2f3g write(02-01): draft procedures
182
+ 4h5i6j write(02-01): draft participants
183
+
184
+ # Section 01 - Introduction
185
+ 7k8l9m docs(01-01): complete introduction plan
186
+ 0n1o2p write(01-01): draft thesis and roadmap
187
+ 3q4r5s write(01-01): draft research gap
188
+ 6t7u8v write(01-01): draft opening hook
189
+
190
+ # Initialization
191
+ 9w0x1y docs: initialize research-paper (6 sections)
192
+ ```
193
+
194
+ Each plan produces 3-5 commits (tasks + metadata). Clear, granular, recoverable.
195
+
196
+ </example_log>
197
+
198
+ <anti_patterns>
199
+
200
+ **Still don't commit (intermediate artifacts):**
201
+ - PLAN.md creation (commit with plan completion)
202
+ - RESEARCH.md (intermediate)
203
+ - CONTEXT.md (intermediate)
204
+ - Minor planning tweaks
205
+ - "Fixed typo in outline"
206
+
207
+ **Do commit (outcomes):**
208
+ - Each writing task completion (write/revise/cite/polish)
209
+ - Plan completion metadata (docs)
210
+ - Paper initialization (docs)
211
+
212
+ **Key principle:** Commit written content and shipped outcomes, not planning process.
213
+
214
+ </anti_patterns>
215
+
216
+ <commit_strategy_rationale>
217
+
218
+ ## Why Per-Task Commits?
219
+
220
+ **Context engineering for AI:**
221
+ - Git history becomes primary context source for future Claude sessions
222
+ - `git log --grep="{section}-{plan}"` shows all work for a plan
223
+ - `git diff <hash>^..<hash>` shows exact changes per task
224
+ - Less reliance on parsing SUMMARY.md = more context for actual writing
225
+
226
+ **Failure recovery:**
227
+ - Task 1 committed ✅, Task 2 failed ❌
228
+ - Claude in next session: sees task 1 complete, can retry task 2
229
+ - Can `git reset --hard` to last successful task
230
+
231
+ **Revision tracking:**
232
+ - Clear record of when each part was written
233
+ - Easy to see evolution of arguments
234
+ - Each commit is independently revertable
235
+
236
+ **Observability:**
237
+ - Solo writer + Claude workflow benefits from granular attribution
238
+ - Atomic commits are git best practice
239
+ - Writing evolution is clear
240
+
241
+ </commit_strategy_rationale>
@@ -0,0 +1,212 @@
1
+ <imrad_structure>
2
+ Standard academic paper structure for research articles. IMRaD = Introduction, Methods, Results, and Discussion.
3
+
4
+ <overview>
5
+ IMRaD is the dominant structure for empirical research papers in sciences, social sciences, and many other fields. Understanding this structure helps plan writing efficiently.
6
+ </overview>
7
+
8
+ <sections>
9
+
10
+ <section name="abstract">
11
+ ## Abstract (150-300 words)
12
+
13
+ **Purpose:** Standalone summary of the entire paper.
14
+
15
+ **Components:**
16
+ 1. **Background/Context** (1-2 sentences): Why this research matters
17
+ 2. **Objective/Question** (1 sentence): What you investigated
18
+ 3. **Methods** (1-2 sentences): How you did it
19
+ 4. **Results** (2-3 sentences): What you found
20
+ 5. **Conclusions** (1-2 sentences): What it means
21
+
22
+ **Writing mode:** Reviewer (user writes, Claude critiques)
23
+ **When to write:** LAST - after all other sections
24
+
25
+ **Common mistakes:**
26
+ - Too long (>300 words for most venues)
27
+ - Vague results ("significant findings were observed")
28
+ - Missing methods
29
+ - Conclusions that go beyond findings
30
+ </section>
31
+
32
+ <section name="introduction">
33
+ ## Introduction (10-15% of paper)
34
+
35
+ **Purpose:** Establish context, identify gap, state contribution.
36
+
37
+ **Structure (the "funnel"):**
38
+ 1. **Hook** (1-2 paragraphs): Why this topic matters, broad context
39
+ 2. **Literature context** (2-4 paragraphs): What's known, key prior work
40
+ 3. **Gap identification** (1-2 paragraphs): What's missing, the problem
41
+ 4. **Thesis/Contribution** (1 paragraph): What you did and why it matters
42
+ 5. **Roadmap** (1 paragraph, optional): Paper structure preview
43
+
44
+ **Writing mode:** Co-Author → Reviewer
45
+ **Typical plans:** 2-3
46
+
47
+ **Common mistakes:**
48
+ - Too broad opening (doesn't connect to specific research)
49
+ - Insufficient citations for claims
50
+ - Gap not clearly articulated
51
+ - Thesis buried or unclear
52
+ </section>
53
+
54
+ <section name="methods">
55
+ ## Methods (20-30% of paper)
56
+
57
+ **Purpose:** Enable replication, establish rigor.
58
+
59
+ **Typical subsections:**
60
+ 1. **Study Design/Overview**: Type of study, overall approach
61
+ 2. **Participants/Sample**: Who/what was studied, selection criteria
62
+ 3. **Materials/Instruments**: What tools, measures, materials used
63
+ 4. **Procedure**: Step-by-step what happened
64
+ 5. **Data Analysis**: How data was analyzed
65
+
66
+ **Writing mode:** Co-Author (often procedural)
67
+ **Typical plans:** 2-3
68
+
69
+ **Common mistakes:**
70
+ - Insufficient detail for replication
71
+ - Missing rationale for choices
72
+ - Results in methods section
73
+ - Vague ("standard procedures were followed")
74
+ </section>
75
+
76
+ <section name="results">
77
+ ## Results (20-30% of paper)
78
+
79
+ **Purpose:** Present findings objectively, without interpretation.
80
+
81
+ **Structure:**
82
+ 1. **Descriptive statistics/Overview**: Sample characteristics, basic numbers
83
+ 2. **Main findings**: Primary results addressing research question
84
+ 3. **Secondary/Supporting findings**: Additional analyses
85
+ 4. **Figures and tables**: Visual presentation of key data
86
+
87
+ **Writing mode:** Scaffold (Claude structures, user fills specifics)
88
+ **Typical plans:** 2
89
+
90
+ **Common mistakes:**
91
+ - Interpretation in results (belongs in Discussion)
92
+ - Repeating all table/figure data in text
93
+ - Not addressing all research questions
94
+ - Vague statistics ("p < .05" without effect sizes)
95
+ </section>
96
+
97
+ <section name="discussion">
98
+ ## Discussion (20-30% of paper)
99
+
100
+ **Purpose:** Interpret findings, connect to literature, acknowledge limitations.
101
+
102
+ **Structure (the "reverse funnel"):**
103
+ 1. **Summary** (1 paragraph): Key findings recap
104
+ 2. **Interpretation** (2-4 paragraphs): What findings mean
105
+ 3. **Relation to prior work** (2-3 paragraphs): How this fits/extends literature
106
+ 4. **Implications** (1-2 paragraphs): Practical/theoretical significance
107
+ 5. **Limitations** (1-2 paragraphs): Honest acknowledgment of weaknesses
108
+ 6. **Future directions** (1 paragraph): What comes next
109
+ 7. **Conclusion** (1 paragraph): Final takeaway (may be separate section)
110
+
111
+ **Writing mode:** Reviewer (user writes, Claude critiques)
112
+ **Typical plans:** 2-3
113
+
114
+ **Common mistakes:**
115
+ - Repeating results without interpretation
116
+ - Overstating conclusions
117
+ - Limitations as afterthought
118
+ - Not connecting to prior work
119
+ </section>
120
+
121
+ <section name="conclusion">
122
+ ## Conclusion (if separate, 5% of paper)
123
+
124
+ **Purpose:** Final synthesis and takeaway.
125
+
126
+ **Components:**
127
+ 1. Main contribution restated
128
+ 2. Key implications
129
+ 3. Final thought/call to action
130
+
131
+ **Writing mode:** Reviewer
132
+ **Typical plans:** 1
133
+
134
+ **Note:** Many papers combine conclusion into Discussion. Check venue guidelines.
135
+ </section>
136
+ </sections>
137
+
138
+ <other_sections>
139
+
140
+ **References/Bibliography**
141
+ - Not written, but cited throughout
142
+ - Format per venue style guide
143
+ - Track in sources/literature.md
144
+
145
+ **Acknowledgments**
146
+ - Funding sources
147
+ - Contributors who don't meet authorship criteria
148
+ - Write last, verify requirements
149
+
150
+ **Appendices** (if needed)
151
+ - Supplementary materials
152
+ - Detailed methods
153
+ - Additional analyses
154
+ </other_sections>
155
+
156
+ <section_dependencies>
157
+
158
+ ```
159
+ Abstract ← (depends on all)
160
+ ↑
161
+ Introduction → Methods → Results → Discussion → Conclusion
162
+ ↑ ↑
163
+ |-----------| (Discussion interprets Results)
164
+ ```
165
+
166
+ **Recommended writing order:**
167
+ 1. Methods (most concrete)
168
+ 2. Results (report what happened)
169
+ 3. Introduction (frame the contribution)
170
+ 4. Discussion (interpret findings)
171
+ 5. Conclusion (synthesize)
172
+ 6. Abstract (summarize all)
173
+
174
+ This order lets you know what you're introducing before writing the intro, and what you're discussing before the discussion.
175
+ </section_dependencies>
176
+
177
+ <word_budget_template>
178
+
179
+ | Section | % of Paper | 8000-word Paper | 5000-word Paper |
180
+ |---------|------------|-----------------|-----------------|
181
+ | Abstract | 2-3% | 200 | 150 |
182
+ | Introduction | 12-15% | 1000 | 650 |
183
+ | Methods | 20-25% | 1800 | 1100 |
184
+ | Results | 20-25% | 1800 | 1100 |
185
+ | Discussion | 25-30% | 2200 | 1400 |
186
+ | Conclusion | 5-8% | 500 | 350 |
187
+ | References | N/A | N/A | N/A |
188
+
189
+ Adjust based on venue requirements and content needs.
190
+ </word_budget_template>
191
+
192
+ <variations>
193
+
194
+ **APA Style** (Psychology, Social Sciences)
195
+ - Standard IMRaD with specific formatting
196
+ - Often has separate Participants and Procedure sections
197
+
198
+ **Chicago/Humanities**
199
+ - May not follow IMRaD strictly
200
+ - More emphasis on argument structure
201
+ - Thematic organization possible
202
+
203
+ **Grant Proposals** (not IMRaD)
204
+ - Specific Aims, Background, Approach
205
+ - See grant/ templates
206
+
207
+ **Conference Papers**
208
+ - Shorter, often 6-8 pages
209
+ - Same structure, compressed
210
+ - May omit some subsections
211
+ </variations>
212
+ </imrad_structure>