document-authoring
Skill by leon-ai
Creates, inspects and delivers charts, PDFs, Word documents and spreadsheets, and opens animated browser presentations for AI assistants. It is aimed at people who need finished documents built from a brief and reference material.
Install document-authoring
Built from the published package, never by AI.
git clone --depth 1 https://github.com/leon-ai/leon /tmp/leon && mkdir -p ~/.claude/skills && cp -r /tmp/leon/skills/agent/document-authoring ~/.claude/skills/document-authoringRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/leon-ai/leon /tmp/leon && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/leon/skills/agent/document-authoring ~/.gemini/antigravity-cli/skills/document-authoringAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Document Authoring is an agent skill that guides an AI assistant through creating and checking documents. It covers charts rendered with ECharts to SVG or PNG, Slidev presentations opened in the host's browser, PDFs compiled from Typst source, and editable Word files created as DOCX. It also covers images of existing Markdown or HTML documents, and plain text, CSV or Markdown files written with the file tool.
The skill asks the assistant to ground chart values in supplied or retrieved data and to inspect rendered previews before delivery. Presentations are checked with a full deck check and can be exported as web, PDF, PNG or PPTX files. It is written for people who need charts, reports, Word files and slide decks produced from a brief and reference material.
Written from the project's SKILL.md and checked against it.
What it can do
- Chart renderingRenders named ECharts charts as separate SVG or PNG artifacts using document.echarts.render.
- Slidev presentationsCreates an editable Slidev project with document.slidev.create and opens the deck in the browser with present.
- PDF creationWrites a local Typst source and compiles it to PDF with document.typst.compile.
- Word documentsCreates editable DOCX files with document.document.create using format=docx.
- Document imagesRenders existing Markdown or HTML documents into images, with checks on the output.
- Hosted generationUses document.document.capabilities and generate for Office formats that need a provider.
- File attachmentsAttaches existing files with file_system.file.attach so they can be downloaded.
What you need
- Node.js to run serve.mjs from an exported web ZIP
- A configured hosted generation provider for Office formats that require one
- An approved renderer command for Markdown or HTML image output
Try asking
- Make a PDF report from these notes using a Typst layout.
- Create an ECharts bar chart from this data as SVG and PNG.
- Build a Slidev deck from this brief and open it in the browser.
Good to know
- PDF, PNG and PowerPoint exports capture slide states rather than native browser motion.
- Typst does not export DOCX, so Word files use the DOCX creation path.
- Shared web decks omit speaker notes by default.
- Preview-package imports may download missing packages, so they are unsuitable for offline work.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/agent/document-authoring/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
skill.json632 B
Alternatives to document-authoring
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
document-authoring: common questions
Can it create a Word document?
Yes. It creates editable Word files with document.document.create using format=docx. Typst does not export DOCX.
Should an image model draw the charts?
No. The source says not to use image-generation models to invent or redraw quantitative charts. Charts are rendered with document.echarts.render from grounded values.
Can presentations be exported?
Yes. Web, PDF, PNG and PPTX downloads can be exported when requested. PDF, PNG and PowerPoint exports capture slide states rather than native browser motion.
How do I install document-authoring?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is document-authoring free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is document-authoring safe to use?
It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to document-authoring?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
