@bohuyeshan/openagent-labforge-core 3.11.5 → 3.13.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 (272) hide show
  1. package/README.ja.md +130 -343
  2. package/README.ko.md +128 -337
  3. package/README.md +229 -584
  4. package/README.ru.md +131 -364
  5. package/README.zh-cn.md +231 -547
  6. package/bin/openagent-labforge.js +95 -9
  7. package/bin/platform.test.ts +20 -21
  8. package/dist/agents/article-writer.d.ts +7 -0
  9. package/dist/agents/atlas/default.d.ts +1 -1
  10. package/dist/agents/atlas/gemini.d.ts +1 -1
  11. package/dist/agents/atlas/gpt.d.ts +1 -1
  12. package/dist/agents/bio-methodologist.d.ts +1 -1
  13. package/dist/agents/bio-orchestrator.d.ts +7 -0
  14. package/dist/agents/bio-skill-guidance.d.ts +1 -0
  15. package/dist/agents/builtin-agents/general-agents.d.ts +0 -1
  16. package/dist/agents/builtin-agents/sisyphus-agent.d.ts +16 -0
  17. package/dist/agents/dynamic-agent-prompt-builder.d.ts +0 -2
  18. package/dist/agents/engineering-capability.d.ts +7 -0
  19. package/dist/agents/env-context.d.ts +1 -1
  20. package/dist/agents/github-scout.d.ts +7 -0
  21. package/dist/agents/index.d.ts +0 -1
  22. package/dist/agents/metis.d.ts +1 -1
  23. package/dist/agents/momus.d.ts +1 -1
  24. package/dist/agents/prometheus/behavioral-summary.d.ts +1 -1
  25. package/dist/agents/prometheus/gemini.d.ts +1 -1
  26. package/dist/agents/prometheus/gpt.d.ts +1 -1
  27. package/dist/agents/prometheus/interview-mode.d.ts +1 -1
  28. package/dist/agents/prometheus/plan-generation.d.ts +1 -1
  29. package/dist/agents/prometheus/plan-template.d.ts +1 -1
  30. package/dist/agents/prometheus/system-prompt.d.ts +1 -1
  31. package/dist/agents/scientific-writer.d.ts +7 -0
  32. package/dist/agents/sisyphus-junior/gpt-5-3-codex.d.ts +1 -1
  33. package/dist/agents/sisyphus-junior/gpt-5-4.d.ts +1 -1
  34. package/dist/agents/sisyphus-junior/gpt.d.ts +1 -1
  35. package/dist/agents/tech-scout.d.ts +7 -0
  36. package/dist/agents/types.d.ts +1 -1
  37. package/dist/agents/wase.d.ts +8 -0
  38. package/dist/agents/wet-lab-designer.d.ts +7 -0
  39. package/dist/agents/writing-style-rules.d.ts +1 -0
  40. package/dist/cli/config-manager/bun-install.d.ts +1 -6
  41. package/dist/cli/config-manager/cleanup-managed-mcp-from-opencode-config.d.ts +2 -0
  42. package/dist/cli/config-manager/cleanup-stale-managed-agents.d.ts +2 -0
  43. package/dist/cli/config-manager/parse-opencode-config-file.d.ts +2 -0
  44. package/dist/cli/config-manager/plugin-name-with-version.d.ts +1 -1
  45. package/dist/cli/config-manager/sync-static-agent-to-opencode-config.d.ts +2 -0
  46. package/dist/cli/config-manager/sync-static-mcp-to-opencode-config.d.ts +2 -0
  47. package/dist/cli/config-manager/write-bootstrap-skill.d.ts +15 -0
  48. package/dist/cli/config-manager.d.ts +5 -0
  49. package/dist/cli/index.js +24986 -15362
  50. package/dist/cli/install-validators.d.ts +0 -1
  51. package/dist/cli/model-fallback-types.d.ts +0 -1
  52. package/dist/cli/run/index.d.ts +0 -1
  53. package/dist/cli/run/types.d.ts +0 -1
  54. package/dist/cli/types.d.ts +0 -3
  55. package/dist/config/schema/agent-names.d.ts +36 -3
  56. package/dist/config/schema/agent-overrides.d.ts +504 -0
  57. package/dist/config/schema/background-task.d.ts +0 -2
  58. package/dist/config/schema/experimental.d.ts +5 -0
  59. package/dist/config/schema/git-master.d.ts +0 -1
  60. package/dist/config/schema/hooks.d.ts +0 -2
  61. package/dist/config/schema/mcp-policy.d.ts +1 -0
  62. package/dist/config/schema/oh-my-opencode-config.d.ts +526 -54
  63. package/dist/config/schema.d.ts +0 -1
  64. package/dist/create-hooks.d.ts +0 -13
  65. package/dist/features/background-agent/compaction-aware-message-resolver.d.ts +1 -16
  66. package/dist/features/background-agent/constants.d.ts +2 -1
  67. package/dist/features/background-agent/manager.d.ts +5 -20
  68. package/dist/features/background-agent/process-cleanup.d.ts +1 -1
  69. package/dist/features/background-agent/task-history.d.ts +0 -1
  70. package/dist/features/background-agent/task-poller.d.ts +0 -1
  71. package/dist/features/background-agent/types.d.ts +0 -4
  72. package/dist/features/builtin-commands/commands.d.ts +4 -1
  73. package/dist/features/builtin-skills/skills/bio-methods.d.ts +2 -0
  74. package/dist/features/builtin-skills/skills/bio-pipeline.d.ts +2 -0
  75. package/dist/features/builtin-skills/skills/bio-tools.d.ts +2 -0
  76. package/dist/features/builtin-skills/skills/bio-visualization.d.ts +2 -0
  77. package/dist/features/builtin-skills/skills/cell-annotation.d.ts +2 -0
  78. package/dist/features/builtin-skills/skills/differential-expression.d.ts +2 -0
  79. package/dist/features/builtin-skills/skills/geo-query.d.ts +2 -0
  80. package/dist/features/builtin-skills/skills/index.d.ts +14 -0
  81. package/dist/features/builtin-skills/skills/paper-evidence.d.ts +2 -0
  82. package/dist/features/builtin-skills/skills/pubmed-search.d.ts +2 -0
  83. package/dist/features/builtin-skills/skills/scrna-preprocessing.d.ts +2 -0
  84. package/dist/features/builtin-skills/skills/sequence-analysis.d.ts +2 -0
  85. package/dist/features/builtin-skills/skills/structural-biology.d.ts +2 -0
  86. package/dist/features/builtin-skills/skills/vector-design.d.ts +2 -0
  87. package/dist/features/builtin-skills/skills/wet-lab-design.d.ts +2 -0
  88. package/dist/features/claude-code-agent-loader/loader.d.ts +3 -3
  89. package/dist/features/claude-code-agent-loader/types.d.ts +1 -8
  90. package/dist/features/claude-code-mcp-loader/configure-allowed-env-vars.d.ts +5 -0
  91. package/dist/features/claude-code-mcp-loader/index.d.ts +1 -0
  92. package/dist/features/claude-code-mcp-loader/types.d.ts +3 -0
  93. package/dist/features/claude-code-plugin-loader/agent-loader.d.ts +2 -2
  94. package/dist/features/claude-code-plugin-loader/loader.d.ts +2 -2
  95. package/dist/features/claude-code-plugin-loader/types.d.ts +1 -1
  96. package/dist/features/claude-code-session-state/state.d.ts +5 -0
  97. package/dist/features/opencode-skill-loader/git-master-template-injection.d.ts +1 -1
  98. package/dist/features/opencode-skill-loader/project-skill-directory-discovery.d.ts +1 -0
  99. package/dist/features/opencode-skill-loader/skill-metadata-validator.d.ts +8 -0
  100. package/dist/features/skill-mcp-manager/types.d.ts +0 -4
  101. package/dist/features/tmux-subagent/index.d.ts +0 -1
  102. package/dist/features/tmux-subagent/manager.d.ts +0 -5
  103. package/dist/features/tmux-subagent/types.d.ts +0 -2
  104. package/dist/hooks/atlas/tool-execute-after.d.ts +0 -2
  105. package/dist/hooks/atlas/types.d.ts +0 -2
  106. package/dist/hooks/atlas/verification-reminders.d.ts +0 -4
  107. package/dist/hooks/auto-slash-command/hook.d.ts +0 -7
  108. package/dist/hooks/auto-update-checker/checker.d.ts +1 -3
  109. package/dist/hooks/auto-update-checker/constants.d.ts +2 -2
  110. package/dist/hooks/comment-checker/downloader.d.ts +1 -1
  111. package/dist/hooks/compaction-context-injector/hook.d.ts +1 -5
  112. package/dist/hooks/context-window-monitor.d.ts +5 -2
  113. package/dist/hooks/index.d.ts +0 -2
  114. package/dist/hooks/keyword-detector/detector.d.ts +1 -1
  115. package/dist/hooks/keyword-detector/hook.d.ts +2 -2
  116. package/dist/hooks/keyword-detector/index.d.ts +1 -0
  117. package/dist/hooks/keyword-detector/semantic-hint.d.ts +4 -0
  118. package/dist/hooks/keyword-detector/ultrawork/autonomous.d.ts +8 -0
  119. package/dist/hooks/preemptive-compaction.d.ts +5 -2
  120. package/dist/hooks/runtime-fallback/hook.d.ts +3 -2
  121. package/dist/hooks/runtime-fallback/message-update-handler.d.ts +2 -1
  122. package/dist/hooks/runtime-fallback/types.d.ts +3 -56
  123. package/dist/hooks/session-notification-scheduler.d.ts +3 -5
  124. package/dist/hooks/session-notification.d.ts +0 -2
  125. package/dist/hooks/session-recovery/tool-pairing.d.ts +16 -0
  126. package/dist/hooks/start-work/index.d.ts +1 -1
  127. package/dist/hooks/start-work/worktree-detector.d.ts +0 -7
  128. package/dist/hooks/todo-continuation-enforcer/compaction-guard.d.ts +4 -0
  129. package/dist/hooks/todo-continuation-enforcer/constants.d.ts +6 -5
  130. package/dist/hooks/todo-continuation-enforcer/handler.d.ts +0 -1
  131. package/dist/hooks/todo-continuation-enforcer/idle-event.d.ts +0 -1
  132. package/dist/hooks/todo-continuation-enforcer/resolve-message-info.d.ts +3 -0
  133. package/dist/hooks/todo-continuation-enforcer/session-state.d.ts +1 -1
  134. package/dist/hooks/todo-continuation-enforcer/types.d.ts +8 -3
  135. package/dist/hooks/tool-output-truncator.d.ts +0 -1
  136. package/dist/index.js +56627 -56933
  137. package/dist/mcp/extended.d.ts +4 -2
  138. package/dist/mcp/index.d.ts +2 -1
  139. package/dist/mcp/types.d.ts +2 -3
  140. package/dist/openagent-labforge.schema.json +1362 -83
  141. package/dist/plugin/hooks/create-continuation-hooks.d.ts +1 -2
  142. package/dist/plugin/hooks/create-core-hooks.d.ts +0 -1
  143. package/dist/plugin/hooks/create-session-hooks.d.ts +1 -2
  144. package/dist/plugin/ultrawork-model-override.d.ts +11 -1
  145. package/dist/plugin-dispose.d.ts +12 -10
  146. package/dist/plugin-handlers/agent-config-handler.d.ts +0 -1
  147. package/dist/plugin-handlers/prometheus-agent-config-builder.d.ts +1 -1
  148. package/dist/plugin-state.d.ts +0 -5
  149. package/dist/shared/agent-display-names.d.ts +1 -0
  150. package/dist/shared/data-path.d.ts +1 -1
  151. package/dist/shared/dynamic-truncator.d.ts +7 -4
  152. package/dist/shared/external-plugin-detector.d.ts +7 -0
  153. package/dist/shared/index.d.ts +5 -3
  154. package/dist/shared/jsonc-parser.d.ts +4 -0
  155. package/dist/shared/mcp-local-command-normalizer.d.ts +1 -0
  156. package/dist/shared/migrate-legacy-config-file.d.ts +1 -0
  157. package/dist/shared/model-error-classifier.d.ts +1 -2
  158. package/dist/shared/opencode-command-dirs.d.ts +0 -1
  159. package/dist/shared/plugin-identity.d.ts +2 -3
  160. package/dist/shared/project-discovery-dirs.d.ts +4 -0
  161. package/dist/shared/session-model-state.d.ts +1 -2
  162. package/dist/shared/system-directive.d.ts +5 -6
  163. package/dist/tools/call-omo-agent/background-executor.d.ts +1 -2
  164. package/dist/tools/call-omo-agent/constants.d.ts +2 -2
  165. package/dist/tools/call-omo-agent/sync-executor.d.ts +3 -11
  166. package/dist/tools/call-omo-agent/tools.d.ts +2 -2
  167. package/dist/tools/call-omo-agent/types.d.ts +13 -0
  168. package/dist/tools/delegate-task/constants.d.ts +1 -1
  169. package/dist/tools/delegate-task/model-selection.d.ts +0 -1
  170. package/dist/tools/delegate-task/model-string-parser.d.ts +3 -1
  171. package/dist/tools/delegate-task/parent-context-resolver.d.ts +22 -0
  172. package/dist/tools/lsp/constants.d.ts +0 -1
  173. package/dist/tools/lsp/lsp-client-transport.d.ts +2 -4
  174. package/dist/tools/lsp/lsp-client-wrapper.d.ts +1 -2
  175. package/generated/skills-bundles/catalog.json +1 -1
  176. package/generated/skills-bundles/full/skills/data-analysis/experiment-monitoring/auto-claude__monitor-experiment/SKILL.md +56 -55
  177. package/generated/skills-bundles/full/skills/data-analysis/experiment-ops/auto-claude__run-experiment/SKILL.md +105 -104
  178. package/generated/skills-bundles/full/skills/data-analysis/optimization/auto-claude__dse-loop/SKILL.md +272 -271
  179. package/generated/skills-bundles/full/skills/data-analysis/statistics/auto-claude__analyze-results/SKILL.md +40 -39
  180. package/generated/skills-bundles/full/skills/data-analysis/visualization/auto-claude__paper-figure/SKILL.md +274 -273
  181. package/generated/skills-bundles/full/skills/productivity/visual-design/auto-claude__pixel-art/SKILL.md +131 -130
  182. package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-compile/SKILL.md +245 -244
  183. package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-plan/SKILL.md +247 -246
  184. package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/SKILL.md +303 -302
  185. package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/iclr2026.tex +84 -84
  186. package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/icml2025.tex +87 -87
  187. package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/math_commands.tex +48 -48
  188. package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/neurips2025.tex +80 -80
  189. package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-writing/SKILL.md +31 -31
  190. package/generated/skills-bundles/full/skills/research/literature-and-web-search/auto-claude__arxiv/SKILL.md +126 -125
  191. package/generated/skills-bundles/full/skills/research/literature-and-web-search/auto-claude__novelty-check/SKILL.md +80 -79
  192. package/generated/skills-bundles/full/skills/research/literature-and-web-search/auto-claude__research-lit/SKILL.md +187 -186
  193. package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__idea-creator/SKILL.md +11 -11
  194. package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__idea-discovery/SKILL.md +18 -18
  195. package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__idea-discovery-robot/SKILL.md +20 -20
  196. package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__research-pipeline/SKILL.md +15 -15
  197. package/generated/skills-bundles/full/skills/research/theory-writing/auto-claude__proof-writer/SKILL.md +217 -216
  198. package/generated/skills-bundles/paper/skills/data-analysis/experiment-monitoring/auto-claude__monitor-experiment/SKILL.md +56 -55
  199. package/generated/skills-bundles/paper/skills/data-analysis/experiment-ops/auto-claude__run-experiment/SKILL.md +105 -104
  200. package/generated/skills-bundles/paper/skills/data-analysis/optimization/auto-claude__dse-loop/SKILL.md +272 -271
  201. package/generated/skills-bundles/paper/skills/data-analysis/statistics/auto-claude__analyze-results/SKILL.md +40 -39
  202. package/generated/skills-bundles/paper/skills/data-analysis/visualization/auto-claude__paper-figure/SKILL.md +274 -273
  203. package/generated/skills-bundles/paper/skills/productivity/visual-design/auto-claude__pixel-art/SKILL.md +131 -130
  204. package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-compile/SKILL.md +245 -244
  205. package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-plan/SKILL.md +247 -246
  206. package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/SKILL.md +303 -302
  207. package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/iclr2026.tex +84 -84
  208. package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/icml2025.tex +87 -87
  209. package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/math_commands.tex +48 -48
  210. package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/neurips2025.tex +80 -80
  211. package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-writing/SKILL.md +31 -31
  212. package/generated/skills-bundles/paper/skills/research/literature-and-web-search/auto-claude__arxiv/SKILL.md +126 -125
  213. package/generated/skills-bundles/paper/skills/research/literature-and-web-search/auto-claude__novelty-check/SKILL.md +80 -79
  214. package/generated/skills-bundles/paper/skills/research/literature-and-web-search/auto-claude__research-lit/SKILL.md +187 -186
  215. package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__idea-creator/SKILL.md +11 -11
  216. package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__idea-discovery/SKILL.md +18 -18
  217. package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__idea-discovery-robot/SKILL.md +20 -20
  218. package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__research-pipeline/SKILL.md +15 -15
  219. package/generated/skills-bundles/paper/skills/research/theory-writing/auto-claude__proof-writer/SKILL.md +217 -216
  220. package/package.json +36 -32
  221. package/dist/cli/openai-only-model-catalog.d.ts +0 -3
  222. package/dist/cli/run/model-resolver.d.ts +0 -4
  223. package/dist/config/schema/git-env-prefix.d.ts +0 -5
  224. package/dist/features/background-agent/remove-task-toast-tracking.d.ts +0 -1
  225. package/dist/features/background-agent/subagent-spawn-limits.d.ts +0 -23
  226. package/dist/features/claude-code-agent-loader/claude-model-mapper.d.ts +0 -4
  227. package/dist/features/tmux-subagent/pane-state-parser.d.ts +0 -8
  228. package/dist/features/tmux-subagent/tracked-session-state.d.ts +0 -8
  229. package/dist/hooks/atlas/boulder-session-lineage.d.ts +0 -6
  230. package/dist/hooks/atlas/final-wave-approval-gate.d.ts +0 -4
  231. package/dist/hooks/atlas/idle-event.d.ts +0 -8
  232. package/dist/hooks/atlas/resolve-active-boulder-session.d.ts +0 -11
  233. package/dist/hooks/auto-slash-command/processed-command-store.d.ts +0 -7
  234. package/dist/hooks/auto-update-checker/checker/sync-package-json.d.ts +0 -7
  235. package/dist/hooks/compaction-context-injector/compaction-context-prompt.d.ts +0 -1
  236. package/dist/hooks/compaction-context-injector/constants.d.ts +0 -5
  237. package/dist/hooks/compaction-context-injector/recovery-prompt-config.d.ts +0 -6
  238. package/dist/hooks/compaction-context-injector/recovery.d.ts +0 -6
  239. package/dist/hooks/compaction-context-injector/session-id.d.ts +0 -2
  240. package/dist/hooks/compaction-context-injector/session-prompt-config-resolver.d.ts +0 -16
  241. package/dist/hooks/compaction-context-injector/tail-monitor.d.ts +0 -13
  242. package/dist/hooks/compaction-context-injector/types.d.ts +0 -43
  243. package/dist/hooks/compaction-context-injector/validated-model.d.ts +0 -13
  244. package/dist/hooks/delegate-task-english-directive/hook.d.ts +0 -14
  245. package/dist/hooks/delegate-task-english-directive/index.d.ts +0 -1
  246. package/dist/hooks/gpt-permission-continuation/assistant-message.d.ts +0 -23
  247. package/dist/hooks/gpt-permission-continuation/constants.d.ts +0 -4
  248. package/dist/hooks/gpt-permission-continuation/detector.d.ts +0 -1
  249. package/dist/hooks/gpt-permission-continuation/handler.d.ts +0 -12
  250. package/dist/hooks/gpt-permission-continuation/index.d.ts +0 -13
  251. package/dist/hooks/gpt-permission-continuation/session-state.d.ts +0 -15
  252. package/dist/hooks/ralph-loop/pending-verification-handler.d.ts +0 -16
  253. package/dist/hooks/runtime-fallback/fallback-bootstrap-model.d.ts +0 -10
  254. package/dist/hooks/runtime-fallback/fallback-retry-dispatcher.d.ts +0 -11
  255. package/dist/hooks/runtime-fallback/last-user-retry-parts.d.ts +0 -4
  256. package/dist/hooks/runtime-fallback/retry-model-payload.d.ts +0 -7
  257. package/dist/hooks/runtime-fallback/session-messages.d.ts +0 -9
  258. package/dist/hooks/runtime-fallback/session-status-handler.d.ts +0 -3
  259. package/dist/hooks/runtime-fallback/visible-assistant-response.d.ts +0 -3
  260. package/dist/hooks/session-notification-content.d.ts +0 -30
  261. package/dist/plugin/normalize-tool-arg-schemas.d.ts +0 -2
  262. package/dist/plugin/ultrawork-variant-availability.d.ts +0 -6
  263. package/dist/shared/compaction-agent-config-checkpoint.d.ts +0 -11
  264. package/dist/shared/context-limit-resolver.d.ts +0 -5
  265. package/dist/shared/fallback-chain-from-models.d.ts +0 -3
  266. package/dist/shared/question-denied-session-permission.d.ts +0 -6
  267. package/dist/shared/retry-status-utils.d.ts +0 -2
  268. package/dist/shared/vision-capable-models-cache.d.ts +0 -4
  269. package/dist/tools/delegate-task/cancel-unstable-agent-task.d.ts +0 -2
  270. package/dist/tools/look-at/multimodal-fallback-chain.d.ts +0 -4
  271. package/dist/tools/lsp/directory-diagnostics.d.ts +0 -1
  272. package/dist/tools/lsp/server-path-bases.d.ts +0 -1
