Paper writing pipeline

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

Paper writing pipeline is an AI agent skill from the GitHub repository FOURTEEN1416/academic-agent-toolkit. 12-agent academic paper writing pipeline. 10 modes

How to use this skill

Skill file

<!--ACAT-ADAPTED: 资产补齐自 Imbad0202/academic-research-skills@5debcd2efb68(academic-paper;2026-11-16 订正:原记 franklee16 系同名异构误记,无 LICENSE),正文未改;上游 research-lookup 类 API 依赖以当前会话可用的网页检索/抓取能力替代(工具名以实际环境为准)。溯源见 references/UPSTREAM.md。2026-09-09 专项治理。-->

Academic Paper — Academic Paper Writing Agent Team

本仓运行口径(2026-11-16 写作族治理批):本文的 12-agent 编排、Material Passport、Bucket A/B、v3.9.2 Routing Discipline、v3.6.6 Generator-Evaluator 契约均为上游(Imbad0202/academic-research-skills,2026-11-16 订正:原记 franklee16 系同名异构误记)架构叙事,不是本仓执行指令。本仓由单一执行 Agent + 引擎(engine/ 会话编排与 finish 统一核验)承担全部阶段,下文 agent 分工表仅作职责参考。Mode A 所依赖的 academic-pipeline,以及 academic-paper-reviewer、tw-hei-intelligence、report-to-website、notebooklm-slides-generator 等技能本仓未收编(目录不存在):文中涉及这些技能的跳转与协议均按上游语境理解,在本仓内不执行;上游内部路径(AGENTS.md、shared/、docs/、agents/、templates/、examples/)未随仓集成(见 ASSET-GAP.md)。

A general-purpose academic paper writing tool — 12-agent pipeline covering all disciplines, with higher education domain as the default reference.

v2.5 adds two writing quality features:

Routing discipline (v3.9.2): see AGENTS.md "Routing Discipline (v3.9.2)" + shared/references/intent_clarification_protocol.md for cross-skill routing rules. This skill assumes routing has already settled — ambiguous cross-phase materials should have been clarified upstream. <!--ACAT-GOVERNANCE: 上游叙事——AGENTS.md/shared/ 均为上游仓路径未随仓集成;本仓跨技能路由以 academic-toolkit/AGENTS.md 与 capabilities/catalog.json 为准-->

Quick Start

Minimal command:

Write a paper on the impact of AI on higher education quality assurance
Write a paper on the impact of declining birth rates on private university management strategies

Execution flow:

  1. Configuration interview — paper type, discipline, citation format, output format
  2. Literature search — systematic search strategy, source screening
  3. Architecture design — paper structure, outline, word count allocation
  4. Argumentation construction — claim-evidence chains, logical flow
  5. Full-text drafting — section-by-section draft, register adjustment
  6. Citation compliance + bilingual abstract (parallel)
  7. Peer review — five-dimension scoring, revision suggestions
  8. Output formatting — LaTeX/DOCX (via Pandoc)/PDF/Markdown

Trigger Conditions

Trigger Keywords

English: write paper, academic paper, paper outline, write abstract, revise paper, literature review paper, check citations, convert to LaTeX, convert format, format paper, conference paper, journal article, thesis chapter, research paper, guide my paper, help me plan my paper, step by step paper, draft manuscript, write methodology, write discussion, parse reviews, revision roadmap, help me with my revision, I got reviewer comments, convert citations

繁體中文: 寫論文, 學術論文, 論文大綱, 寫摘要, 修改論文, 文獻回顧論文, 檢查引用, 轉 LaTeX, 轉換格式, 研討會論文, 期刊文章, 學位論文, 研究論文, 引導我寫論文, 幫我規劃論文, 逐步寫論文, 寫方法論, 寫討論, 審查意見, 修訂路線圖, 幫我修改, 我收到審查意見, 轉換引用格式

Plan Mode Activation

Activate plan mode when the user wants guidance, step-by-step planning, or expresses uncertainty about paper structure. Default rule: when ambiguous between plan and full, prefer plan.

See references/plan_mode_protocol.md for full intent signals and activation rules.

Does NOT Trigger

| Scenario | Use Instead |

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

| Deep research / fact-checking (not paper writing) | comp-contest-research |

| Reviewing a paper (structured review) | academic-paper-reviewer |

| Full research-to-paper pipeline | academic-pipeline <!--ACAT-GOVERNANCE: 本仓未收编,目录不存在;本仓内不执行该跳转--> |

Distinction from `comp-contest-research`

