Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器clawhub未标认证来源可访问clear审计提醒

officecli-pptxofficecli PPTX 搜索

Agent Skill

officecli-pptx 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

3,515

周安装

145

GitHub Stars

公开资料未说明

下载量

1,148
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:officecli-pptx(officecli PPTX 搜索)
来源仓库:https://github.com/iceyliu/officecli-pptx
安装命令:
openclaw skills install officecli-pptx
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install officecli-pptx

简介

处理 .pptx 格式的幻灯片创建与内容更新。

  • 支持宣传材料、培训课件与汇报展示制作。officecli-pptx 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 可读取图片与图标库资源保持品牌一致性。
  • 动画效果建议简化以提升加载速度与兼容性。
  • 导出前检查字体嵌入情况防止他人设备显示异常。

SKILL.md

name
officecli-pptx
description
Use this skill any time a .pptx file is involved -- as input, output, or both. This includes: creating slide decks, pitch decks, or presentations; reading, parsing, or extracting 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.

OfficeCLI PPTX Skill

BEFORE YOU START (CRITICAL)

Every time before using officecli, run this check:

if ! command -v officecli &> /dev/null; then
    echo "Installing officecli..."
    curl -fsSL https://raw.githubusercontent.com/iOfficeAI/OfficeCli/main/install.sh -o /tmp/officecli_install.sh && bash /tmp/officecli_install.sh && rm -f /tmp/officecli_install.sh
    # Windows: irm https://raw.githubusercontent.com/iOfficeAI/OfficeCli/main/install.ps1 -OutFile "$env:TEMP\officecli_install.ps1"; & "$env:TEMP\officecli_install.ps1"
