Encodes slide format, level-based journey bar, navigation rules, and section structure for a single-file HTML presentation.
npx clawhub@latest install presentation-structureThe Presentation Structure skill gives an AI agent deep knowledge of how a specific single-file HTML presentation (presentation/index.html) is built and maintained. It covers the slide data-slide numbering format, the 4-level journey bar system, keyboard/touch navigation, section divider conventions, and the rules for safely renumbering slides after edits. Install this skill when you want an agent to read, modify, or generate slides that conform to this presentation's architecture without breaking navigation or the level-progress bar.
data-slide attribute and goToSlide() TOC reference.section-slide class, data-level attribute, and section-desc copy.goToSlide() calls.presentation/index.html single-file format.The skill encodes the three slide types — regular slides, level-transition section slides, and the title slide — along with the required HTML attributes (data-slide, data-level, CSS classes). The agent knows which attributes are mandatory, which are optional, and which elements (like .level-badge) must not be hardcoded in HTML.
Rather than a cumulative percentage, the presentation uses four discrete levels (low, medium, high, pro) mapped to 25 / 50 / 75 / 100% bar fill. The skill captures exactly which slide ranges trigger each level, which slides inherit the previous level, and that the bar is hidden on slide 1 and empty before the first data-level transition.
After any structural edit the agent must renumber all data-slide attributes sequentially from 1, update every goToSlide() call in the TOC/Journey Map slide, and verify no gaps or duplicates exist. The skill documents that totalSlides is auto-computed from the DOM and requires no manual update.
The skill covers the goToSlide(n) function used in TOC links, the auto-computed totalSlides value, and the supported input methods: arrow keys, Space bar, and touch swipe. This lets the agent validate that TOC links remain consistent after renumbering.
Section dividers follow a precise format: section-slide class, optional data-level, a section-number paragraph, an <h1> title, and a section-desc paragraph naming the level. The skill makes the agent aware of the full expected markup so newly generated sections are immediately valid.
A user asks the agent to insert a new "Part 7" section after slide 46. The skill tells the agent to create a section-slide div with the next sequential data-slide number, add the appropriate data-level, renumber all subsequent slides, and update every goToSlide() call in the TOC slide.
The agent scans presentation/index.html for gaps or duplicate data-slide values and cross-checks every goToSlide() call against actual slide numbers, reporting any mismatches — a task fully supported by the renumbering rules encoded in this skill.
A user wants a summary of which slides belong to which journey level. The agent uses the level-transition table in the skill to produce an accurate mapping of slide ranges, data-level values, and corresponding bar fill percentages without reading the entire HTML file.
When asked to scaffold a new slide, the agent uses the exact HTML templates from this skill — selecting the right class (title-slide, section-slide, or plain slide), placing the correct attributes, and knowing to omit .level-badge from the source HTML since it is JS-injected at runtime.
npx clawhub@latest install presentation-structurenpx clawhub@latest install presentation-structureLog in to write a review
No reviews yet. Be the first to share your experience!