| Feature | academic-paper | comp-contest-research |

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

| Primary output | Publishable paper draft | Research report |

| Structure | Journal-ready (IMRaD, etc.) | APA 7.0 report |

| Citation | Multi-format (APA/Chicago/MLA/IEEE/Vancouver) | APA 7.0 only |

| Abstract | Bilingual (zh-TW + EN) | Single language |

| Peer review | Simulated 5-dimension review | Editorial review |

| Output format | LaTeX/DOCX (via Pandoc)/PDF/Markdown | Markdown only |

| Revision loop | Max 2 rounds with targeted feedback | Max 2 rounds |


Agent Team (12 Agents)

| # | Agent | Role | Phase |

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

| 1 | intake_agent | Configuration interview: paper type, discipline, journal, citation format, output format, language, word count; Handoff detection; Plan mode simplified interview | Phase 0 |

| 2 | literature_strategist_agent | Search strategy design, source screening, annotated bibliography, literature matrix | Phase 1 |

| 3 | structure_architect_agent | Paper structure selection, detailed outline, word count allocation, evidence mapping | Phase 2 |

| 4 | argument_builder_agent | Argument construction, claim-evidence chains, logical flow, counter-argument handling; Plan mode argument stress test | Phase 3 / Plan Step 3 |

| 5 | draft_writer_agent | Section-by-section full draft writing, discipline register adjustment, word count tracking | Phase 4 |

| 6 | citation_compliance_agent | Citation format verification, reference list completeness, DOI checking | Phase 5a |

| 7 | abstract_bilingual_agent | Bilingual abstract (zh-TW + EN), 5-7 keywords each | Phase 5b |

| 8 | peer_reviewer_agent | Simulated double-blind review, five-dimension scoring, revision suggestions (max 2 rounds) | Phase 6 |

| 9 | formatter_agent | Convert to LaTeX/DOCX (via Pandoc)/PDF/Markdown, journal formatting, cover letter, citation format conversion (APA 7 / Chicago / MLA / IEEE / Vancouver) | Phase 7 |

| 10 | socratic_mentor_agent | Plan mode Socratic mentor: chapter-by-chapter guidance, convergence criteria (4 signals), question taxonomy (4 types), INSIGHT extraction | Plan Step 0-3 |

| 11 | visualization_agent | Parse paper data and generate publication-quality figure code (Python matplotlib / R ggplot2) with APA 7.0 formatting, colorblind-safe palettes, and LaTeX integration | Phase 4 / Phase 7 |

| 12 | revision_coach_agent | Parse unstructured reviewer comments into structured Revision Roadmap; classify, map, and prioritize comments; works standalone without prior pipeline execution | Revision-Coach mode |


Output Formats

Text Formats

LaTeX (.tex + .bib), DOCX (via Pandoc), PDF (via LaTeX or Pandoc), Markdown.

Figures

When the paper contains quantitative results, the visualization_agent can generate publication-ready figures in Python (matplotlib/seaborn) or R (ggplot2) with APA 7.0 formatting and colorblind-safe palettes. Figures are delivered as runnable code + LaTeX \includegraphics integration code. See references/statistical_visualization_standards.md for chart type decision trees and code templates.

Citation Formats

APA 7.0 (default), Chicago (Author-Date or Notes-Bibliography), MLA 9, IEEE, Vancouver. The formatter_agent supports late-stage citation format conversion between any two supported formats via "Convert citations to [format]".


Orchestration Workflow (8 Phases)

Phase 0: CONFIG        -> [intake_agent]              -> Paper Configuration Record
Phase 1: RESEARCH      -> [literature_strategist]      -> Search Strategy + Source Corpus
Phase 2: ARCHITECTURE  -> [structure_architect]        -> Paper Outline + Evidence Map
Phase 3: ARGUMENTATION -> [argument_builder]           -> Argument Blueprint
Phase 4: DRAFTING      -> [draft_writer]               -> Complete Draft
Phase 5a: CITATIONS    -> [citation_compliance] ──┐    -> Citation Audit Report
Phase 5b: ABSTRACT     -> [abstract_bilingual]   ─┘    -> Bilingual Abstract + Keywords  (parallel)
Phase 6: PEER REVIEW   -> [peer_reviewer]              -> Review Report (max 2 revision loops)
Phase 7: FORMAT        -> [formatter]                  -> Final Output Package

See references/workflow_phase_details.md for detailed per-phase agent behavior and output descriptions.

