
Report To Google Doc
Narrow conversion skill.
Install
npx skills add XiaomiMiMo/MiMo-Code --skill report-to-google-doc -g -a claude-code -y- Repository
- XiaomiMiMo/MiMo-Code13.7k
- Category
- Documents
- Updated
- 3d ago
- License
- MIT
- Context cost
- Mediumabout 1,654 tokens
- Runs scripts
- Yes, review before use
What it does
Narrow conversion skill. Invoke only when the user explicitly asks to convert an existing local or blob-hosted HTML analytics report into a Google Doc, DOCX, or shareable document.
Report To Google Doc
Use this skill only when the user explicitly needs a shareable Google Drive document from an existing HTML analytics report. The source must be an HTML report: a local file, a downloaded blob-hosted report, or a report produced by $build-report
HTML mode or an equivalent local portable report source.
The expected path is HTML -> DOCX -> Drive upload. It is acceptable for Drive to host the upload as a DOCX-backed viewer file rather than a native Google Docs MIME type. Do not use the old Google Docs batch-update request path.
Workflow
-
Resolve the HTML report.
Use an absolute local path. If the user provides a remote report, retrieve it first and pass the local HTML file to the helper. If the file is a sign-in page, redirect page, or tiny stub, stop and obtain the real report.
-
Run the bundled helper.
python3 <REPORT_TO_GOOGLE_DOC_SKILL_DIR>/scripts/report_to_google_doc_plan.py \ /absolute/path/to/report.html \ --out-dir /tmp/report_to_google_doc_planOmit
--render-workerson the normal path. Only pass a worker count after benchmarking the same report family locally. If dependencies are missing, use a local virtual environment withbeautifulsoup4,pillow, andpython-docx;cairosvgor headless Playwright are optional renderers. -
Inspect helper outputs.
Required outputs:
skeleton.txt: source text with stable placeholdersmanifest.json: parsed headings, tables, callouts, lists, styles, links, and rendered visual inventorypreflight_checks.json: source, width, DOCX, and rendered-image checksreport.docx: generated local Word documentdocx_upload_plan.json: compact upload instructionsplaceholder_queries.json: source mapping debug labels
Do not upload until
preflight_checks.jsonhasstatus: "passed"with zero errors. Warnings must either be fixed or called out in the handoff. -
Upload the DOCX.


