agentsclimarketplace

Decksmith presentations

Skill trungly/decksmith/skills/decksmith-presentations

Create interactive HTML presentations using the Decksmith Svelte 5 framework. Use this skill when the user asks to create, generate, edit, or modify a Decksmith presentation, slideshow, or slide deck. Trigger when the user mentions "presentation," "slides," "slide deck," "slideshow," or "Decksmith," or asks to edit src/App.svelte in a Decksmith project.From its SKILL.md

Install
npx -y skills add trungly/decksmith --skill decksmith-presentations

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

13.2 KB, as published. Nobody here has run it

Decksmith Presentation Skill

Create presentations by generating a single Svelte component (src/App.svelte) that uses Decksmith's <Deck>, <Slide>, <Fragment>, <Notes>, <Markdown>, and <Code> components.

Quick Start

<script lang="ts">
  import { Deck, Slide, Fragment, Notes, Markdown, Code } from "decksmith";
</script>

<Deck theme="obsidian" transition="slide">
  <Slide h={1} v={0}>
    <h1>Title</h1>
    <p>Subtitle</p>
    <Notes text="Speaker notes for this slide." />
  </Slide>

  <Slide h={2} v={0}>
    <h2>Second Slide</h2>
    <Fragment index={0} style="fade-up">
      <p>First point</p>
    </Fragment>
    <Fragment index={1} style="fade-up">
      <p>Second point</p>
    </Fragment>
  </Slide>
</Deck>

Run with bun install && bun run dev, then open http://localhost:5173.

Rules for Code Generation

  1. Every <Slide> must have h and v props. The first slide is always h={1} v={0}.
  2. h values must be sequential starting from 1. No gaps allowed.
  3. v values must start at 0 for each h column and increment: v={0}, v={1}, v={2}.
  4. Fragment index values start at 0 and increment sequentially within a slide.
  5. One <Deck> per presentation. All <Slide> components must be direct children of <Deck>.
  6. Use valid prop values only. See the Component API below.
  7. Inline styles only. Do not generate <style> blocks unless specifically needed for global selectors.
  8. Escape backticks in template literals. When code or content props contain backticks, escape them: \`.
  9. Import only what you use. Import from "decksmith" and include only the components used in the code (for example: import { Deck, Slide } from "decksmith";).
  10. Return complete files. Never return partial snippets when editing — always the full src/App.svelte.

Slide Coordinate System

Slides are arranged in a 2D grid:

h=1,v=0  →  h=2,v=0  →  h=3,v=0  →  h=4,v=0
                         ↓
                         h=3,v=1
                         ↓
                         h=3,v=2
  • h increments left-to-right for the main sequence.
  • v increments top-to-bottom for sub-slides under a given h.
  • Vertical slides (v > 0) are navigated with ↑/↓ keys.

Component API

<Deck> — Root Container

PropTypeDefaultDescription
theme"obsidian" | "air" | "executive" | "startup" | "editorial" | "technical" | "playful" | "cinematic""obsidian"Visual theme
transition"none" | "fade" | "slide" | "convex" | "concave" | "zoom""slide"Default slide transition
transitionSpeed"default" | "fast" | "slow""default"Transition duration
contentSize"XS" | "S" | "M" | "L""M"How large slide body content feels
aspectRatio"16:9" | "4:3" | "1:1" | "9:16" | "21:9""16:9"Slide aspect ratio
controlsbooleantrueShow navigation arrows
progressbooleantrueShow progress bar
slideNumberbooleantrueShow slide number
hashbooleantrueURL hash routing
overviewbooleantrueEnable overview mode (Esc key)
touchbooleantrueEnable touch/swipe navigation
keyboardbooleantrueEnable keyboard navigation
loopbooleanfalseLoop from last slide to first
scrollViewbooleanfalseScrollable page mode
scrollLayout"full" | "compact""full"Scroll slide sizing
scrollSnapbooleantrueCSS scroll-snap in scroll view

<Slide> — Individual Slide

PropTypeDefaultDescription
hnumber1Horizontal position
vnumber0Vertical position
transitionTransitionType(inherits)Override transition
backgroundstring""CSS background (color, gradient)
backgroundImagestring""Background image URL
backgroundSizestring"cover"CSS background-size
backgroundPositionstring"center"CSS background-position
idstring—Optional slide identifier
autoAnimatebooleanfalseEnable auto-animate

<Fragment> — Step-by-Step Reveal

PropTypeDefaultDescription
indexnumber0Order of appearance (0 = first)
styleFragmentStyle"fade-in"Animation style

Fragment styles: fade-in, fade-out, fade-up, fade-down, fade-left, fade-right, fade-in-then-out, fade-in-then-semi-out, grow, shrink, strike, highlight-red, highlight-green, highlight-blue, highlight-current-red, highlight-current-green, highlight-current-blue

<Notes> — Speaker Notes

PropTypeDefaultDescription
textstring""Speaker notes content
slideHnumber—Optional. Target slide h when <Notes> is not nested under that <Slide>.
slideVnumber—Optional. Target slide v in the same situation.

When <Notes> is a child of <Slide>, use <Notes text="..." /> only — the parent slide coordinates are inferred. Pass slideH and slideV only when notes cannot be nested (they must match the target slide's h / v).

<Markdown> — Markdown Content

PropTypeDefaultDescription
contentstring""Markdown string to render

<Code> — Syntax-Highlighted Code

PropTypeDefaultDescription
codestring""Code to display
languagestring(auto)Language for highlighting
lineNumbersbooleanfalseShow line numbers
highlightLinesstring""Line highlight steps (pipe-separated, comma-aware)
lineNumberStartnumber1Starting line number

highlightLines format: "1|2-3|4,6-10" — pipe-separated steps; within each step, use commas to combine single line numbers and ranges.

Theme Selection

Audience / ContextRecommended Theme
Tech conferenceobsidian or technical
Business / corporateexecutive or air
Academic / researchair or editorial
Creative / boldplayful or cinematic
General purposeobsidian

Transition Selection

Content TypeRecommended Transition
Technical / code-heavynone or fade
Storytelling / narrativeslide
Dramatic revealszoom
Professional / polishedconvex or concave
Fast-pacedfade with transitionSpeed="fast"

Generation Workflow

Given a user prompt like "Create a 5-slide presentation about microservices":

  1. Plan the structure: Title, 3 content slides, closing
  2. Assign coordinates: h=1 through h=5, all v=0
  3. Choose theme: Match the audience/context
  4. Choose transition: Match the content type
  5. Generate each slide using patterns below
  6. Add fragments for bullet points (2-4 per slide)
  7. Add speaker notes for key slides
  8. Include a code example if relevant

Slide Patterns

Title Slide

<Slide h={1} v={0}>
  <h1>Presentation Title</h1>
  <p>Subtitle or author name</p>
  <Notes text="Speaker notes here." />
</Slide>

Bullet Points with Fragments

<Slide h={N} v={0}>
  <h2>Key Points</h2>
  <Fragment index={0} style="fade-up"><p>First point</p></Fragment>
  <Fragment index={1} style="fade-up"><p>Second point</p></Fragment>
  <Fragment index={2} style="fade-up"><p>Third point</p></Fragment>
</Slide>

Code Walkthrough

<Slide h={N} v={0}>
  <h2>Code Example</h2>
  <Code
    language="typescript"
    lineNumbers
    highlightLines="1-2|4-6|8"
    code={`const greeting = "Hello";