Checkpoint Rules

  1. ⚠️ IRON RULE: User must confirm Paper Configuration Record before proceeding to Phase 1
  2. Phase 2 -> 3: User must approve outline (can request restructuring)
  3. ⚠️ IRON RULE: Max 2 revision loops; unresolved items -> "Acknowledged Limitations"
  4. Peer Review Critical-severity issues block progression to Phase 7
  5. User can skip Phase 1 (literature) if providing own sources

v3.4.0 compliance (applies to full mode): Before finalization, compliance_agent runs RAISE principles-only check (warn-only; primary research is outside PRISMA-trAIce scope). Warnings are listed in the disclosure statement but never block the pipeline. See shared/raise_framework.md §Scope disclaimer. <!--ACAT-GOVERNANCE: 上游叙事——compliance_agent 与 shared/raise_framework.md 未随仓集成;本仓以披露章写作要求替代执行-->

Phase-by-phase Invocation Contract (v3.9.2)

academic-paper pipeline runs in 8 phases (Phase 0 intake → 7 formatting). Two invocation modes:

Mode A — orchestrator-driven (default): pipeline_orchestrator_agent (in academic-pipeline skill) runs all phases end-to-end with state tracking via Material Passport. <!--ACAT-GOVERNANCE: 上游语境——academic-pipeline 本仓未收编(目录不存在),Material Passport 机制未随仓;本仓由单执行者+引擎承担,Mode A 在本仓不可用,统一按单执行者流程走-->

Mode B — phase-by-phase (cross-session resume): User invokes one agent per phase across sessions for long-running projects. Common pattern: write the draft in one session, return next week to citation-check / abstract / peer-review independently.

In Mode B, single-phase agents (Bucket A per docs/design/2026-05-18-ars-v3.9.2-agent-phase-classification.md) stay strictly within their assigned phase for writes. The 7 Bucket A agents in academic-paper are: literature_strategist (P1), structure_architect (P2), draft_writer (P4/P6 per invocation), citation_compliance (P5a), abstract_bilingual (P5b), peer_reviewer (P6), formatter (P7). Reads from upstream phases are allowed.

Multi-phase agents (Bucket B: argument_builder P3+Plan, visualization P4+P7) do exactly the work specified by the caller's invocation for that phase — no extension to other phases in the same call. The v3.6.6 generator-evaluator contract below additionally constrains draft_writer and peer_reviewer sub-phase behavior (Phase 4a/4b, Phase 6a/6b).

Routing into Mode B requires explicit user signal — /ars-<mode> slash command or [direct-mode] prefix. Ambiguous cross-phase input defaults to clarification per AGENTS.md Routing Discipline + shared/references/intent_clarification_protocol.md.

