Generates an editable PowerPoint file from a finished dek deck, with each text block as a wrapping text box and shapes as grouped objects, preserving the deck's theme, fonts, and colors.
Ships in dek-pptx. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
dekc pptx writes a file that looks exactly like the deck: PowerPoint's own text and boxes over a picture of everything else on the slide. People who rework the file in PowerPoint find that picture, and text cut into a box per line, in their way. This skill builds the file again the way a person would in PowerPoint, from what dek measured; dek writes and checks it. The look stays the deck's: its theme, fonts, and colors.
bunx dekc lint --visual passes. Fix the deck, not the PPTX, for anything the slides themselves get wrong.bunx dekc help pptx lists spec and --from. If it does not, the installed dek is too old for this skill: say so and stop.bunx dekc pptx <deck> spec --json writes .cache/pptx/ in the deck's folder:
spec.json: per slide, its slug, title, layout, notes, shot (the slide as the browser drew it), and outline: its elements in reading order, nested as in the HTML. Each node has its box (x, y, width, height), its paint (fill, border or sides, each with its style when dashed or dotted, radius, padding, outline, shadow, each of its shadows as x, y, blur, spread, and color, and rotate), heading, decoration for aria-hidden, and its text:
content: every character it shows, with \n only for a <br>; lines, how many lines the browser broke it into; align, where the lines sit, a flexbox's centering included.pieces: its own characters as the browser placed them, each stretch of a line set without a gap with its box. A line broken in two is two pieces at two heights; a gutter's number, the words either side of a swatch, and text after a margin are pieces apart. What ::before and ::after write is not in them.runs: size, weight, color, letterSpacing, the theme's font token, and face, the faces the browser drew it in, to copy into a run's font and ea. A marker behind words, a gradient's too, is a run's background.widen: how much wider PowerPoint sets the text than the browser did, which spaced it with the font's features. 1.08 is 8% wider.::before or ::after, with its box, which may reach past its host's, its paint, and its text and run, counters counted. A pseudo-element of the slide itself is the slide's background, in its part.inline, for their boxes; their text is the line's. A terminal's blank line is a node whose content is a space.<table> has grid: x and y, its first cell's corner, and columns and rows, each column's width and each row's height. Each <td> and <th> is a node, an empty one too, with cell: its row and column from 0, rowSpan and columnSpan where it takes more than one, and anchor, where its text sits.parts/, named by a node's part: an image or SVG drawn whole, and paint a shape cannot draw drawn alone, without the elements and text inside it; drawn says what that paint is (gradient, clip-path, ::before, …). The slide's own node's part is its background. A part that is only a pseudo-element's dot or bar is often simpler as a small shape.deck.pptx.json: the file dekc pptx would write, as JSON, with the theme's colors and faces in theme. Its text is broken where the browser broke it: take text from the outline, and faces from here.deck.pptx.schema.json: every field the JSON may have. Read it before writing any.Sizes are the slide's own pixels (1280 by 720 for 16:9), from the slide's top left corner, inside a group as well as outside; a color is #rrggbb, or #rrggbbaa where it is see-through, in spec.json and in the JSON alike; a font size and a radius are in pixels. Layers paint in order, the first at the back. What a layer leaves out takes its default. A shape's text is set from its top.
bunx dekc pptx <deck> spec --json.script.md, pptx.ts, that reads spec.json and writes pptx.json in the deck's folder, slide by slide, by the rules below. The rules repeat across slides, so a script that applies them beats editing JSON by hand, and it is the source of the PPTX from now on: keep it with the deck.bunx dekc pptx <deck> --from <deck folder>/pptx.json --shot --json. It writes dist/<deck>.pptx, returns diagnostics, and with --shot, on a Mac, shots: per slide, compare, one picture with the browser's slide on the left and the file's on the right, what differs tinted red, and its difference, 0 to 255.data names what it found.compare of the slides with the largest difference first, and fix what differs: a line that wrapped, a box too narrow for its text, a part where it does not belong, something missing. Text a little off its place tints red too; look for whole words and boxes.Run dekc pptx spec again after any change to the deck, and on a fresh checkout, before --from: pptx.json names parts in .cache/pptx/, and --from says in skipped when spec.json is older than the deck.
prose layer at its node's box, with wrap left on: a heading, a paragraph, a list. Its text is the node's content, never a box per line.## heading is the prose with "title": true, outside any shape. PowerPoint lists the slide by it.prose, a paragraph per item, each with its bullet.shape: its fill, outline (dash for a dashed border), radius, and shadow from the node's first shadow, its text in its text so it moves with it, inset by the node's padding. A box that holds other boxes or pictures holds them in its layers: a group in PowerPoint, so a card or a window moves as one. A circle is "geometry": "ellipse", and a bar rounded on its top side only, a window's title bar, "round2SameRect" with its radius; the schema lists the other shapes PowerPoint has, which set their text inside their own outline. A turned node is a shape or picture with its rotate.table layer, never a prose a cell: x, y, columns, and rows from its node's grid, and in each row the cells whose cell.row it is, in the order of their column, each with its columnSpan, rowSpan, and anchor, its fill, its border (the same on all four sides) or sides as borders, its padding as inset, and its text as paragraphs. A cell another reaches into is left out of its row: dek writes it. PowerPoint wraps a cell's text inside its columns less its insets and makes the row taller to hold it, so the row's height is the least it will be. A table's text is set as a table's, so a recipient adds a row or retypes a cell in PowerPoint's table tools. Where deck.pptx.schema.json has no table kind, the installed dek is older than tables: set each cell as a prose at its box.shape with the panel's fill, its text in the shape's text, a paragraph per line, in the theme's mono face, colored per run; a highlighted word's run has a highlight.picture of its node's part, at the node's box: images, SVGs, and what a shape cannot draw. A part has no text in it; set the text over it as its own layer.backdrop: the slide node's part, as the slide's background picture, not a picture laid over the slide. Without one, keep background. When every slide's backdrop is the same picture, dek puts it on the slide master, where a recipient changes it once.picture: everything it showed is now laid over the slide.font and ea are its face in the outline, latin and ea, and ea is latin when the face has none of its own; where a run has no face, take a run's of the same font token and weight. Colors are the outline's; a run's background is its highlight.widen times as wide. A box that wraps keeps its width; a box sized to its text is widen times as wide as its pieces, and what follows it on its row moves along by the difference. A box is sized to its text when its text.lines is 1 and its width is about its pieces', as a pill's, a chip's, or a label's is. pptx-fit names each one-line text whose box is narrower than that.\n in its run where one line's pieces end and the next's start, and a box as wide as its widest line times widen. Left to wrap, PowerPoint breaks it where the box runs out, inside a word.slug, and its notes from spec.json. Keep the words as the slide has them: the recipient rewrites them; you do not.--from reports no errors, and no warning you cannot name a reason for. The slide's title is one layer with its text in it: PowerPoint shows an empty title as its prompt. A check in skipped did not run: run what its hint says.compare. Quick Look is not PowerPoint, and draws some of the file other than PowerPoint does: in a group it paints pictures above shapes, whatever their order; a picture in a group covers what is under it there; it drops the spaces that start a line and empty lines; it draws no highlight; it wraps text the file says not to; its colors come out a little lighter. Do not change the file for these.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
/dek-pptx:dek-pptxfrom dek-pptx
npx claudepluginhub hajimism/dek --plugin dek-pptx