openxml-text-updates
スター8
フォーク0
更新日2026年3月25日 05:16
Preserve PowerPoint formatting when replacing text in existing shapes
インストール
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SKILL.md
readonlyメニュー
Preserve PowerPoint formatting when replacing text in existing shapes
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | openxml-text-updates |
| description | Preserve PowerPoint formatting when replacing text in existing shapes |
| domain | openxml-updates |
| confidence | high |
| source | issue-19 implementation |
Use this pattern when a pptx-tools feature needs to replace text in an existing PowerPoint shape without breaking formatting or package structure.
pptx_get_slide_content metadata, preferring the shape name (p:cNvPr/@name) and using a deterministic index fallback only when needed.p:sp elements instead of recreating the slide shape.TextBody's BodyProperties and ListStyle before replacing content.TextBody, insert a new one in the same structural slot PowerPoint expects: after spPr/style and before extLst.PresentationDocument once, reuse the same slide-id snapshot for every mutation, and save each touched slide only once after the batch finishes.var existingTextBody = shape.TextBody ?? new TextBody(
new A.BodyProperties(),
new A.ListStyle(),
new A.Paragraph(new A.EndParagraphRunProperties()));
var replacementTextBody = new TextBody(
(A.BodyProperties)existingTextBody.BodyProperties.CloneNode(true),
(A.ListStyle)existingTextBody.ListStyle.CloneNode(true));
A.Run(new A.Text(...)) unless you are willing to lose paragraph and run formatting..pptx once per mutation when a workflow can batch several text updates together.{what this skill teaches agents}
{what this skill teaches agents}
Patterns for exporting PPTX presentations to markdown
Build realistic PPTX fixtures for service and tool tests