report-to-pdf
하는 일
이 스킬은 정적인 HTML 분석 보고서나 대시보드 내보내기로 PDF를 만듭니다. 발견 사항을 인쇄하거나 공유할 수 있는 PDF가 필요한 사람을 위한 스킬입니다.
사용하는 경우
- ✓기존 분석 보고서의 PDF 사본이 필요할 때.
- ✓대시보드나 차트 내보내기를 PDF로 저장하고 싶을 때.
- ✓이해관계자가 인쇄하거나 첨부할 파일을 요청한 경우.
스킬 링크
https://github.com/XiaomiMiMo/MiMo-Code/blob/main/packages/cli/src/skill/builtin/.bundle/data-analytics/workflows/build-report/report-to-pdf/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이메일에 첨부할 수 있도록 HTML 월간 분석 보고서의 PDF 사본을 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 헤드리스 브라우저에서 정적 HTML을 PDF로 인쇄한 뒤 PDF를 점검합니다. 원본이 보고서 내용 없이 앱 껍데기만 있다면 멈추고 실제 내보내기를 요청합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Report To PDF
Use this skill only when the user explicitly needs a PDF from an existing Data Analytics report, dashboard, or chart artifact. Prefer a static HTML export or another portable report file as the source.
The expected path is static HTML -> browser headless print-to-PDF -> PDF verification. If only a non-portable source exists, create or retrieve the matching static HTML/export source first.
Workflow
Resolve the static source.
Use an absolute local path to a static HTML report/export or a local URL served from that static export. If the source is a blob stub, sign-in page, redirect page, incomplete viewer, or an app shell that contains boot scripts but not the report content, stop and obtain a static HTML/export source before continuing.
When the user provides a hosted artifact URL, first determine whether it exposes a usable static export or package source. If the static export is unavailable but the validated artifact payload is still available in the current run, create the matching static HTML/export from that payload and preserve source provenance in the handoff. If neither a static export nor the artifact payload is available, stop with a blocker instead of printing the live app shell or rebuilding the report from memory.
When creating or repairing the static source, keep visible metadata reader-facing. Do not copy internal artifact runtime fields, package plumbing, or validator/debug state into the report body, header, footer, or source section. For example, omit raw labels such as snapshot status, package path, widget type, manifest path, renderer IDs, validation status, and local temp paths from the visible PDF. If a runtime detail matters for audit or troubleshooting, preserve it in support notes rather than the visible PDF. Translate data-state caveats into reader language only when they affect interpretation, such as "synthetic demo data" or "partial source coverage."
Generate the PDF with Chrome CLI headless print-to-PDF.
Use the platform-specific Chrome executable available in the environment. Common examples are
/Applications/Google Chrome.app/Contents/MacOS/Google Chromeon macOS andgoogle-chrome,chromium, orchromium-browseron Linux. This is the primary conversion method because it prints the static HTML with a browser rendering engine and usually preserves selectable text, layout, charts, tables, and print CSS.chrome \ --headless=new \ --disable-gpu \ --no-first-run \ --no-default-browser-check \ --no-pdf-header-footer \ --print-to-pdf=/absolute/path/to/report.pdf \ /absolute/path/to/report.htmlIf Chrome is unavailable or cannot produce a valid PDF, use a renderer-backed fallback.
Use the next available local mechanism that renders the same static HTML/export source and prints or saves that rendered page to PDF. Keep the fallback tool-agnostic: the requirement is faithful HTML rendering followed by PDF output, not a specific implementation. Do not replace this with a model-authored PDF layout, manually redrawn charts, or a report reconstructed from memory.
A fallback is acceptable only when:
- the static HTML/export remains the source of truth
- the rendered output preserves the report title, narrative, charts, tables, caveats, and source details
- app-only controls are omitted
- the resulting PDF passes the same verification checks as the primary Chrome path
If no available local renderer can print the static HTML/export faithfully, stop and report the blocker with the missing capability and the source file that could not be converted.
Verify the PDF itself.
Confirm page count and metadata with
pdfinfoor equivalent. Extract text withpdftotextor equivalent when the PDF should contain selectable text. Render representative pages withpdftoppmor equivalent and inspect them for blank charts, clipped content, missing source details, unwanted controls, internal runtime metadata, and layout regressions. For short reports, render every page. Include a negative check for app-only control labels such as share, edit, refresh, publish, toolbar, menu, and drag affordances, plus internal artifact labels such as snapshot status, widget type, manifest path, package path, validation status, and local temp paths.Repair before handoff.
If the output is blank, clipped, missing charts, missing source details, or includes app-only chrome, fix the static
자주 묻는 질문
어떤 원본이 필요한가요?
정적 HTML 보고서나 내보내기가 원본이며, 실시간 앱 껍데기는 원본이 될 수 없습니다.
기억으로 보고서를 다시 만드나요?
아니요. 스킬은 보고서를 기억으로 다시 만들지 않고, 문제를 알리며 멈추라고 안내합니다.
필요할 때만 사용하나요?
네. 보고서를 PDF로 바꿔 달라고 명시적으로 요청했을 때만 사용합니다.
상세 정보
작성자의 원본 설명
Narrow conversion skill. Invoke only when the user explicitly asks to convert an existing Data Analytics report, dashboard, or inline chart export into a PDF artifact.
repo: XiaomiMiMo/MiMo-Code
인기도
- GitHub 스타
- 14k
- 순위
- #11313
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
effect
14k에이전트가 기억에 의존하지 않고 소스 코드와 문서를 확인해 Effect TypeScript 프레임워크에 관한 질문에 답하도록 돕습니다.
arxiv
14k에이전트가 arXiv의 학술 논문을 검색하고, 읽고, 인용하고, 추적하도록 돕습니다. 초록, BibTeX 인용, PDF 다운로드, 인용 관계를 포함합니다.
claude-code
14k에이전트가 코딩 작업을 Claude Code 명령줄 도구에 맡기도록 돕습니다. 한 번 실행하거나, 대화형 세션으로 하거나, 백그라운드 작업으로 돌릴 수 있습니다.
codex
14k채팅 창 없이 OpenAI Codex 명령줄 도구를 실행해 코딩 작업, 스크립트, 자동화 파이프라인을 처리하도록 에이전트를 돕습니다.
비슷한 스킬
feishu-doc
394k에이전트가 문서 도구를 사용해 텍스트, 이미지, 표를 포함한 Feishu 클라우드 문서를 읽고, 만들고, 편집하도록 돕습니다.
feishu-drive
394k에이전트가 봇과 공유된 Feishu 클라우드 폴더의 파일을 찾아보고, 정리하고, 댓글을 달도록 돕습니다.
feishu-perm
394k에이전트가 요청을 충족하는 가장 작은 권한을 골라, Feishu 파일에 누가 접근할 수 있는지 확인하고 바꾸도록 돕습니다.