Skip to content
Research
Skill

/paper-micro-unit-generator

按修复队列重写反复不通过的论文章节,或按明确要求生成旧版与演练草稿脚手架。当章节连续审计失败需要局部重写、或用户明确要求快速草稿而非正式论文时使用。

From plugin
mathmodel-skill
46210 skills

Claude Code

$ npx -y skills add yushui2022/MathModel-Skill --skill paper-micro-unit-generator --agent claude-code

SKILL.md

paper-micro-unit-generator.SKILL.md
name: paper-micro-unit-generator
description: "按修复队列重写反复不通过的论文章节,或按明确要求生成旧版与演练草稿脚手架。当章节连续审计失败需要局部重写、或用户明确要求快速草稿而非正式论文时使用。"
compatibility: "Requires Python 3.11-3.12; draft modes additionally need python-docx; LibreOffice not required."

Paper Micro-Unit Generator

Resolve <SKILL_ROOT> to the parent directory of this loaded skill folder, using its actual absolute path. Run commands from the contest project root, never from the installed skill directory. The placeholder is not a shell environment variable.

Use this skill only for local repair or an explicitly requested legacy scaffold. `paper-formal-writer` remains the sole formal author and the only producer of `paper_output/final_paper_source.md` and `paper_output/final_paper.docx`.

Entry Check

For formal repair, run:

python "<SKILL_ROOT>/paper-workflow-orchestrator/scripts/workflow_guard.py" --skill paper-micro-unit-generator

Continue only when S0-S6 pass and `paper_output/qa/repair_queue.json` contains at least one item whose strategy is `micro-repair`. Do not create a repair queue manually to bypass the two-failure threshold.

Legacy and quickstart modes are installation or old-model scaffolds. They do not satisfy S7 and do not require the formal repair queue.

Formal Repair Mode

1. Read `paper_output/plan/writing_plan.json`, `paper_output/context/authoring_state.json`, `paper_output/qa/draft_audit.json`, and `paper_output/qa/repair_queue.json`. 2. Select only queued `micro-repair` items. Keep the issue ID, section, failure category, expected evidence, and attempt count intact. 3. Read the affected section draft and only the evidence needed by that issue. Do not rewrite unrelated sections. 4. Write repair material to `paper_output/drafts/repairs/<issue-id>.md`. The material must contain concrete replacement text, its target location, and any required evidence marker. 5. Apply the replacement to the queued section draft. Preserve valid headings, equations, figure/table identifiers, citations, and evidence markers. 6. Re-run the section audit:

python "<SKILL_ROOT>/paper-formal-writer/scripts/validate_authoring.py" --section <section-id>

7. Return to `paper-formal-writer` or `paper-workflow-orchestrator`. This skill must not assemble the formal manuscript or generate Word.

If the same blocking category reaches the third changed attempt, respect `authoring_state.status = BLOCKED`. Report the evidence or requirement causing the failure and suggest Lite as a user decision; never switch editions automatically.

Repair Rules

  • Repair the failed claim or paragraph, not the whole paper.
  • Use only computed values and paths present in the current evidence chain.
  • Preserve `<!-- mathmodel-evidence: ... -->` markers until deterministic assembly removes them.
  • Do not invent data, citations, completed experiments, or successful validation.
  • Do not expose workflow language in paper prose.
  • Do not renumber existing figure, table, equation, or bibliography references.
  • A repair is complete only after `validate_authoring.py --section` returns PASS.

Legacy Mode

The old command names remain available. With no arguments they write only to `paper_output/drafts/legacy/`:

python "<SKILL_ROOT>/paper-micro-unit-generator/scripts/generate_all_offline.py"
python "<SKILL_ROOT>/paper-micro-unit-generator/scripts/merge.py"

Expected outputs:

