Latex paper from zero

From FOURTEEN1416/academic-agent-toolkit · View interactive version

Latex paper from zero is an AI agent skill from the GitHub repository FOURTEEN1416/academic-agent-toolkit. Route a fixed research topic into a rigorous paper-generation workflow. Handles active literature search, innovation framing, evidence planning, and draft-ready output.

How to use this skill

Skill file

<!--ACAT-ADAPTED: 资产补齐自 yunshenwuchuxun/latex-paper-skills@d0f106108cb0(paper-from-zero + _shared),正文未改。溯源见 references/UPSTREAM.md。2026-09-09 专项治理。2026-11-16 重收编收尾批(pin d0f10610→7965fbc):吸收上游 route_and_invoke.py 修正——按路由取下游 plan 脚本、既有项目目录 plan-first 不重脚手架、路径/主题参数安全引用,改写融入「Handoff Contract → Routing Execution」。-->

Paper-From-Zero

Use this skill when the user already has a topic/domain and wants a

structured path from topic -> innovation framing -> evidence plan -> draft-ready

paper workflow.

This skill is the front door of the paper stack:

When to Use

When NOT to Use

Outputs

Workflow

  1. Confirm the topic, constraints, and whether the user already has a preferred innovation.
  2. Actively search literature and build a compact literature map.
  3. Produce 3-5 candidate innovation/contribution framings unless the user already supplied one.
  4. Kill weak framings early: reject ideas that lack a clear gap, evidence path, or falsifiable claim.
  5. Build a contribution map:
  1. Build an evidence matrix for every claim:
  1. Produce an outline contract with section goals, citation quotas, and figure quotas.
  2. Route:

Collaboration Hooks (Recommended)

The following hooks integrate the breadth (Gemini) and depth (Claude) co-pilots

at fixed points in the workflow. Hooks are optional but strongly recommended for

research rigor.

| # | Trigger | Call | Input | Output consumed by |

|---|---------|------|-------|--------------------|

| 1 | After step 2 (literature initial screening) | Gemini literature-map | topic + Key Terms from topic-brief | Candidate papers and keyword clusters feed back into literature search; not written directly into artifacts. |

| 2 | After step 5 (contribution-map initial draft) | Claude claim-stress-test | contribution-map.yaml full text | risks and reviewer_objections feed back into contribution-map revision. |

| 3 | After step 6 (evidence-matrix initial draft) | Gemini evidence-matrix-gap-check OR Claude evidence-sufficiency-audit | evidence-matrix.csv + claims list | Gap list or sufficiency assessment feeds back into evidence-matrix revision. |

| 4 | Before step 8 (routing decision) | Claude route-review-vs-empirical | contribution-map + evidence-matrix summary | Routing recommendation + adversarial challenge written into router-decision.md. |

Hooks are non-blocking. If the target model is unavailable, the orchestrator

decides the fallback. Candidates-Only constraint applies regardless of executor.

Hook 3 selection rule: If the average evidence rows per claim < 3, call Gemini

evidence-matrix-gap-check first (breadth). If coverage appears sufficient, call

Claude evidence-sufficiency-audit (depth). Both may be called sequentially.

Constraint: Collaboration outputs are inputs to artifact revision, not direct

writes. All candidate entries must pass the Candidates-Only constraint defined in the

co-pilot skills. validate_handoff.py does not check capsule state — it only validates

final artifact completeness.

Routing Rules

Handoff Contract

Before routing, create the following artifacts in the target project folder:

The downstream writer must consume these artifacts rather than re-guessing user intent.

Routing Execution (Existing Project Directory)

The handoff target directory usually already exists. In that case do not

re-scaffold; continue in place with a plan-first pass (aligned with the

upstream router fix in 7965fbc: each route now resolves its own downstream

plan script instead of a hard-coded relative path):

python3 ../latex-paper-survey-writer/scripts/create_paper_plan.py --stage plan --output-dir "<project_dir>",

then stop for approval before creating issues (see

../latex-paper-survey-writer/SKILL.md, section "Existing Paper Workflow").

(plan-first); never rerun Gate 0 scaffolding (kickoff) for a directory

that already exists.

Argument quoting: whenever <project_dir> or a topic string is embedded

in a shell command, always quote it — upstream switched to shlex.quote so

paths containing spaces or shell metacharacters cannot break the command.

<!--ACAT-GOVERNANCE: 上游 empirical 侧 plan 脚本(empirical-paper-writer/scripts/create_empirical_plan.py)未随本仓库集成,本仓 _shared/paper_utils 资产缺口亦影响 plan 脚本链(survey 侧 create_paper_plan.py 同此既有缺口)。本节吸收的是流程口径——既有目录 plan-first、不重脚手架、参数安全引用;脚本缺依赖时由当前 Agent 按下游 writer 的 Gate 0 / Phase 0.5 清单以文件形式补齐计划产物,不伪造脚本可跑。-->

Validation (recommended)

Before routing, validate the handoff artifacts:

python3 .codex/skills/paper-from-zero/validate_handoff.py <!--ACAT-GOVERNANCE: 上游脚本未随本仓库集成,不可直接调用--> --project-dir <paper_dir>

Strictness Rules

References to Read

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.