Route a fixed research topic into a rigorous paper-generation workflow. Handles active literature search, innovation framing, evidence planning, and draft-ready output.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Latex Paper From Zero?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/fourteen1416-latex-paper-from-zero)
---
name: latex-paper-from-zero
description: "Route a fixed research topic into a rigorous paper-generation workflow. Handles active literature search, innovation framing, evidence planning, and draft-ready output."
metadata:
short-description: Research-to-paper router for review and empirical papers
---
<!--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:
- It decides whether the work is best treated as a `review` or `empirical` paper.
- It actively searches literature and frames the contribution.
- It produces the handoff contract used by the downstream writer skill.
## When to Use
- The topic is known, but the paper structure and contribution are not yet pinned down.
- The user wants the model to search for candidate innovation angles.
- The user wants a rigorous pre-writing stage before draft generation.
## When NOT to Use
- The user already has a finished review outline and only wants review execution.
- The user already has an experimental paper contract and only wants draft execution.
- The task is non-academic or does not need citation-grounded writing.
## Outputs
- `brief/topic-brief.md`
- `brief/contribution-map.yaml`
- `brief/evidence-matrix.csv`
- `notes/innovation/` (innovation candidates + evidence links; recommended)
- `plan/outline-contract.md`
- `plan/router-decision.md`
- A routing decision to one downstream writer:
- `../latex-paper-survey-writer/SKILL.md` for review papers
- `../latex-paper-empirical-writer/SKILL.md` for experimental papers
- **De-AI polish(反AI味,强制)**:正文/成稿定稿前必读 `cat _utils/writing_rules.md 2>/dev/null || cat skills/shared-scripts/writing_rules.md` 的 `<de_ai_polish>` 段(工程/质检语汇泄漏、模板开头、AI 过渡词;中英文正文同样适用),并按其执行改写。
## 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:
- primary claim
- secondary claims
- non-goals / out-of-scope claims
- risk factors / likely reviewer objections
6. Build an evidence matrix for every claim:
- required citations
- required visuals/tables
- required experiments (if any)
- what may remain placeholder vs what must be verified before finalization
7. Produce an outline contract with section goals, citation quotas, and figure quotas.
8. Route:
- `review` -> use `../latex-paper-survey-writer/SKILL.md`
- `empirical` -> use `../latex-paper-empirical-writer/SKILL.md`
## 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
- Route to `review` when the deliverable is a survey, synthesis, taxonomy, benchmark-style review, or evidence-first overview.
- Route to `empirical` when the deliverable makes a novel method/setting/evaluation claim that needs experimental validation.
- If the topic contains both, prefer the paper’s **primary contribution type**.
## Handoff Contract
Before routing, create the following artifacts in the target project folder:
- `brief/topic-brief.md`: topic, scope, audience, constraints, venue/page targets
- `brief/contribution-map.yaml`: claims, non-claims, novelty framing, risks
- `brief/evidence-matrix.csv`: claim-to-evidence mapping
- `plan/outline-contract.md`: section tree + section intent + citation/figure quotas
- `plan/router-decision.md`: chosen mode and why
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):
- `review`: use the survey writer's "Existing Paper Workflow (No Re-Scaffold)" —
`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").
- `empirical`: create the empirical plan inside the existing project directory
(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:
```bash
python3 .codex/skills/paper-from-zero/validate_handoff.py <!--ACAT-GOVERNANCE: 上游脚本未随本仓库集成,不可直接调用--> --project-dir <paper_dir>
```
## Strictness Rules
- Do not invent novelty. Frame novelty as a hypothesis until grounded by evidence.
- Do not skip literature search for “obvious” topics.
- Do not allow claim language stronger than available evidence.
- For empirical work, explicitly separate `planned`, `placeholder`, and `verified` results.
## References to Read
- `references/architecture.md`
- `references/innovation-framing.md`
- `references/routing-policy.md`