/ai-slide-templates:ai-slide-templatesfrom ai-slide-templates
Use the Cogine AI ai-slide-templates repository to help users create polished slide decks from real content. Trigger when the user asks to make slides, a PPT, a presentation deck, an HTML deck, choose a presentation template, use Cogine AI slide templates, or install/use the ai-slide-templates workflow in Codex, OpenClaw, or another agent.
Ships in ai-slide-templates. 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.
Read when SKILL.md points to them.
Use this skill to turn a user's real material into a finished, browser-openable HTML slide deck using Cogine AI's ai-slide-templates repository.
The repository is the source of truth:
https://github.com/cogine-ai/ai-slide-templates
Use AGENTS.md from the pinned library version for deck selection and assembly.
The plugin setup below selects that version; do not fetch or switch to the latest
branch during a task. Output is HTML. If the user asks for PPT/PPTX, explain the
HTML deliverable before building. The plugin produces HTML presentations only.
AGENTS.md in that repository.INPUT_GUIDE.md when the user's source material is incomplete, long-form, or scattered.templates/*/template.json.template.html with the user's real content.template.html.If the agent cannot run shell or browser tools, give the user exact commands and file steps instead of claiming the deck was built.
Resolve the plugin root from this skill's absolute location: it is two directories
above the directory containing this SKILL.md. Do not assume the current working
directory is the plugin root. Run the bundled helper yourself:
node "<absolute-plugin-root>/scripts/prepare-library.mjs"
Requires Node.js 22+ and Git. The helper prints JSON containing libraryPath,
commit, and templateCount. First use downloads the pinned commit from GitHub;
subsequent uses reuse the verified cache without network access. Read
AGENTS.md and all template files under the returned absolute libraryPath.
Run library scripts with that directory as the working directory. An optional
--cache-dir "<absolute-cache-root>" selects a different cache location.
The cache is a source library: copy the full chosen template folder into the
user's output workspace before editing. Put previews in the output workspace
using the preview tool's --out-dir option. Do not edit the cached templates, update
its branch, install dependencies into the plugin, or use an arbitrary checkout
in place of the pinned library. If the cache has local edits, preserve it and
rerun with a different cache root. Setup failure is actionable: report the
missing prerequisite or network failure and retry when resolved; do not claim
a deck was produced.
When the user needs help preparing the brief or the input is a long article, script, transcript, memo, report, or scattered notes, also read:
cat INPUT_GUIDE.md
Do not rely on a central template index. Scan per-template metadata:
find templates -maxdepth 2 -name template.json
Use template.json as the matching surface. Compare the user's brief against:
moodtoneoccasionformalitydensityschemebest_foravoid_forcontent_limitslayoutslayout_slotsslide_countTemplates have tones, not fixed industries. Reuse a template across domains when its mood, content density, and audience fit the user's need.
If the user already picked a template or named a clear style, do not force options. Use that template unless it clearly conflicts with the content.
If the user has not picked a visual direction, recommend the strongest fit. When multiple directions are plausible, show a short list of two to four choices with one-line reasons.
When the source material is longer than the requested slide count, repetitive, or not already organized per slide, synthesize a slide outline before choosing or building the final deck. The outline should include slide titles, key messages, rough visual direction, and any blocking questions.
Use content_limits to judge whether a template can carry the user's amount of text, bullets, cards, or slide count. If content exceeds the limits, split it across more slides instead of shrinking fonts, removing whitespace, or overfilling a layout.
Use layout_slots, when present, to map the user's content into named fillable regions before editing HTML.
Ask clarifying questions only when the answer changes the template or deck structure. Good questions are about audience, occasion, desired tone, content density, and light/dark preference.
After choosing a template:
templates/<slug>/ folder to <output-directory>/templates/<slug>/, including source notices, font licenses and asset registers. This structure lets the visual validator check the output separately from the library.template.html and template.json together.layout_slots for the chosen layouts, when available.content_limits, when available, and split overlong content across additional slides.template.html slide by slide.Preserve the template's visual identity:
Do not recolor, substitute fonts, strip decoration, merge multiple templates, or redesign the deck unless the user explicitly asks for template maintenance work.
Use previews when the user is unsure about visual taste, asks to compare options, or the presentation is high-stakes.
Use the repository preview tooling:
node scripts/preview.mjs --out-dir "<absolute-output-directory>/previews" --title "<deck title>" --subtitle "<short context>" <slug...>
This writes standalone first-slide previews into the specified output directory.
When the user needs screenshot comparison artifacts, render screenshots:
node scripts/screenshot.mjs "<absolute-output-directory>/previews/<slug>-preview.html" --out-dir "<absolute-output-directory>/screenshots"
Prefer the host's browser/screenshot tools for viewing local files. The optional repository screenshot script requires Playwright resolvable from the library; if unavailable, use the host browser instead. Keep temporary files outside the plugin package and preserve the cached library.
Open the generated preview HTML files or screenshots in the browser and send the absolute paths.
After the user chooses a direction, build the full deck from that template only.
For final decks, open the generated template.html in a browser and check:
If the repository's optional visual validator is available and the environment has a compatible browser, use it for higher confidence:
node scripts/validate-visual.mjs --root "<absolute-output-directory>" --template "<output-template-folder-name>"
For repository maintenance, run:
node scripts/validate.mjs
If validation logic changed, also run:
node scripts/validate.test.mjs
Keep the response focused:
template.html.Do not narrate every implementation step unless the user asked for a walkthrough.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub cogine-ai/marketplace --plugin ai-slide-templates