All skills
imbad0202 avatar

/academic-paper

@c5c1b45

12-agent academic paper writing pipeline. 11 modes (full/plan/outline/revision/revision-coach/abstract/lit-review/format-convert/citation-check/disclosure/rebuttal-audit). 6 paper types, 5 citation formats, bilingual abstracts, LaTeX/DOCX-via-Pandoc/PDF output. Style Calibration + Writing Quality Check + Anti-Patterns with IRON RULE markers. Triggers: write paper, academic paper, guide my paper, parse reviews, I got reviewer comments, revision roadmap, should we push back, conference rebuttal, grant panel response, audit my rebuttal, check my response draft, AI disclosure, check citations, citation check, check my references, verify references, look over the refs, 寫論文, 學術論文, 引導我寫論文, 審查意見, 我收到審查意見, 修訂路線圖, 評估回覆, 檢查引用, 引用檢查, 檢查參考文獻, 核對文獻, 논문 작성, 초록 작성, 논문 수정, 논문 계획을 도와줘, 심사 의견을 받았어, 심사 의견 반영, 답변서 점검, AI 사용 고지, 인용 확인, 인용 형식 검사, enmendar mi artículo, redactar artículo, guía mi artículo, analizar reseñas, auditar mi respuesta, verificar borrador de respuesta, verificar citas, divulgación de IA.

Use this Skill: https://skilld.dev/gh/imbad0202/academic-research-skills/academic-paper

This session only. Nothing lands on disk.

referenceslatex_template_reference.md

≈2.5k tokens on demand. Your agent reads this file only when SKILL.md points to it.

LaTeX Template Reference

Used by formatter_agent for LaTeX output generation.

Basic Article Template

\documentclass[12pt, a4paper]{article}

% === Packages ===
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{times}                    % Times New Roman
\usepackage[margin=1in]{geometry}     % 1-inch margins
\usepackage{setspace}                 % Line spacing
\usepackage{amsmath}                  % Math support
\usepackage{graphicx}                 % Figures
\usepackage{booktabs}                 % Professional tables
\usepackage{hyperref}                 % Clickable links
\usepackage{natbib}                   % APA-style citations
\usepackage{url}                      % URL formatting
\usepackage{float}                    % Figure placement

% === CJK Support (for zh-TW content) ===
% Uncomment for Chinese content:
% \usepackage{xeCJK}
% \setCJKmainfont{Noto Sans CJK TC}
% \setCJKsansfont{Noto Sans CJK TC}

% === Settings ===
\doublespacing                        % APA requires double spacing
\setlength{\parindent}{0.5in}         % First-line indent
\bibliographystyle{apalike}           % APA citation style

% === Metadata ===
\title{Paper Title in Title Case}
\author{Author Name \\
  \small Department, Institution \\
  \small \href{mailto:email@example.com}{email@example.com}
}
\date{\today}

% === Document ===
\begin{document}

\maketitle

\begin{abstract}
\noindent
Abstract text here (150-250 words). No paragraph indent in abstract.
\\[6pt]
\textit{Keywords}: keyword1, keyword2, keyword3, keyword4, keyword5
\end{abstract}

\newpage

\section{Introduction}
Introduction text here.

\section{Literature Review}
\subsection{Theme One}
Text with citation \citep{Smith2024}.

\subsection{Theme Two}
\citet{Jones2023} found that...

\section{Methodology}
\subsection{Research Design}
\subsection{Data Collection}
\subsection{Data Analysis}

\section{Results}
\subsection{Finding One}
See Table~\ref{tab:results}.

\begin{table}[H]
\centering
\caption{Descriptive Statistics}
\label{tab:results}
\begin{tabular}{lccc}
\toprule
Variable & $M$ & $SD$ & $N$ \\
\midrule
Variable 1 & 3.45 & 0.82 & 120 \\
Variable 2 & 4.12 & 0.67 & 120 \\
\bottomrule
\end{tabular}
\end{table}

\section{Discussion}
\subsection{Interpretation}
\subsection{Implications}
\subsection{Limitations}

\section{Conclusion}

% === AI Disclosure ===
\subsection*{AI Disclosure}
This paper was prepared with the assistance of AI-powered academic
writing tools. All content was reviewed and verified by the author(s).

% === References ===
\newpage
\bibliography{references}

\end{document}

