跳到正文
Skillpedia
PDF、Word 与幻灯片18k · #10741

document-authoring

它能做什么

这个技能帮助 AI 智能体根据你提供的材料制作常见的办公文档和图表。适合需要成品文件、而不只是文字草稿的人。

适用场景

  • ✓当你需要根据你提供的真实数据制作图表图片或矢量图时。
  • ✓当你想根据笔记或原始材料制作 PDF、Word 文件或电子表格时。
  • ✓当你需要一套版式清晰、可编辑且过渡简单的幻灯片时。

技能链接

https://github.com/leon-ai/leon/blob/develop/skills/agent/document-authoring/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/leon-ai/leon/blob/develop/skills/agent/document-authoring/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我制作一份 PDF 报告,包含季度数字的柱状图,并检查图表是否清晰易读。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会根据文件类型选择合适的工具,用你的材料生成文件,并检查预览。在交付前,它会修正发现的问题,例如文字被截断或坐标轴不清晰。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Document Authoring

  1. 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.
  2. Choose the creation tool based on the requested output:
    • Charts: use document.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.
    • Presentations: use document.slidev.create for an editable project, author slides.md and style.css with the file tool, and place selected chart/image assets in public/. 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 simple transition: fade between 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 or v-motion with a static reduced-motion fallback. Avoid generic text/panel entrance and exit effects. Add click-triggered reveals (v-click or 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. Run inspect, then check; during repairs select affected options.slides. Targeted success has complete=false and cannot establish full-deck coverage. Run the default full check on the final source and require scope=full, complete=true and ok=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 with present to 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 and f fullscreen control. Verify opening with the browser tool; if browserOpened=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, then stop its sessionId. Export web/PDF/PNG/PPTX downloads only when requested; opening a deck should not require extracting files or running commands. A web ZIP includes serve.mjs: extract and run node 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 .typ source with the file tool, then call document.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 document.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 ge
常见问题

它能制作可编辑的幻灯片吗?

可以。它会创建可编辑的幻灯片项目并撰写内容,方便你之后修改。

它会为图表编造数字吗?

不会。该技能说明图表必须使用你提供的数据或它检索到的数据。

交付前它会检查文件吗?

会。它会检查预览,并在交付前修正明显的问题。

详情

作者的原始描述

Create, inspect and deliver charts, PDFs, Word documents and spreadsheets, and open animated browser presentations.

repo: leon-ai/leon

热度

GitHub 星标
18k
排名
#10741
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能