BP

brusdeylins/ppt-skill

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

7 stars 品質 71 トレンド 20MIT

LLM エージェントの決定的な PowerPoint (PPTX) ツーリング — pptc CLI: アトミック、スキーマ検証済みの操作でテンプレートアウェアの作成と編集

概要

pptc は、 PowerPoint プレゼンテーションをコマンドラインから作成および編集します。テンプレートアウェア、スキーマ検証済みおよびアトミックです。 LLM エージェント(Claude Code のスキルなど)によって駆動されるように設計されます。すべてのコマンドは、stdout で 1 つの JSON のエンベロープを正確に出力し、すべての障害は、安定したエラーコードと終了コードを持ち、すべての書き込みは、完全に適用するか、 バイト番号を残します。 アドホックスクリプトによるPPTXファイルの構築は、エージェントにとって脆弱です: シェルの引用 mangles JSON, スライドのインデックスは、ユーザーがターンの間編集するときにシフトします, 半適用された編集破損したデッキ, そして、エラーは偽物として到着します. pptc はこの構造的に修正します: - すべての変異は、JSON ドキュメントで、最初のバイトがタッチされる前に、全(ゾドスキーマ)として検証され、1 つの原子書き込みで適用されます。 --dry-run は書き込みなしで同じパイプラインです。 - スライドは、OOXML sldId (id:257), 正確なタイトル (title:Agenda), またはドキュメントローカル $ref -- は、脆弱なポジションではなく (ただし、インデックス:N はエスケープハッチとして存在します).

概要(AI 翻訳)

LM の代理店のための決定的な PowerPoint (PPTX) CLI。

[pptc] コマンドラインからPowerPointプレゼンテーションを作成および編集します。 テンプレートアウェア、スキーマ検証済みおよびアトミック。 それはによって運転されるように設計されています LLM エージェント(Claude Code のスキルなど):全てのコマンドが正確に 1 つの JSON を生成します。 stdout の envelope、すべての失敗に安定した間違いコードおよび出口コードがあり、 すべての書き込みは、ファイルのバイト番号を完全に適用または保存します。

なぜ

アドホックスクリプトによるPPTXファイルの構築は、エージェントのための壊れやすい:シェル Mangles JSON を引用します。, ユーザーがターンの間編集するときのスライドのインデックスシフト, 半適用された編集の破損したデッキは、エラーは偽物として到着します。 [pptc] 修正 これらの構造:

  • 1つの記述の道。 すべてのミューテーションは、JSON ドキュメントの ops で、 最初のバイトがタッチされる前に(Zodスキーマ)全体が接触し、1つで適用されます 原子書き込み。[--dry-run]は書き込みなしで同じパイプラインです。
  • 安定したアドレス。 スライドはOOXML [sldId によってアドレスされます。 ([id:257]), 正確なタイトル (title:Agenda]), またはドキュメントローカル $ref) – 壊れやすい位置([index:Nがエスケープハッチとして存在している)ではなく。
  • 最適化ロック。 stateは[revトークンを返します。 [apply --rev

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

pptc

Deterministic PowerPoint (PPTX) CLI for LLM agents.

pptc creates and edits PowerPoint presentations from the command line – template-aware, schema-validated and atomic. It is designed to be driven by an LLM agent (e.g. a Claude Code skill): every command emits exactly one JSON envelope on stdout, every failure has a stable error code and exit code, and every write either fully applies or leaves the file byte-identical.

$ pptc state deck.pptx --level summary
{
  "ok": true,
  "cmd": "state",
  "file": "/work/deck.pptx",
  "rev": "27d7f5a4ea5a",
  "result": { "slideCount": 4, "slides": [ ... ] }
}

Why

Building PPTX files through ad-hoc scripting is fragile for agents: shell quoting mangles JSON, slide indices shift when users edit between turns, half-applied edits corrupt decks, and errors arrive as prose. pptc fixes these structurally:

  • One write path. All mutations are ops in a JSON document, validated as a whole (Zod schemas) before the first byte is touched, then applied in one atomic write. --dry-run is the same pipeline without the write.
  • Stable addressing. Slides are addressed by their OOXML sldId (id:257), exact title (title:Agenda), or a document-local $ref – not by fragile positions (though index:N exists as an escape hatch).
  • Optimistic locking. state returns a rev token; apply --rev (or expectRev in the document) fails with exit 6 when the deck changed underneath.
  • Templates as data. tpl describe turns any .potx/.pptx into an LLM-readable description: per layout an ASCII minimap, semantic positions (“left column, full height”), text capacities and image aspect ratios – derived generically from the OOXML geometry, no template-specific code.
  • Typed failures. Exit codes per error class, machine-readable error.code, and Zod issue paths in error.details for self-correction.

Installation

npm install -g @brusdeylins/pptc
pptc --version

Or without installing: npx @brusdeylins/pptc .... Requires Node.js >= 20.

The PowerPoint Skill (Claude Code plugin)

This repository also ships ppt, a Claude Code skill built on pptc. It turns Claude Code into a presentation engineer: template-aware deck building with an outline-first workflow, content guardrails (action titles, capacity-checked text, speaker notes, footer rules) and color-faithful image prompts written onto picture placeholders – overlay-aware, so covered regions become negative space.

A companion skill, ppt-prepare, plans the content first (story, MECE arguments, headline titles, a per-slide plan) and hands the approved plan to ppt.

/plugin marketplace add Brusdeylins/ppt-skill
/plugin install ppt@ppt-skill

No further setup: the plugin bundles its own pptc build

GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add brusdeylins/ppt-skill
MCP 初心者?mcpskill.org のガイドから始めましょう →