@tycoworks/tycoslide 0.17.1 → 0.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -4
- package/docs/guide.md +109 -0
- package/package.json +12 -1
package/README.md
CHANGED
|
@@ -4,9 +4,11 @@ Create editable PowerPoint slides from markdown, using your existing .pptx templ
|
|
|
4
4
|
|
|
5
5
|
## Getting started
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
The [guide](docs/guide.md) walks through these three steps on your template.
|
|
8
|
+
|
|
9
|
+
1. **Create a theme.** Package your .pptx, fonts, colors, and images into a tycoslide theme. You can use the [create-theme](skills/create-theme) agent skill (`npx skills add tycoworks/tycoslide`), or clone and edit the example [tycoworks-theme](https://github.com/tycoworks/tycoworks-theme).
|
|
10
|
+
2. **Build your slides.** Write your slides in [markdown](docs/markdown.md), then build them into an editable PowerPoint file (`npx tycoslide build deck.md`).
|
|
11
|
+
3. **Package your theme as a skill.** Turn your theme into a skill (`npx tycoslide package`) and share it, so anyone on your team can build editable, on-brand slides with their agent.
|
|
10
12
|
|
|
11
13
|
## See it working
|
|
12
14
|
|
|
@@ -35,4 +37,4 @@ Node 23.6 or later. Mermaid diagrams need Chrome on the machine; tycoslide finds
|
|
|
35
37
|
|
|
36
38
|
## Thanks
|
|
37
39
|
|
|
38
|
-
tycoslide was inspired by [pptx-automizer](https://github.com/singerla/pptx-automizer), which it uses under the hood, and by [Slidev](https://sli.dev)'s way of writing slides in markdown.
|
|
40
|
+
tycoslide was inspired by [pptx-automizer](https://github.com/singerla/pptx-automizer), which it uses under the hood, and by [Slidev](https://sli.dev)'s way of writing slides in markdown. You can read more about the project's background [here](https://blog.tycoworks.com/p/marketing-collateral-from-source-files).
|
package/docs/guide.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# How to build slides from your PowerPoint template
|
|
2
|
+
|
|
3
|
+
This guide shows you how to use tycoslide to build editable PowerPoint slides from markdown on your template. You'll turn the template into a theme, build a first deck, and package the theme as an agent skill, so anyone on your team can build on-brand slides with their agent.
|
|
4
|
+
|
|
5
|
+
## What you'll need
|
|
6
|
+
|
|
7
|
+
- **Your template**, as a `.pptx` file. A Google Slides template downloaded as a `.pptx` works too.
|
|
8
|
+
- **An AI agent that supports [agent skills](https://agentskills.io)**, such as [Claude Code](https://claude.com/product/claude-code), which this guide uses.
|
|
9
|
+
- **[Node.js](https://nodejs.org) 23.6 or later, and [Git](https://git-scm.com).**
|
|
10
|
+
- **[LibreOffice](https://www.libreoffice.org) and [poppler](https://poppler.freedesktop.org)**, which the agent installs if they're missing.
|
|
11
|
+
|
|
12
|
+
## Step 1: Create a theme
|
|
13
|
+
|
|
14
|
+
Package your .pptx, fonts, colors, and images into a tycoslide theme. You can use the create-theme agent skill, as this guide does, or clone and edit the example [tycoworks-theme](https://github.com/tycoworks/tycoworks-theme) with the [theme reference](theme.md).
|
|
15
|
+
|
|
16
|
+
First, check that every text box in your template has example text, including a bullet at each indent level you'll use. tycoslide copies the styles it can see, so a text box with no example bullet can't take bullets.
|
|
17
|
+
|
|
18
|
+
Then install the [create-theme](../skills/create-theme) skill in the folder where you want your theme:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npx skills add tycoworks/tycoslide -a claude-code
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Start Claude Code in that folder, and ask:
|
|
25
|
+
|
|
26
|
+
> Turn ~/Downloads/acme.pptx into a tycoslide theme.
|
|
27
|
+
|
|
28
|
+
You get a theme folder with an image of each layout, and the agent tells you where it is. Your template isn't changed.
|
|
29
|
+
|
|
30
|
+
Before you write any decks, check two things:
|
|
31
|
+
|
|
32
|
+
- **The names.** The agent names each layout and its fields, such as `Two column` with `title`, `col1_body`, and `col2_body`. Every deck uses these names, so ask the agent to rename any now. Renaming later means updating every deck.
|
|
33
|
+
- **The images.** The theme lists the images decks can reuse, such as logos and icons, in `assets.json`. To add your own, such as customer logos, copy them into the theme's `assets` folder and ask the agent to catalog them.
|
|
34
|
+
|
|
35
|
+
## Step 2: Build your slides
|
|
36
|
+
|
|
37
|
+
Write your slides in markdown, then build them into an editable PowerPoint file. Here's a two-slide deck for the tycoworks theme. For your own theme, use your layout and field names:
|
|
38
|
+
|
|
39
|
+
```markdown
|
|
40
|
+
---
|
|
41
|
+
theme: ../theme.json
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
layout: Title
|
|
46
|
+
title: Acme for finance teams
|
|
47
|
+
name: Jane Smith
|
|
48
|
+
jobTitle: Product Marketing, Acme
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
layout: Two column
|
|
53
|
+
title: What changes with Acme
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
::col1_body::
|
|
57
|
+
|
|
58
|
+
**Today**
|
|
59
|
+
|
|
60
|
+
- Month-end close takes two weeks
|
|
61
|
+
- Reports are rebuilt by hand
|
|
62
|
+
|
|
63
|
+
::col2_body::
|
|
64
|
+
|
|
65
|
+
**With Acme**
|
|
66
|
+
|
|
67
|
+
- Close the books in three days
|
|
68
|
+
- Reports update as the numbers change
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Save it as `collateral/first-call.md` in your theme folder, and build it from there:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
npx tycoslide build collateral/first-call.md
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
tycoslide saves `first-call.pptx` next to the markdown, on your template and fully editable, or stops with an error saying what to fix. Put quotes around any title that contains a colon. The [markdown reference](markdown.md) covers tables, images, speaker notes, code, and Mermaid diagrams, and the tycoworks theme's [showcase deck](https://github.com/tycoworks/tycoworks-theme/blob/main/showcase.md) uses every layout.
|
|
78
|
+
|
|
79
|
+
Because decks are text, you can keep them in Git with the theme (`git init`) and change many at once. Ask your agent to edit the decks in `collateral`, check the diff, and rebuild them all:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
for deck in collateral/*.md; do npx tycoslide build "$deck"; done
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
## Step 3: Package your theme as a skill
|
|
86
|
+
|
|
87
|
+
Turn your theme into an agent skill and share it with your team. From your theme folder, package the theme and install the zip in Claude Code, using your zip's name:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
npx tycoslide package
|
|
91
|
+
unzip acme-theme.zip -d ~/.claude/skills/
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Then open Claude Code where you keep your notes, and ask for a deck:
|
|
95
|
+
|
|
96
|
+
> Build me a first-call deck for Globex, using my notes in call-notes.md.
|
|
97
|
+
|
|
98
|
+
You get the markdown and the PowerPoint file side by side. The markdown can't change a font or move a shape, so every deck stays on your template.
|
|
99
|
+
|
|
100
|
+
To share the skill, colleagues on Claude Code unzip the same file into their skills folder, and colleagues on the Claude app upload it under Customize > Skills. On a Claude Team or Enterprise plan, an admin can [add it for everyone](https://support.claude.com/en/articles/13119606-provision-and-manage-skills-for-your-organization). When you change the theme, run `npx tycoslide package` again and share the new zip. Colleagues on Claude Code should delete their old skill folder first.
|
|
101
|
+
|
|
102
|
+
## Current limitations
|
|
103
|
+
|
|
104
|
+
- Each theme holds one PowerPoint file, so a pitch deck and a one-pager need separate themes.
|
|
105
|
+
- There's no support for charts yet, and Mermaid diagrams become images.
|
|
106
|
+
- The agent's previews use LibreOffice, so their line breaks can differ slightly from PowerPoint's.
|
|
107
|
+
- In the Claude app, the skill needs network access the first time it runs, and that route hasn't been widely tested.
|
|
108
|
+
|
|
109
|
+
If something breaks, open an [issue](https://github.com/tycoworks/tycoslide/issues).
|
package/package.json
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tycoworks/tycoslide",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.3",
|
|
4
4
|
"description": "Create editable PowerPoint slides from markdown, using your existing .pptx templates.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"markdown",
|
|
8
|
+
"powerpoint",
|
|
9
|
+
"pptx",
|
|
10
|
+
"slides",
|
|
11
|
+
"presentation",
|
|
12
|
+
"slides-as-code",
|
|
13
|
+
"agent-skills",
|
|
14
|
+
"claude-code"
|
|
15
|
+
],
|
|
5
16
|
"type": "module",
|
|
6
17
|
"main": "dist/index.js",
|
|
7
18
|
"types": "dist/index.d.ts",
|