APA 7.0 Template (apa7 Class) — Preferred for APA Output

When APA 7.0 format is requested, use the apa7 document class instead of article. This ensures correct running heads, title page layout, and heading levels.

\documentclass[man,12pt,natbib]{apa7}

% === Fonts (XeTeX) ===
\usepackage{fontspec}
\setmainfont{Times New Roman}
\usepackage{xeCJK}
\setCJKmainfont{Source Han Serif TC VF}
\setmonofont{Courier New}

% === Additional packages ===
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{array}
\usepackage{graphicx}
\usepackage{float}
\usepackage{hyperref}
\hypersetup{colorlinks=true, linkcolor=black, citecolor=black, urlcolor=blue, breaklinks=true}
\usepackage{xurl}  % URL line breaking (after hyperref)

% === Table column types ===
\newcolumntype{L}[1]{>{\raggedright\arraybackslash}p{#1}}
\newcolumntype{C}[1]{>{\centering\arraybackslash}p{#1}}

% === Justify text (CRITICAL — apa7 man mode defaults to raggedright) ===
\usepackage{ragged2e}
\usepackage{etoolbox}
\AtBeginDocument{\justifying}
\apptocmd{\maketitle}{\justifying}{}{}
\let\oldraggedright\raggedright
\renewcommand{\raggedright}{\justifying}

% === Pandoc compatibility ===
\newcounter{none}
\providecommand{\tightlist}{\setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}

% === Metadata ===
\title{Paper Title}
\shorttitle{Short Title for Running Head}
\author{Author Name}
\affiliation{Institution}
\authornote{Author note text.}

% === Abstract (primary language) ===
\abstract{
  Primary language abstract text...

  \newpage

  \begin{center}\textbf{Second Language Abstract Title}\end{center}

  Second language abstract text...
}

\keywords{keyword1, keyword2, keyword3}

\begin{document}
\maketitle

% Body sections here...

\end{document}

Key Differences: apa7 vs article

Feature apa7 class article class
Running head Automatic (\shorttitle) Manual (fancyhdr)
Title page Built-in (\maketitle) Manual (titlepage)
Abstract \abstract{} in preamble \begin{abstract} in body
Heading levels APA 5-level automatic Manual formatting
Double spacing Automatic in man mode Requires \doublespacing
Text alignment Ragged-right (must override!) Justified by default

Table Column Width Formula (Mandatory)

NEVER use bare p{0.25\linewidth} in longtable — this ignores inter-column padding and causes overflow.

Correct formula: p{(\linewidth - N\tabcolsep) * \real{proportion}}

Where N = (number_of_columns - 1) × 2

Columns N (tabcolseps) Example
3 4 (\linewidth - 4\tabcolsep) * \real{0.3333}
4 6 (\linewidth - 6\tabcolsep) * \real{0.2500}
5 8 (\linewidth - 8\tabcolsep) * \real{0.2000}

BibTeX Entry Formats

Journal Article

@article{Smith2024,
  author  = {Smith, John A. and Jones, Betty C.},
  title   = {Article title in sentence case},
  journal = {Journal Title in Title Case},
  year    = {2024},
  volume  = {45},
  number  = {2},
  pages   = {123--145},
  doi     = {10.1234/example.2024.001}
}

Book

@book{Brown2023,
  author    = {Brown, Alice},
  title     = {Book Title in Sentence Case},
  publisher = {Publisher Name},
  year      = {2023},
  edition   = {2nd},
  address   = {City}
}

Book Chapter

@incollection{Lee2024,
  author    = {Lee, David},
  title     = {Chapter title in sentence case},
  booktitle = {Book Title in Sentence Case},
  editor    = {Editor, First A.},
  publisher = {Publisher Name},
  year      = {2024},
  pages     = {45--67}
}

Conference Paper

@inproceedings{Chen2024,
  author    = {Chen, Wei and Wang, Ming},
  title     = {Paper title in sentence case},
  booktitle = {Proceedings of the Conference Name},
  year      = {2024},
  pages     = {101--110},
  address   = {City, Country},
  doi       = {10.1234/conf.2024.001}
}

Report / Technical Report

@techreport{MOE2024,
  author      = {{Ministry of Education}},
  title       = {Report title in sentence case},
  institution = {Ministry of Education},
  year        = {2024},
  type        = {Annual Report},
  url         = {https://www.example.com}
}

Thesis / Dissertation

@phdthesis{Wang2024,
  author = {Wang, Mei-Ling},
  title  = {Dissertation title in sentence case},
  school = {National Taiwan University},
  year   = {2024},
  type   = {Doctoral dissertation}
}

Website

@misc{WHO2024,
  author       = {{World Health Organization}},
  title        = {Page title in sentence case},
  year         = {2024},
  howpublished = {\url{https://www.who.int/page}},
  note         = {Accessed: 2024-03-15}
}

Citation Commands

natbib Commands

Command Output Use For
\citet{Smith2024} Smith (2024) Narrative citation
\citep{Smith2024} (Smith, 2024) Parenthetical citation
\citep{Smith2024,Jones2023} (Jones, 2023; Smith, 2024) Multiple
\citeauthor{Smith2024} Smith Author only
\citeyear{Smith2024} 2024 Year only
\citep[p.~45]{Smith2024} (Smith, 2024, p. 45) With page

biblatex Commands (Alternative)

Command Output
\textcite{Smith2024} Smith (2024)
\parencite{Smith2024} (Smith, 2024)
\autocite{Smith2024} (Smith, 2024) — adapts to style

XeLaTeX for Chinese Content

When the paper includes zh-TW content:

\documentclass[12pt, a4paper]{article}
\usepackage{xeCJK}
\setCJKmainfont{Noto Sans CJK TC}     % or 'AR PL UMing TW'
\setCJKsansfont{Noto Sans CJK TC}
\setCJKmonofont{Noto Sans Mono CJK TC}

% Compile with: xelatex paper.tex

Bilingual Abstract in LaTeX

\begin{abstract}
\noindent
English abstract text here...
\\[6pt]
\textit{Keywords}: keyword1, keyword2, keyword3
\end{abstract}

\begin{center}
\textbf{Chinese Abstract}
\end{center}

\noindent
Chinese abstract content...

\noindent
\textbf{Keywords}: Keyword 1, Keyword 2, Keyword 3

Common LaTeX Compilation Issues

Issue Solution
Chinese characters not showing Use XeLaTeX instead of pdfLaTeX
Bibliography not appearing Run: latex → bibtex → latex → latex
Citations showing [?] Run bibtex and recompile
Hyperlinks not working Ensure hyperref is loaded last
Table/figure placement wrong Use [H] from float package
UTF-8 encoding errors Ensure \usepackage[utf8]{inputenc}

Pandoc Conversion Commands

Markdown → LaTeX

pandoc paper.md -o paper.tex --bibliography=references.bib --csl=apa.csl

Markdown → PDF (via LaTeX)

pandoc paper.md -o paper.pdf --pdf-engine=xelatex \
  --bibliography=references.bib --csl=apa.csl \
  -V geometry:margin=1in -V fontsize=12pt -V linestretch=2

Markdown → PDF (with Chinese)

pandoc paper.md -o paper.pdf --pdf-engine=xelatex \
  -V CJKmainfont="Noto Sans CJK TC" \
  --bibliography=references.bib --csl=apa.csl

Markdown → DOCX

pandoc paper.md -o paper.docx --bibliography=references.bib --csl=apa.csl

Source: SKILL.md on GitHub

1 alert1d5 checks · Risk SAFE
  • Gen Agent Trust Hub1d

    This skill provides a highly structured 12-agent academic paper writing pipeline. It contains robust internal defenses, including explicit 'instruction-data' boundaries and sanitization of user-provided content. However, the skill's complexity, its reliance on shell command execution for document processing and utility scripts, and its heavy ingestion of untrusted third-party materials (such as reviewer comments and external research content) present a surface for potential misuse and indirect prompt injection.

  • Socket1d

    No alerts

  • Snyk1d

    Risk: LOW · No issues

  • Runlayer6mo

    7/44 files flagged

  • ZeroLeaks5mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at c5c1b45. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 1 hour ago.

Activeupdated 2 days ago
Other metadata
metadata
{
  "version": "3.3.1",
  "last_updated": "2026-08-15",
  "status": "active",
  "data_access_level": "raw",
  "task_type": "open-ended",
  "related_skills": [
    "deep-research",
    "academic-paper-reviewer",
    "academic-pipeline"
  ]
}

README badge

README badge for imbad0202/academic-research-skills/academic-paper