What it is
Calls the Skywork Office Doc API to produce docx, pdf, markdown and html documents: reports, proposals, resumes, paper summaries, contracts and plans, plus rewrites, expansions and translations of existing files. For anyone who needs a structured long-form deliverable. It skips short answers, code files, scratch notes and chat replies.
Core workflow
| Stage | Content |
|---|---|
| Trigger | The user asks for a document, or the output is long enough to need structure and formatting, including implied intent |
| Input | Title, content prompt (treated as a rewrite query), language (default English), format (default docx, also docx/pdf/html/md), optional reference files |
| Steps | Step 0 settles intent (reference files, language, format, how to write the prompt); Step 1 parses each file with parse_file.py and collects the file_id into an array; Step 2 calls create_doc.py with --files; Step 3 parses the final JSON |
| Output | A remote file_url and a local file_path, always both; when file_path is empty, give the link and say it must be downloaded manually |
| Boundary | Requires SKYWORK_API_KEY; user files and the verbatim request go remote; web search runs server-side; title must not contain spaces |
Getting started: Parse each reference file into a file_id and pass them in one go; use underscores instead of spaces in the title.
Traits
- Four output formats:
docx,pdf,html,md - Two paths: write from scratch, or rewrite, summarise, expand or translate uploaded material
- The server side does its own web search, so no prior search is needed
- The content parameter behaves like a rewrite query: close to intent, no drift, no over-embellishment
Who it is for and who it is not for
| Good fit | Poor fit |
|---|---|
| Structured long-form work: reports, proposals, resumes, contracts, plans | One-line answers, scratch notes, ad-hoc Q&A |
| Rolling papers, spreadsheets and pdfs into one document | Code files |
| Multilingual output: English, Chinese, Japanese, Korean, French, German, Spanish | Material that must not leave the machine |
How it differs
| Need | Use |
|---|---|
| Generate a long docx, pdf, markdown or html document | skywork-doc (this page) |
| Generate a presentation deck | skywork-ppt |
| Build a spreadsheet and an analysis report | skywork-excel |
| Edit Word tracked changes and comments locally | appautomaton’s docx |
Source-level risks
| Risk | Source | Impact |
|---|---|---|
| Files and the verbatim request are sent out | The Privacy & Remote Calls section: files are uploaded and the request sent verbatim | Confidential material and internal data leave the machine |
title must not contain spaces | The call description in Step 2 | A spaced title fails creation or produces an odd filename, and the error may not name the cause |
| The parse script handles one file per call | The IMPORTANT note in Step 1 | Multiple files need multiple calls; a missed or mis-assembled --files array leaves references out |
| Results depend on server behaviour | The Privacy section says search runs on the Skywork side | Search sources and format conversion cannot be checked locally |