agentleFS
cogine-aicogine-ai/cogine-dev-skillset/skills/ai-slide-templates/SKILL.md

ai-slide-templates

Skill4 starsChanged 4 months agoApache-2.0View on GitHub

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.

  • Installs packages

We split this skill into the rules it gives an agent

33 rules. About 0 are common, 23 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈23

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    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 …

    line 8
  2. Distinctive:

    Always prefer the repository's current AGENTS.md over memory or this skill if they disagree.

    line 16
  3. Distinctive:

    Read AGENTS.md in that repository.

    line 21
  4. Very specific:

    Use INPUT_GUIDE.md when the user's source material is incomplete, long-form, or scattered.

    line 22
  5. Very specific:

    Read template metadata from templates/*/template.json.

    line 23
  6. Distinctive:

    If the agent cannot run shell or browser tools, give the user exact commands and file steps instead of claiming the deck was built.

    line 30
  7. Very specific:

    If the current workspace already contains AGENTS.md, README.md, and templates/*/template.json from ai-slide-templates, use that checkout.

    line 34
  8. Distinctive:

    When the user needs help preparing the brief or the input is a long article, script, transcript, memo, report, or scattered notes, also …

    line 49
  9. Distinctive:

    Do not rely on a central template index.

    line 55
  10. Very specific:

    Use template.json as the matching surface.

    line 63
  11. Distinctive:

    If the user already picked a template or named a clear style, do not force options.

    line 80
  12. Distinctive:

    If the user has not picked a visual direction, recommend the strongest fit.

    line 82
  13. Distinctive:

    When the source material is longer than the requested slide count, repetitive, or not already organized per slide, synthesize a slide …

    line 84
  14. Very specific:

    Use content_limits to judge whether a template can carry the user's amount of text, bullets, cards, or slide count.

    line 86
  15. Very specific:

    Use layout_slots, when present, to map the user's content into named fillable regions before editing HTML.

    line 88
  16. Distinctive:

    Ask clarifying questions only when the answer changes the template or deck structure.

    line 90
  17. Distinctive:

    After choosing a template:

    line 94
  18. Very specific:

    Keep the folder's template.html and template.json together.

    line 97
  19. Very specific:

    Read layout_slots for the chosen layouts, when available.

    line 98
  20. Very specific:

    Check content_limits, when available, and split overlong content across additional slides.

    line 99
  21. Distinctive:

    If the user needs fewer slides, remove unneeded slides and update any visible counters.

    line 102
  22. Distinctive:

    If the user needs more slides, duplicate the closest matching layout and replace the content.

    line 103
  23. Distinctive:

    If a needed layout is missing, add a new slide that follows the same design system.

    line 104
  24. Distinctive:

    Do not recolor, substitute fonts, strip decoration, merge multiple templates, or redesign the deck unless the user explicitly asks for …

    line 115
  25. Distinctive:

    Use previews when the user is unsure about visual taste, asks to compare options, or the presentation is high-stakes.

    line 119
  26. Distinctive:

    Use the repository preview tooling:

    line 121
  27. Distinctive:

    When the user needs screenshot comparison artifacts, render screenshots:

    line 129
  28. Distinctive:

    If screenshot dependencies are missing, run:

    line 135
  29. Distinctive:

    After the user chooses a direction, build the full deck from that template only.

    line 144
  30. Distinctive:

    If the repository's optional visual validator is available and the environment has a compatible browser, use it for higher confidence:

    line 156
  31. Distinctive:

    If validation logic changed, also run:

    line 168
  32. Distinctive:

    Keep the response focused:

    line 176
  33. Distinctive:

    Do not narrate every implementation step unless the user asked for a walkthrough.

    line 182

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

AI Slide Templates

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

Always prefer the repository's current AGENTS.md over memory or this skill if they disagree.

Core Workflow

  1. Locate or clone the template repository.
  2. Read AGENTS.md in that repository.
  3. Use INPUT_GUIDE.md when the user's source material is incomplete, long-form, or scattered.
  4. Read template metadata from templates/*/template.json.
  5. Select the best template for the user's content and audience.
  6. Clone the chosen template folder into the user's output workspace.
  7. Replace demo content in template.html with the user's real content.
  8. Open the finished HTML deck in a browser and verify basic rendering.
  9. Return the absolute path to the finished 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.

Repository Setup

If the current workspace already contains AGENTS.md, README.md, and templates/*/template.json from ai-slide-templates, use that checkout.

Otherwise guide the user to clone it:

git clone https://github.com/cogine-ai/ai-slide-templates.git
cd ai-slide-templates

Then read:

cat AGENTS.md

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

Template Selection

Use template.json as the matching surface. Compare the user's brief against:

  • mood
  • tone
  • occasion
  • formality
  • density
  • scheme
  • best_for
  • avoid_for
  • content_limits
  • layouts
  • layout_slots
  • slide_count

Templates 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.

Deck Assembly

After choosing a template:

  1. Copy the full templates/<slug>/ folder to the output location.
  2. Keep the folder's template.html and template.json together.
  3. Read layout_slots for the chosen layouts, when available.
  4. Check content_limits, when available, and split overlong content across additional slides.
  5. Edit template.html slide by slide.
  6. Replace all placeholder titles, body copy, bullets, captions, quotes, names, dates, numbers, charts, stats, tables, and image placeholders.
  7. If the user needs fewer slides, remove unneeded slides and update any visible counters.
  8. If the user needs more slides, duplicate the closest matching layout and replace the content.
  9. If a needed layout is missing, add a new slide that follows the same design system.

Preserve the template's visual identity:

  • Fonts and imported font families
  • Color palette and CSS variables
  • Layout grid, spacing, and major positioning rules
  • Slide classes and component structures
  • Decorative vocabulary, borders, ornaments, textures, illustrations, and icon style
  • Navigation behavior, keyboard handlers, progress bars, and counters

Do not recolor, substitute fonts, strip decoration, merge multiple templates, or redesign the deck unless the user explicitly asks for template maintenance work.

Preview Mode

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 --title "<deck title>" --subtitle "<short context>" <slug...>

This writes standalone first-slide previews to previews/<slug>-preview.html.

When the user needs screenshot comparison artifacts, render screenshots:

node scripts/screenshot.mjs previews/<slug>-preview.html

If screenshot dependencies are missing, run:

npm install
npx playwright install chromium

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.

Verification

For final decks, open the generated template.html in a browser and check:

  • The deck renders without a blank page.
  • Navigation works if the template declares navigation.
  • Content does not obviously overflow or collide.
  • Counters, progress bars, and copied slides still make sense.
  • The deck uses the chosen template's visual system.

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

For repository maintenance, run:

node scripts/validate.mjs

If validation logic changed, also run:

node scripts/validate.test.mjs

Final Response

Keep the response focused:

  • State the chosen template and why it matched the user's requested tone.
  • Provide the absolute path to the finished template.html.
  • Mention important caveats, such as custom layouts or missing browser verification.

Do not narrate every implementation step unless the user asked for a walkthrough.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.