|
| 1 | +# Osaurus PPTX — Agent Skill Guide |
| 2 | + |
| 3 | +Use this guide when creating PowerPoint presentations with the Osaurus PPTX plugin. |
| 4 | + |
| 5 | +## Overview |
| 6 | + |
| 7 | +This plugin **creates** PowerPoint (.pptx) presentations from scratch. It is not a full round-trip editor — treat every presentation as a fresh build. |
| 8 | + |
| 9 | +## Workflow |
| 10 | + |
| 11 | +Always follow this sequence: |
| 12 | + |
| 13 | +1. **create_presentation** — get a `presentation_id`, slide dimensions, and theme info |
| 14 | +2. **add_slide** (repeat) — add slides one at a time; each returns a `slide_number` |
| 15 | +3. **add_text / add_image / add_shape / add_table / add_chart / set_slide_background** — populate each slide with elements |
| 16 | +4. **save_presentation** — write the final `.pptx` file |
| 17 | + |
| 18 | +Never skip steps. You must create slides before adding elements. You must save at the end — nothing is written to disk until `save_presentation`. |
| 19 | + |
| 20 | +## Slide Coordinate System |
| 21 | + |
| 22 | +All positions and sizes are in **inches** measured from the top-left corner of the slide. |
| 23 | + |
| 24 | +### Default slide dimensions (16:9) |
| 25 | + |
| 26 | +- Width: **13.33"** |
| 27 | +- Height: **7.5"** |
| 28 | + |
| 29 | +### 4:3 slides |
| 30 | + |
| 31 | +- Width: **10.0"** |
| 32 | +- Height: **7.5"** |
| 33 | + |
| 34 | +The `create_presentation` response includes `width_inches` and `height_inches` — use these values for positioning calculations. |
| 35 | + |
| 36 | +### Safe margins |
| 37 | + |
| 38 | +Leave at least **0.5"** on all edges for a clean look. Usable area for 16:9: |
| 39 | +- X range: 0.5" to 12.83" |
| 40 | +- Y range: 0.5" to 7.0" |
| 41 | + |
| 42 | +## Positioning Recipes |
| 43 | + |
| 44 | +Use these coordinates for common slide layouts on 16:9 slides. Adjust proportionally for other sizes. |
| 45 | + |
| 46 | +### Title Slide |
| 47 | + |
| 48 | +``` |
| 49 | +Title: x=1.0 y=2.0 w=11.33 h=1.5 font_size=40 bold=true alignment=center |
| 50 | +Subtitle: x=1.0 y=4.0 w=11.33 h=1.0 font_size=24 alignment=center |
| 51 | +``` |
| 52 | + |
| 53 | +### Section Header |
| 54 | + |
| 55 | +``` |
| 56 | +Heading: x=1.0 y=2.5 w=11.33 h=1.5 font_size=36 bold=true alignment=center |
| 57 | +``` |
| 58 | + |
| 59 | +### Title + Body Content |
| 60 | + |
| 61 | +``` |
| 62 | +Title: x=0.75 y=0.5 w=11.83 h=1.0 font_size=32 bold=true |
| 63 | +Body: x=0.75 y=1.75 w=11.83 h=5.0 font_size=18 bullets=true |
| 64 | +``` |
| 65 | + |
| 66 | +### Title + Two Columns |
| 67 | + |
| 68 | +``` |
| 69 | +Title: x=0.75 y=0.5 w=11.83 h=1.0 font_size=32 bold=true |
| 70 | +Left: x=0.75 y=1.75 w=5.67 h=5.0 font_size=16 |
| 71 | +Right: x=6.67 y=1.75 w=5.67 h=5.0 font_size=16 |
| 72 | +``` |
| 73 | + |
| 74 | +### Title + Table or Chart |
| 75 | + |
| 76 | +``` |
| 77 | +Title: x=0.75 y=0.5 w=11.83 h=1.0 font_size=32 bold=true |
| 78 | +Table: x=0.75 y=1.75 w=11.83 h=5.0 |
| 79 | +Chart: x=1.5 y=1.75 w=10.33 h=5.0 |
| 80 | +``` |
| 81 | + |
| 82 | +### Title + Image |
| 83 | + |
| 84 | +``` |
| 85 | +Title: x=0.75 y=0.5 w=11.83 h=1.0 font_size=32 bold=true |
| 86 | +Image: x=2.5 y=1.75 w=8.33 h=5.0 |
| 87 | +``` |
| 88 | + |
| 89 | +## Themes |
| 90 | + |
| 91 | +Five built-in themes. Choose at creation time with the `theme` parameter: |
| 92 | + |
| 93 | +| Theme | Style | Best for | |
| 94 | +|-------|-------|----------| |
| 95 | +| **modern** (default) | Blue/orange, Calibri | General purpose | |
| 96 | +| **corporate** | Navy/steel blue, Georgia headings | Business, formal | |
| 97 | +| **creative** | Pink/purple, Avenir Next | Marketing, design | |
| 98 | +| **minimal** | Grayscale, Helvetica Neue | Clean, text-heavy | |
| 99 | +| **dark** | Purple/teal on dark bg, SF Pro | Technical, modern | |
| 100 | + |
| 101 | +Do not hardcode colors when possible — the theme provides defaults for text, headers, table headers, and more. Let the theme do the styling work. |
| 102 | + |
| 103 | +When using the **dark** theme, remember that the background is dark (`121212`). Set slide backgrounds explicitly if needed, and avoid dark text colors on dark slides. |
| 104 | + |
| 105 | +## Tool Tips |
| 106 | + |
| 107 | +### create_presentation |
| 108 | +- The `size` parameter controls aspect ratio, not layout. Default is `"16:9"`. Use `"4:3"` for standard or `"WxH"` for custom (e.g., `"10x7.5"`). |
| 109 | + |
| 110 | +### add_slide |
| 111 | +- The `layout` parameter is **metadata only**. It does not auto-generate any content. Every slide starts blank regardless of layout type. You must add all elements manually. |
| 112 | + |
| 113 | +### add_text |
| 114 | +- Use `\n` in the `text` parameter for line breaks / multiple paragraphs. |
| 115 | +- Set `bullets=true` for bullet-pointed lists. |
| 116 | +- Hex colors should omit the `#` prefix: use `"FF0000"` not `"#FF0000"`. |
| 117 | +- For centered titles, use `alignment: "center"` and `bold: true`. |
| 118 | + |
| 119 | +### add_image |
| 120 | +- Paths can be relative to the workspace or absolute. |
| 121 | +- Supported formats: PNG, JPG, GIF, SVG, BMP, TIFF. |
| 122 | +- This tool requires user permission (`ask` policy). |
| 123 | + |
| 124 | +### add_shape |
| 125 | +- 21 shape types available: `rect`, `round_rect`, `ellipse`, `triangle`, `diamond`, `pentagon`, `hexagon`, `octagon`, `star4`, `star5`, `star6`, `right_arrow`, `left_arrow`, `up_arrow`, `down_arrow`, `heart`, `cloud`, `lightning`, `line`, `parallelogram`, `trapezoid`. |
| 126 | +- Shapes can contain text via the `text` parameter — useful for labeled diagrams and flowcharts. |
| 127 | + |
| 128 | +### add_table |
| 129 | +- `rows` is a 2D array of strings. The first row is the header by default (`has_header: true`). |
| 130 | +- Column widths auto-distribute evenly. Use `column_widths` for custom sizing (must match column count). |
| 131 | + |
| 132 | +### add_chart |
| 133 | +- Types: `bar`, `column`, `line`, `pie`, `doughnut`. |
| 134 | +- Each series needs a `name` and `values` array. Optionally set a `color` per series. |
| 135 | +- `categories` are the x-axis labels. |
| 136 | + |
| 137 | +### save_presentation |
| 138 | +- Always call this when done. Nothing is persisted until you save. |
| 139 | +- The `.pptx` extension is added automatically if missing. |
| 140 | +- This tool requires user permission (`ask` policy). |
| 141 | + |
| 142 | +## Limitations |
| 143 | + |
| 144 | +Be aware of these constraints: |
| 145 | + |
| 146 | +1. **Creation-focused.** There are no tools to update or remove individual elements after adding them. If a slide needs correction, use `delete_slide` to remove it, re-add it with `add_slide`, and rebuild its elements. |
| 147 | + |
| 148 | +2. **No element modification.** You cannot change text, reposition elements, or update properties on existing elements. Plan each slide fully before adding elements. |
| 149 | + |
| 150 | +3. **No slide reordering.** Slides are ordered by insertion. Plan the slide sequence in advance. |
| 151 | + |
| 152 | +4. **read_presentation is limited.** Reading an existing `.pptx` only preserves text elements and slide backgrounds. Images, shapes, tables, and charts are not parsed. Use `read_presentation` primarily for inspecting text content, not for full round-trip editing. |
| 153 | + |
| 154 | +5. **One save at the end.** Build the entire presentation in memory, then call `save_presentation` once. You can save multiple times to different paths if needed. |
| 155 | + |
| 156 | +## Strategy for Multi-Slide Presentations |
| 157 | + |
| 158 | +1. Call `create_presentation` once. |
| 159 | +2. Plan all slides before building — decide the content and layout for each. |
| 160 | +3. Add slides sequentially: `add_slide` then immediately populate with elements before moving to the next slide. This keeps slide numbers predictable. |
| 161 | +4. Call `save_presentation` once at the end. |
| 162 | +5. If the user wants changes, use `delete_slide` on the affected slide, `add_slide` to re-add at the same position, rebuild its elements, and save again. |
| 163 | + |
| 164 | +## Correction Strategy |
| 165 | + |
| 166 | +Since elements cannot be modified after creation: |
| 167 | + |
| 168 | +- **Wrong text/formatting on a slide:** `delete_slide` the slide, `add_slide` again, re-add all elements with corrections. |
| 169 | +- **Wrong slide order:** Unfortunately slides cannot be reordered. Rebuild the presentation if order matters. |
| 170 | +- **Want to inspect what was built:** Use `get_presentation_info` with `include_details: true` to see all elements on all slides. |
| 171 | + |
| 172 | +## Example: Building a 3-Slide Presentation |
| 173 | + |
| 174 | +``` |
| 175 | +1. create_presentation(title="Q4 Report", theme="corporate") |
| 176 | + → get presentation_id, note width=13.33, height=7.5 |
| 177 | +
|
| 178 | +2. add_slide(presentation_id, layout="title") |
| 179 | + → slide 1 |
| 180 | +3. add_text(presentation_id, slide_number=1, text="Q4 2025 Report", |
| 181 | + x=1.0, y=2.0, width=11.33, height=1.5, |
| 182 | + font_size=40, bold=true, alignment="center") |
| 183 | +4. add_text(presentation_id, slide_number=1, text="Annual Review", |
| 184 | + x=1.0, y=4.0, width=11.33, height=1.0, |
| 185 | + font_size=24, alignment="center") |
| 186 | +
|
| 187 | +5. add_slide(presentation_id, layout="title_content") |
| 188 | + → slide 2 |
| 189 | +6. add_text(presentation_id, slide_number=2, text="Key Metrics", |
| 190 | + x=0.75, y=0.5, width=11.83, height=1.0, |
| 191 | + font_size=32, bold=true) |
| 192 | +7. add_chart(presentation_id, slide_number=2, chart_type="column", |
| 193 | + categories=["Oct", "Nov", "Dec"], |
| 194 | + series=[{name: "Revenue", values: [120, 135, 150]}], |
| 195 | + title="Monthly Revenue", |
| 196 | + x=1.5, y=1.75, width=10.33, height=5.0) |
| 197 | +
|
| 198 | +8. add_slide(presentation_id, layout="blank") |
| 199 | + → slide 3 |
| 200 | +9. add_text(presentation_id, slide_number=3, text="Thank You", |
| 201 | + x=1.0, y=2.5, width=11.33, height=1.5, |
| 202 | + font_size=36, bold=true, alignment="center") |
| 203 | +
|
| 204 | +10. save_presentation(presentation_id, path="Q4_Report.pptx") |
| 205 | +``` |
0 commit comments