@bohuyeshan/openagent-labforge-core 3.11.1 → 3.11.3

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 (226) hide show
  1. package/README.ja.md +34 -27
  2. package/README.ko.md +34 -27
  3. package/README.md +245 -188
  4. package/README.ru.md +28 -21
  5. package/README.zh-cn.md +245 -188
  6. package/bin/platform.test.ts +21 -20
  7. package/dist/agents/atlas/default.d.ts +1 -1
  8. package/dist/agents/atlas/gemini.d.ts +1 -1
  9. package/dist/agents/atlas/gpt.d.ts +1 -1
  10. package/dist/agents/bio-methodologist.d.ts +1 -1
  11. package/dist/agents/bio-pipeline-operator.d.ts +1 -1
  12. package/dist/agents/builtin-agents/general-agents.d.ts +1 -0
  13. package/dist/agents/dynamic-agent-prompt-builder.d.ts +2 -0
  14. package/dist/agents/env-context.d.ts +1 -1
  15. package/dist/agents/index.d.ts +1 -0
  16. package/dist/agents/metis.d.ts +1 -1
  17. package/dist/agents/prometheus/gemini.d.ts +1 -1
  18. package/dist/agents/prometheus/gpt.d.ts +1 -1
  19. package/dist/agents/prometheus/interview-mode.d.ts +1 -1
  20. package/dist/agents/prometheus/plan-generation.d.ts +1 -1
  21. package/dist/agents/prometheus/plan-template.d.ts +1 -1
  22. package/dist/agents/prometheus/system-prompt.d.ts +1 -1
  23. package/dist/agents/types.d.ts +1 -1
  24. package/dist/cli/config-manager/bun-install.d.ts +6 -1
  25. package/dist/cli/config-manager/plugin-name-with-version.d.ts +1 -1
  26. package/dist/cli/doctor/constants.d.ts +1 -1
  27. package/dist/cli/index.js +763 -467
  28. package/dist/cli/install-validators.d.ts +1 -0
  29. package/dist/cli/model-fallback-types.d.ts +1 -0
  30. package/dist/cli/openai-only-model-catalog.d.ts +3 -0
  31. package/dist/cli/run/index.d.ts +1 -0
  32. package/dist/cli/run/model-resolver.d.ts +4 -0
  33. package/dist/cli/run/types.d.ts +1 -0
  34. package/dist/cli/types.d.ts +3 -0
  35. package/dist/config/schema/agent-names.d.ts +3 -1
  36. package/dist/config/schema/background-task.d.ts +2 -0
  37. package/dist/config/schema/git-env-prefix.d.ts +5 -0
  38. package/dist/config/schema/git-master.d.ts +1 -0
  39. package/dist/config/schema/hooks.d.ts +2 -0
  40. package/dist/config/schema/oh-my-opencode-config.d.ts +54 -1
  41. package/dist/config/schema.d.ts +1 -0
  42. package/dist/create-hooks.d.ts +13 -0
  43. package/dist/features/background-agent/compaction-aware-message-resolver.d.ts +16 -1
  44. package/dist/features/background-agent/constants.d.ts +1 -1
  45. package/dist/features/background-agent/manager.d.ts +20 -4
  46. package/dist/features/background-agent/process-cleanup.d.ts +1 -1
  47. package/dist/features/background-agent/remove-task-toast-tracking.d.ts +1 -0
  48. package/dist/features/background-agent/subagent-spawn-limits.d.ts +23 -0
  49. package/dist/features/background-agent/task-history.d.ts +1 -0
  50. package/dist/features/background-agent/task-poller.d.ts +1 -0
  51. package/dist/features/background-agent/types.d.ts +4 -0
  52. package/dist/features/claude-code-agent-loader/claude-model-mapper.d.ts +4 -0
  53. package/dist/features/claude-code-agent-loader/loader.d.ts +3 -3
  54. package/dist/features/claude-code-agent-loader/types.d.ts +8 -1
  55. package/dist/features/claude-code-plugin-loader/agent-loader.d.ts +2 -2
  56. package/dist/features/claude-code-plugin-loader/loader.d.ts +2 -2
  57. package/dist/features/claude-code-plugin-loader/types.d.ts +1 -1
  58. package/dist/features/opencode-skill-loader/git-master-template-injection.d.ts +1 -1
  59. package/dist/features/skill-mcp-manager/types.d.ts +4 -0
  60. package/dist/features/tmux-subagent/index.d.ts +1 -0
  61. package/dist/features/tmux-subagent/manager.d.ts +5 -0
  62. package/dist/features/tmux-subagent/pane-state-parser.d.ts +8 -0
  63. package/dist/features/tmux-subagent/tracked-session-state.d.ts +8 -0
  64. package/dist/features/tmux-subagent/types.d.ts +2 -0
  65. package/dist/hooks/atlas/boulder-session-lineage.d.ts +6 -0
  66. package/dist/hooks/atlas/final-wave-approval-gate.d.ts +4 -0
  67. package/dist/hooks/atlas/idle-event.d.ts +8 -0
  68. package/dist/hooks/atlas/resolve-active-boulder-session.d.ts +11 -0
  69. package/dist/hooks/atlas/tool-execute-after.d.ts +2 -0
  70. package/dist/hooks/atlas/types.d.ts +2 -0
  71. package/dist/hooks/atlas/verification-reminders.d.ts +4 -0
  72. package/dist/hooks/auto-slash-command/hook.d.ts +7 -0
  73. package/dist/hooks/auto-slash-command/processed-command-store.d.ts +7 -0
  74. package/dist/hooks/auto-update-checker/checker/sync-package-json.d.ts +7 -0
  75. package/dist/hooks/auto-update-checker/checker.d.ts +3 -1
  76. package/dist/hooks/auto-update-checker/constants.d.ts +2 -2
  77. package/dist/hooks/comment-checker/downloader.d.ts +1 -1
  78. package/dist/hooks/compaction-context-injector/compaction-context-prompt.d.ts +1 -0
  79. package/dist/hooks/compaction-context-injector/constants.d.ts +5 -0
  80. package/dist/hooks/compaction-context-injector/hook.d.ts +5 -1
  81. package/dist/hooks/compaction-context-injector/recovery-prompt-config.d.ts +6 -0
  82. package/dist/hooks/compaction-context-injector/recovery.d.ts +6 -0
  83. package/dist/hooks/compaction-context-injector/session-id.d.ts +2 -0
  84. package/dist/hooks/compaction-context-injector/session-prompt-config-resolver.d.ts +16 -0
  85. package/dist/hooks/compaction-context-injector/tail-monitor.d.ts +13 -0
  86. package/dist/hooks/compaction-context-injector/types.d.ts +43 -0
  87. package/dist/hooks/compaction-context-injector/validated-model.d.ts +13 -0
  88. package/dist/hooks/context-window-monitor.d.ts +2 -5
  89. package/dist/hooks/delegate-task-english-directive/hook.d.ts +14 -0
  90. package/dist/hooks/delegate-task-english-directive/index.d.ts +1 -0
  91. package/dist/hooks/gpt-permission-continuation/assistant-message.d.ts +23 -0
  92. package/dist/hooks/gpt-permission-continuation/constants.d.ts +4 -0
  93. package/dist/hooks/gpt-permission-continuation/detector.d.ts +1 -0
  94. package/dist/hooks/gpt-permission-continuation/handler.d.ts +12 -0
  95. package/dist/hooks/gpt-permission-continuation/index.d.ts +13 -0
  96. package/dist/hooks/gpt-permission-continuation/session-state.d.ts +15 -0
  97. package/dist/hooks/index.d.ts +2 -0
  98. package/dist/hooks/keyword-detector/hook.d.ts +1 -0
  99. package/dist/hooks/preemptive-compaction.d.ts +2 -5
  100. package/dist/hooks/ralph-loop/pending-verification-handler.d.ts +16 -0
  101. package/dist/hooks/runtime-fallback/fallback-bootstrap-model.d.ts +10 -0
  102. package/dist/hooks/runtime-fallback/fallback-retry-dispatcher.d.ts +11 -0
  103. package/dist/hooks/runtime-fallback/hook.d.ts +2 -3
  104. package/dist/hooks/runtime-fallback/last-user-retry-parts.d.ts +4 -0
  105. package/dist/hooks/runtime-fallback/message-update-handler.d.ts +1 -2
  106. package/dist/hooks/runtime-fallback/retry-model-payload.d.ts +7 -0
  107. package/dist/hooks/runtime-fallback/session-messages.d.ts +9 -0
  108. package/dist/hooks/runtime-fallback/session-status-handler.d.ts +3 -0
  109. package/dist/hooks/runtime-fallback/types.d.ts +57 -3
  110. package/dist/hooks/runtime-fallback/visible-assistant-response.d.ts +3 -0
  111. package/dist/hooks/session-notification-content.d.ts +30 -0
  112. package/dist/hooks/session-notification-scheduler.d.ts +5 -3
  113. package/dist/hooks/session-notification.d.ts +2 -0
  114. package/dist/hooks/start-work/index.d.ts +1 -1
  115. package/dist/hooks/start-work/worktree-detector.d.ts +7 -0
  116. package/dist/hooks/todo-continuation-enforcer/constants.d.ts +6 -2
  117. package/dist/hooks/todo-continuation-enforcer/handler.d.ts +1 -0
  118. package/dist/hooks/todo-continuation-enforcer/idle-event.d.ts +1 -0
  119. package/dist/hooks/todo-continuation-enforcer/session-state.d.ts +10 -1
  120. package/dist/hooks/todo-continuation-enforcer/stagnation-detection.d.ts +6 -0
  121. package/dist/hooks/todo-continuation-enforcer/types.d.ts +5 -0
  122. package/dist/hooks/tool-output-truncator.d.ts +1 -0
  123. package/dist/index.d.ts +2 -2
  124. package/dist/index.js +10581 -7245
  125. package/dist/openagent-labforge.schema.json +70 -4
  126. package/dist/plugin/hooks/create-continuation-hooks.d.ts +2 -1
  127. package/dist/plugin/hooks/create-core-hooks.d.ts +1 -0
  128. package/dist/plugin/hooks/create-session-hooks.d.ts +2 -1
  129. package/dist/plugin/normalize-tool-arg-schemas.d.ts +2 -0
  130. package/dist/plugin/ultrawork-model-override.d.ts +1 -15
  131. package/dist/plugin/ultrawork-variant-availability.d.ts +6 -0
  132. package/dist/plugin-dispose.d.ts +10 -0
  133. package/dist/plugin-handlers/agent-override-protection.d.ts +3 -0
  134. package/dist/plugin-state.d.ts +5 -0
  135. package/dist/shared/compaction-agent-config-checkpoint.d.ts +11 -0
  136. package/dist/shared/context-limit-resolver.d.ts +5 -0
  137. package/dist/shared/data-path.d.ts +2 -2
  138. package/dist/shared/dynamic-truncator.d.ts +4 -7
  139. package/dist/shared/external-plugin-detector.d.ts +1 -1
  140. package/dist/shared/fallback-chain-from-models.d.ts +3 -0
  141. package/dist/shared/index.d.ts +3 -0
  142. package/dist/shared/model-error-classifier.d.ts +2 -1
  143. package/dist/shared/opencode-command-dirs.d.ts +3 -0
  144. package/dist/shared/plugin-identity.d.ts +7 -0
  145. package/dist/shared/question-denied-session-permission.d.ts +6 -0
  146. package/dist/shared/retry-status-utils.d.ts +2 -0
  147. package/dist/shared/system-directive.d.ts +6 -5
  148. package/dist/shared/vision-capable-models-cache.d.ts +4 -0
  149. package/dist/tools/call-omo-agent/background-executor.d.ts +2 -1
  150. package/dist/tools/call-omo-agent/constants.d.ts +1 -1
  151. package/dist/tools/call-omo-agent/sync-executor.d.ts +11 -3
  152. package/dist/tools/call-omo-agent/tools.d.ts +2 -1
  153. package/dist/tools/delegate-task/cancel-unstable-agent-task.d.ts +2 -0
  154. package/dist/tools/delegate-task/model-selection.d.ts +1 -0
  155. package/dist/tools/delegate-task/model-string-parser.d.ts +1 -3
  156. package/dist/tools/look-at/multimodal-fallback-chain.d.ts +4 -0
  157. package/dist/tools/lsp/constants.d.ts +1 -0
  158. package/dist/tools/lsp/directory-diagnostics.d.ts +1 -0
  159. package/dist/tools/lsp/lsp-client-transport.d.ts +4 -2
  160. package/dist/tools/lsp/lsp-client-wrapper.d.ts +2 -1
  161. package/dist/tools/lsp/server-path-bases.d.ts +1 -0
  162. package/generated/skills-bundles/catalog.json +282 -39
  163. package/generated/skills-bundles/full/INDEX.md +38 -10
  164. package/generated/skills-bundles/full/skills/data-analysis/experiment-monitoring/auto-claude__monitor-experiment/SKILL.md +63 -0
  165. package/generated/skills-bundles/full/skills/data-analysis/experiment-ops/auto-claude__run-experiment/SKILL.md +112 -0
  166. package/generated/skills-bundles/full/skills/data-analysis/optimization/auto-claude__dse-loop/SKILL.md +279 -0
  167. package/generated/skills-bundles/full/skills/data-analysis/statistics/auto-claude__analyze-results/SKILL.md +47 -0
  168. package/generated/skills-bundles/full/skills/data-analysis/visualization/auto-claude__paper-figure/SKILL.md +281 -0
  169. package/generated/skills-bundles/full/skills/productivity/communication/auto-claude__feishu-notify/SKILL.md +154 -0
  170. package/generated/skills-bundles/full/skills/productivity/visual-design/auto-claude__pixel-art/SKILL.md +138 -0
  171. package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-compile/SKILL.md +252 -0
  172. package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-plan/SKILL.md +254 -0
  173. package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/SKILL.md +310 -0
  174. package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/iclr2026.tex +84 -0
  175. package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/icml2025.tex +87 -0
  176. package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/math_commands.tex +48 -0
  177. package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-write/templates/neurips2025.tex +80 -0
  178. package/generated/skills-bundles/full/skills/research/document-authoring/auto-claude__paper-writing/SKILL.md +255 -0
  179. package/generated/skills-bundles/full/skills/research/literature-and-web-search/auto-claude__arxiv/SKILL.md +133 -0
  180. package/generated/skills-bundles/full/skills/research/literature-and-web-search/auto-claude__novelty-check/SKILL.md +87 -0
  181. package/generated/skills-bundles/full/skills/research/literature-and-web-search/auto-claude__research-lit/SKILL.md +194 -0
  182. package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__idea-creator/SKILL.md +228 -0
  183. package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__idea-discovery/SKILL.md +186 -0
  184. package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__idea-discovery-robot/SKILL.md +351 -0
  185. package/generated/skills-bundles/full/skills/research/research-ideation/auto-claude__research-pipeline/SKILL.md +174 -0
  186. package/generated/skills-bundles/full/skills/research/theory-writing/auto-claude__proof-writer/SKILL.md +224 -0
  187. package/generated/skills-bundles/paper/INDEX.md +40 -0
  188. package/generated/skills-bundles/paper/skills/data-analysis/experiment-monitoring/auto-claude__monitor-experiment/SKILL.md +63 -0
  189. package/generated/skills-bundles/paper/skills/data-analysis/experiment-ops/auto-claude__run-experiment/SKILL.md +112 -0
  190. package/generated/skills-bundles/paper/skills/data-analysis/optimization/auto-claude__dse-loop/SKILL.md +279 -0
  191. package/generated/skills-bundles/paper/skills/data-analysis/statistics/auto-claude__analyze-results/SKILL.md +47 -0
  192. package/generated/skills-bundles/paper/skills/data-analysis/visualization/auto-claude__paper-figure/SKILL.md +281 -0
  193. package/generated/skills-bundles/paper/skills/productivity/communication/auto-claude__feishu-notify/SKILL.md +154 -0
  194. package/generated/skills-bundles/paper/skills/productivity/visual-design/auto-claude__pixel-art/SKILL.md +138 -0
  195. package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-compile/SKILL.md +252 -0
  196. package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-plan/SKILL.md +254 -0
  197. package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/SKILL.md +310 -0
  198. package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/iclr2026.tex +84 -0
  199. package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/icml2025.tex +87 -0
  200. package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/math_commands.tex +48 -0
  201. package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-write/templates/neurips2025.tex +80 -0
  202. package/generated/skills-bundles/paper/skills/research/document-authoring/auto-claude__paper-writing/SKILL.md +255 -0
  203. package/generated/skills-bundles/paper/skills/research/literature-and-web-search/auto-claude__arxiv/SKILL.md +133 -0
  204. package/generated/skills-bundles/paper/skills/research/literature-and-web-search/auto-claude__novelty-check/SKILL.md +87 -0
  205. package/generated/skills-bundles/paper/skills/research/literature-and-web-search/auto-claude__research-lit/SKILL.md +194 -0
  206. package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__idea-creator/SKILL.md +228 -0
  207. package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__idea-discovery/SKILL.md +186 -0
  208. package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__idea-discovery-robot/SKILL.md +351 -0
  209. package/generated/skills-bundles/paper/skills/research/research-ideation/auto-claude__research-pipeline/SKILL.md +174 -0
  210. package/generated/skills-bundles/paper/skills/research/theory-writing/auto-claude__proof-writer/SKILL.md +224 -0
  211. package/package.json +21 -21
  212. package/generated/skills-bundles/full/skills/engineering/virtualization/skills-main__virtualbox/LICENSE.txt +0 -21
  213. package/generated/skills-bundles/full/skills/engineering/virtualization/skills-main__virtualbox/SKILL.md +0 -615
  214. package/generated/skills-bundles/full/skills/engineering/virtualization/skills-main__virtualbox/_meta.json +0 -11
  215. package/generated/skills-bundles/full/skills/engineering/virtualization/skills-main__virtualbox/scripts/virtualbox-utils.ts +0 -586
  216. package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/.clawhubsafe +0 -0
  217. package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/LICENSE +0 -21
  218. package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/README.md +0 -127
  219. package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/SECURITY.md +0 -68
  220. package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/SKILL.md +0 -141
  221. package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/_meta.json +0 -11
  222. package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/scripts/speak.sh +0 -52
  223. package/generated/skills-bundles/full/skills/productivity/voice-and-accessibility/skills-main__voiceclaw/scripts/transcribe.sh +0 -50
  224. package/generated/skills-bundles/full/skills/research/media-search/skills-main__youtube-search/LICENSE.txt +0 -21
  225. package/generated/skills-bundles/full/skills/research/media-search/skills-main__youtube-search/SKILL.md +0 -416
  226. package/generated/skills-bundles/full/skills/research/media-search/skills-main__youtube-search/_meta.json +0 -11
