一键导入
report-export
Export a final reviewed research report into one or more requested output formats. This skill is the unified output-layer renderer for the pipeline.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Export a final reviewed research report into one or more requested output formats. This skill is the unified output-layer renderer for the pipeline.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Unpack a ZIP archive, inventory its files, run the corresponding child grounding skill for each supported child file, and then write a real archive-level grounded.md.
Convert a raw document into a structured grounding note for downstream research and summarization.
Run focused literature and web research from a grounded note. Use when a grounded note already exists and you want targeted research results, opened-link evidence, deeper per-paper analysis materials, optional downloaded literature, and a two-stage literature output (`lit_initial.md` then refined `lit.md`).
Review a research report draft with a structured scoring rubric, run a bounded repair loop when needed, and produce the final deliverable report.
Create a rich, evidence-preserving research report draft from a grounded note and its follow-up literature result. This is the main report-writing stage of the middle pipeline, not a compression memo.
Use the input path to select the correct downstream grounding pipeline and continue execution until the selected grounding workflow is completed.
基于 SOC 职业分类
| name | report-export |
| description | Export a final reviewed research report into one or more requested output formats. This skill is the unified output-layer renderer for the pipeline. |
This skill is the unified output-layer export skill.
It reads a final reviewed research report and renders it into one or more requested output formats.
This skill is the output-layer renderer for the pipeline:
grounding -> grounded-research-lit -> grounded-summary -> grounded-review -> report-export
Use this skill to export a final reviewed report from:
data/reports/<ground_id>/research_report.mdinto one or more requested formats, currently:
mddocxpdfpptxaudioThe output should be written under:
data/final_outputs/<ground_id>/...This skill:
<ground_id> from the input path<ground_id> output folderThis skill must not:
It may perform only the minimum transformation needed for the requested output format, such as:
ground_idInfer ground_id from the parent directory of the input report:
data/reports/<ground_id>/research_report.md
The <ground_id> is embedded in the input path — no need to read ground_id.txt.
The main input is:
data/reports/<ground_id>/research_report.mdThe skill assumes this file is already the final reviewed report.
Do not go back to:
grounded.mdlit.mdsummary.mdunless the user explicitly asks for a re-review or re-synthesis task.
output_langThe language for the exported report. Controls the language of all output format files (DOCX, PDF, PPTX, etc.).
Expected values:
en — English (default)zh — Chinese (Simplified)If omitted, defaults to en.
When output_lang is zh, the Agent performing the export task must first translate the English report into Chinese, then export the translated content into the requested format(s). The translation is done by the Agent directly — no API call or translation script is required. Preserve all markdown structure (headings, tables, code fences, links, formatting) during translation.
The audio format is always narrated in English regardless of output_lang.
Write outputs under:
data/final_outputs/<ground_id>/data/final_outputs/<ground_id>/md/report.mddata/final_outputs/<ground_id>/docx/report.docxdata/final_outputs/<ground_id>/pdf/report.pdfdata/final_outputs/<ground_id>/pptx/report.pptxdata/final_outputs/<ground_id>/audio/report.wavThis skill currently supports:
mddocxpdfpptxaudioIf the user requests an unsupported format, report it clearly instead of guessing.
Examples of unsupported formats for the current version include:
htmljsonchartpackUse the existing script entrypoint:
bash .cursor/skills/report-export/scripts/run.sh <input_report_path> <output_root> <format_or_comma_separated_formats> [output_lang]
⚠️ Important path rules:
<output_root> should be the parent directory, NOT including ground_idground_id from the input report's parent directory<output_root>/<ground_id>/<output_lang>/... where <output_lang> is the 4th argument (default: en)<output_root>/<ground_id> or <output_root>/<ground_id>/<lang> as the output_rootExamples:
# Correct: output_root is data/final_outputs (no ground_id, no lang)
bash .cursor/skills/report-export/scripts/run.sh \
data/reports/video-20260309195735/research_report.md \
data/final_outputs \
md
# Output: data/final_outputs/video-20260309195735/en/report.md
# Export Chinese version (output_lang=zh)
bash .cursor/skills/report-export/scripts/run.sh \
data/reports/video-20260309195735/research_report.md \
data/final_outputs \
docx,pdf \
zh
# Output: data/final_outputs/video-20260309195735/zh/report.docx, report.pdf
# Export multiple formats with English (default)
bash .cursor/skills/report-export/scripts/run.sh \
data/reports/video-20260309195735/research_report.md \
data/final_outputs \
md,docx,pdf,pptx,audio
# Output: data/final_outputs/video-20260309195735/en/{report.md,report.docx,report.pdf,...}
output_lang=zh, verify that CJK fonts are available by running fc-list :lang=zh. If no CJK fonts are found, install them first:
sudo apt-get update && sudo apt-get install -y fonts-noto-cjk fonts-wqy-zenhei
sudo fc-cache -fv
The export scripts will also attempt auto-install, but checking upfront avoids mid-export failures.<ground_id> from the parent directory of the input report.data/final_outputs/<ground_id>/<lang>/... where <lang> is the output_lang parameter (default: en).--- horizontal-rule separators and *本报告通过...* footnotes) is stripped from all exported formats. This is handled automatically by export_docx.py, export_pdf.py, and the updated export_md.py.All exported formats must preserve the underlying research content.
That means:
md, docx, pdf, and pptx should remain substantively alignedaudio may apply light speech-oriented rendering normalizationDo not:
For audio, acceptable normalization includes:
For audio, unacceptable behavior includes:
Markdown export should:
DOCX export should:
PDF export should:
fonts-noto-cjk) when output_lang=zh is requested*本报告通过接地评审... and horizontal rule separators ---) from the output file — do not include them in the exported documentPPTX export should:
Audio export should:
audio/report.wavThe current recommended backend is Kokoro TTS.
Font dependencies are automatically handled. The export scripts (export_pdf.py) will automatically check for CJK fonts and attempt to install them if missing. However, for reliable operation in new environments, ensure these packages are pre-installed:
# Required for PDF/DOCX export with CJK (Chinese/Japanese/Korean) text
sudo apt-get update
sudo apt-get install -y fonts-noto-cjk fonts-wqy-zenhei
pip install "python-docx>=1.0.0"
If fonts are missing and auto-install fails, the export will raise an error with instructions. Run the install command above and retry.
Common environment variables for audio export:
REPORT_EXPORT_AUDIO_LANG_CODE (default: a)REPORT_EXPORT_AUDIO_VOICE (default: af_heart)REPORT_EXPORT_AUDIO_SPEED (default: 1.0)REPORT_EXPORT_AUDIO_MAX_CHARS (default: 1200)The default values are aligned with a basic English narration path. Non-English use should provide a compatible language code, optional language-specific dependency, and a compatible voice name.
This task is complete only if:
data/final_outputs/<ground_id>/...