Agent skill

Document Authoring

by leon-ai in leon-ai/leon

“Create, inspect, revise and deliver charts, PDFs, Word documents, spreadsheets and presentations as conversation artifacts.”

— description from SKILL.md by leon-ai
MITAuto-check passedDocuments & Office

Install Document Authoring

skills CLI
$ npx skills add leon-ai/leon --skill document-authoring -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install leon-ai/leon document-authoring --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/leon-ai/leon.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/agent/document-authoring .claude/skills/document-authoring && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
document-authoring
GitHub stars
18k
Token cost
~936 tokens
SKILL.md length
483 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

  • Works in 2 steps: Establish the requested format, audience… → Choose the creation tool based on the…
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

About this skill

Document Authoring is a skill in leon-ai/leon (18k stars). Its SKILL.md is about 936 tokens. Licence: MIT.

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Establish the requested format, audience and content. Reuse supplied source material.
  2. Choose the creation tool based on the requested output

What it can do on your machine

Read from SKILL.md and the folder at commit 8a81182. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Document Authoring loads about 936 tokens when it runs. Until then it costs about 36 tokens; SKILL.md has 483 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~36
When it runs · the whole SKILL.md, loaded when a task matches
~936

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from leon-ai/leon at commit 8a81182, republished under its MIT licence (© leon-ai). 483 words, ~936 tokens.