@@ -0,0 +1,310 @@
1
+ ---
2
+ name: "auto-claude/paper-write"
3
+ description: "Draft LaTeX paper section by section from an outline. Use when user says \"写论文\", \"write paper\", \"draft LaTeX\", \"开始写\", or wants to generate LaTeX content from a paper plan."
4
+ argument-hint: ["venue-or-section"]
5
+ allowed-tools: "Bash(*), Read, Write, Edit, Grep, Glob, Agent, WebSearch, WebFetch, mcp__codex__codex, mcp__codex__codex-reply"
6
+ metadata:
7
+ category: "research/document-authoring"
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).
@@ -0,0 +1,84 @@
1
+ % ICLR 2026 Paper Template
2
+ % Generated by ARIS paper-write skill
3
+ % Style file: download from https://iclr.cc/Conferences/2026/CallForPapers
4
+
5
+ \documentclass{article}
6
+ \usepackage{iclr2026_conference,times}
7
+
8
+ % Math
9
+ \usepackage{amsmath,amssymb,amsfonts,amsthm,mathtools}
10
+
11
+ % Typography
12
+ \usepackage[utf8]{inputenc}
13
+ \usepackage[T1]{fontenc}
14
+ \usepackage{hyperref}
15
+ \usepackage{url}
16
+ \usepackage{booktabs}
17
+ \usepackage{nicefrac}
18
+ \usepackage{microtype}
19
+ \usepackage{xcolor}
20
+ \usepackage{graphicx}
21
+ \usepackage{subcaption}
22
+ \usepackage{multirow}
23
+ \usepackage{algorithm}
24
+ \usepackage{algorithmic}
25
+
26
+ % cleveref must be loaded AFTER hyperref
27
+ \usepackage[capitalize,noabbrev]{cleveref}
28
+
29
+ % Theorems
30
+ \theoremstyle{plain}
31
+ \newtheorem{theorem}{Theorem}[section]
32
+ \newtheorem{proposition}[theorem]{Proposition}
33
+ \newtheorem{lemma}[theorem]{Lemma}
34
+ \newtheorem{corollary}[theorem]{Corollary}
35
+ \theoremstyle{definition}
36
+ \newtheorem{definition}[theorem]{Definition}
37
+ \newtheorem{assumption}[theorem]{Assumption}
38
+ \theoremstyle{remark}
39
+ \newtheorem{remark}[theorem]{Remark}
40
+
41
+ % cleveref names for custom theorem types
42
+ \crefname{assumption}{Assumption}{Assumptions}
43
+ \Crefname{assumption}{Assumption}{Assumptions}
44
+
45
+ % Shared math commands
46
+ \input{math_commands}
47
+
48
+ % === ANONYMOUS SUBMISSION ===
49
+ % Comment out \iclrfinalcopy for anonymous submission
50
+ % Uncomment for camera-ready version
51
+ % \iclrfinalcopy
52
+
53
+ \title{Paper Title Here}
54
+
55
+ % Authors — leave anonymous for submission
56
+ % Uncomment and fill for camera-ready
57
+ % \author{
58
+ % Author Name \\
59
+ % Affiliation \\
60
+ % \texttt{email@example.com}
61
+ % }
62
+
63
+ \begin{document}
64
+
65
+ \maketitle
66
+
67
+ \begin{abstract}
68
+ \input{sections/0_abstract}
69
+ \end{abstract}
70
+
71
+ \input{sections/1_introduction}
72
+ \input{sections/2_related_work}
73
+ \input{sections/3_method}
74
+ \input{sections/4_experiments}
75
+ \input{sections/5_conclusion}
76
+
77
+ \bibliography{references}
78
+ \bibliographystyle{iclr2026_conference}
79
+
80
+ \newpage
81
+ \appendix
82
+ \input{sections/A_appendix}
83
+
84
+ \end{document}
@@ -0,0 +1,87 @@
1
+ % ICML 2025 Paper Template
2
+ % Generated by ARIS paper-write skill
3
+ % Style file: download from https://icml.cc/Conferences/2025/CallForPapers
4
+
5
+ \documentclass[accepted]{icml2025}
6
+ % For submission: remove [accepted]
7
+
8
+ % Math
9
+ \usepackage{amsmath,amssymb,amsfonts,amsthm,mathtools}
10
+
11
+ % Typography
12
+ \usepackage[utf8]{inputenc}
13
+ \usepackage[T1]{fontenc}
14
+ \usepackage{hyperref}
15
+ \usepackage{url}
16
+ \usepackage{booktabs}
17
+ \usepackage{nicefrac}
18
+ \usepackage{microtype}
19
+ \usepackage{xcolor}
20
+ \usepackage{graphicx}
21
+ \usepackage{subcaption}
22
+ \usepackage{multirow}
23
+ \usepackage{algorithm}
24
+ \usepackage{algorithmic}
25
+
26
+ % cleveref must be loaded AFTER hyperref
27
+ \usepackage[capitalize,noabbrev]{cleveref}
28
+
29
+ % Theorems
30
+ \theoremstyle{plain}
31
+ \newtheorem{theorem}{Theorem}[section]
32
+ \newtheorem{proposition}[theorem]{Proposition}
33
+ \newtheorem{lemma}[theorem]{Lemma}
34
+ \newtheorem{corollary}[theorem]{Corollary}
35
+ \theoremstyle{definition}
36
+ \newtheorem{definition}[theorem]{Definition}
37
+ \newtheorem{assumption}[theorem]{Assumption}
38
+ \theoremstyle{remark}
39
+ \newtheorem{remark}[theorem]{Remark}
40
+
41
+ % cleveref names for custom theorem types
42
+ \crefname{assumption}{Assumption}{Assumptions}
43
+ \Crefname{assumption}{Assumption}{Assumptions}
44
+
45
+ % Shared math commands
46
+ \input{math_commands}
47
+
48
+ \icmltitlerunning{Paper Title Here}
49
+
50
+ \begin{document}
51
+
52
+ \twocolumn[
53
+ \icmltitle{Paper Title Here}
54
+
55
+ % Authors — leave anonymous for submission
56
+ % Uncomment and fill for camera-ready
57
+ % \icmlsetsymbol{equal}{*}
58
+ % \begin{icmlauthorlist}
59
+ % \icmlauthor{Author Name}{inst1}
60
+ % \end{icmlauthorlist}
61
+ % \icmlaffiliation{inst1}{Affiliation}
62
+ % \icmlcorrespondingauthor{Author Name}{email@example.com}
63
+
64
+ \vskip 0.3in
65
+ ]
66
+
67
+ \printAffiliationsAndNotice{}
68
+
69
+ \begin{abstract}
70
+ \input{sections/0_abstract}
71
+ \end{abstract}
72
+
73
+ \input{sections/1_introduction}
74
+ \input{sections/2_related_work}
75
+ \input{sections/3_method}
76
+ \input{sections/4_experiments}
77
+ \input{sections/5_conclusion}
78
+
79
+ \bibliography{references}
80
+ \bibliographystyle{icml2025}
81
+
82
+ \newpage
83
+ \appendix
84
+ \onecolumn
85
+ \input{sections/A_appendix}
86
+
87
+ \end{document}
@@ -0,0 +1,48 @@
1
+ % math_commands.tex — Shared notation for ML papers
2
+ % Generated by ARIS paper-write skill
3
+ % Add paper-specific notation below the common commands
4
+
5
+ % === Common Math Shortcuts ===
6
+ \newcommand{\R}{\mathbb{R}}
7
+ \newcommand{\Z}{\mathbb{Z}}
8
+ \newcommand{\N}{\mathbb{N}}
9
+ \newcommand{\E}{\mathbb{E}}
10
+ \newcommand{\Var}{\mathrm{Var}}
11
+ \newcommand{\Cov}{\mathrm{Cov}}
12
+
13
+ % Probability
14
+ \newcommand{\Prob}{\mathbb{P}}
15
+ \newcommand{\KL}{\mathrm{KL}}
16
+
17
+ % Operators
18
+ \DeclareMathOperator*{\argmin}{arg\,min}
19
+ \DeclareMathOperator*{\argmax}{arg\,max}
20
+ \DeclareMathOperator{\tr}{tr}
21
+ \DeclareMathOperator{\diag}{diag}
22
+ \DeclareMathOperator{\softmax}{softmax}
23
+
24
+ % Vectors and matrices (bold)
25
+ \newcommand{\vx}{\mathbf{x}}
26
+ \newcommand{\vy}{\mathbf{y}}
27
+ \newcommand{\vz}{\mathbf{z}}
28
+ \newcommand{\vw}{\mathbf{w}}
29
+ \newcommand{\vtheta}{\boldsymbol{\theta}}
30
+ \newcommand{\mA}{\mathbf{A}}
31
+ \newcommand{\mI}{\mathbf{I}}
32
+
33
+ % Norms
34
+ \newcommand{\norm}[1]{\left\|#1\right\|}
35
+ \newcommand{\abs}[1]{\left|#1\right|}
36
+ \newcommand{\inner}[2]{\langle #1, #2 \rangle}
37
+
38
+ % Distributions
39
+ \newcommand{\Normal}{\mathcal{N}}
40
+
41
+ % Sets
42
+ \newcommand{\cX}{\mathcal{X}}
43
+ \newcommand{\cY}{\mathcal{Y}}
44
+ \newcommand{\cD}{\mathcal{D}}
45
+ \newcommand{\cL}{\mathcal{L}}
46
+
47
+ % === Paper-Specific Notation ===
48
+ % Add your paper's custom notation below this line
@@ -0,0 +1,80 @@
1
+ % NeurIPS 2025 Paper Template
2
+ % Generated by ARIS paper-write skill
3
+ % Style file: download from https://neurips.cc/Conferences/2025/CallForPapers
4
+
5
+ \documentclass{article}
6
+ \usepackage[preprint]{neurips_2025}
7
+ % For camera-ready: \usepackage[final]{neurips_2025}
8
+
9
+ % Math
10
+ \usepackage{amsmath,amssymb,amsfonts,amsthm,mathtools}
11
+
12
+ % Typography
13
+ \usepackage[utf8]{inputenc}
14
+ \usepackage[T1]{fontenc}
15
+ \usepackage{hyperref}
16
+ \usepackage{url}
17
+ \usepackage{booktabs}
18
+ \usepackage{nicefrac}
19
+ \usepackage{microtype}
20
+ \usepackage{xcolor}
21
+ \usepackage{graphicx}
22
+ \usepackage{subcaption}
23
+ \usepackage{multirow}
24
+ \usepackage{algorithm}
25
+ \usepackage{algorithmic}
26
+
27
+ % cleveref must be loaded AFTER hyperref
28
+ \usepackage[capitalize,noabbrev]{cleveref}
29
+
30
+ % Theorems
31
+ \theoremstyle{plain}
32
+ \newtheorem{theorem}{Theorem}[section]
33
+ \newtheorem{proposition}[theorem]{Proposition}
34
+ \newtheorem{lemma}[theorem]{Lemma}
35
+ \newtheorem{corollary}[theorem]{Corollary}
36
+ \theoremstyle{definition}
37
+ \newtheorem{definition}[theorem]{Definition}
38
+ \newtheorem{assumption}[theorem]{Assumption}
39
+ \theoremstyle{remark}
40
+ \newtheorem{remark}[theorem]{Remark}
41
+
42
+ % cleveref names for custom theorem types
43
+ \crefname{assumption}{Assumption}{Assumptions}
44
+ \Crefname{assumption}{Assumption}{Assumptions}
45
+
46
+ % Shared math commands
47
+ \input{math_commands}
48
+
49
+ \title{Paper Title Here}
50
+
51
+ % Authors — leave anonymous for submission
52
+ % Uncomment and fill for camera-ready
53
+ % \author{
54
+ % Author Name \\
55
+ % Affiliation \\
56
+ % \texttt{email@example.com}
57
+ % }
58
+
59
+ \begin{document}
60
+
61
+ \maketitle
62
+
63
+ \begin{abstract}
64
+ \input{sections/0_abstract}
65
+ \end{abstract}
66
+
67
+ \input{sections/1_introduction}
68
+ \input{sections/2_related_work}
69
+ \input{sections/3_method}
70
+ \input{sections/4_experiments}
71
+ \input{sections/5_conclusion}
72
+
73
+ \bibliography{references}
74
+ \bibliographystyle{plainnat}
75
+
76
+ \newpage
77
+ \appendix
78
+ \input{sections/A_appendix}
79
+
80
+ \end{document}