@@ -6,305 +6,306 @@ allowed-tools: "Bash(*), Read, Write, Edit, Grep, Glob, Agent, WebSearch, WebFet
6
6
  metadata:
7
7
  category: "research/document-authoring"
8
8
  ---
9
- # Paper Write: Section-by-Section LaTeX Generation
10
-
11
- Draft a LaTeX paper based on: **$ARGUMENTS**
12
-
13
- ## Constants
14
-
15
- - **REVIEWER_MODEL = `gpt-5.4`** — Model used via Codex MCP for section review. Must be an OpenAI model.
16
- - **TARGET_VENUE = `ICLR`** — Default venue. Supported: `ICLR`, `NeurIPS`, `ICML`. Determines style file and formatting.
17
- - **ANONYMOUS = true**If true, use anonymous author block. Set `false` for camera-ready.
18
- - **MAX_PAGES = 9** — Main body page limit. Counts from first page to end of Conclusion section. References and appendix are NOT counted.
19
-
20
- ## Inputs
21
-
22
- 1. **PAPER_PLAN.md** — outline with claims-evidence matrix, section plan, figure plan (from `/paper-plan`)
23
- 2. **NARRATIVE_REPORT.md** — the research narrative (primary source of content)
24
- 3. **Generated figures** — PDF/PNG files in `figures/` (from `/paper-figure`)
25
- 4. **LaTeX includes** — `figures/latex_includes.tex` (from `/paper-figure`)
26
- 5. **Bibliography** — existing `.bib` file, or will create one
27
-
28
- If no PAPER_PLAN.md exists, ask the user to run `/paper-plan` first or provide a brief outline.
29
-
30
- ## Templates
31
-
32
- ### Venue-Specific Setup
33
-
34
- The skill includes conference templates in `templates/`. Select based on TARGET_VENUE:
35
-
36
- **ICLR:**
37
- ```latex
38
- \documentclass{article}
39
- \usepackage{iclr2026_conference,times}
40
- % \iclrfinalcopy % Uncomment for camera-ready
41
- ```
42
-
43
- **NeurIPS:**
44
- ```latex
45
- \documentclass{article}
46
- \usepackage[preprint]{neurips_2025}
47
- % \usepackage[final]{neurips_2025} % Camera-ready
48
- ```
49
-
50
- **ICML:**
51
- ```latex
52
- \documentclass[accepted]{icml2025}
53
- % Use [accepted] for camera-ready
54
- ```
55
-
56
- ### Project Structure
57
-
58
- Generate this file structure:
59
-
60
- ```
61
- paper/
62
- ├── main.tex # master file (includes sections)
63
- ├── iclr2026_conference.sty # or neurips_2025.sty / icml2025.sty
64
- ├── math_commands.tex # shared math macros
65
- ├── references.bib # bibliography (filtered — only cited entries)
66
- ├── sections/
67
- ├── 0_abstract.tex
68
- │ ├── 1_introduction.tex
69
- │ ├── 2_related_work.tex
70
- │ ├── 3_method.tex # or preliminaries, setup, etc.
71
- │ ├── 4_experiments.tex
72
- │ ├── 5_conclusion.tex
73
- └── A_appendix.tex # proof details, extra experiments
74
- └── figures/ # symlink or copy from project figures/
75
- ```
76
-
77
- **Section files are FLEXIBLE**: If the paper plan has 6-8 sections, create corresponding files (e.g., `4_theory.tex`, `5_experiments.tex`, `6_analysis.tex`, `7_conclusion.tex`).
78
-
79
- ## Workflow
80
-
81
- ### Step 0: Backup and Clean
82
-
83
- If `paper/` already exists, back up to `paper-backup-{timestamp}/` before overwriting. Never silently destroy existing work.
84
-
85
- **CRITICAL: Clean stale files.** When changing section structure (e.g., 5 sections → 7 sections), delete section files that are no longer referenced by `main.tex`. Stale files (e.g., old `5_conclusion.tex` left behind when conclusion moved to `7_conclusion.tex`) cause confusion and waste space.
86
-
87
- ### Step 1: Initialize Project
88
-
89
- 1. Create `paper/` directory
90
- 2. Copy venue template from `templates/` — the template already includes:
91
- - All standard packages (amsmath, hyperref, cleveref, booktabs, etc.)
92
- - Theorem environments with `\crefname{assumption}` fix
93
- - Anonymous author block
94
- 3. Generate `math_commands.tex` with paper-specific notation
95
- 4. Create section files matching PAPER_PLAN structure
96
-
97
- **Author block (anonymous mode):**
98
- ```latex
99
- \author{Anonymous Authors}
100
- ```
101
-
102
- ### Step 2: Generate math_commands.tex
103
-
104
- Create shared math macros based on the paper's notation:
105
-
106
- ```latex
107
- % math_commands.tex — shared notation
108
- \newcommand{\R}{\mathbb{R}}
109
- \newcommand{\E}{\mathbb{E}}
110
- \DeclareMathOperator*{\argmin}{arg\,min}
111
- \DeclareMathOperator*{\argmax}{arg\,max}
112
- % Add paper-specific notation here
113
- ```
114
-
115
- ### Step 3: Write Each Section
116
-
117
- Process sections in order. For each section:
118
-
119
- 1. **Read the plan** — what claims, evidence, citations belong here
120
- 2. **Read NARRATIVE_REPORT.md** — extract relevant content, findings, and quantitative results
121
- 3. **Draft content** — write complete LaTeX (not placeholders)
122
- 4. **Insert figures/tables** — use snippets from `figures/latex_includes.tex`
123
- 5. **Add citations** — use `\citep{}` / `\citet{}` (all three venues use `natbib`)
124
-
125
- #### Section-Specific Guidelines
126
-
127
- **§0 Abstract:**
128
- - Must be self-contained (understandable without reading the paper)
129
- - Structure: problem approach key result → implication
130
- - Include one concrete quantitative result
131
- - 150-250 words (check venue limit)
132
- - No citations, no undefined acronyms
133
- - No `\begin{abstract}` that's in main.tex
134
-
135
- **§1 Introduction:**
136
- - Open with a compelling hook (1-2 sentences, problem motivation)
137
- - State the gap clearly ("However, ...")
138
- - List contributions as a numbered or bulleted list
139
- - End with a brief roadmap ("The rest of this paper is organized as...")
140
- - Include the main result figure if space allows
141
- - Target: 1.5 pages
142
-
143
- **§2 Related Work:**
144
- - **MINIMUM 1 full page** (3-4 substantive paragraphs). Short related work sections are a common reviewer complaint.
145
- - Organize by category using `\paragraph{Category Name.}`
146
- - Each category: 1 paragraph summarizing the line of work + 1-2 sentences positioning this paper
147
- - Do NOT just list papers synthesize and compare
148
- - End each paragraph with how this paper relates/differs
149
-
150
- **§3 Method / Preliminaries / Setup:**
151
- - Define notation early (reference math_commands.tex)
152
- - Use `\begin{definition}`, `\begin{theorem}` environments for formal statements
153
- - For theory papers: include proof sketches of key results in main body, full proofs in appendix
154
- - For theory papers: include a **comparison table** of prior bounds vs. this paper
155
- - Include algorithm pseudocode if applicable (`algorithm2e` or `algorithmic`)
156
- - Target: 1.5-2 pages
157
-
158
- **§4 Experiments:**
159
- - Start with experimental setup (datasets, baselines, metrics, implementation details)
160
- - Main results table/figure first
161
- - Then ablations and analysis
162
- - Every claim from the introduction must have supporting evidence here
163
- - Target: 2.5-3 pages
164
-
165
- **§5 Conclusion:**
166
- - Summarize contributions (NOT copy-paste from intro — rephrase)
167
- - Limitations (be honest reviewers appreciate this)
168
- - Future work (1-2 concrete directions)
169
- - Ethics statement and reproducibility statement (if venue requires)
170
- - Target: 0.5 pages
171
-
172
- **Appendix:**
173
- - Proof details (full proofs of main-body theorems)
174
- - Additional experiments, ablations
175
- - Implementation details, hyperparameter tables
176
- - Additional visualizations
177
-
178
- ### Step 4: Build Bibliography
179
-
180
- **CRITICAL: Only include entries that are actually cited in the paper.**
181
-
182
- 1. Scan all `\citep{}` and `\citet{}` references in the drafted sections
183
- 2. Build a citation key list
184
- 3. For each citation key:
185
- - Check existing `.bib` files in the project/narrative docs
186
- - If not found, search arXiv/Scholar for correct BibTeX
187
- - **NEVER fabricate BibTeX entries** mark unknown ones with `[VERIFY]` comment
188
- 4. Write `references.bib` containing ONLY cited entries (no bloat)
189
-
190
- **Automated bib cleaning** — use this Python pattern to extract only cited entries:
191
-
192
- ```python
193
- import re
194
- # 1. Grep all \citep{...} and \citet{...} from all .tex files
195
- # 2. Extract unique keys (handle multi-cite like \citep{a,b,c})
196
- # 3. Parse the full .bib file, keep only entries whose key is in the cited set
197
- # 4. Write the filtered bib
198
- ```
199
-
200
- This prevents bib bloat (e.g., 948 lines → 215 lines in testing).
201
-
202
- **Citation verification rules (from claude-scholar + Imbad0202):**
203
- 1. Every BibTeX entry must have: author, title, year, venue/journal
204
- 2. Prefer published venue versions over arXiv preprints (if published)
205
- 3. Use consistent key format: `{firstauthor}{year}{keyword}` (e.g., `ho2020denoising`)
206
- 4. Double-check year and venue for every entry
207
- 5. Remove duplicate entries (same paper with different keys)
208
-
209
- ### Step 5: De-AI Polish (from kgraph57/paper-writer-skill)
210
-
211
- After drafting all sections, scan for common AI writing patterns and fix them:
212
-
213
- **Content patterns to fix:**
214
- - Significance inflation ("groundbreaking", "revolutionary" → use measured language)
215
- - Formulaic transitions ("In this section, we..." → remove or vary)
216
- - Generic conclusions ("This work opens exciting new avenues" → be specific)
217
-
218
- **Language patterns to fix (watch words):**
219
- - Replace: delve, pivotal, landscape, tapestry, underscore, noteworthy, intriguingly
220
- - Remove filler: "It is worth noting that", "Importantly,", "Notably,"
221
- - Avoid rule-of-three lists ("X, Y, and Z" appearing repeatedly)
222
- - Don't start consecutive sentences with "This" or "We"
223
-
224
- ### Step 6: Cross-Review with REVIEWER_MODEL
225
-
226
- Send the complete draft to GPT-5.4 xhigh:
227
-
228
- ```
229
- mcp__codex__codex:
230
- model: gpt-5.4
231
- config: {"model_reasoning_effort": "xhigh"}
232
- prompt: |
233
- Review this [VENUE] paper draft (main body, excluding appendix).
234
-
235
- Focus on:
236
- 1. Does each claim from the intro have supporting evidence?
237
- 2. Is the writing clear, concise, and free of AI-isms?
238
- 3. Any logical gaps or unclear explanations?
239
- 4. Does it fit within [MAX_PAGES] pages (to end of Conclusion)?
240
- 5. Is related work sufficiently comprehensive (≥1 page)?
241
- 6. For theory papers: are proof sketches adequate?
242
- 7. Are figures/tables clearly described and properly referenced?
243
-
244
- For each issue, specify: severity (CRITICAL/MAJOR/MINOR), location, and fix.
245
-
246
- [paste full draft text]
247
- ```
248
-
249
- Apply CRITICAL and MAJOR fixes. Document MINOR issues for the user.
250
-
251
- ### Step 7: Reverse Outline Test (from Research-Paper-Writing-Skills)
252
-
253
- After drafting all sections:
254
-
255
- 1. **Extract topic sentences** — pull the first sentence of every paragraph
256
- 2. **Read them in sequence** — they should form a coherent narrative on their own
257
- 3. **Check claim coverage** — every claim from the Claims-Evidence Matrix must appear
258
- 4. **Check evidence mapping** — every experiment/figure must support a stated claim
259
- 5. **Fix gaps** — if a topic sentence doesn't advance the story, rewrite the paragraph
260
-
261
- ### Step 8: Final Checks
262
-
263
- Before declaring done:
264
-
265
- - [ ] All `\ref{}` and `\label{}` match (no undefined references)
266
- - [ ] All `\citep{}` / `\citet{}` have corresponding BibTeX entries
267
- - [ ] No author information in anonymous mode
268
- - [ ] Figure/table numbering is correct
269
- - [ ] Page count within MAX_PAGES (main body to Conclusion end)
270
- - [ ] No TODO/FIXME/XXX markers left in the text
271
- - [ ] No `[VERIFY]` markers left unchecked
272
- - [ ] Abstract is self-contained (understandable without reading the paper)
273
- - [ ] Title is specific and informative (not generic)
274
- - [ ] Related work is ≥1 full page
275
- - [ ] references.bib contains ONLY cited entries (no bloat)
276
- - [ ] **No stale section files** — every .tex in `sections/` is `\input`ed by `main.tex`
277
- - [ ] **Section files match main.tex** file numbering and `\input` paths are consistent
278
-
279
- ## Key Rules
280
-
281
- - **Do NOT generate author names, emails, or affiliations** — use anonymous block or placeholder
282
- - **Write complete sections, not outlines** — the output should be compilable LaTeX
283
- - **One file per section** — modular structure for easy editing
284
- - **Every claim must cite evidence** — cross-reference the Claims-Evidence Matrix
285
- - **Compile-ready** the output should compile with `latexmk` without errors (modulo missing figures)
286
- - **No over-claiming** — use hedging language ("suggests", "indicates") for weak evidence
287
- - **Venue style matters** — all three venues (ICLR/NeurIPS/ICML) use `natbib` (`\citep`/`\citet`)
288
- - **Page limit = main body to Conclusion** — references and appendix do NOT count
289
- - **Clean bib** — references.bib must only contain entries that are actually `\cite`d
290
- - **Section count is flexible** — match PAPER_PLAN structure, don't force into 5 sections
291
- - **Backup before overwrite** — never destroy existing `paper/` directory without backing up
292
-
293
- ## Writing Quality Reference
294
-
295
- Principles from [Research-Paper-Writing-Skills](https://github.com/Master-cai/Research-Paper-Writing-Skills):
296
-
297
- 1. **One message per paragraph** — each paragraph makes exactly one point
298
- 2. **Topic sentence first** — the first sentence states the paragraph's message
299
- 3. **Explicit transitions** — connect paragraphs with logical connectors
300
- 4. **Reverse outline test** — extract topic sentences; they should form a coherent narrative
301
-
302
- De-AI patterns from [kgraph57/paper-writer-skill](https://github.com/kgraph57/paper-writer-skill):
303
-
304
- 5. **No AI watch words** — delve, pivotal, landscape, tapestry, underscore
305
- 6. **No significance inflation** — groundbreaking, revolutionary, paradigm shift
306
- 7. **No formulaic structures** — vary sentence openings and transitions
307
-
308
- ## Acknowledgements
309
-
310
- Writing methodology adapted from [Research-Paper-Writing-Skills](https://github.com/Master-cai/Research-Paper-Writing-Skills) (CCF award-winning methodology). Citation verification from [claude-scholar](https://github.com/Galaxy-Dawn/claude-scholar) and [Imbad0202/academic-research-skills](https://github.com/Imbad0202/academic-research-skills). De-AI polish from [kgraph57/paper-writer-skill](https://github.com/kgraph57/paper-writer-skill). Backup mechanism from [baoyu-skills](https://github.com/jimliu/baoyu-skills).
9
+
10
+ # Paper Write: Section-by-Section LaTeX Generation
11
+
12
+ Draft a LaTeX paper based on: **$ARGUMENTS**
13
+
14
+ ## Constants
15
+
16
+ - **REVIEWER_MODEL = `gpt-5.4`** — Model used via Codex MCP for section review. Must be an OpenAI model.
17
+ - **TARGET_VENUE = `ICLR`**Default venue. Supported: `ICLR`, `NeurIPS`, `ICML`. Determines style file and formatting.
18
+ - **ANONYMOUS = true** — If true, use anonymous author block. Set `false` for camera-ready.
19
+ - **MAX_PAGES = 9** — Main body page limit. Counts from first page to end of Conclusion section. References and appendix are NOT counted.
20
+
21
+ ## Inputs
22
+
23
+ 1. **PAPER_PLAN.md** — outline with claims-evidence matrix, section plan, figure plan (from `/paper-plan`)
24
+ 2. **NARRATIVE_REPORT.md** — the research narrative (primary source of content)
25
+ 3. **Generated figures** — PDF/PNG files in `figures/` (from `/paper-figure`)
26
+ 4. **LaTeX includes** — `figures/latex_includes.tex` (from `/paper-figure`)
27
+ 5. **Bibliography** — existing `.bib` file, or will create one
28
+
29
+ If no PAPER_PLAN.md exists, ask the user to run `/paper-plan` first or provide a brief outline.
30
+
31
+ ## Templates
32
+
33
+ ### Venue-Specific Setup
34
+
35
+ The skill includes conference templates in `templates/`. Select based on TARGET_VENUE:
36
+
37
+ **ICLR:**
38
+ ```latex
39
+ \documentclass{article}
40
+ \usepackage{iclr2026_conference,times}
41
+ % \iclrfinalcopy % Uncomment for camera-ready
42
+ ```
43
+
44
+ **NeurIPS:**
45
+ ```latex
46
+ \documentclass{article}
47
+ \usepackage[preprint]{neurips_2025}
48
+ % \usepackage[final]{neurips_2025} % Camera-ready
49
+ ```
50
+
51
+ **ICML:**
52
+ ```latex
53
+ \documentclass[accepted]{icml2025}
54
+ % Use [accepted] for camera-ready
55
+ ```
56
+
57
+ ### Project Structure
58
+
59
+ Generate this file structure:
60
+
61
+ ```
62
+ paper/
63
+ ├── main.tex # master file (includes sections)
64
+ ├── iclr2026_conference.sty # or neurips_2025.sty / icml2025.sty
65
+ ├── math_commands.tex # shared math macros
66
+ ├── references.bib # bibliography (filtered — only cited entries)
67
+ ├── sections/
68
+ │ ├── 0_abstract.tex
69
+ │ ├── 1_introduction.tex
70
+ │ ├── 2_related_work.tex
71
+ │ ├── 3_method.tex # or preliminaries, setup, etc.
72
+ │ ├── 4_experiments.tex
73
+ ├── 5_conclusion.tex
74
+ └── A_appendix.tex # proof details, extra experiments
75
+ └── figures/ # symlink or copy from project figures/
76
+ ```
77
+
78
+ **Section files are FLEXIBLE**: If the paper plan has 6-8 sections, create corresponding files (e.g., `4_theory.tex`, `5_experiments.tex`, `6_analysis.tex`, `7_conclusion.tex`).
79
+
80
+ ## Workflow
81
+
82
+ ### Step 0: Backup and Clean
83
+
84
+ If `paper/` already exists, back up to `paper-backup-{timestamp}/` before overwriting. Never silently destroy existing work.
85
+
86
+ **CRITICAL: Clean stale files.** When changing section structure (e.g., 5 sections → 7 sections), delete section files that are no longer referenced by `main.tex`. Stale files (e.g., old `5_conclusion.tex` left behind when conclusion moved to `7_conclusion.tex`) cause confusion and waste space.
87
+
88
+ ### Step 1: Initialize Project
89
+
90
+ 1. Create `paper/` directory
91
+ 2. Copy venue template from `templates/` the template already includes:
92
+ - All standard packages (amsmath, hyperref, cleveref, booktabs, etc.)
93
+ - Theorem environments with `\crefname{assumption}` fix
94
+ - Anonymous author block
95
+ 3. Generate `math_commands.tex` with paper-specific notation
96
+ 4. Create section files matching PAPER_PLAN structure
97
+
98
+ **Author block (anonymous mode):**
99
+ ```latex
100
+ \author{Anonymous Authors}
101
+ ```
102
+
103
+ ### Step 2: Generate math_commands.tex
104
+
105
+ Create shared math macros based on the paper's notation:
106
+
107
+ ```latex
108
+ % math_commands.tex — shared notation
109
+ \newcommand{\R}{\mathbb{R}}
110
+ \newcommand{\E}{\mathbb{E}}
111
+ \DeclareMathOperator*{\argmin}{arg\,min}
112
+ \DeclareMathOperator*{\argmax}{arg\,max}
113
+ % Add paper-specific notation here
114
+ ```
115
+
116
+ ### Step 3: Write Each Section
117
+
118
+ Process sections in order. For each section:
119
+
120
+ 1. **Read the plan** — what claims, evidence, citations belong here
121
+ 2. **Read NARRATIVE_REPORT.md** — extract relevant content, findings, and quantitative results
122
+ 3. **Draft content** — write complete LaTeX (not placeholders)
123
+ 4. **Insert figures/tables** — use snippets from `figures/latex_includes.tex`
124
+ 5. **Add citations** — use `\citep{}` / `\citet{}` (all three venues use `natbib`)
125
+
126
+ #### Section-Specific Guidelines
127
+
128
+ **§0 Abstract:**
129
+ - Must be self-contained (understandable without reading the paper)
130
+ - Structure: problem approach → key result → implication
131
+ - Include one concrete quantitative result
132
+ - 150-250 words (check venue limit)
133
+ - No citations, no undefined acronyms
134
+ - No `\begin{abstract}` — that's in main.tex
135
+
136
+ **§1 Introduction:**
137
+ - Open with a compelling hook (1-2 sentences, problem motivation)
138
+ - State the gap clearly ("However, ...")
139
+ - List contributions as a numbered or bulleted list
140
+ - End with a brief roadmap ("The rest of this paper is organized as...")
141
+ - Include the main result figure if space allows
142
+ - Target: 1.5 pages
143
+
144
+ **§2 Related Work:**
145
+ - **MINIMUM 1 full page** (3-4 substantive paragraphs). Short related work sections are a common reviewer complaint.
146
+ - Organize by category using `\paragraph{Category Name.}`
147
+ - Each category: 1 paragraph summarizing the line of work + 1-2 sentences positioning this paper
148
+ - Do NOT just list papers synthesize and compare
149
+ - End each paragraph with how this paper relates/differs
150
+
151
+ **§3 Method / Preliminaries / Setup:**
152
+ - Define notation early (reference math_commands.tex)
153
+ - Use `\begin{definition}`, `\begin{theorem}` environments for formal statements
154
+ - For theory papers: include proof sketches of key results in main body, full proofs in appendix
155
+ - For theory papers: include a **comparison table** of prior bounds vs. this paper
156
+ - Include algorithm pseudocode if applicable (`algorithm2e` or `algorithmic`)
157
+ - Target: 1.5-2 pages
158
+
159
+ **§4 Experiments:**
160
+ - Start with experimental setup (datasets, baselines, metrics, implementation details)
161
+ - Main results table/figure first
162
+ - Then ablations and analysis
163
+ - Every claim from the introduction must have supporting evidence here
164
+ - Target: 2.5-3 pages
165
+
166
+ **§5 Conclusion:**
167
+ - Summarize contributions (NOT copy-paste from intro rephrase)
168
+ - Limitations (be honest — reviewers appreciate this)
169
+ - Future work (1-2 concrete directions)
170
+ - Ethics statement and reproducibility statement (if venue requires)
171
+ - Target: 0.5 pages
172
+
173
+ **Appendix:**
174
+ - Proof details (full proofs of main-body theorems)
175
+ - Additional experiments, ablations
176
+ - Implementation details, hyperparameter tables
177
+ - Additional visualizations
178
+
179
+ ### Step 4: Build Bibliography
180
+
181
+ **CRITICAL: Only include entries that are actually cited in the paper.**
182
+
183
+ 1. Scan all `\citep{}` and `\citet{}` references in the drafted sections
184
+ 2. Build a citation key list
185
+ 3. For each citation key:
186
+ - Check existing `.bib` files in the project/narrative docs
187
+ - If not found, search arXiv/Scholar for correct BibTeX
188
+ - **NEVER fabricate BibTeX entries** mark unknown ones with `[VERIFY]` comment
189
+ 4. Write `references.bib` containing ONLY cited entries (no bloat)
190
+
191
+ **Automated bib cleaning** — use this Python pattern to extract only cited entries:
192
+
193
+ ```python
194
+ import re
195
+ # 1. Grep all \citep{...} and \citet{...} from all .tex files
196
+ # 2. Extract unique keys (handle multi-cite like \citep{a,b,c})
197
+ # 3. Parse the full .bib file, keep only entries whose key is in the cited set
198
+ # 4. Write the filtered bib
199
+ ```
200
+
201
+ This prevents bib bloat (e.g., 948 lines → 215 lines in testing).
202
+
203
+ **Citation verification rules (from claude-scholar + Imbad0202):**
204
+ 1. Every BibTeX entry must have: author, title, year, venue/journal
205
+ 2. Prefer published venue versions over arXiv preprints (if published)
206
+ 3. Use consistent key format: `{firstauthor}{year}{keyword}` (e.g., `ho2020denoising`)
207
+ 4. Double-check year and venue for every entry
208
+ 5. Remove duplicate entries (same paper with different keys)
209
+
210
+ ### Step 5: De-AI Polish (from kgraph57/paper-writer-skill)
211
+
212
+ After drafting all sections, scan for common AI writing patterns and fix them:
213
+
214
+ **Content patterns to fix:**
215
+ - Significance inflation ("groundbreaking", "revolutionary"use measured language)
216
+ - Formulaic transitions ("In this section, we..." → remove or vary)
217
+ - Generic conclusions ("This work opens exciting new avenues" → be specific)
218
+
219
+ **Language patterns to fix (watch words):**
220
+ - Replace: delve, pivotal, landscape, tapestry, underscore, noteworthy, intriguingly
221
+ - Remove filler: "It is worth noting that", "Importantly,", "Notably,"
222
+ - Avoid rule-of-three lists ("X, Y, and Z" appearing repeatedly)
223
+ - Don't start consecutive sentences with "This" or "We"
224
+
225
+ ### Step 6: Cross-Review with REVIEWER_MODEL
226
+
227
+ Send the complete draft to GPT-5.4 xhigh:
228
+
229
+ ```
230
+ mcp__codex__codex:
231
+ model: gpt-5.4
232
+ config: {"model_reasoning_effort": "xhigh"}
233
+ prompt: |
234
+ Review this [VENUE] paper draft (main body, excluding appendix).
235
+
236
+ Focus on:
237
+ 1. Does each claim from the intro have supporting evidence?
238
+ 2. Is the writing clear, concise, and free of AI-isms?
239
+ 3. Any logical gaps or unclear explanations?
240
+ 4. Does it fit within [MAX_PAGES] pages (to end of Conclusion)?
241
+ 5. Is related work sufficiently comprehensive (≥1 page)?
242
+ 6. For theory papers: are proof sketches adequate?
243
+ 7. Are figures/tables clearly described and properly referenced?
244
+
245
+ For each issue, specify: severity (CRITICAL/MAJOR/MINOR), location, and fix.
246
+
247
+ [paste full draft text]
248
+ ```
249
+
250
+ Apply CRITICAL and MAJOR fixes. Document MINOR issues for the user.
251
+
252
+ ### Step 7: Reverse Outline Test (from Research-Paper-Writing-Skills)
253
+
254
+ After drafting all sections:
255
+
256
+ 1. **Extract topic sentences** — pull the first sentence of every paragraph
257
+ 2. **Read them in sequence** — they should form a coherent narrative on their own
258
+ 3. **Check claim coverage** — every claim from the Claims-Evidence Matrix must appear
259
+ 4. **Check evidence mapping** — every experiment/figure must support a stated claim
260
+ 5. **Fix gaps** — if a topic sentence doesn't advance the story, rewrite the paragraph
261
+
262
+ ### Step 8: Final Checks
263
+
264
+ Before declaring done:
265
+
266
+ - [ ] All `\ref{}` and `\label{}` match (no undefined references)
267
+ - [ ] All `\citep{}` / `\citet{}` have corresponding BibTeX entries
268
+ - [ ] No author information in anonymous mode
269
+ - [ ] Figure/table numbering is correct
270
+ - [ ] Page count within MAX_PAGES (main body to Conclusion end)
271
+ - [ ] No TODO/FIXME/XXX markers left in the text
272
+ - [ ] No `[VERIFY]` markers left unchecked
273
+ - [ ] Abstract is self-contained (understandable without reading the paper)
274
+ - [ ] Title is specific and informative (not generic)
275
+ - [ ] Related work is ≥1 full page
276
+ - [ ] references.bib contains ONLY cited entries (no bloat)
277
+ - [ ] **No stale section files** every .tex in `sections/` is `\input`ed by `main.tex`
278
+ - [ ] **Section files match main.tex** — file numbering and `\input` paths are consistent
279
+
280
+ ## Key Rules
281
+
282
+ - **Do NOT generate author names, emails, or affiliations** — use anonymous block or placeholder
283
+ - **Write complete sections, not outlines** — the output should be compilable LaTeX
284
+ - **One file per section** — modular structure for easy editing
285
+ - **Every claim must cite evidence** cross-reference the Claims-Evidence Matrix
286
+ - **Compile-ready** — the output should compile with `latexmk` without errors (modulo missing figures)
287
+ - **No over-claiming** — use hedging language ("suggests", "indicates") for weak evidence
288
+ - **Venue style matters** — all three venues (ICLR/NeurIPS/ICML) use `natbib` (`\citep`/`\citet`)
289
+ - **Page limit = main body to Conclusion** — references and appendix do NOT count
290
+ - **Clean bib** — references.bib must only contain entries that are actually `\cite`d
291
+ - **Section count is flexible** — match PAPER_PLAN structure, don't force into 5 sections
292
+ - **Backup before overwrite** — never destroy existing `paper/` directory without backing up
293
+
294
+ ## Writing Quality Reference
295
+
296
+ Principles from [Research-Paper-Writing-Skills](https://github.com/Master-cai/Research-Paper-Writing-Skills):
297
+
298
+ 1. **One message per paragraph** — each paragraph makes exactly one point
299
+ 2. **Topic sentence first** — the first sentence states the paragraph's message
300
+ 3. **Explicit transitions** — connect paragraphs with logical connectors
301
+ 4. **Reverse outline test** — extract topic sentences; they should form a coherent narrative
302
+
303
+ De-AI patterns from [kgraph57/paper-writer-skill](https://github.com/kgraph57/paper-writer-skill):
304
+
305
+ 5. **No AI watch words** — delve, pivotal, landscape, tapestry, underscore
306
+ 6. **No significance inflation** — groundbreaking, revolutionary, paradigm shift
307
+ 7. **No formulaic structures** — vary sentence openings and transitions
308
+
309
+ ## Acknowledgements
310
+
311
+ Writing methodology adapted from [Research-Paper-Writing-Skills](https://github.com/Master-cai/Research-Paper-Writing-Skills) (CCF award-winning methodology). Citation verification from [claude-scholar](https://github.com/Galaxy-Dawn/claude-scholar) and [Imbad0202/academic-research-skills](https://github.com/Imbad0202/academic-research-skills). De-AI polish from [kgraph57/paper-writer-skill](https://github.com/kgraph57/paper-writer-skill). Backup mechanism from [baoyu-skills](https://github.com/jimliu/baoyu-skills).