Enforcement (v3.9.2): prompt-level via Phase Boundary blocks on Bucket A agents + advisory verifier (scripts/check_pipeline_integrity.py). Deterministic PreToolUse hook + multi-phase envelope deferred to v3.10 active conductor (#134).

v3.6.6 Generator-Evaluator Contract Protocol(上游叙事存档)

本仓不执行该协议。 以下为上游 academic-paper full 模式的四调用拆分契约叙事:writer/evaluator 各做 paper-blind 预承诺(4a/6a)与 paper-visible 产出(4b/6b),配合 writer_full/evaluator_full 合同 JSON、结构 lint 与 [GENERATOR-PHASE-ABORTED] 中止语义;依赖 shared/sprint_contract.schema.json、shared/contracts/{writer,evaluator}/full.json、docs/design/2026-04-27-ars-v3.6.6-generator-evaluator-contract-design.md 等上游资产(均未随仓集成,见 ASSET-GAP.md)。

本仓要点吸收:写作与评审角色分离;评审在见稿前先明确评分计划(paper-blind pre-commitment);最多 2 轮修订、未决项记 Acknowledged Limitations。本仓由单执行者按上述原则执行 Phase 4/6,不落地四调用拆分、合同 schema 与 lint 基建;跨会话 reset boundary、v3.6.7+ 演进承诺(graceful-degradation fallback、pre_commitment_history[])均属上游 roadmap,本仓不做。

Operational Modes (10 Modes)

See references/mode_selection_guide.md for details.

| Mode | Trigger | Agents | Output |

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

| full | "Write a paper" | All 9 (+ 11 if quantitative) | Complete paper draft (with figures if applicable) |

| outline-only | "Paper outline" | 1->2->3 | Detailed outline + evidence map |

| revision | "Revise paper" | 8->5->6 | Revised draft with tracked changes (uses templates/revision_tracking_template.md) |

| abstract-only | "Write abstract" | 1->7 | Bilingual abstract + keywords |

| lit-review | "Literature review" | 1->2 | Annotated bibliography + synthesis |

| format-convert | "Convert to LaTeX" / "Convert citations to [format]" | 9 only | Formatted document; includes citation format conversion (APA 7 / Chicago / MLA / IEEE / Vancouver) |

| citation-check | "Check citations" | 6 only | Citation error report |

| plan | "guide my paper" / "help me plan my paper" | 1->10->3->4 | Chapter Plan + INSIGHT Collection |

| revision-coach | "parse reviews" / "revision roadmap" / "I got reviewer comments" | 12 only | Revision Roadmap + optional Tracking Template + Response Letter Skeleton |

| disclosure (v3.2) | "AI disclosure for Nature" / "generate AI usage statement" | 9 only | Venue-specific AI-usage disclosure paragraph(s) + placement instructions |

Quick Mode Selection Guide

| Your Situation | Recommended Mode | Spectrum |

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

| Starting from scratch with a clear RQ | full | balanced |

| Need help planning before writing | plan | originality |

| Just need an outline | outline-only | balanced |

| Have a draft, received review feedback | revision | fidelity |

| Have unstructured reviewer comments | revision-coach | balanced |

| Just need an abstract | abstract-only | fidelity |

| Need to check/fix citations | citation-check | fidelity |

| Need to convert format (LaTeX, DOCX) or citation style | format-convert | fidelity |

| Want a systematic literature review paper | lit-review | fidelity |

| Need a venue-specific AI-usage disclosure statement for submission | disclosure | fidelity |

Spectrum (v3.2): fidelity = template-heavy, predictable output; balanced = default; originality = exploratory, template-light. See shared/mode_spectrum.md for the full cross-skill spectrum table.

Not sure? Start with plan — it will guide you step by step. disclosure is a finishing step — run it after the paper is drafted, targeting the venue you plan to submit to.

Mode Selection Logic

See references/mode_selection_guide.md for trigger-to-mode mappings and the full selection flowchart.


Plan Mode: Chapter-by-Chapter Guided Planning

Socratic mode that guides users through paper planning one chapter at a time. Builds a complete Paper Blueprint through structured dialogue.

See references/plan_mode_protocol.md for the full chapter-by-chapter dialogue flow and Paper Blueprint structure.


Handoff Protocol: comp-contest-research -> academic-paper

intake_agent automatically detects comp-contest-research materials (RQ Brief / Bibliography / Synthesis / INSIGHT Collection) and skips redundant steps. See comp-contest-research/SKILL.md Handoff Protocol for the complete handoff material format.


Failure Paths

See references/failure_paths.md for details. Quick reference:

| Failure Scenario | Handling Strategy |

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

| Insufficient research foundation | Recommend running comp-contest-research first |

| Wrong paper structure selected | Return to Phase 2, suggest alternative structure |

| Word count significantly over/under target | Identify problematic chapters, suggest trimming/expansion |

| Citation format entirely wrong | Re-run the entire citation phase |

| Peer review rejection | Analyze rejection reasons, suggest major revision or restructuring |

| Plan mode not converging | Suggest switching to outline-only mode |

| Incomplete handoff materials | List missing items, suggest supplementing or re-running |

| User abandons midway | Save completed Chapter Plan |


Full Academic Pipeline

See academic-pipeline/SKILL.md for the complete workflow. <!--ACAT-GOVERNANCE: 本仓未收编 academic-pipeline(目录不存在),该跳转按上游语境理解;本仓完整流程即本文 8 阶段-->


Phase 0: Configuration Interview

See agents/intake_agent.md for the complete field definitions of the Phase 0 configuration interview. The interview covers 9 items: paper type, discipline, target journal, citation format, output format, language, abstract, word count, and existing materials. Outputs a Paper Configuration Record, awaiting user confirmation.


File Structure

Agent definitions: agents/{agent_name}.md — one file per agent (12 total, matching Agent Team table above).

References (19 files in references/):

Templates (11 files in templates/): imrad, literature_review, case_study, theoretical_paper, policy_brief, conference_paper, latex_article_template.tex, bilingual_abstract, credit_statement, funding_statement, revision_tracking (4 status types).

Examples (9 files in examples/): imrad_hei_example, literature_review_example, plan_mode_guided_writing, chinese_paper_example, revision_mode_example, revision_recovery_example, clinical_citation_verification_checklist, clinical_epistemic_status_example, version_family_reconciliation_example.


Anti-Patterns

Explicit prohibitions to prevent common failure modes:

| # | Anti-Pattern | Why It Fails | Correct Behavior |

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

| 1 | AI-typical overused terms | "delve into", "crucial", "it is important to note" = instant AI detection | Use discipline-specific vocabulary; see references/writing_quality_check.md |

| 2 | Em dash abuse | More than 2 em dashes per page signals AI writing | Use parentheses, commas, or restructure the sentence |

| 3 | Throat-clearing openers | "In this section, we will discuss..." adds no information | Start with the claim or finding directly |

| 4 | Uniform paragraph lengths | Every paragraph is 4-5 sentences = monotonous AI rhythm | Vary paragraph length naturally (2-8 sentences) |

| 5 | ⚠️ IRON RULE: Fabricated citations | Inventing plausible-sounding references that don't exist | Every citation must be verified via DOI or WebSearch; see academic-pipeline/agents/integrity_verification_agent.md <!--ACAT-GOVERNANCE: 上游路径未随仓集成;本仓引用核验走 check-citations/citation-check 等在仓技能--> |

| 6 | Sycophantic revision | Accepting all reviewer feedback without critical evaluation | Use REVIEWER_DISAGREE status when reviewer is wrong; justify with evidence |

| 7 | Scope creep during revision | Adding unrequested sections/analyses to "improve" the paper | Revision addresses reviewer concerns only; new content requires explicit user approval |

| 8 | Ignoring failure paths | Continuing despite desk-reject signals or fatal methodology flaws | Check references/failure_paths.md; invoke F11 Desk-Reject Recovery when triggered |


Quality Standards

Writing Quality

  1. Every claim must have a citation or be supported by the paper's own data
  2. Zero citation orphans — in-text citations <-> reference list must perfectly match
  3. Consistent register — academic tone appropriate for the discipline
  4. Logical flow — clear transitions between paragraphs and sections
  5. Word count compliance — within +/-10% of target

Bilingual Abstract Quality

  1. Independent writing — zh-TW and EN abstracts are independently composed, NOT mechanical translations
  2. Structural alignment — both abstracts cover the same key points in the same order
  3. Keywords — 5-7 per language, reflecting the paper's core concepts
  4. Word count — EN: 150-300 words; zh-TW: 300-500 characters

Citation Quality

  1. Format compliance — 100% adherence to selected citation style
  2. ⚠️ IRON RULE: DOI inclusion — every source with a DOI must include it; every citation must be verified via DOI or WebSearch
  3. Currency — flag sources older than 10 years (unless seminal works)
  4. Self-citation ratio — flag if >15%

Peer Review

  1. Five dimensions — Originality (20%), Methodological Rigor (25%), Evidence Sufficiency (25%), Argument Coherence (15%), Writing Quality (15%)
  2. Actionable feedback — every criticism must include a specific suggestion
  3. Max 2 revision rounds — unresolved items become Acknowledged Limitations

Mandatory Inclusions

⚠️ IRON RULE: Every paper MUST include: Data Availability Statement, Ethics Declaration, Author Contributions (CRediT), Conflict of Interest Statement, Funding Acknowledgment.

  1. AI disclosure statement — every paper must include a statement on AI tool usage
  2. Limitations section — explicitly discuss study limitations
  3. Ethics statement — when applicable (human subjects, sensitive data)

Output Language

Follows the user's language. Academic terminology is kept in English. Bilingual abstracts are always provided regardless of the main text language.


Integration with Other Skills

academic-paper + tw-hei-intelligence  -> Evidence-based HEI paper with real MOE data   <!-- 本仓未收编 tw-hei-intelligence -->
academic-paper + comp-contest-research        -> Deep research phase -> paper writing phase (auto-handoff)   <!-- comp-contest-research 在仓;其余为上游组合叙事 -->
academic-paper + report-to-website    -> Interactive web version of the paper   <!-- 本仓未收编 report-to-website -->
academic-paper + notebooklm-slides-generator -> Presentation slides from paper   <!-- 本仓未收编 notebooklm-slides-generator -->
academic-paper + academic-paper-reviewer -> Peer review -> revision loop   <!-- 本仓未收编 academic-paper-reviewer -->

Version Info

| Item | Content |

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

| Skill Version | 3.2.0 |

| Last Updated | 2026-06-01 |

| Maintainer | Cheng-I Wu |

| Dependent Skills | comp-contest-research v1.0+ (upstream,在仓), academic-paper-reviewer v1.0+ (downstream,本仓未收编) |


Version History

See references/changelog.md for full version history.

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.