Agent skill · writing content · aiskillstore

skywork-document

Generate professional documents in multiple formats (docx, pdf, html, md) from scratch or based on user files. Supports web search for up-to-date content. Use when the expected output is longer than a short answer and benefits from structure and formatting. Do NOT use for short plain-text answers, code files, or casual Q&A.

Why this skill is useful

Adds specific scripts for document generation and parsing that the AI wouldn't reliably generate on its own.

What it needs

Requires python3 installed locally. About 6k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Doc — Professional Document Generator Generate professional, beautifully formatted documents by calling the Skywork Office Doc API. --- Authentication (Required First) Before using this skill, authentication must be completed. Run the auth script first: Token priority: 1. Environment variable SKYBOTTOKEN → if set, use directly 2. Cached token file ~/.skyworktoken → validate via API, if valid, use it 3. No valid token → opens browser for login, polls until complete, saves token IMPORTANT - Login URL handling: If script output contains a line starting with [LOGINURL], you MUST immediately send that URL to the user in a clickable message (e.g. "Please open this link to log in: <url>"). The user may be in an environment where the browser cannot open automatically, so always surface the login URL. --- Workflow Step 0: Intent Recognition (CRITICAL - Do This First) Before calling any script, analyze the user's request and determine: 1. Does the user provide reference files, or imply that certain files are needed to proceed with the writing task? Look for file paths, attachments, or mentions like "based on this PDF", "use the uploaded document". If you gathered info beforehand (e.g., web search, other tools) that would help the writing task, save it to disk as files and pass them as reference files in Step 1. If YES: find/extract file paths → proceed to Step 1 If NO: skip to Step 2 2. What language should the output be in? Analyze the user's request language or explicit requirement. If unspecified, infer from the user's language or the language used in uploaded files. Set --language parameter: English, 中文简体, etc. Default: English 3. What format does the user want? Look for keywords: "Word document" → docx, "PDF" → pdf, "HTML" → html, "Markdown" → md Default if not specified: docx Supported formats: docx, pdf, html, md 4. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/skywork-document

View the source on GitHub

Browse the @skills marketplace