Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/appleweiping/WEIPING_WIKInpx agentmods add skills/appleweiping/weiping_wiki/lark-slidesWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/appleweiping/weiping_wiki/lark-slides)<a href="https://agentmods.dev/skills/appleweiping/weiping_wiki/lark-slides"><img src="https://agentmods.dev/badge/skills/appleweiping/weiping_wiki/lark-slides/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/appleweiping/weiping_wiki/lark-slides"><img src="https://agentmods.dev/badge/skills/appleweiping/weiping_wiki/lark-slides.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00074 | $0.09683 |
| Opus 5 | $0.00037 | $0.04841 |
| Sonnet 5 | $0.00015 | $0.01937 |
| Haiku 4.5 | $0.00007 | $0.00968 |
Grade A, and why
lark-slides scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
8. **`<img src>` 只能用上传到飞书 drive 的 `file_token`,禁止使用 http(s) 外链 URL**:飞书 slides 渲染端不会代理外链图片,外链 src 在 PPT 里通常不显示或显示破图。流程必须是「先把图存到本地 → 用 `slides +media-upload` 上传或 `+create --slides` 的 `@./path` 占位符自动上传 → 拿 `file_token` 写进 Copies of this mod
1 near-identical copy found in the catalogue:
- lark-slides — 98% identical, 1 lines differ
How it starts
The opening of the file, as written. The whole thing — 525 lines — stays where its author put it; the contents beside it link to each section on GitHub.
slides (v1)
CRITICAL — 开始前 MUST 先用 Read 工具读取 ../lark-shared/SKILL.md,其中包含认证、权限处理
CRITICAL — 生成任何 XML 之前,MUST 先用 Read 工具读取 xml-schema-quick-ref.md,禁止凭记忆猜测 XML 结构。
CRITICAL — 如果用户提到“模板”“套用模板”“参考某种主题/风格/版式”,或用户需求明显落在已有场景模板内(如工作汇报、产品介绍、商业计划书、培训、晋升汇报等),MUST 先用 scripts/template_tool.py 的 search 做模板检索;默认给出 2-3 个最匹配模板候选供用户选择。锁定模板后用 summarize 获取主题和布局摘要;只有需要布局骨架时才用 extract 裁切目标页型 XML。不要直接读取完整模板 XML。
[!NOTE]
scripts/template_tool.py需要 Python 3。references/template-index.json是脚本缓存/轻量路由索引,不是默认给 agent 阅读的文档;assets/templates/*.xml是机器资源,只应通过脚本摘要或裁切,不要全文读取。
CRITICAL — 使用模板生成或改写页面时,MUST 先 summarize 目标页型;只有需要具体布局骨架时才 extract。生成本地 XML 后,如可运行 Python,MUST 先用 scripts/layout_lint.py 检查 XML well-formed、重叠/越界/文本高度风险,再创建或追加页面。它不是完整 XSD schema 校验。
编辑已有幻灯片页面:优先用 +replace-slide(块级替换/插入,不动页序);选择 action 和完整读-改-写流程见 lark-slides-edit-workflows.md。
身份选择
飞书幻灯片通常是用户自己的内容资源。默认应优先显式使用 --as user(用户身份)执行 slides 相关操作,始终显式指定身份。
--as user(推荐):以当前登录用户身份创建、读取、管理演示文稿。执行前先完成用户授权:
lark-cli auth login --domain slides
--as bot:仅在用户明确要求以应用身份操作,或需要让 bot 持有/创建资源时使用。使用 bot 身份时,要额外确认 bot 是否真的有目标演示文稿的访问权限。
执行规则:
- 创建、读取、增删 slide、按用户给出的链接继续编辑已有 PPT,默认都先用
--as user。 - 如果出现权限不足,先检查当前是否误用了 bot 身份;不要默认回退到 bot。
- 只有在用户明确要求"用应用身份 / bot 身份操作",或当前工作流就是 bot 创建资源后再做协作授权时,才切换到
--as bot。
快速开始
一条命令创建包含页面内容的 PPT(推荐):
lark-cli slides +create --title "演示文稿标题" --slides '[
"<slide xmlns=\"http://www.larkoffice.com/sml/2.0\"><style><fill><fillColor color=\"rgb(245,245,245)\"/></fill></style><data><shape type=\"text\" topLeftX=\"80\" topLeftY=\"80\" width=\"800\" height=\"100\"><content textType=\"title\"><p>页面标题</p></content></shape><shape type=\"text\" topLeftX=\"80\" topLeftY=\"200\" width=\"800\" height=\"200\"><content textType=\"body\"><p>正文内容</p><ul><li><p>要点一</p></li><li><p>要点二</p></li></ul></content></shape></data></slide>"
]'
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/templates/administration--all_hands_meeting.xml 104 KB
- assets/templates/administration--annual_gala.xml 62 KB
- assets/templates/administration--company_intro.xml 66 KB
- assets/templates/administration--corporate_culture.xml 84 KB
- assets/templates/hr--employee_training_workshop.xml 70 KB
- assets/templates/hr--employee_training.xml 52 KB
- assets/templates/hr--onboarding.xml 42 KB
- assets/templates/marketing--brand_communication.xml 68 KB
- assets/templates/marketing--brand_logo_design.xml 68 KB
- assets/templates/marketing--brand_operations_plan.xml 63 KB
- assets/templates/marketing--business_plan.xml 80 KB
- assets/templates/marketing--marketing_plan.xml 72 KB
- assets/templates/marketing--marketing_strategy.xml 72 KB
- assets/templates/marketing--product_whitepaper.xml 74 KB
- assets/templates/marketing--roadshow_business_plan.xml 75 KB
- assets/templates/misc--book_sharing.xml 70 KB
- assets/templates/misc--club_event_plan.xml 204 KB
- assets/templates/misc--student_career_plan.xml 83 KB
- assets/templates/office--dark_general.xml 198 KB
- assets/templates/office--dept_annual_report.xml 63 KB
- assets/templates/office--light_general.xml 183 KB
- assets/templates/office--project_kickoff.xml 148 KB
- assets/templates/office--quarterly_review.xml 58 KB
- assets/templates/office--work_report.xml 54 KB
- assets/templates/office--work_summary_report.xml 70 KB
- assets/templates/office--work_summary.xml 215 KB
- assets/templates/operations--brand_logo_design.xml 68 KB
- assets/templates/operations--brand_operations_plan.xml 63 KB
- assets/templates/operations--marketing_plan.xml 72 KB
- assets/templates/operations--product_promotion.xml 31 KB
- assets/templates/personal--experience_sharing.xml 110 KB
- assets/templates/personal--personal_resume.xml 97 KB
- assets/templates/personal--promotion_defense.xml 53 KB
- assets/templates/personal--promotion_report.xml 52 KB
- assets/templates/personal--self_intro.xml 32 KB
- assets/templates/personal--teaching_sharing.xml 152 KB
- assets/templates/product--business_case_analysis.xml 66 KB
- assets/templates/product--market_analysis.xml 42 KB
- assets/templates/product--product_analysis.xml 75 KB
- assets/templates/product--product_intro.xml 146 KB
- assets/templates/product--product_promotion_2.xml 31 KB
- assets/templates/product--product_promotion.xml 31 KB
- references/examples.md 8.5 KB
- references/lark-slides-create.md 7.0 KB
- references/lark-slides-edit-workflows.md 7.1 KB
- references/lark-slides-media-upload.md 5.5 KB
- references/lark-slides-replace-slide.md 11 KB
- references/lark-slides-xml-presentation-slide-create.md 8.6 KB
- references/lark-slides-xml-presentation-slide-delete.md 3.8 KB
- references/lark-slides-xml-presentation-slide-get.md 3.3 KB
- references/lark-slides-xml-presentation-slide-replace.md 6.9 KB
- references/lark-slides-xml-presentations-get.md 2.8 KB
- references/slide-templates.md 9.1 KB
- references/slides_demo.xml 12 KB
- references/slides_xml_schema_definition.xml 166 KB
- references/template-catalog.md 27 KB
- references/template-index.json 51 KB
- references/xml-format-guide.md 8.9 KB
- references/xml-schema-quick-ref.md 5.9 KB
- scripts/layout_lint_test.py 6.8 KB runs code
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 525 lines · 74 tokens per session scan A ec7e347c3b5f
lark-slides is a skill published in the GitHub repository appleweiping/WEIPING_WIKI (122 stars, last pushed 14d ago), licensed MIT. It adds 74 tokens to every session and 9,683 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
Other skills, from other repositories
kami-landing
Produce a print-grade single-page kami (紙 / 纸) document — warm parchment canvas, ink-blue accent, serif at one weight, no italic, no cool grays. The output reads like a professional white paper or studio one-pager, not an app UI. Multilingual by design (EN · zh-CN · ja). One self-contained HTML file, zero dependencies.
applying-brand-guidelines
This skill applies consistent corporate branding and styling to all generated documents including colors, fonts, layouts, and messaging.
html-ppt-obsidian-claude-gradient
OpenDesign's enterprise AI-adoption brief: local-first agents at work, the risk controls, the ROI, and the rollout plan. Built as a decision-grade AI literacy deck for leadership, IT, security.
kami
A design and typesetting guide for creating professional documents and product landing pages, such as resumes, white papers, portfolios, and slide decks.
read
Reads URLs and PDFs by fetching source content, defaulting to concise summaries for plain read requests and clean Markdown when asked to convert, save, quote, cite, or feed downstream work. Use when users ask in any language to read, fetch, check, summarize, quote, cite, convert, or save a URL or PDF. Not for local…
mermaid-tools
Extracts Mermaid diagrams from markdown files and generates high-quality PNG images using bundled scripts. Activates when working with Mermaid diagrams, converting diagrams to PNG, extracting diagrams from markdown, or processing markdown files with embedded Mermaid code.