paper_output/drafts/legacy/micro_units/*.txt
paper_output/drafts/legacy/generate_log.json
paper_output/drafts/legacy/legacy_scaffold.md
paper_output/drafts/legacy/legacy_scaffold.docx
paper_output/drafts/legacy/legacy_ref_check.md

`tasks.json` is required only for this legacy batch path. The merge is deterministic and preserves existing reference numbers.

For the built-in smoke test, the orchestrator passes `--output-root paper_output/quickstart --stem quickstart_scaffold`; all smoke-test files stay under `paper_output/quickstart/`.

Never write `final_paper.md`, `final_paper_source.md`, `final_paper.docx`, or similarly formal names from legacy/quickstart mode.

Template Library

Read [references/micro-unit-library.md](references/micro-unit-library.md) only when a queued repair needs a fine-grained paragraph/sentence pattern or when the user explicitly requests legacy scaffolding. Do not load the full 200+ template library for ordinary section writing.

Handoff

After a formal repair, run workflow status and update persistent context:

python "<SKILL_ROOT>/paper-workflow-orchestrator/scripts/workflow_guard.py" --status
python "<SKILL_ROOT>/context-memory-keeper/scripts/update_workflow_memory.py"

The guard report is authoritative if memory and current artifacts disagree. Read the persistent snapshot at `paper_output/context/workflow_memory.json` before resuming a repair.

Read more
@yushui2022
Ships withmathmodel-skill

Agent-native mathematical modeling workflow skills for Trae, Claude Code, and Codex, covering problem parsing, modeling, code generation, evidence checks, paper writing, and Word delivery.

Stars on GitHub

Momentum

stars in total
462
Star history of yushui2022/MathModel-Skill on GitHub, a chart by star-history.com

Other skills on mathmodel-skill.

authoritative-data-harvester

authoritative-data-har…

定位并获取权威公开数据,优先使用官方 API 与批量下载,产出可复现的抓取代码、来源与许可说明、校验记录。当赛题未提供附件、需要用人口或经济或气象或交通等官方统计补齐数据,或用户要求从权威来源取数时使用。

context-memory-keeper

context-memory-keeper

维护跨会话的项目记忆,记录长期规则与当前任务清单,供后续阶段恢复上下文。当长对话需要压缩、已确认的决策与约束需要落盘、或用户要求记住或恢复之前进展时使用。

data-cleaning-and-visualization

data-cleaning-and-visu…

清洗原始数据并生成论文级图表,处理缺失值、异常值、单位与格式不一致,产出加载报告、数据计划、图表索引、可复现的图文件与图注。当用户提供 csv 或 xlsx 原始附件需要清洗、需要为某一问画图或补图注、或数据与可视化计划待执行时使用。

model-code-and-result-generator

model-code-and-result-…

按已确定的模型路线为每一问生成可运行代码,并沉淀结果证据契约、评价指标、结构化结论与论文表格。当模型路线已定、需要编写并真实运行各问求解代码、或运行结果需要可核验的契约记录时使用。

modeling-paper-rubric-and-model-selector

modeling-paper-rubric-…

按评分点组织论文结构并给出模型路线,产出论文大纲、评分点对齐表与候选模型对照实验方案。当需要在多个候选模型间取舍、需要把评分要求映射成章节结构、或模型路线尚未确定时使用。赛题原文解析由 problem-doc-model-selector 负责。

paper-formal-writer

paper-formal-writer

正式论文的唯一撰写路径,制定写作计划、按章节写作与审计、全文统一改写,并生成原生公式 Word 与 PDF 渲染检查。当运行证据已通过校验、需要撰写或续写完整竞赛论文、或需要产出 final_paper.docx 与渲染 PDF 时使用。

More skills from other plugins.

academic-paper-review

academic-paper-review

Use this skill when the user requests to review, analyze, critique, or summarize academic papers, research articles, preprints,…

deer-flow12d85k
@bytedance@bytedanceInstall Skill
last30days

last30days

Research what people actually say about any topic in the last 30 days. Pulls posts and engagement from Reddit, X, YouTube,…

@mvanhorn@mvanhornInstall Skill

Questions about paper-micro-unit-generator.

Which coding agents can use paper-micro-unit-generator?
paper-micro-unit-generator installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.