document-authoring
What it does
This skill helps an AI agent make common office documents and charts from your material. It is for people who need a finished file, not just a text draft.
When to use it
- ✓When you need a chart image or vector figure built from real data you provide.
- ✓When you want a PDF, Word file or spreadsheet made from notes or source material.
- ✓When you need an editable slide deck with clear layouts and a simple transition.
Skill link
https://github.com/leon-ai/leon/blob/develop/skills/agent/document-authoring/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you make a PDF report with a bar chart of our quarterly numbers and check that the chart is readable?”
5 new skills a week. 1 minute to read.
How it works
The agent picks the right tool for the file type, builds the file from your material and inspects a preview. It fixes problems it finds, such as clipped text or unclear axes, before delivering the file.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Document Authoring
- Establish the requested format, audience, content and acceptance criteria from the brief and supplied references. Reuse source material; for complex work, track criteria and verification evidence in plan details.
- Choose the creation tool based on the requested output:
- Charts: use
document.echarts.renderwith 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. - Presentations: use
document.slidev.createfor an editable project, authorslides.mdandstyle.csswith the file tool, and place selected chart/image assets inpublic/. Treat the scaffold as editable: owner choices for theme, layout, colors, typography, icons and animation override all defaults. Replace scaffold styles and components when needed; ensure additional themes have compatible installed dependencies. Use local Lucide icons and coherent cover/section/content layouts. Default to fully visible slides and a simpletransition: fadebetween them. Animate mechanisms inside the slide automatically while it is active: moving evidence along a flow, state changes, process cycles or grounded chart evolution. Use CSS orv-motionwith a static reduced-motion fallback. Avoid generic text/panel entrance and exit effects. Add click-triggered reveals (v-clickor click motion variants) and elaborate slide transitions only when the owner explicitly requests them. Ground technical claims in retrieved context/source and label illustrative data. Batch independent grounding reads and author related files together. Use fenced code or HTML-escaped<pre v-pre><code>for literal examples; keep Vue markup balanced. Runinspect, thencheck; during repairs select affectedoptions.slides. Targeted success hascomplete=falseand cannot establish full-deck coverage. Run the default full check on the final source and requirescope=full,complete=trueandok=true. Batch independent checks/previews and requested exports once source is stable; never edit files while those operations are reading them. Reuse current-run evidence and successful results while relevant source/assets are unchanged. Preview early/late motion frames and, only for requested staged reveals, initial/final click states; a passing check alone does not establish visual or animation quality. Finish withpresentto start/reuse a managed native Slidev server and open the deck in the host’s default browser. Return its audience and presenter links, Space/Right/Left navigation andffullscreen control. Verify opening with the browser tool; ifbrowserOpened=false, explain the reported issue and host-local URL scope. Use Satellite for device-side presentation when Leon runs remotely and ensure the project is on that device. Keep the session until the owner finishes, thenstopits sessionId. Export web/PDF/PNG/PPTX downloads only when requested; opening a deck should not require extracting files or running commands. A web ZIP includesserve.mjs: extract and runnode serve.mjs, then open its localhost URL; it can also be hosted as a static site. PDF/PNG and PowerPoint exports capture states rather than native browser motion. Normal PPTX contains slide images; editable PPTX may rasterize complex elements and needs fidelity review. Shared web decks omit notes by default; an optional source ZIP (includeSource=true) always contains them; omit that archive unless requested. - PDF: write a local
.typsource with the file tool, then calldocument.typst.compile. Keep the source and selected assets together in a project directory. Use the smallestrootPathcontaining that project. Built-in/local assets require no generation-provider account or package download. - Editable Word: use
document.document.createwithformat=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 ge
- Charts: use
FAQ
Can it make an editable slide deck?
Yes. It creates an editable slide project and writes the slides, so you can change them later.
Will it invent numbers for a chart?
No. The skill says charts must use the data you supply or the data it retrieves.
Does it check the file before handing it over?
Yes. It inspects a preview and fixes obvious problems before delivering.
Details
Original description by the author
Create, inspect and deliver charts, PDFs, Word documents and spreadsheets, and open animated browser presentations.
repo: leon-ai/leon
Popularity
- GitHub stars
- 18k
- Ranking position
- #10741
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
coding
18kHelps your agent read, change and test code in a project, following the project's own instructions and staying within the scope you set.
live-tutorial
18kLets your agent show a workflow in your app and turn the screenshots into an annotated MP4 tutorial video.
media-production
18kHelps your agent generate and edit images, vector art, audio and video, then check the finished files before delivering them.
Similar skills
feishu-doc
394kHelps your agent read, create, and edit Feishu cloud documents, including text, images, and tables, using the document tool.
feishu-drive
394kLets your agent browse, organize, and comment on files in a Feishu cloud folder that has been shared with the bot.
feishu-perm
394kHelps your agent check and change who can access a Feishu file, choosing the smallest permission that meets your request.