else
    CURRENT=$(officecli --version 2>&1 | grep -oE '[0-9]+\.[0-9]+\.[0-9]+' | head -1)
    LATEST=$(curl -fsSL https://api.github.com/repos/iOfficeAI/OfficeCLI/releases/latest | grep '"tag_name"' | sed -E 's/.*"v?([0-9.]+)".*/\1/')
    if [ "$CURRENT" != "$LATEST" ]; then
        echo "Upgrading officecli $CURRENT → $LATEST..."
        curl -fsSL https://raw.githubusercontent.com/iOfficeAI/OfficeCli/main/install.sh -o /tmp/officecli_install.sh && bash /tmp/officecli_install.sh && rm -f /tmp/officecli_install.sh
    else
        echo "officecli $CURRENT is up to date"
    fi
fi
officecli --version

Quick Reference

TaskAction
Read / analyze contentUse view and get commands below
Edit existing presentationRead editing.md
Create from scratchRead creating.md

Reading & Analyzing

Text Extraction

officecli view slides.pptx text
officecli view slides.pptx text --start 1 --end 5

Structure Overview

officecli view slides.pptx outline

Output shows slide titles, shape counts, and picture counts per slide.

Detailed Inspection

officecli view slides.pptx annotated

Shows shape types, fonts, sizes, pictures with alt text status, tables with dimensions.

Statistics

officecli view slides.pptx stats

Slide count, shape count, font usage, missing titles, missing alt text.

Element Inspection

# List all shapes on a slide
officecli get slides.pptx /slide[1] --depth 1

# Get shape details (position, fill, font, animation, etc.)
officecli get slides.pptx /slide[1]/shape[1]

# Get chart data and config
officecli get slides.pptx /slide[1]/chart[1]

# Get table structure
officecli get slides.pptx /slide[1]/table[1] --depth 3

# Get placeholder by type
officecli get slides.pptx "/slide[1]/placeholder[title]"

CSS-like Queries

# Find shapes containing specific text
officecli query slides.pptx 'shape:contains("Revenue")'

# Find pictures without alt text
officecli query slides.pptx "picture:no-alt"

# Find shapes with specific fill color
officecli query slides.pptx 'shape[fill=#4472C4]'

# Find shapes wider than 10cm
officecli query slides.pptx "shape[width>=10cm]"

# Find shapes on a specific slide
officecli query slides.pptx 'slide[2] > shape[font="Arial"]'

Visual Inspection

# SVG rendering (single slide, self-contained, no dependencies)
officecli view slides.pptx svg --start 1 --end 1 --browser

# HTML rendering (all slides, interactive, with charts and 3D -- recommended)
officecli 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 chart/gradient/table rendering.


Design Principles

Don't create boring slides. Plain bullets on a white background won't impress anyone.

Before Starting

  • Pick a bold, content-informed color palette: The palette should feel designed for THIS topic. If swapping your colors into a completely different presentation would still "work," you haven't made specific enough choices.
  • Dominance over equality: 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:

ThemePrimarySecondaryAccentTextMuted/Caption
Coral EnergyF96167 (coral)F9E795 (gold)2F3C7E (navy)333333 (charcoal)8B7E6A (warm gray)
Midnight Executive1E2761 (navy)CADCFC (ice blue)FFFFFF (white)333333 (charcoal)8899BB (slate)
Forest & Moss2C5F2D (forest)97BC62 (moss)F5F5F5 (cream)2D2D2D (near-black)6B8E6B (faded green)
Charcoal Minimal36454F (charcoal)F2F2F2 (off-white)212121 (black)333333 (dark gray)7A8A94 (cool gray)
Warm TerracottaB85042 (terracotta)E7E8D1 (sand)A7BEAE (sage)3D2B2B (brown-black)8C7B75 (dusty brown)
Berry & Cream6D2E46 (berry)A26769 (dusty rose)ECE2D0 (cream)3D2233 (dark berry)8C6B7A (mauve gray)
Ocean Gradient065A82 (deep blue)1C7293 (teal)21295C (midnight)2B3A4E (dark slate)6B8FAA (steel blue)
Teal Trust028090 (teal)00A896 (seafoam)02C39A (mint)2D3B3B (dark teal)5E8C8C (muted teal)
Sage Calm84B59F (sage)69A297 (eucalyptus)50808E (slate)2D3D35 (dark green)7A9488 (faded sage)
Cherry Bold990011 (cherry)FCF6F5 (off-white)2F3C7E (navy)333333 (charcoal)8B6B6B (dusty red)

Use Text for body copy on light backgrounds, Muted for captions, labels, and axis text. On dark backgrounds, use the Secondary or FFFFFF for body text and Muted for captions.

Need a color not in the table? These palettes are starting points. You can add accent colors (e.g., gold D4A843 with Forest & Moss) or blend palettes to match the topic. If a user requests a palette that doesn't exist by name (e.g., "Forest & Gold"), use the closest match and supplement with appropriate accent tones.

Typography

Choose an interesting font pairing -- don't default to Arial.

Header FontBody FontBest For
GeorgiaCalibriFormal business, finance, executive reports
Arial BlackArialBold marketing, product launches
CalibriCalibri LightClean corporate, minimal design
CambriaCalibriTraditional professional, legal, academic
Trebuchet MSCalibriFriendly tech, startups, SaaS
ImpactArialBold headlines, event decks, keynotes
PalatinoGaramondElegant editorial, luxury, nonprofit
ConsolasCalibriDeveloper tools, technical/engineering
ElementSize
Slide title36-44pt bold
Section header20-24pt bold
Body text14-16pt
Captions10-12pt muted

Layout Variety

Every slide needs a visual element -- image, chart, icon, or shape. Text-only slides are forgettable.

Vary across these layout types:

  • Two-column (text left, visual right)
  • Icon + text rows (icon in colored circle, bold header, description)
  • 2x2 or 2x3 grid (content blocks)
  • Half-bleed image (full left/right side) with content overlay
  • Large stat callouts (big numbers 60-72pt with small labels below)
  • Comparison columns (before/after, pros/cons)
  • Timeline or process flow (numbered steps, arrows)

Content-to-Layout Quick Guide

These are starting points. Adapt based on content density and narrative flow.

Content TypeRecommended LayoutWhy
Pricing / plan tiers2-3 column cards (comparison)Side-by-side enables instant comparison
Team / peopleIcon grid or 2x3 cardsFaces/avatars need equal visual weight
Timeline / roadmapProcess flow with arrows or numbered stepsLeft-to-right communicates sequence
Key metrics / KPIsLarge stat callouts (3-4 big numbers)Big numbers grab attention; labels below
Testimonials / quotesFull-width quote with attributionGenerous whitespace signals credibility
Feature comparisonTwo-column before/after or tableParallel structure aids scanning
Architecture / systemShapes + connectors diagramSpatial relationships need visual expression
Financial dataChart + summary table side-by-sideChart shows trend; table provides precision

Spacing

  • 0.5" (1.27cm) minimum margins from slide edges
  • 0.3-0.5" (0.76-1.27cm) between content blocks
  • Leave breathing room -- don't fill every inch

Avoid (Common Mistakes)

  • Don't repeat the same layout -- vary columns, cards, and callouts across slides
  • Don't center body text -- left-align paragraphs and lists; center only titles
  • Don't skimp on size contrast -- titles need 36pt+ to stand out from 14-16pt body
  • Don't default to blue -- pick colors that reflect the specific topic
  • Don't mix spacing randomly -- choose 0.3" or 0.5" gaps and use consistently
  • Don't style one slide and leave the rest plain -- commit fully or keep it simple throughout
  • Don't create text-only slides -- add images, icons, charts, or visual elements
  • Don't forget text box padding -- when aligning shapes with text edges, set margin=0 on the text box or offset to account for default padding
  • Don't use low-contrast elements -- icons AND text need strong contrast against the background
  • NEVER use accent lines under titles -- these are a hallmark of AI-generated slides; use whitespace or background color instead

QA (Required)

Assume there are problems. Your job is to find them.

Your first render is almost never correct. Approach QA as a bug hunt, not a confirmation step. If you found zero issues on first inspection, you weren't looking hard enough.

Content QA

# Extract all text, check for missing content, typos, wrong order
officecli view slides.pptx text

# Check for structural and formatting issues automatically
officecli view slides.pptx issues

Note: view issues reports "Slide has no title" for all blank-layout slides. This is expected when using layout=blank (the recommended approach for custom designs). These warnings can be safely ignored.

When editing templates, check for leftover placeholder text:

officecli query slides.pptx 'shape:contains("lorem")'
officecli query slides.pptx 'shape:contains("xxxx")'
officecli query slides.pptx 'shape:contains("placeholder")'

Visual QA

Use subagents -- even for 2-3 slides. You've been staring at the code and will see what you expect, not what's there. Subagents have fresh eyes.

# Render a single slide as SVG for visual inspection
officecli view slides.pptx svg --start 3 --end 3 --browser

# Loop through slides for multi-slide QA
for i in 1 2 3 4 5; do officecli view slides.pptx svg --start $i --end $i > /tmp/slide-$i.svg; done

SVG limitations: SVG renders only one slide (the first in the --start/--end range). Gradient backgrounds, charts, and tables are not visible in SVG output. For full-fidelity multi-slide preview including charts and gradients, use HTML mode:

officecli view slides.pptx html --browser

Prompt for visual QA subagent:

Visually inspect these slides. Assume there are issues -- find them.

Look for:
- Overlapping elements (text through shapes, lines through words, stacked elements)
- Text overflow or cut off at edges/box boundaries
- Elements too close (< 0.3" gaps) or cards/sections nearly touching
- Uneven gaps (large empty area in one place, cramped in another)
- Insufficient margin from slide edges (< 0.5")
- Columns or similar elements not aligned consistently
- Low-contrast text (e.g., light gray on cream background)
- Low-contrast icons (e.g., dark icons on dark backgrounds without a contrasting circle)
- Text boxes too narrow causing excessive wrapping
- Leftover placeholder content

For each slide, list issues or areas of concern, even if minor.
Report ALL issues found.

Editing-specific QA checklist (in addition to the above):

  • [ ] On every template slide (not new blank slides), verify that NO decorative element (!!-prefixed shape) overlaps or obscures content text
  • [ ] Verify all hero numbers / key metrics are visible (not hidden by card fills or same-color-as-background)
  • [ ] On dark background slides, verify chart bars/lines, axis labels, and gridlines are visible

Validation

# Schema validation -- must pass before delivery
officecli validate slides.pptx

Pre-Delivery Checklist

Before declaring a presentation complete, verify:

  • [ ] Speaker notes on all content slides (not just title/closing)
  • [ ] At least one transition style applied (fade for title, push or wipe for content)
  • [ ] Alt text on all pictures
  • [ ] At least 3 different layout types used across slides
  • [ ] No two consecutive slides share the same layout pattern

Verification Loop

  1. Generate slides
  2. Run view issues + validate + visual inspection
  3. List issues found (if none found, look again more critically)
  4. Fix issues
  5. Re-verify affected slides -- one fix often creates another problem
  6. Repeat until a full pass reveals no new issues

Do not declare success until you've completed at least one fix-and-verify cycle.


Common Pitfalls

PitfallCorrect Approach
--name "foo"Use --prop name="foo" -- all attributes go through --prop
x=-3cmNegative coordinates not supported. Use x=0cm instead
/shape[myname]Name indexing not supported. Use numeric index: /shape[3]
Guessing property namesRun officecli pptx set shape to see exact names
`\
` in shell stringsUse `\\

for newlines in --prop text="line1\\ line2" | | Modifying an open file | Close the file in PowerPoint/WPS first | | Hex colors with # | Use FF0000 not #FF0000 -- no hash prefix | | Theme colors | Use accent1..accent6, dk1, dk2, lt1, lt2 -- not hex | | Forgetting alt text | Always set --prop alt="description" on pictures for accessibility | | Paths are 1-based | /slide[1], /shape[1] -- XPath convention | | --index is 0-based | --index 0 = first position -- array convention | | Unquoted [N] in zsh/bash | Shell glob-expands /slide[1] -- always quote paths: "/slide[1]" | | Z-order (shapes overlapping) | Use --prop zorder=back or zorder=front / forward / backward / absolute position number. **WARNING:** Z-order changes cause shape index renumbering -- re-query with get --depth 1 after any z-order change before referencing shapes by index. Process highest index first when changing multiple shapes. | | gap/gapwidth on chart add | Ignored during add -- set it after creation: officecli set ... /slide[N]/chart[M] --prop gap=80 | | $ and ' in batch JSON text | Use heredoc: cat <<'EOF' \| officecli batch -- single-quoted delimiter prevents shell expansion of $, apostrophes, and backticks | | Template text at wrong size | Template shapes have baked-in font sizes. Always include size, font, and color in every set` on template shapes. See editing.md "Font Cascade from Template Shapes" section. |


Performance: Resident Mode

For multi-step workflows (3+ commands on the same file), use open/close:

officecli open slides.pptx        # Keep in memory -- fast subsequent commands
officecli add slides.pptx ...     # No file I/O overhead per command
officecli set slides.pptx ...
officecli close slides.pptx       # Save and release

Performance: Batch Mode

Execute multiple operations in a single open/save cycle:

echo '[
  {"command":"add","parent":"/slide[1]","type":"shape","props":{"text":"Title","x":"2cm","y":"2cm","width":"20cm","height":"3cm","size":"36","bold":"true"}},
  {"command":"add","parent":"/slide[1]","type":"shape","props":{"text":"Body text","x":"2cm","y":"6cm","width":"20cm","height":"10cm","size":"16"}}
]' | officecli batch slides.pptx

Batch supports: add, set, get, query, remove, move, view, raw, raw-set, validate.

Batch mode works with resident mode. Run officecli open file.pptx first, then pipe batch commands, then officecli close file.pptx. This combines batch efficiency with resident mode's persistent file handle.

Batch fields: command, path, parent, type, from, to, index, props (dict), selector, mode, depth, part, xpath, action, xml.

parent = container to add into (for add, including clone via from field). path = element to modify (for set, get, remove, move).


Known Issues

IssueWorkaround
Chart series cannot be added after creation: set --prop data= and set --prop seriesN= on an existing chart can only update existing series -- they cannot add new series. The series count is fixed at creation time.Include all series in the add command (using series1+series2 props or the data prop). Both forms work reliably in single commands and in batch mode. If you need to add series to an existing chart, delete it and recreate: officecli remove file.pptx "/slide[N]/chart[M]" then officecli add with all series. See creating.md "Multi-Series Column Chart" and editing.md "Update Charts".
Chart schema validation warning: Some modern chart styling combinations produce a ChartShapeProperties schema warning from officecli validate. This does not affect PowerPoint rendering.Ignore the warning if the chart opens correctly in PowerPoint.
Table font cascade overwritten by row set: Setting size/font on the table path and then setting row content with set tr[N] resets font properties on that row to defaults.Set table-level size/font after all row content is populated, or include size/font in each row-level set command.
Shell quoting in batch with echo: `echo '...' \officecli batch fails when JSON values contain apostrophes or $` characters (common in English text and currency).Use a heredoc instead: `cat <<'EOF' \officecli batch file.pptx ... EOF`. The single-quoted heredoc delimiter prevents all shell interpolation.
Batch intermittent failure: Approximately 1-in-15 batch operations may fail with "Failed to send to resident" when using batch mode with resident mode (open/close).Retry the failed batch command. If the error persists, close and re-open the file: officecli close file.pptx && officecli open file.pptx, then retry. For critical workflows, consider splitting large batch arrays into smaller chunks (10-15 operations each).
Table cell solidFill schema warning: Setting color on table cell run properties may produce solidFill schema validation errors. The table renders correctly in PowerPoint.Ignore if the table opens correctly. Alternatively, set text color at the row level (set tr[N] --prop color=HEX) instead of the cell level.
Multi-series chart rendering in SVG/screenshot: SVG and screenshot renders may show fewer series than actually exist in the chart data. The chart data is correct but the rendering engine does not always display all series visually.Verify multi-series charts by opening the .pptx in PowerPoint or by using get /slide[N]/chart[M] to confirm all series are present in the data. Do not rely solely on SVG/screenshot visual QA for multi-series verification.

Help System

When unsure about property names, value formats, or command syntax, run help instead of guessing. One help query is faster than guess-fail-retry loops.

officecli pptx set              # All settable elements and their properties
officecli pptx set shape        # Shape properties in detail
officecli pptx set shape.fill   # Specific property format and examples
officecli pptx add              # All addable element types
officecli pptx view             # All view modes
officecli pptx get              # All navigable paths
officecli pptx query            # Query selector syntax

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

83.27%
按下载量换算956

安全审计

VirusTotal

未展示

ClawScan

可疑

Static analysis

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills