К основному содержанию
промпт GP ChatGPT

insert — промпт для Claude Code: что делает и как установить

Промпт insert задаёт правила вставки блоков, фигур и коннекторов на слайды презентаций. Он нужен для точного позиционирования элементов через команды genoffice.

Apache-2.0 ★ 12 746 обновлён 2026-10-29

Установить в Claude Code · Вручную: положить файлы Все способы и платформы ↓
.claude/commands/insert.md
Открыть на GitHub

Что делает insert

Промпт описывает вызовы для добавления объектов на слайд презентации. Каждая операция принимает номер слайда target:{slide} и рамку offset. Координаты передаются строго в EMU. Созданный объект возвращает свой идентификатор в поле created. В рамках текущей транзакции сослаться на него ещё нельзя, поэтому оформление передают сразу либо настраивают в следующем вызове.

Через addElement на слайд добавляются текстовые блоки, стандартные фигуры вроде roundRect или стрелки. Текст задаётся массивом paragraphs с кеглем в пунктах. Чтобы связать блоки стрелкой с автоматической привязкой, служит команда addConnector: она цепляет линию к фигурам верхнего уровня, сохраняя соединение при сдвиге. Для вёрстки всей страницы с нуля инструмент рекомендует использовать generate_deck.

Какие задачи решает

  • добавить текстовый блок или фигуру с точными координатами в EMU
  • связать два элемента на слайде гибким коннектором через addConnector
  • настроить внутренние отступы, заливку и параметры автоподбора текста
  • расставить стрелки между блоками с фиксацией на их гранях

Примеры запросов агенту

  • Вставь текстовый блок с заголовком Key Takeaways на первый слайд в координатах EMU
  • Соедини прямоугольник e_SHAPE и картинку e_PICTURE стрелкой через addConnector
  • /insert: добавь фигуру roundRect с заливкой #E8F0FE на слайд 1

Как установить insert

Вручную: положить файлы

.claude/commands/insert.md

Вопросы об insert

Как установить insert в Claude Code?

Сохраните файл промпта по пути .claude/commands/insert.md в корне вашего проекта.

Что делает промпт insert?

Он задаёт схему параметров для операций addElement и addConnector, позволяя создавать слайдовые элементы, форматировать надписи и привязывать стрелки.

Почему нельзя передавать координаты в пикселях?

Схема требует значения смещения исключительно в единицах EMU. Для расчёта координат из пикселей нужно применять коэффициент масштабирования из команды read_slide.

Исходный текст

insert.md · Apache-2.0
# Insert ops

> Create new elements on a slide: text boxes, preset shapes and lines (addElement), connectors glued to shapes, tables, native charts, SmartArt-style diagrams.

Insert ops take `target:{slide}` (no `el`) and an `offset:{x,y,cx,cy}` frame
in document-space EMU. They report the new element id in `created`; later ops
in the same transaction cannot reference it yet, so insert first and style in
the next call, or pass the style inline where the op supports it.

### addElement

`{kind:"textbox"|<preset geometry>,offset:{x,y,cx,cy},paragraphs?,fill?,stroke?,adjustments?:{<gd name>:val},bodyPr?:{autoFit?:"shrink"|"resize"}}`

Adds a text box, a preset-geometry shape, or a line/connector.

| Field       | Type                                                                                           | Notes                                                                                                                                                                                                                                              |
| ----------- | ---------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| kind        | string                                                                                         | `"textbox"`; a preset geometry (`rect`, `roundRect`, `ellipse`, `triangle`, `diamond`, `rightArrow`, `chevron`, `star5`, `hexagon`, `wedgeRoundRectCallout`, ...); or a line kind `line`, `lineArrow`, `lineArrowDouble`, `lineBent`, `lineCurved` |
| offset      | `{x, y, cx, cy}` EMU                                                                           | Required                                                                                                                                                                                                                                           |
| paragraphs  | array of `{runs:[{text, bold?, italic?, underline?, fontSize?, fontFamily?, color?}], align?}` | Optional text; `fontSize` in pt                                                                                                                                                                                                                    |
| fill        | `"#RRGGBB"` or `"#RRGGBBAA"`                                                                   | Solid fill; text boxes have none by default                                                                                                                                                                                                        |
| stroke      | `{color, widthEmu}`                                                                            | Outline; lines default to a 1 pt black stroke                                                                                                                                                                                                      |
| adjustments | `{<gdName>: number}`                                                                           | Preset adjust values, e.g. `{"adj": 25000}` for a roundRect radius                                                                                                                                                                                 |
| bodyPr      | `{autoFit?, wrap?, anchor?, insetsEmu?}`                                                       | `autoFit` `"shrink"` or `"resize"`; `wrap` `"square"`/`"none"`; `anchor` `"t"`/`"ctr"`/`"b"`                                                                                                                                                       |

```json
{
  "op": "addElement",
  "target": { "slide": 1 },
  "kind": "textbox",
  "offset": { "x": 914400, "y": 685800, "cx": 7315200, "cy": 914400 },
  "paragraphs": [
    { "runs": [{ "text": "Key Takeaways", "bold": true, "fontSize": 32 }], "align": "left" }
  ],
  "bodyPr": { "autoFit": "shrink" }
}
```

```json
{
  "op": "addElement",
  "target": { "slide": 1 },
  "kind": "roundRect",
  "offset": { "x": 914400, "y": 2286000, "cx": 3200400, "cy": 1600200 },
  "fill": "#E8F0FE",
  "stroke": { "color": "#1A73E8", "widthEmu": 12700 },
  "adjustments": { "adj": 16667 },
  "paragraphs": [
    { "runs": [{ "text": "Card title", "bold": true, "color": "#1A73E8" }], "align": "center" }
  ]
}
```

```json
{
  "op": "addElement",
  "target": { "slide": 1 },
  "kind": "lineArrow",
  "offset": { "x": 4572000, "y": 3048000, "cx": 1828800, "cy": 0 }
}
```

Common mistakes

- Building whole pages element by element on an empty deck: use `generate_deck`; `addElement` is for adding to an already designed page.
- Pixel frames: convert with the px-to-EMU factor from `read_slide`.
- `autoFit` values other than `"shrink"`/`"resize"`.

### addConnector

`{from,to,kind?:"straight"|"elbow"|"curved",fromSide?,toSide?,arrow?:"none"|"end"|"both",line?:{color?,widthPt?,dash?}}`

Draws a connector glued to two shapes (`a:stCxn`/`a:endCxn`), so PowerPoint
and later `setTransform` moves keep it attached. When `fromSide`/`toSide`
(`top`/`left`/`bottom`/`right`) are omitted, the pair of edge midpoints that
are closest to each other is chosen. The frame is derived from the two
connection points; the new element id is in `created`.

| Field            | Type                                    | Notes                                                                        |
| ---------------- | --------------------------------------- | ---------------------------------------------------------------------------- |
| from, to         | element ids                             | Two different top-level elements on `target.slide`                           |
| kind             | `straight` (default), `elbow`, `curved` |                                                                              |
| fromSide, toSide | side name                               | Pin one or both ends; omitted sides are chosen automatically                 |
| arrow            | `none`, `end` (default), `both`         | Arrowhead at the `to` end, both ends, or none                                |
| line             | `{color?, widthPt?, dash?}`             | Defaults 1 pt black solid; `dash` is an OOXML preset (`dash`, `sysDot`, ...) |

```json
{
  "op": "addConnector",
  "target": { "slide": 0 },
  "from": "e_SHAPE",
  "to": "e_PICTURE",
  "kind": "elbow",
  "line": { "color": "#1A73E8", "widthPt": 1.5 }
}
```

Common mistakes

- Drawing a free line with `addElement` and hoping it follows the shapes: only `addConnector` (or `setConnectorEndpoints` with `start`/`end`) attaches.
- Using it between a group child and a shape: connect to the group (top-level ids only).

### addPicture (not-ai-callable)

`{bytes:base64|dataURL,ext?,offset} — use insert_web_image instead`

Embeds image bytes as a new picture. The model inserts images through
`insert_web_image` (URL) so the main process downloads and center-crops them.

### replacePicture (not-ai-callable)

`{bytes:base64|dataURL,ext?} — use replace_image instead`

Swaps a picture's bytes in place. The model uses `replace_image` with a URL.

### addTable

`{rows,cols,offset:{x,y,cx,cy},colWidthsEmu?,rowHeightsEmu?,cellProps?:[[{gridSpan?,rowSpan?,hMerge?,vMerge?,anchor?}]]}`

Inserts a native table with PowerPoint's default style and empty cells. Fill
cells afterwards with `setTableCell` (one op per cell, same transaction is
fine once you know the table id from the first result).

| Field         | Type                                                                | Notes                                                                    |
| ------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| rows, cols    | integer >= 1                                                        |                                                                          |
| offset        | `{x, y, cx, cy}` EMU                                                | Columns and rows split the frame equally unless widths/heights are given |
| colWidthsEmu  | number[]                                                            | Exactly `cols` positive values                                           |
| rowHeightsEmu | number[]                                                            | Exactly `rows` positive values                                           |
| cellProps     | array of rows of `{gridSpan?, rowSpan?, hMerge?, vMerge?, anchor?}` | Row-major; `anchor` `"t"`/`"ctr"`/`"b"`; use for pre-merged headers      |

```json
{
  "op": "addTable",
  "target": { "slide": 1 },
  "rows": 3,
  "cols": 3,
  "offset": { "x": 914400, "y": 1371600, "cx": 7315200, "cy": 2286000 }
}
```

```json
{
  "op": "addTable",
  "target": { "slide": 1 },
  "rows": 2,
  "cols": 2,
  "offset": { "x": 914400, "y": 1371600, "cx": 5486400, "cy": 1371600 },
  "colWidthsEmu": [1828800, 3657600],
  "cellProps": [
    [{ "gridSpan": 2 }, { "hMerge": true }],
    [{}, {}]
  ]
}
```

Common mistakes

- `colWidthsEmu` with the wrong count: it must list exactly one width per column.
- Passing cell text here: the op creates empty cells; write text with `setTableCell`.

### addChart

`{kind:"bar"|"barStacked"|"line"|"area"|"pie"|"doughnut"|"scatter"|"radar"|"comboBarLine",categories:[…],series:[{name,values:[…]}],offset,title?,colorScheme?:["#RRGGBB"],holeSizePct?}`

Inserts a native, PowerPoint-editable chart.

| Field       | Type                                              | Notes                                                                                                                                                                                                     |
| ----------- | ------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| kind        | see signature                                     | `comboBarLine` draws the last series as a line on a secondary axis                                                                                                                                        |
| categories  | string[]                                          | At least one; the x-axis labels                                                                                                                                                                           |
| series      | array of `{name, values:number[]}`                | At least one; each `values` length should equal `categories` length                                                                                                                                       |
| offset      | `{x, y, cx, cy}` EMU                              |                                                                                                                                                                                                           |
| title       | string                                            | Optional chart title                                                                                                                                                                                      |
| colorScheme | `"#RRGGBB"[]`                                     | Optional series colors, cycled; omit to follow the theme                                                                                                                                                  |
| holeSizePct | number                                            | Doughnut hole size (10..90)                                                                                                                                                                               |
| barDir      | `"bar"`                                           | Optional: horizontal bars instead of columns                                                                                                                                                              |
| dataSource  | `"user"` / `"document"` / `"search"` / `"sample"` | Where the numbers came from; checked by apply_ops before the batch runs (not part of the op itself). `"search"` needs a web_search in this conversation; `"sample"` figures must be disclosed to the user |

```json
{
  "op": "addChart",
  "target": { "slide": 1 },
  "kind": "bar",
  "title": "Revenue by quarter",
  "categories": ["Q1", "Q2", "Q3", "Q4"],
  "series": [{ "name": "Revenue", "values": [120, 135, 150, 170] }],
  "offset": { "x": 914400, "y": 1371600, "cx": 7315200, "cy": 3657600 },
  "dataSource": "user"
}
```

```json
{
  "op": "addChart",
  "target": { "slide": 1 },
  "kind": "doughnut",
  "holeSizePct": 55,
  "categories": ["Direct", "Partner", "Online"],
  "series": [{ "name": "Share", "values": [45, 30, 25] }],
  "offset": { "x": 2743200, "y": 1371600, "cx": 3657600, "cy": 3657600 },
  "colorScheme": ["#1A73E8", "#34A853", "#FBBC04"]
}
```

Common mistakes

- Inventing numbers: every value needs a source (user, deck, or a search in this conversation); with none, use illustrative values and say so to the user.
- `values` shorter or longer than `categories`.
- Editing an existing chart with `addChart`: use the `edit_chart` tool, which keeps position and z-order.

### addSmartArt

`{layout,items:[…],offset}`

Inserts a SmartArt-style diagram built from grouped shapes.

| Field  | Type                                                                                     | Notes                     |
| ------ | ---------------------------------------------------------------------------------------- | ------------------------- |
| layout | `"list"` / `"process"` / `"cycle"` / `"hierarchy"` / `"pyramid"` / `"matrix"` / `"venn"` |                           |
| items  | string[]                                                                                 | 1..8 node texts, in order |
| offset | `{x, y, cx, cy}` EMU                                                                     |                           |

```json
{
  "op": "addSmartArt",
  "target": { "slide": 1 },
  "layout": "process",
  "items": ["Discover", "Design", "Deliver"],
  "offset": { "x": 914400, "y": 1828800, "cx": 7315200, "cy": 1828800 }
}
```

