SuperAPI AI Directory

lx-ppt

Office & productivity

View repository

Updated 10-16 08:35

About this skill

AI PPT Generation and Editing

Prerequisites: Requires lx CLI configured and logged in.

⚡ When to use this skill?

Entry scenario

  • User says "make a PPT"/"generate slides"/"modify presentation"
  • User says "create PPT"

Prohibited in this skill

  • Do not create knowledge base pages: user says "create a page in the knowledge base" → immediately switch to lx-entry skill
  • Do not search documents: user says "search PPT-related documents" → immediately switch to lx-search skill
  • Do not handle local .pptx fine-tuning: user explicitly requests editing local files, master slides, notes, element-by-element layout → immediately switch to generic pptx skill

Default routing

  • Goal is "generate/modify Enjoy AI PPT" → directly use lx-ppt
  • Only if user explicitly wants to operate on local .pptx files → switch to generic pptx skill

⚡ How to choose commands? (Decision tree)

识别场景 →
├── 从零生成 PPT?
│   └── lx ppt generate-ppt → lx ppt get-ppt-task(轮询至完成)
├── 修改已有 PPT 的页面内容?
│   └── lx ppt modify-ppt-pages(自然语言描述修改意图)
├── 增加新页面?
│   └── lx ppt add-ppt-pages
├── 删除页面?
│   └── lx ppt delete-ppt-pages
└── 调整页面顺序?
    └── lx ppt reorder-ppt-pages

⚠️ High-risk operations and default preferred path

Generation is asynchronous:

  • lx ppt generate-ppt returns task ID
  • must poll lx ppt get-ppt-task until status is complete
  • to get title and preview_url

Default preferred path:

  1. If there is a deep research report, prioritize using it → if deep_research was executed and there is report_url, it should be passed through --deep-research-report-url , generation quality is significantly better than pure --context
  2. Use title to identify PPT when modifying → all editing operations are associated with the target PPT through --title parameter, must use the exact title returned by get-ppt-task exact title returned
  3. Page index starts from 1 → modify-ppt-pages、delete-ppt-pages、reorder-ppt-pages page indexes in all start from 1 , not 0

modification uses natural language:

  • lx ppt modify-ppt-pages of modification field can directly describe the modification intent in Chinese
  • e.g. "change the title to Q2 summary", no need to specify coordinates or style parameters

Available tools

Command Description Reference
lx ppt generate-ppt Generate a complete PPT from a text description ppt.md
lx ppt get-ppt-task Query generation task status (polling) ppt.md
lx ppt modify-ppt-pages Modify specified page content ppt.md
lx ppt add-ppt-pages Add new page ppt.md
lx ppt delete-ppt-pages Delete specified page ppt.md
lx ppt reorder-ppt-pages Adjust page order ppt.md

🎯 Execution rules

  1. Generation is asynchronous:lx ppt generate-ppt returns task ID, mustpoll lx ppt get-ppt-task until status is complete, to get title and preview_url。
  2. Page index starts from 1:modify-ppt-pages、delete-ppt-pages、reorder-ppt-pages page indexes in all start from 1 , not 0.
  3. Use title to identify PPT when modifying: All editing operations (modify/add/delete/reorder) are associated with the target PPT through the --title parameter, and you must use the get-ppt-task exact title returned.
  4. modification uses natural language:lx ppt modify-ppt-pages 's modification field: directly describe the modification intent in Chinese (e.g., "change the title to Q2 Summary"); there is no need to specify coordinates or style parameters.
  5. slide_type choose one of three:lx ppt add-ppt-pages 's slide_type only supports cover(cover),content(content page),ending(ending page).
  6. If there is a deep research report, prioritize using: if deep_research has been executed and there is report_url, it should be passed through --deep-research-report-url , and the generation quality is significantly better than pure --context。

typical combination workflow

Generate a complete PPT from scratch

# 生成
lx ppt generate-ppt \
  --planning "10页,主题:Q2业绩汇报,风格:商务简约" \
  --context "Q2 营收 1.5 亿..."

# 轮询任务状态
lx ppt get-ppt-task --id task_xxx
# → status="completed" 后拿到 title + preview_url

# 根据用户反馈微调
lx ppt modify-ppt-pages \
  --title "Q2业绩汇报" \
  --pages '[{"page_index": 3, "modification": "数据图表换成柱状图"}]'

Add, delete, and adjust on an existing PPT

# 添加新页面
lx ppt add-ppt-pages --title "Q2业绩汇报" \
  --pages '[{"insert_after": 5, "title": "风险分析", "key_points": "...", "slide_type": "content"}]'

# 删掉第 2 页
lx ppt delete-ppt-pages --title "Q2业绩汇报" --page-indexes 2

# 调整顺序
lx ppt reorder-ppt-pages --title "Q2业绩汇报" \
  --new-order 1 --new-order 3 --new-order 4 --new-order 2