Paper writing
End-to-end academic paper creation — outline design, structured content writing, review, and assembly. Covers survey papers, empirical research, technical papers, case studies, literature reviews, and any formal academic writing requiring methodology sections, contribution positioning, and rigorous citation. Outputs are delivered in Markdown (`.md`) format. Do NOT use for: industry reports, consulting deliverables, policy briefs (use report-writing).From its SKILL.md
npx -y skills add serejaris/kimi-skills --skill paper-writingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 24 days oldThe repository was created 24 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 5 stars5 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
10.8 KB, ~2.3k tokens by cl100k_base, as published. Nobody here has run it
Paper Writing
Orchestrate the full lifecycle of academic papers: outline design → content creation → review → assembly.
If the user explicitly requests an output format, deliver that format. If the user does not specify a format, deliver .docx by default. Workflow artifacts may still be generated in Markdown (.md) as intermediate files; when .docx delivery is needed, use the docx-related skill at skills/docx/SKILL.md to convert the generated Markdown artifact.
Workflow Decision Tree
User Query
│
├─ Research artifacts found at /mnt/agents/output/research/
│ → Pre-Stage (load) → Stage 1 → Stage 2 → Stage 3 → Stage 4
│
├─ No artifacts + topic requires literature survey
│ → Pre-Stage (create) → Stage 1 → Stage 2 → Stage 3 → Stage 4
│
├─ Provides outline + asks for content
│ → Stage 2 → Stage 3 → Stage 4
│
├─ Asks for outline only → Stage 1 → deliver and stop
│
└─ Provides draft + asks for revision → Stage 3 → Stage 4
Pre-Stage: Research Artifact Detection & Creation
Before starting any stage, check /mnt/agents/output/research/ for research artifacts.
Path A: Artifacts exist
If {topic}_dim*.md, {topic}_cross_verification.md, and {topic}_insight.md are found:
- Load them as research input for Stage 1–2. No additional research sub-agents needed.
Path B: No artifacts — create them
If the directory is empty or missing and the task requires literature survey or factual research:
- Create
/mnt/agents/output/research/ - Decompose the research scope into 3–5 literature dimensions (e.g., by research thread, methodology family, application domain)
- Deploy parallel research sub-agents, one per dimension, each performing ≥5 searches focused on academic sources
- Each sub-agent saves output to
/mnt/agents/output/research/{topic}_dim{NN}.md - Orchestrator performs lightweight cross-verification →
{topic}_cross_verification.md, extracts insights (research gaps, methodological tensions, contribution angles) →{topic}_insight.md - Proceed to Stage 1
The downstream pipeline (Stage 1–4) is identical regardless of artifact source.
Stage 1: Outline Design
Read outline.md first.
Goal: Produce a structured, executable outline following academic paper conventions.
Process:
- Deploy parallel sub-agents:
requirement_analyst— extract research questions, scope, target venueartifact_analyst— synthesize research artifacts from/mnt/agents/output/research/to identify prior work, research gaps, and positioning opportunitiesstructure_designer— design section hierarchy, word budgetsmethodology_planner— outline research approach, evaluation criteria
- Synthesize into unified outline (4-level heading format per outline.md)
- Save to
/mnt/agents/output/{filename}.agent.outline.md— do not skip this step; Stage 2 depends on the outline file - If full paper intended: one sentence asking whether to proceed
- If outline only: deliver and stop
Academic-specific: The outline must establish the paper's contribution statement — what is new, how it differs from prior work, and why it matters.
Stage 2: Content Creation
Read content.md first. Follow its Resolution Principle, System Prompt Template, and Task Prompt Template.
Prerequisite: Research artifacts MUST exist at /mnt/agents/output/research/ before this stage begins.
Research artifact handoff: The Orchestrator passes research artifacts to each writer as Input Materials (see content.md template):
-
Every writer receives:
{topic}_insight.md(research gaps, contribution angles) and{topic}_cross_verification.md(confidence tiers) -
Each writer receives the
{topic}_dim{NN}.mdfiles relevant to their section (e.g., Related Work gets literature-focused dims, Methodology gets technique-focused dims) -
User-provided sources: Even though research agents already read user-supplied files (PDFs, URLs, etc.) during the research stage, writers still need the original paths. Research extractions inevitably lose exact figures, table data, formulas, and nuanced arguments that writers need for accurate, detailed prose. Pass the relevant source paths to each writer alongside the dim files. Select per-section — not everything to everyone.
-
User-provided sources: Even though research agents already read user-supplied files (PDFs, URLs, etc.) during the research stage, writers still need the original paths. Research extractions inevitably lose exact figures, table data, formulas, and nuanced arguments that writers need for accurate, detailed prose. Pass the relevant source paths to each writer alongside the dim files. Select per-section — not everything to everyone.
-
User-provided sources: Even though research agents already read user-supplied files (PDFs, URLs, etc.) during the research stage, writers still need the original paths. Research extractions inevitably lose exact figures, table data, formulas, and nuanced arguments that writers need for accurate, detailed prose. Pass the relevant source paths to each writer alongside the dim files. Select per-section — not everything to everyone.
-
Writers do NOT perform web searches for core literature (minor supplementary searches acceptable)
Goal: Produce all sections as individual markdown files with academic rigor, proper citation density, and methodological transparency.
Process:
- Parse outline: extract sections, word counts, dependencies
- Resolve all writer configuration before creating any sub-agent (style, color scheme, section conventions — see content.md)
- Section grouping: independent → parallelize; dependent → serialize
Round dispatch (for stages with 3+ sections):
Parallel tasks CANNOT see each other's output. Before dispatching, analyze dependencies:
- List the dependency graph among sections.
- Group into rounds: Round 1 = sections with no upstream dependencies; Round 2 = sections depending on Round 1 outputs; and so on.
- Abstract / conclusion / synthesis sections MUST be in a later round than the content they summarize.
- For later-round sections, pass the actual outputs from earlier rounds as context — do not substitute with pre-existing materials when the produced content is available.
- When in doubt, dispatch in separate rounds.
- Create Writer via
create_subagent(System Prompt Template), dispatch viatask(Task Prompt Template) - Validate each section before proceeding to dependents
Critical dependency chain: Introduction → (Related Work ∥ Methodology) → Results → Discussion → Conclusion → Abstract (written last)
Stage 3: Review Pipeline
Read review.md first.
Pipeline (sequential):
section_editor (per section, parallelizable)
→ methodology_reviewer (rigor and reproducibility check)
→ coherence_editor (cross-section consistency)
→ abstract_reviewer (accuracy against final content)
→ citation_manager (read citation.md for this step)
Each editor can pass or delegate rewrites in-place.
Stage 4: Assembly
- Blocked until citation_manager completes —
_ref.mdmust exist before merging - Merger sub-agent concatenates all
_sec{NN}.mdfiles in academic order, appends reference list, saves as/mnt/agents/output/{filename}.agent.final.md - Final validation: cross-references, heading hierarchy, citation/figure/table numbering continuity
- Convert to
.docxby default (pass docx skill path/app/.agents/skills/docx/SKILL.mdto merger). User-specified format overrides. Both.mdand formatted file are delivered.
Core Principles
- Research and writing are separate agents. Research agents gather information; writer agents produce content from provided materials. Non-negotiable.
- Markdown first, then format.
.agent.final.mdis mandatory intermediate output. - Execute to completion. Do not pause unless outline needs confirmation.
- Everything is a file. No long-form content in chat.
- File naming:
{filename}_sec{NN}.mdfor sections,{filename}_ref.mdfor references,{filename}.agent.outline.mdfor outline,{filename}.agent.final.mdfor final. - Rewrites are in-place. No version proliferation.
- Language consistency. All content — prose, sub-agent names, prompts, deliverables — must match the user's language. Never mix languages unless explicitly requested.
- Context flows forward. Orchestrator maintains cross-section context for dependent sections.
- Citation integrity. MCP tools auto-record to
/mnt/agents/.citation.jsonland return globally unique citation indices (e.g.,[^49^]). Writers MUST use these indices as-is — never renumber. Section files contain only[^N^]markers in body text, no reference lists. See citation.md. - Abstract is written last. It summarizes actual findings, not planned findings.
- User-provided sources reach writers. Research-stage extractions (dim files) inevitably lose exact figures, formulas, and nuanced arguments. When the user supplied reference files or URLs, include the relevant original paths in each writer's task prompt — even though research agents already read them. Select per-section, not dump all.
- Strict UTF-8. When reading or concatenating
_sec{NN}.mdfiles during assembly, always useencoding='utf-8'with no error handler. OnUnicodeDecodeError, re-dispatch the writer for the corrupted section. Never fall back tolatin-1,gbk,cp1252,errors='ignore', orerrors='replace'— these convert a detectable error into silent mojibake in the delivered.docx.
Reference Files
| File | When to Read | Content |
|---|---|---|
| outline.md | Before Stage 1 | Academic outline methodology, structure conventions, contribution framing |
| content.md | Before Stage 2 | Resolution principle, prompt templates, section writing conventions, color schemes |
| review.md | Before Stage 3 | Academic review criteria, methodology review, quality gates |
| citation.md | Before citation_manager | Citation styles (APA/IEEE/etc.), source tiers, manager workflow |
| styles/*.md | Before Stage 2 | Paper-type-specific conventions |
What ships with it: 9 files
37.5 KB alongside SKILL.md
styles/
- case-study.md1.6 KB
- empirical.md1.4 KB
- survey.md1.6 KB
- systems.md1.5 KB
- _template.md790 B
- citation.md4.1 KB
- content.md13.1 KB
- outline.md7.2 KB
- review.md6.2 KB