officecli-pptx — office命令行工具-pptx
v1.0.2Use this 技能 any time a .pptx file is involved -- as 输入, 输出, or 机器人h. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or 提取ing text from any .pptx file; editing, modifying, or updating existing presentations; combining or splitting slide files; working with templates, layouts, speaker notes, or comments. Trigger whenever the user mentions 'deck,' 'slides,' 'presentation,' or references a .pptx filename.
运行时依赖
安装命令
点击复制技能文档
Office命令行工具 PPTX 技能 BEFORE YOU 启动 (CRITICAL)
Every time before using office命令行工具, 运行 this 检查:
if ! command -v office命令行工具 &> /dev/null; then echo "安装ing office命令行工具..." curl -fsSL https://raw.githubusercontent.com/iOfficeAI/Office命令行工具/mAIn/安装.sh -o /tmp/office命令行工具_安装.sh && bash /tmp/office命令行工具_安装.sh && rm -f /tmp/office命令行工具_安装.sh # Windows: irm https://raw.githubusercontent.com/iOfficeAI/Office命令行工具/mAIn/安装.ps1 -OutFile "$env:TEMP\office命令行工具_安装.ps1"; & "$env:TEMP\office命令行工具_安装.ps1" else CURRENT=$(office命令行工具 --version 2>&1 | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1) LATEST=$(curl -fsSL https://API.github.com/repos/iOfficeAI/Office命令行工具/releases/latest | grep '"tag_name"' | sed -E 's/."v?([0-9.]+)"./\1/') if [ "$CURRENT" != "$LATEST" ]; then echo "Upgrading office命令行工具 $CURRENT → $LATEST..." curl -fsSL https://raw.githubusercontent.com/iOfficeAI/Office命令行工具/mAIn/安装.sh -o /tmp/office命令行工具_安装.sh && bash /tmp/office命令行工具_安装.sh && rm -f /tmp/office命令行工具_安装.sh else echo "office命令行工具 $CURRENT is up to date" fi fi office命令行工具 --version
Quick Reference Task Action Read / analyze content Use view and 获取 commands below Edit existing presentation Read editing.md 创建 from scratch Read creating.md Reading & Analyzing Text 提取ion office命令行工具 view slides.pptx text office命令行工具 view slides.pptx text --启动 1 --end 5
Structure Overview office命令行工具 view slides.pptx outline
输出 shows slide titles, shape counts, and picture counts per slide.
DetAIled Inspection office命令行工具 view slides.pptx annotated
Shows shape types, fonts, sizes, pictures with alt text 状态, tables with dimensions.
Statistics office命令行工具 view slides.pptx stats
Slide count, shape count, font usage, missing titles, missing alt text.
Element Inspection # 列出 all shapes on a slide office命令行工具 获取 slides.pptx /slide[1] --depth 1
# 获取 shape detAIls (position, fill, font, animation, etc.) office命令行工具 获取 slides.pptx /slide[1]/shape[1]
# 获取 图表 data and config office命令行工具 获取 slides.pptx /slide[1]/图表[1]
# 获取 table structure office命令行工具 获取 slides.pptx /slide[1]/table[1] --depth 3
# 获取 placeholder by type office命令行工具 获取 slides.pptx "/slide[1]/placeholder[title]"
CSS-like Queries # Find shapes contAIning specific text office命令行工具 查询 slides.pptx 'shape:contAIns("Revenue")'
# Find pictures without alt text office命令行工具 查询 slides.pptx "picture:no-alt"
# Find shapes with specific fill color office命令行工具 查询 slides.pptx 'shape[fill=#4472C4]'
# Find shapes wider than 10cm office命令行工具 查询 slides.pptx "shape[width>=10cm]"
# Find shapes on a specific slide office命令行工具 查询 slides.pptx 'slide[2] > shape[font="Arial"]'
Visual Inspection # SVG rendering (single slide, self-contAIned, no dependencies) office命令行工具 view slides.pptx svg --启动 1 --end 1 --browser
# HTML rendering (all slides, interactive, with 图表s and 3D -- recommended) office命令行工具 view slides.pptx html --browser
Note: SVG renders only one slide per invocation (the first in the range). Use html --browser for multi-slide preview with full 图表/gradient/table rendering.
De签名 Principles
Don't 创建 boring slides. PlAIn bullets on a white background won't impress anyone.
Before 启动ing Pick a bold, content-信息rmed color palette: The palette should feel de签名ed for THIS topic. If sw应用ing your colors into a completely different presentation would still "work," you haven't made specific enough choices. Dominance over e质量: One color should dominate (60-70% visual weight), with 1-2 supporting tones and one sharp accent. Never give all colors equal weight. Dark/light contrast: Dark backgrounds for title + conclusion slides, light for content ("sandwich" structure). Or commit to dark throughout for a premium feel. Commit to a visual motif: Pick ONE distinctive element and repeat it -- rounded image frames, icons in colored circles, thick single-side borders. Carry it across every slide. Color Palettes
Choose colors that match your topic -- don't default to generic blue:
Theme Primary Secondary Accent Text Muted/Caption Coral Energy F96167 (coral) F9E795 (gold) 2F3C7E (navy) 333333 (charcoal) 8B7E6A (warm gray) Midnight Executive 1E2761 (navy) CADCFC (ice blue) FFFFFF (white) 333333 (charcoal) 8899BB (slate) Forest & Moss 2C5F2D (forest) 97BC62 (moss) F5F5F5 (cream) 2D2D2D (near-black) 6B8E6B (faded green) Charcoal Minimal 36454F (charcoal) F2F2F2 (off-white) 212121 (black) 333333 (dark gray) 7A8A94 (cool gray) Warm Terracotta B85042 (terracotta) E7E8D1 (sand) A7BEAE (sage) 3D2B2B (brown-black) 8C7B75 (dusty brown) Berry & Cream 6D2E46 (berry) A26769 (dusty rose) ECE2D0 (cream) 3D2233 (dark berry) 8C6B7A (mauve gray) Ocean Gradient 065A82 (deep blue) 1C7293 (teal) 21295C (midnight) 2B3A4E (dark slate) 6B8FAA (steel blue) Teal Trust 028090 (teal) 00A896 (seafoam) 02C39A (mint) 2D3B3B (dark teal) 5E8C8C (muted teal) Sage Calm 84B59F (sage) 69A297 (eucalyptus) 50808E (slate) 2D3D35 (dark gre