### addMedia (not-ai-callable)

`{kind:"video"|"audio",bytes:base64|dataURL,ext,offset}`

Embeds a video or audio file; bytes payload from the UI file picker.

### addNarration (not-ai-callable)

`{bytes:base64|dataURL,ext,durationMs}`

Replaces the slide's recorded narration (Slide Show > Record): a hidden audio picture that plays from the slide start. Also turns on the deck's showNarration.

### clearNarration (not-ai-callable)

`{}`

Removes the slide's recorded narration.

### addModel3d (not-ai-callable)

`{bytes,ext,offset} — bytes payload`

Embeds a glTF binary (.glb) 3D model; bytes payload from the UI file picker.

### setModel3dView (not-ai-callable)

`{ax,ay,az,poster?,posterExt?} — rendering payload`

Turns a 3D model (angles in 60,000ths of a degree) and stores the rendering the editor drew.

### pasteElements (not-ai-callable)

`{items,dx,dy} — clipboard payload`

Pastes copied elements; the payload comes from the internal clipboard.

© genspark-ai · Apache-2.0 · genspark-ai/genoffice

Похожие промпты

Все промпты по теме «Документы и офис» →
nature-image2ppt Yuan1z0825 Скилл nature-image2ppt для Claude Code пересобирает скриншоты, сканы PDF и растровые слайды в редактируемые презентации PowerPoint с отдельными объектами. Восстанавливает схемы и макеты. CX Codex +1 8 800установок pptx-generator MiniMax-AI Скилл pptx-generator для Claude Code и других платформ: читает, редактирует и собирает презентации PowerPoint через PptxGenJS и XML. Генерирует слайды из кода, разбирает готовые файлы. CX Codex +1 6 400установок elite-powerpoint-designer willem4130 Скилл elite-powerpoint-designer для Claude Code, Codex, Cursor и других агентов собирает профессиональные PPTX-файлы из текста или markdown. Запускается, когда агент получает задачу на питч, отчёт или слайд-дек. CX Codex +1 5 500установок ppt-generation bytedance Скилл ppt-generation для Claude Code генерирует слайды презентаций в формате PPTX через создание картинок к каждому экрану. Собирает визуальный доклад с единым оформлением. CX Codex +1 5 400установок image-to-editable-ppt ningzimu Скилл image-to-editable-ppt для Claude Code превращает изображения слайдов, PDF и сканированные презентации в редактируемый PowerPoint. Он включается для восстановления слайдов по картинкам, а не для создания презентации с нуля. CX Codex +1 2 000установок powerpoint Nous Research Скилл powerpoint для Claude Code создаёт, читает и редактирует презентации .pptx через python-pptx. Собирает слайды, разбирает deck-файлы и правит шаблоны. CX Codex +1 757установок

Из того же набора65

Весь набор →
table Промпт table для Claude Code редактирует таблицы в презентации: меняет ячейки, размеры, объединения и оформление. Запускается по просьбе изменить существующую таблицу. GP ChatGPT ★ 12 746звёзд репо writing Промпт writing задаёт агенту правила правки таблиц: формулы вместо посчитанных вручную чисел, пакетные операции вместо поячеечных записей. GP ChatGPT ★ 12 746звёзд репо text Задаёт правила изменения и форматирования текста на слайдах через setText и setFont. Редактирует презентации с сохранением стилей. GP ChatGPT ★ 12 746звёзд репо base Промпт base помогает Claude Code читать и менять книги в совместимом с Excel приложении через инструменты. Он пригодится для правок таблиц, анализа данных и создания документов. GP ChatGPT ★ 12 746звёзд репо slide Промпт slide для Claude Code, описывает страничные операции презентации: удалить, продублировать, вставить по макету, перенести, сменить фон. Правит колоды из чата. GP ChatGPT ★ 12 746звёзд репо system Промпт system задаёт правила для создания презентаций и редактирования слайдов в GenOffice Slides. Он пригодится, если вы хотите, чтобы ассистент выбирал подходящий способ работы с колодой. GP ChatGPT ★ 12 746звёзд репо element Промпт element даёт агенту операции для изменения элементов в презентациях: заливка, обводка, перемещение, поворот, группировка, удаление. GP ChatGPT ★ 12 746звёзд репо genoffice Скилл для Claude Code для создания и правки офисных файлов через локальный CLI GenOffice. Собирает презентации и таблицы из данных и меняет форматы документов. CX Codex +1 ★ 12 746звёзд репо

Спонсоры проекта

Компании, которые помогают держать аналитику открытой