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