Download SKILL.mdSave it as .claude/skills/document-authoring/SKILL.md (or your agent's skills folder).
name
document-authoring
description
Create, inspect, revise and deliver charts, PDFs, Word documents, spreadsheets and presentations as conversation artifacts.
metadata.author
Louis Grenard <louis@getleon.ai>
metadata.version
1.0.0

Document Authoring

  1. Establish the requested format, audience and content. Reuse supplied source material.
  2. Choose the creation tool based on the requested output:
    • Charts: use media_production.echarts.render with one named entry per requested chart and native ECharts JSON options. Ground the values in supplied/retrieved data, label units, and select only the requested image formats. Each chart becomes a separate SVG/PNG artifact. Use both formats when a vector document figure and raster preview are useful. Inspect a PNG preview and fix clipping or misleading axes before delivering it. Do not use image-generation models to invent or redraw quantitative charts.
    • PDF: write a local .typ source with the file tool, then call media_production.typst.compile. Keep the source and selected assets together in a project directory. Use the smallest rootPath containing that project. Built-in/local assets require no generation-provider account or package download.
    • Editable Word: use media_production.document.create with format=docx. Typst does not export DOCX.
    • SVG/PNG: compile Typst with the requested format. Each selected page becomes an image artifact. For a standalone figure, set the page dimensions to fit the figure rather than exporting a full report page.
    • Plain text, CSV, Markdown and source files: use existing file writing.
    • Hosted generation or Office formats requiring a provider: inspect media_production.document.capabilities, then use generate with the configured defaults. Reserve generateWithModel for an explicitly owner-requested provider/model.

If hosted generation returns selection_required, ask the owner to select a provider or use local Typst/DOCX creation when it satisfies the request. Save a choice with configure only if asked to remember it.

  1. Use readable typography, consistent headings and generous spacing. Typst source supports tables, lists, equations, references and figures; use these instead of flattening everything into paragraphs. Generate chart assets with echarts.render or reuse supplied SVG/PNG assets. For PDFs, copy selected assets into the Typst project with the shell tool, embed them with image inside figure, and add a useful caption. For DOCX, pass each selected absolute artifact path in content.sections[].images with caption and altText; the writer preserves proportions and includes PNG fallbacks for SVG. Images follow the section's paragraphs, so use separate sections to position figures between text blocks. Keep chart values grounded in supplied or retrieved data. Use typst.listFonts before choosing multilingual fonts, and provide local fontPaths when needed. Inspect compiler diagnostics and fix unknown fonts or layout warnings; do not silently produce missing glyphs. Preview-package imports may download missing packages, so avoid them for offline work.
  2. Inspect the resulting content with the file tool. Render PDF pages with readPdf and inspect layout. For Word/Office files use an available renderer to inspect a PDF export; disclose when only structural/content checks were possible.
  3. Fix clipped text, missing content or layout defects before delivering the final revision. A provider's success response alone is not a quality check.
  4. Generated files already have artifact references. For existing files use operating_system_control.file.attach. Do not duplicate attachments, paste base64, or use server-local file markers as downloads.

© leon-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/agent/document-authoring of leon-ai/leon.

Open the folder on GitHubat commit 8a81182

Compare with similar skills

Document Authoring next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Document Authoring compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Document Authoring this skillleon-ai/leon18k—~936Automated safety check: PassMIT
MarkitdownImCa0/just-laws78114 repos~3.2kAutomated safety check: NotesMIT
GenOffice Document CLIgenspark-ai/genoffice8.9k—~19kAutomated safety check: PassApache-2.0
Markitdownjimmc414/Kosmos5942 repos~1.7kAutomated safety check: PassNone
Office DocumentsZS520L/HanakoPro102—~1.6kAutomated safety check: PassApache-2.0
PaperJSX Document Generatorcomposio-community/awesome-codex-skills17k—~842Automated safety check: PassApache-2.0

Similar skills

  • Markitdown

    ImCa0/just-laws

    Convert files and office documents to Markdown. An agent skill from ImCa0/just-laws.

    781 GitHub starsUsed in 14 repos~3.2k tokens
    Documents & OfficeAuto-check: notes
  • GenOffice Document CLI

    genspark-ai/genoffice

    Creates, converts, reads and edits real pptx, xlsx, docx and PDF files locally through the genoffice command line.

    8.9k GitHub stars~19k tokensUpdated today
    Documents & OfficeAuto-check passed
  • Markitdown

    jimmc414/Kosmos

    Convert various file formats (PDF, Office documents, images, audio, web content, structured data) to Markdown optimized for LLM processing.

    594 GitHub starsUsed in 2 repos~1.7k tokens
    Documents & OfficeAuto-check passed
  • Office Documents

    ZS520L/HanakoPro

    A skill your agent uses when the user asks to open, read, inspect, understand, summarize, analyze, extract tables/text from, modify, update, repair, split, merge, rotate, or convert information from…

    102 GitHub stars~1.6k tokensUpdated 4 mo ago
    Documents & OfficeAuto-check passed
  • PaperJSX Document Generator

    composio-community/awesome-codex-skills

    Generates PPTX, DOCX, XLSX and PDF files from a JSON layout spec through PaperJSX's packages, creating new documents rather than editing them.

    17k GitHub stars~842 tokensUpdated 2 mo ago
    Documents & OfficeAuto-check passed
  • Skill Doc Delivery

    nyldn/claude-octopus

    Convert markdown to DOCX, PPTX, XLSX, PDF office documents — use when you need exportable deliverables

    4.2k GitHub starsUsed in 1 repo~2.4k tokens
    Documents & OfficeAuto-check passed

More from leon-ai/leon

  • Records a real workflow in the owner's own application and renders an annotated MP4 tutorial from verified screenshots, with captions in the language of the request.

    18k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Leon Coding Agent

    leon-ai/leon

    Has Leon's agent investigate, change and verify code in a repository with its file, search and shell tools, staying inside the scope the owner authorized.

    18k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Media Production

    leon-ai/leon

    Generates images, audio and video through Leon's media tools, joins them with FFmpeg, checks the output and attaches playable files for the owner.

    18k GitHub stars~622 tokensUpdated today
    Auto-check passed

Questions about Document Authoring

How do I install Document Authoring in Claude Code?

Run `npx skills add leon-ai/leon --skill document-authoring -a claude-code`. Or copy the skill folder (skills/agent/document-authoring in leon-ai/leon) into .claude/skills/document-authoring in your project. Claude Code loads it when a task matches its description.

How do I install Document Authoring in Codex?

Run `npx skills add leon-ai/leon --skill document-authoring -a codex`. Or copy the skill folder (skills/agent/document-authoring in leon-ai/leon) into .agents/skills/document-authoring in your project. Codex loads it when a task matches its description.

Can I use Document Authoring in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add leon-ai/leon --skill document-authoring -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/document-authoring, .gemini/skills/document-authoring, .github/skills/document-authoring and .opencode/skills/document-authoring in your project.

What does Document Authoring need to run?

SKILL.md names no scripts, command-line tools or credentials: Document Authoring is instructions for the agent only.

Does Document Authoring access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Document Authoring safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Document Authoring use?

Document Authoring is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Document Authoring use?

About 936 tokens (SKILL.md is roughly 3.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Document Authoring?

Skills that share tags, products or a category with Document Authoring: Markitdown (ImCa0/just-laws, 781 stars), GenOffice Document CLI (genspark-ai/genoffice, 8.9k stars), Markitdown (jimmc414/Kosmos, 594 stars) and Office Documents (ZS520L/HanakoPro, 102 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Document Authoring?

leon-ai (a GitHub organization) maintains it in leon-ai/leon, which has 17,562 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 8, 2026.

Source: leon-ai/leon on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.