console.log(greeting);

function add(a: number, b: number) {
  return a + b;
}

add(1, 2);`}
  />
</Slide>

Two-Column Layout

<Slide h={N} v={0}>
  <h2>Comparison</h2>
  <div style="display: flex; gap: 2em; margin-top: 1em; text-align: left;">
    <div style="flex: 1;">
      <h3>Before</h3>
      <p>Old approach</p>
    </div>
    <div style="flex: 1;">
      <h3>After</h3>
      <p>New approach</p>
    </div>
  </div>
</Slide>

Background Image Slide

<Slide h={N} v={0} backgroundImage="/images/photo.jpg" backgroundSize="cover">
  <h1 style="text-shadow: 0 2px 10px rgba(0,0,0,0.5);">Over an Image</h1>
</Slide>

Gradient Background

<Slide
  h={N}
  v={0}
  background="linear-gradient(135deg, #667eea 0%, #764ba2 100%)"
>
  <h2>Gradient Slide</h2>
</Slide>

Vertical Sub-Slides

<Slide h={N} v={0}>
  <h2>Main Topic</h2>
  <p>Press ↓ for details</p>
</Slide>
<Slide h={N} v={1}>
  <h3>Detail 1</h3>
</Slide>
<Slide h={N} v={2}>
  <h3>Detail 2</h3>
</Slide>

Markdown Slide

<Slide h={N} v={0}>
  <Markdown
    content={`
## Features

- **Bold** and *italic* text
- \`inline code\`
- [Links](https://example.com)
  `}
  />
</Slide>

Auto-Animate Between Slides

<Slide h={N} v={0} autoAnimate>
  <div
    data-id="box"
    style="width: 100px; height: 100px; background: var(--ds-accent);"
  ></div>
  <h2 data-id="title">Hello</h2>
</Slide>
<Slide h={N + 1} v={0} autoAnimate>
  <div
    data-id="box"
    style="width: 200px; height: 200px; background: var(--ds-accent); border-radius: 50%;"
  ></div>
  <h2 data-id="title" style="font-size: 2.5em;">Hello!</h2>
</Slide>

Closing Slide

<Slide h={LAST} v={0} background="linear-gradient(135deg, #0c0c1d, #1a1a3e)">
  <h1>Thank You</h1>
  <p style="margin-top: 0.5em; opacity: 0.7;">Questions?</p>
</Slide>

Editing Existing Presentations

  1. Preserve the overall structure — don't change slide coordinates unless adding/removing slides
  2. When adding slides, increment h values and renumber all subsequent slides
  3. When removing slides, renumber h values to close gaps
  4. When editing text, replace only the text content, preserving the surrounding component structure
  5. When changing animations, only modify the style prop on <Fragment> or transition prop on <Deck>/<Slide>
  6. Return the complete file — never return partial snippets

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.