write-paper

Generates a complete JAMA Network Open manuscript in LaTeX from analysis outputs.

Updated Mar 8, 2026
One-click install
npx skills add https://github.com/DamarisDeng/paper-writing-system --skill write-paper-damarisdeng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-paper
Source: https://github.com/DamarisDeng/paper-writing-system/tree/main/workflow/skills/write-paper
Command: npx skills add https://github.com/DamarisDeng/paper-writing-system --skill write-paper-damarisdeng

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Drafting a publication-ready JAMA Network Open paper from upstream analyses and templates can be time-consuming and error-prone. This skill streamlines end-to-end manuscript generation.

Core Features & Use Cases

  • Generates a complete LaTeX manuscript (paper.tex) following JAMA conventions, including abstract with seven subsections, Key Points, Introduction, Methods, Results, Discussion, Limitations, Conclusions, and Supplement.
  • Integrates upstream outputs (analysis_results.json, ranked_questions.json, figures, references) to populate the paper.
  • Produces skeleton and final validated paper ready for compilation and submission.

Quick Start

Run /write-paper <output_folder> to generate paper.tex and a complete LaTeX manuscript from upstream analyses.

Frequently Asked Questions about write-paper

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate drafting a JAMA Network Open manuscript in LaTeX from analysis results?

Automating a JAMA Network Open manuscript in LaTeX involves integrating upstream analysis outputs, figures, and references to populate a structured template. This workflow enforces validation steps to produce a publication-ready paper.tex file with all required subsections.

What upstream outputs are needed to generate a complete LaTeX paper for public health research?

Generating a complete LaTeX paper requires upstream outputs like analysis_results.json, ranked_questions.json, figures, and references. These inputs populate the manuscript sections, ensuring the automated paper generation pipeline accurately reflects your research findings.

Can I automatically generate a supplement and Key Points section for a JAMA Open paper?

Yes, automated manuscript generation can produce a supplement and Key Points section for a JAMA Open paper. The workflow enforces integration of these specific components alongside the abstract and main text to ensure compliance with publication conventions.

What is the best way to structure a JAMA Open LaTeX manuscript with seven abstract subsections?

The best way to structure a JAMA Open LaTeX manuscript is using an automated workflow that enforces JAMA conventions. It generates the abstract with seven subsections, Introduction, Methods, Results, Discussion, Limitations, and Conclusions automatically from your analysis outputs.

Does automated paper writing work without manually formatting references and figures in LaTeX?

Automated paper writing handles references and figures without manual LaTeX formatting by integrating upstream outputs directly. The pipeline extracts figures and references from their source files and embeds them correctly into the final validated manuscript.

What are the limitations of using an end-to-end automated pipeline for research publication drafting?

An end-to-end automated pipeline for research publication drafting is limited by its strict dependency on specific upstream JSON formats and the JAMA Network Open template. It cannot dynamically generate content without pre-existing analysis results and structured input files.