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,142 @@
1
+ # Data Inventory Template
2
+
3
+ Template for `.planning/sources/data.md` — evidence inventory for your paper.
4
+
5
+ **Purpose:** Track all figures, tables, statistics, and data that will appear in the paper.
6
+
7
+ ---
8
+
9
+ ## File Template
10
+
11
+ ```markdown
12
+ # Data & Evidence Inventory
13
+
14
+ **Created:** [date]
15
+ **Last updated:** [date]
16
+
17
+ ## Figures
18
+
19
+ | ID | Description | Status | Section | File |
20
+ |----|-------------|--------|---------|------|
21
+ | Fig 1 | [Main result visualization] | [ready/draft/needed] | Results | `figures/fig-1-*.png` |
22
+ | Fig 2 | [Method diagram] | [ready/draft/needed] | Methods | `figures/fig-2-*.png` |
23
+ | Fig 3 | [Comparison chart] | [ready/draft/needed] | Results | `figures/fig-3-*.png` |
24
+
25
+ ### Figure Details
26
+
27
+ **Figure 1: [Title]**
28
+ - Purpose: [What this figure shows]
29
+ - Data source: [Where the data comes from]
30
+ - Status: [Ready / Needs polish / Not started]
31
+ - Caption draft: "[Draft caption text]"
32
+ - Alt text: "[Accessibility description]"
33
+
34
+ **Figure 2: [Title]**
35
+ - Purpose: [What this figure shows]
36
+ - Data source: [Where the data comes from]
37
+ - Status: [Ready / Needs polish / Not started]
38
+ - Caption draft: "[Draft caption text]"
39
+ - Alt text: "[Accessibility description]"
40
+
41
+ ## Tables
42
+
43
+ | ID | Description | Status | Section | Format |
44
+ |----|-------------|--------|---------|--------|
45
+ | Table 1 | [Participant demographics] | [ready/draft/needed] | Methods | Inline |
46
+ | Table 2 | [Main results] | [ready/draft/needed] | Results | Inline |
47
+ | Table 3 | [Comparison with prior work] | [ready/draft/needed] | Discussion | Inline |
48
+
49
+ ### Table Details
50
+
51
+ **Table 1: [Title]**
52
+ - Purpose: [What this table shows]
53
+ - Columns: [Column 1 | Column 2 | Column 3]
54
+ - Data source: [Where the data comes from]
55
+ - Status: [Ready / Needs polish / Not started]
56
+ - Notes: [Any special formatting or notes]
57
+
58
+ **Table 2: [Title]**
59
+ - Purpose: [What this table shows]
60
+ - Columns: [Column headers]
61
+ - Data source: [Where the data comes from]
62
+ - Status: [Ready / Needs polish / Not started]
63
+
64
+ ## Statistics
65
+
66
+ | Finding | Test | Result | Section | Status |
67
+ |---------|------|--------|---------|--------|
68
+ | Group difference in X | t-test | t(43) = 2.34, p = .024, d = 0.45 | Results | ✓ verified |
69
+ | Relationship between Y and Z | Pearson r | r = .67, p < .001 | Results | ✓ verified |
70
+ | Model prediction | Regression | R² = .42, F(3, 41) = 9.87, p < .001 | Results | pending |
71
+
72
+ ### Statistical Notes
73
+ - [Notes on statistical approach]
74
+ - [Software used: R / SPSS / Python]
75
+ - [Any assumptions checked]
76
+
77
+ ## Quotes & Excerpts
78
+
79
+ | Source | Quote | Where to Use |
80
+ |--------|-------|--------------|
81
+ | Smith (2023), p. 12 | "[Exact quote]" | Introduction, gap statement |
82
+ | Participant P7 | "[Quote from data]" | Results, qualitative section |
83
+ | Jones (2024), p. 45 | "[Exact quote]" | Discussion, comparison |
84
+
85
+ ## Data Availability
86
+
87
+ **Raw data:**
88
+ - Location: [Path or repository]
89
+ - Access: [Public / Upon request / Restricted]
90
+ - Format: [CSV / Excel / etc.]
91
+
92
+ **Processed data:**
93
+ - Location: [Path]
94
+ - Scripts: [Path to analysis scripts]
95
+
96
+ **Supplementary materials:**
97
+ - [What will be included in supplementary]
98
+
99
+ ## Missing Data
100
+
101
+ Items we need but don't have yet:
102
+
103
+ - [ ] [Missing item 1] - needed for [section]
104
+ - [ ] [Missing item 2] - needed for [section]
105
+ - [ ] [Missing item 3] - needed for [section]
106
+
107
+ ---
108
+
109
+ *Data inventory for: [Paper title]*
110
+ *Update as data is collected/processed*
111
+ ```
112
+
113
+ <guidelines>
114
+
115
+ **What to track:**
116
+ - All figures with status and placement
117
+ - All tables with structure and status
118
+ - Key statistics with exact values
119
+ - Important quotes from sources or data
120
+ - Missing data items
121
+
122
+ **Status values:**
123
+ - Ready: Can be used as-is
124
+ - Draft: Needs polish but content is there
125
+ - Needed: Must be created
126
+ - Pending: Waiting on something
127
+
128
+ **Figure/Table naming:**
129
+ - Use descriptive IDs (Fig 1, Table A1)
130
+ - Include file paths for figures
131
+ - Note format requirements
132
+
133
+ **Statistics tracking:**
134
+ - Include exact values for paper
135
+ - Note verification status
136
+ - Track software/methods used
137
+
138
+ **Integration:**
139
+ - Reference from section plans
140
+ - Check during verification
141
+ - Update as data is finalized
142
+ </guidelines>
@@ -0,0 +1,146 @@
1
+ # Discovery Template
2
+
3
+ Template for `.planning/sections/XX-name/DISCOVERY.md` - shallow research for writing decisions.
4
+
5
+ **Purpose:** Answer "which approach should we use" questions during mandatory discovery in plan-section.
6
+
7
+ For deep literature research ("what does the field say about this"), use `/wtfp:research-section` which produces RESEARCH.md.
8
+
9
+ ---
10
+
11
+ ## File Template
12
+
13
+ ```markdown
14
+ ---
15
+ section: XX-name
16
+ type: discovery
17
+ topic: [discovery-topic]
18
+ ---
19
+
20
+ <session_initialization>
21
+ Before beginning discovery, verify today's date:
22
+ !`date +%Y-%m-%d`
23
+
24
+ Use this date when searching for "current" or "latest" information.
25
+ Example: If today is 2025-11-22, search for "2025" not "2024".
26
+ </session_initialization>
27
+
28
+ <discovery_objective>
29
+ Discover [topic] to inform [section name] writing.
30
+
31
+ Purpose: [What decision/approach this enables]
32
+ Scope: [Boundaries]
33
+ Output: DISCOVERY.md with recommendation
34
+ </discovery_objective>
35
+
36
+ <discovery_scope>
37
+ <include>
38
+ - [Question to answer]
39
+ - [Approach to investigate]
40
+ - [Specific comparison if needed]
41
+ </include>
42
+
43
+ <exclude>
44
+ - [Out of scope for this discovery]
45
+ - [Defer to writing phase]
46
+ </exclude>
47
+ </discovery_scope>
48
+
49
+ <discovery_protocol>
50
+
51
+ **Source Priority:**
52
+ 1. **Domain literature** - Peer-reviewed papers in the field
53
+ 2. **Authoritative sources** - Foundational texts, handbooks
54
+ 3. **WebSearch** - For recent developments, trends (verify all findings)
55
+
56
+ **Quality Checklist:**
57
+ Before completing discovery, verify:
58
+ - [ ] All claims have authoritative sources (peer-reviewed or established)
59
+ - [ ] Negative claims ("X is not possible") verified with citations
60
+ - [ ] Methodological claims from primary sources (not secondary summaries)
61
+ - [ ] WebSearch findings cross-checked with academic sources
62
+ - [ ] Recent publications checked for field developments
63
+ - [ ] Alternative approaches considered (not just first solution found)
64
+
65
+ **Confidence Levels:**
66
+ - HIGH: Peer-reviewed sources confirm
67
+ - MEDIUM: Authoritative secondary sources confirm
68
+ - LOW: WebSearch only or training knowledge only (mark for validation)
69
+
70
+ </discovery_protocol>
71
+
72
+
73
+ <output_structure>
74
+ Create `.planning/sections/XX-name/DISCOVERY.md`:
75
+
76
+ ```markdown
77
+ # [Topic] Discovery
78
+
79
+ ## Summary
80
+ [2-3 paragraph executive summary - what was researched, what was found, what's recommended]
81
+
82
+ ## Primary Recommendation
83
+ [What approach to take and why - be specific and actionable]
84
+
85
+ ## Alternatives Considered
86
+ [What else was evaluated and why not chosen]
87
+
88
+ ## Key Findings
89
+
90
+ ### [Category 1]
91
+ - [Finding with citation and relevance to our case]
92
+
93
+ ### [Category 2]
94
+ - [Finding with citation and relevance]
95
+
96
+ ## Relevant Citations
97
+ [Citations to add to literature.md]
98
+
99
+ ## Metadata
100
+
101
+ <metadata>
102
+ <confidence level="high|medium|low">
103
+ [Why this confidence level - based on source quality and verification]
104
+ </confidence>
105
+
106
+ <sources>
107
+ - [Primary authoritative sources used]
108
+ </sources>
109
+
110
+ <open_questions>
111
+ [What couldn't be determined or needs validation during writing]
112
+ </open_questions>
113
+
114
+ <validation_checkpoints>
115
+ [If confidence is LOW or MEDIUM, list specific things to verify during writing]
116
+ </validation_checkpoints>
117
+ </metadata>
118
+ ```
119
+ </output_structure>
120
+
121
+ <success_criteria>
122
+ - All scope questions answered with authoritative sources
123
+ - Quality checklist items completed
124
+ - Clear primary recommendation
125
+ - Low-confidence findings marked with validation checkpoints
126
+ - Ready to inform PLAN.md creation
127
+ </success_criteria>
128
+
129
+ <guidelines>
130
+ **When to use discovery:**
131
+ - Methodological choice unclear (approach A vs B)
132
+ - Need to understand field conventions
133
+ - Framing decision required
134
+ - Single question pending
135
+
136
+ **When NOT to use:**
137
+ - Established methods (standard statistical approaches)
138
+ - Writing details (defer to execution)
139
+ - Questions answerable from existing sources
140
+
141
+ **When to use RESEARCH.md instead:**
142
+ - Need comprehensive literature review
143
+ - Complex theoretical background
144
+ - "What does the field say about X" questions
145
+ - Use `/wtfp:research-section` for these
146
+ </guidelines>
@@ -0,0 +1,59 @@
1
+ # Project Issues Log
2
+
3
+ Gaps, flaws, and enhancements discovered during writing. Not critical — address in revision.
4
+
5
+ ## Open Issues
6
+
7
+ ### ISS-001: [Brief description]
8
+
9
+ - **Discovered:** Section [X] Task [Z] (YYYY-MM-DD)
10
+ - **Type:** [Gap / Flaw / Citation / Structure / Clarity / Future Work]
11
+ - **Description:** [What could be improved and why it would help]
12
+ - **Impact:** Low (writing is correct, this would enhance)
13
+ - **Effort:** [Quick / Medium / Substantial]
14
+ - **Suggested section:** [Section number or "Revision"]
15
+
16
+ ## Closed Issues
17
+
18
+ [Moved here when addressed]
19
+
20
+ ---
21
+
22
+ ## Template Notes
23
+
24
+ **When to create:** First time an enhancement is deferred during writing.
25
+
26
+ **Location:** `.planning/ISSUES.md`
27
+
28
+ **ISS numbering:** Auto-increment from highest existing number.
29
+
30
+ **Entry format:** Copy the ISS-001 block, update number and fields.
31
+
32
+ **Closing issues:** Move entire block to "Closed Issues" section, add resolution note.
33
+
34
+ ## Issue Types
35
+
36
+ | Type | Definition | Example |
37
+ |------|------------|---------|
38
+ | **Gap** | Missing evidence or argument | "Need citation for claim about X" |
39
+ | **Flaw** | Logical issue or weak argument | "Conclusion doesn't follow from premises" |
40
+ | **Citation** | Citation needed or incorrect | "Smith (2023) actually says opposite" |
41
+ | **Structure** | Organization could improve | "Methods should come before results" |
42
+ | **Clarity** | Prose is unclear or awkward | "Paragraph 3 is confusing" |
43
+ | **Future Work** | Good idea but out of scope | "Could extend to domain Y" |
44
+
45
+ ## When to Log vs When to Fix
46
+
47
+ **Log to ISSUES.md:**
48
+ - Nice-to-haves discovered during writing
49
+ - Improvements that would delay current section
50
+ - Ideas for future revision
51
+ - Minor clarity issues that don't block comprehension
52
+
53
+ **Fix immediately (don't log):**
54
+ - Factual errors
55
+ - Logical contradictions
56
+ - Missing required elements
57
+ - Broken citations
58
+
59
+ The distinction: If a reviewer would reject the paper for it, fix it now. If a reviewer might suggest it as an improvement, log it for later.
@@ -0,0 +1,253 @@
1
+ # Manuscript Template
2
+
3
+ Template for `paper/[title].md` or `paper/[title].tex` — the actual paper output.
4
+
5
+ **Purpose:** Structure for the manuscript file where writing lives.
6
+
7
+ ---
8
+
9
+ ## Markdown Template
10
+
11
+ ```markdown
12
+ ---
13
+ title: "[Paper Title]"
14
+ author:
15
+ - name: "[Author 1]"
16
+ affiliation: "[Institution]"
17
+ email: "[email]"
18
+ - name: "[Author 2]"
19
+ affiliation: "[Institution]"
20
+ date: "[YYYY-MM-DD]"
21
+ abstract: |
22
+ [Abstract text - 150-300 words]
23
+ keywords:
24
+ - keyword1
25
+ - keyword2
26
+ - keyword3
27
+ bibliography: references.bib
28
+ csl: [path-to-csl-file.csl]
29
+ ---
30
+
31
+ # Introduction
32
+
33
+ [Introduction text...]
34
+
35
+ # Related Work
36
+
37
+ [Literature review text...]
38
+
39
+ # Methods
40
+
41
+ ## Participants
42
+
43
+ [Participants text...]
44
+
45
+ ## Procedure
46
+
47
+ [Procedure text...]
48
+
49
+ ## Analysis
50
+
51
+ [Analysis text...]
52
+
53
+ # Results
54
+
55
+ ## Finding 1
56
+
57
+ [Finding 1 text...]
58
+
59
+ ## Finding 2
60
+
61
+ [Finding 2 text...]
62
+
63
+ # Discussion
64
+
65
+ ## Summary of Findings
66
+
67
+ [Summary text...]
68
+
69
+ ## Implications
70
+
71
+ [Implications text...]
72
+
73
+ ## Limitations
74
+
75
+ [Limitations text...]
76
+
77
+ ## Future Work
78
+
79
+ [Future work text...]
80
+
81
+ # Conclusion
82
+
83
+ [Conclusion text...]
84
+
85
+ # References
86
+
87
+ <!-- References will be generated automatically from citations -->
88
+ ```
89
+
90
+ ## LaTeX Template
91
+
92
+ ```latex
93
+ \documentclass[sigchi]{acmart}
94
+
95
+ \usepackage{booktabs}
96
+
97
+ \title{[Paper Title]}
98
+
99
+ \author{[Author 1]}
100
+ \affiliation{
101
+ \institution{[Institution]}
102
+ \city{[City]}
103
+ \country{[Country]}
104
+ }
105
+ \email{[email]}
106
+
107
+ \author{[Author 2]}
108
+ \affiliation{
109
+ \institution{[Institution]}
110
+ }
111
+ \email{[email]}
112
+
113
+ \begin{abstract}
114
+ [Abstract text - 150-300 words]
115
+ \end{abstract}
116
+
117
+ \keywords{keyword1, keyword2, keyword3}
118
+
119
+ \begin{document}
120
+
121
+ \maketitle
122
+
123
+ \section{Introduction}
124
+
125
+ [Introduction text...]
126
+
127
+ \section{Related Work}
128
+
129
+ [Literature review text...]
130
+
131
+ \section{Methods}
132
+
133
+ \subsection{Participants}
134
+
135
+ [Participants text...]
136
+
137
+ \subsection{Procedure}
138
+
139
+ [Procedure text...]
140
+
141
+ \subsection{Analysis}
142
+
143
+ [Analysis text...]
144
+
145
+ \section{Results}
146
+
147
+ \subsection{Finding 1}
148
+
149
+ [Finding 1 text...]
150
+
151
+ \subsection{Finding 2}
152
+
153
+ [Finding 2 text...]
154
+
155
+ \section{Discussion}
156
+
157
+ \subsection{Summary of Findings}
158
+
159
+ [Summary text...]
160
+
161
+ \subsection{Implications}
162
+
163
+ [Implications text...]
164
+
165
+ \subsection{Limitations}
166
+
167
+ [Limitations text...]
168
+
169
+ \subsection{Future Work}
170
+
171
+ [Future work text...]
172
+
173
+ \section{Conclusion}
174
+
175
+ [Conclusion text...]
176
+
177
+ \bibliographystyle{ACM-Reference-Format}
178
+ \bibliography{references}
179
+
180
+ \end{document}
181
+ ```
182
+
183
+ <guidelines>
184
+
185
+ **File organization:**
186
+
187
+ ```
188
+ paper/
189
+ ├── manuscript.md # Main document (Markdown)
190
+ │ OR
191
+ ├── paper.tex # Main document (LaTeX)
192
+ ├── references.bib # Bibliography
193
+ ├── figures/ # Figure files
194
+ │ ├── fig-1-*.png
195
+ │ └── fig-2-*.png
196
+ └── supplementary/ # Supplementary materials
197
+ └── appendix.md
198
+ ```
199
+
200
+ **Section markers:**
201
+ - Use clear headers for navigation
202
+ - Keep heading levels consistent
203
+ - Follow venue structure requirements
204
+
205
+ **Citation integration:**
206
+ - Markdown: Use `[@key]` or `@key`
207
+ - LaTeX: Use `\cite{key}`
208
+ - Keep bibliography updated
209
+
210
+ **Figure/table placement:**
211
+ - Reference in text before appearance
212
+ - Use descriptive captions
213
+ - Include alt text for accessibility
214
+
215
+ **Writing workflow:**
216
+ 1. Write in sections (not all at once)
217
+ 2. Use PLAN.md for each section
218
+ 3. Commit after each section complete
219
+ 4. Update word count in STATE.md
220
+
221
+ **Quality markers:**
222
+ - [ ] All sections present
223
+ - [ ] Word count within limits
224
+ - [ ] All figures/tables referenced
225
+ - [ ] All citations resolved
226
+ - [ ] Formatting matches template
227
+ </guidelines>
228
+
229
+ <split_manuscript>
230
+ For longer documents, split by section:
231
+
232
+ ```
233
+ paper/
234
+ ├── manuscript.md # Includes all sections
235
+ │ OR
236
+ ├── sections/
237
+ │ ├── 00-frontmatter.md # Title, abstract, keywords
238
+ │ ├── 01-introduction.md
239
+ │ ├── 02-literature.md
240
+ │ ├── 03-methods.md
241
+ │ ├── 04-results.md
242
+ │ ├── 05-discussion.md
243
+ │ ├── 06-conclusion.md
244
+ │ └── 99-references.md
245
+ └── build.sh # Combines into single file
246
+ ```
247
+
248
+ Combine script:
249
+ ```bash
250
+ #!/bin/bash
251
+ cat sections/*.md > manuscript.md
252
+ ```
253
+ </split_manuscript>