Prerequisites: Requires
lxCLI 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
.pptxfine-tuning: user explicitly requests editing local files, master slides, notes, element-by-element layout → immediately switch to genericpptxskill
Default routing
- Goal is "generate/modify Enjoy AI PPT" → directly use lx-ppt
- Only if user explicitly wants to operate on local
.pptxfiles → switch to genericpptxskill
⚡ 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-pptreturns task ID- must poll
lx ppt get-ppt-taskuntilstatusis complete - to get
titleandpreview_url
Default preferred path:
- If there is a deep research report, prioritize using it → if
deep_researchwas executed and there isreport_url, it should be passed through--deep-research-report-url, generation quality is significantly better than pure--context - Use title to identify PPT when modifying → all editing operations are associated with the target PPT through
--titleparameter, must use the exact title returned byget-ppt-taskexact title returned - Page index starts from 1 →
modify-ppt-pages、delete-ppt-pages、reorder-ppt-pagespage indexes in all start from 1 , not 0
modification uses natural language:
lx ppt modify-ppt-pagesofmodificationfield 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
- Generation is asynchronous:
lx ppt generate-pptreturns task ID, mustpolllx ppt get-ppt-taskuntilstatusis complete, to gettitleandpreview_url。 - Page index starts from 1:
modify-ppt-pages、delete-ppt-pages、reorder-ppt-pagespage indexes in all start from 1 , not 0. - Use title to identify PPT when modifying: All editing operations (modify/add/delete/reorder) are associated with the target PPT through the
--titleparameter, and you must use theget-ppt-taskexact title returned. - modification uses natural language:
lx ppt modify-ppt-pages'smodificationfield: 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. - slide_type choose one of three:
lx ppt add-ppt-pages'sslide_typeonly supportscover(cover),content(content page),ending(ending page). - If there is a deep research report, prioritize using: if
deep_researchhas been executed and there isreport_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