Skip to content

bestdeejay-design/agent-skills / skills/presentation-maker

presentation-maker

Verified

End-to-end presentations from a topic — outline -> JSON spec -> 16:9 HTML slides (with mandatory Playwright verification) and real .pptx (full 14-type design system), plus strategy presets, PDF export, and deck-quality audits. One command per stage.

FileKindSize
SKILL.mdskill md20.8 KB
evals/evals.jsonconfig731 B
examples/cases/lovii-pitch/case.jsonconfig581 B
examples/cases/lovii-pitch/deck.jsonconfig7.8 KB
examples/cases/lovii-pitch/slides.htmlother46.2 KB
examples/demo/demo_deck.jsonconfig7.9 KB
examples/demo_deck.jsonconfig7.9 KB
readme.ru.mdmarkdown4.5 KB
references/audit.mdmarkdown7.3 KB
references/bento.mdmarkdown20.4 KB
references/design-system.mdmarkdown7.2 KB
references/pdf.mdmarkdown2.5 KB
references/product-designer.mdmarkdown11.2 KB
references/references.mdmarkdown489 B
references/strategy.mdmarkdown7.7 KB
scripts/build_bento.pyscript61.9 KB
scripts/build_html.pyscript41.2 KB
scripts/build_pdf.pyscript5.9 KB
scripts/build_pptx.pyscript46.4 KB
scripts/cases.pyscript2.7 KB
scripts/composer.pyscript12.4 KB
scripts/content_profile.pyscript4.6 KB
scripts/creative_brief.pyscript7.4 KB
scripts/deck_audit.pyscript17.0 KB
scripts/deck_md.pyscript22.7 KB
scripts/fit_solver.pyscript7.5 KB
scripts/patterns.pyscript3.4 KB
scripts/polish.pyscript4.0 KB
scripts/qa_bento.pyscript34.7 KB
scripts/qa_intern.pyscript5.8 KB
scripts/qa_pptx.pyscript8.6 KB
scripts/strategy.pyscript9.8 KB
scripts/verify_slides.pyscript5.4 KB
scripts/vision_qa.pyscript9.0 KB
skill.jsonconfig2.1 KB
templates/base.htmlother54.7 KB
templates/icons/arrow-right.svgother128 B
templates/icons/award.svgother211 B
templates/icons/bot.svgother212 B
templates/icons/briefcase.svgother233 B
templates/icons/building.svgother171 B
templates/icons/chart.svgother197 B
templates/icons/family.svgother240 B
templates/icons/graduation.svgother163 B
templates/icons/presentation.svgother256 B
templates/icons/users.svgother240 B
templates/icons/zap.svgother188 B
templates/pattern-css/before-after.cssother285 B
templates/pattern-css/big-type.cssother390 B
templates/pattern-css/card-dashboard.cssother552 B
templates/pattern-css/cyclic-process.cssother702 B
templates/pattern-css/data-story.cssother611 B
templates/pattern-css/editorial-asym.cssother787 B
templates/pattern-css/hero-left.cssother697 B
templates/pattern-css/quote-hero.cssother533 B
templates/pattern-css/recap-grid.cssother461 B
templates/pattern-css/soft-shapes.cssother1.0 KB
templates/pattern-css/sparkline-metric.cssother534 B
templates/pattern-css/split-diagonal.cssother547 B
templates/pattern-css/split-frame.cssother841 B
templates/pattern-css/swiss-grid.cssother1.0 KB
templates/pattern-css/vertical-rail.cssother2.1 KB
templates/pattern-css/vertical-stepper.cssother882 B
templates/pattern-css/z-pattern.cssother750 B
templates/pattern-css/zigzag-timeline.cssother312 B
templates/patterns/before-after.jsonconfig1.1 KB
templates/patterns/big-type.jsonconfig1.1 KB
templates/patterns/card-dashboard.jsonconfig1.1 KB
templates/patterns/cyclic-process.jsonconfig990 B
templates/patterns/data-story.jsonconfig1.1 KB
templates/patterns/editorial-asym.jsonconfig1.2 KB
templates/patterns/hero-left.jsonconfig1.2 KB
templates/patterns/quote-hero.jsonconfig1.1 KB
templates/patterns/recap-grid.jsonconfig978 B
templates/patterns/soft-shapes.jsonconfig1.1 KB
templates/patterns/sparkline-metric.jsonconfig1017 B
templates/patterns/split-diagonal.jsonconfig1.2 KB
templates/patterns/split-frame.jsonconfig1.1 KB
templates/patterns/swiss-grid.jsonconfig1.2 KB
templates/patterns/vertical-rail.jsonconfig1.1 KB
templates/patterns/vertical-stepper.jsonconfig1.0 KB
templates/patterns/z-pattern.jsonconfig1.1 KB
templates/patterns/zigzag-timeline.jsonconfig1004 B
templates/themes/dynamic.jsonconfig520 B
templates/themes/executive.jsonconfig526 B
templates/themes/general.jsonconfig515 B
templates/themes/lovii.jsonconfig647 B
templates/themes/modern.jsonconfig546 B
templates/themes/momentum.jsonconfig508 B
templates/themes/neo-consulting.jsonconfig862 B
templates/themes/standard.jsonconfig605 B
templates/themes/swift.jsonconfig552 B

scripts/verify_slides.py

View on GitHub
#!/usr/bin/env python3
"""Mandatory QA gate for presentation-maker: verify slides.html renders correctly.

Checks, per slide, in a real Chromium:
  1. slide has a heading and non-empty content
  2. no horizontal overflow on the slide itself
  3. every card/row/badge holds its content (children do not spill past borders)
  4. text containers do not clip (scrollWidth <= clientWidth)
  5. keyboard navigation switches slides
  6. optional: slide count matches the deck.json spec

Usage:
    python verify_slides.py slides.html [--spec deck.json] [--viewport 1600x900]
Exits 0 when every check passes, 1 otherwise.
"""
from __future__ import annotations

import argparse
import json
import sys
from pathlib import Path

from playwright.sync_api import sync_playwright

CARD_SELECTORS = (
    ".metric-card, .step-card, .col-card, .tl-card, .kpi-card, "
    ".bullet-list li, tr, .badge"
)
CONTENT_SELECTORS = (
    "h1, h2, h3, .subtitle, .meta-line, .bullet-list li, td, th, "
    ".metric-value, .metric-label, .step-text, .step-title, .step-desc, "
    ".col-card h3, .col-card li, .tl-card, .kpi-value, .kpi-label, .badge, "
    ".quote-text, .quote-attrib, .hero-value, .hero-label, .feature-card p, "
    ".logo-tile, .toc-title, .toc-desc, "
    ".climax-value, .climax-label, .climax-eyebrow"
)


def main() -> int:
    ap = argparse.ArgumentParser(description="Verify slides.html layout quality")
    ap.add_argument("html", help="path to slides.html")
    ap.add_argument("--spec", help="optional deck.json to cross-check slide count")
    ap.add_argument("--viewport", default="1600x900", help="viewport WxH")
    args = ap.parse_args()

    html = Path(args.html).resolve()
    if not html.exists():
        print(f"FAIL: {html} not found")
        return 1

    expected = None
    if args.spec:
        spec = json.loads(Path(args.spec).read_text(encoding="utf-8"))
        expected = len(spec.get("slides", []))

    w, h = (int(x) for x in args.viewport.lower().split("x"))
    problems: list[str] = []
    slide_heads: list[str] = []

    with sync_playwright() as p:
        browser = p.chromium.launch()
        page = browser.new_page(viewport={"width": w, "height": h})
        page.add_style_tag(content="* { transition: none !important; animation: none !important; }")
        page.goto(html.as_uri())
        page.wait_for_timeout(300)

        total = page.evaluate("document.querySelectorAll('.slide').length")
        if total == 0:
            print("FAIL: no .slide elements found")
            browser.close()
            return 1
        if expected is not None and total != expected:
            problems.append(f"slide count: expected {expected}, got {total}")

        for n in range(total):
            page.evaluate(
                """(n) => document.querySelectorAll('.slide')
                      .forEach((s, j) => s.classList.toggle('active', j === n))""",
                n,
            )
            page.wait_for_timeout(500)
            result = page.evaluate(
                """(payload) => {
                    const { n, cardSel, contentSel } = payload;
                    const slide = document.querySelectorAll('.slide')[n];
                    const issues = [];
                    const head = slide.querySelector('h1, h2');
                    if (!head || !head.textContent.trim())
                        issues.push('no heading');
                    const hasContent = Array.from(slide.querySelectorAll(contentSel))
                        .some(el => el.textContent.trim().length > 0);
                    if (!hasContent) issues.push('empty content');
                    for (const card of slide.querySelectorAll(cardSel)) {
                        const cr = card.getBoundingClientRect();
                        for (const child of card.querySelectorAll('*')) {
                            const r = child.getBoundingClientRect();
                            if (r.width > 0 && (r.left < cr.left - 2 || r.right > cr.right + 2))
                                issues.push('spill in ' + card.className.split(' ')[0]
                                            + ': ' + child.textContent.trim().slice(0, 18));
                        }
                    }
                    return { head: head ? head.textContent.trim() : '', issues };
                }""",
                {"n": n, "cardSel": CARD_SELECTORS, "contentSel": CONTENT_SELECTORS},
            )
            slide_heads.append(result["head"])
            if result["issues"]:
                problems.append(f"slide {n + 1} ({result['head']}): {', '.join(result['issues'])}")

        page.keyboard.press("ArrowRight")
        page.wait_for_timeout(80)
        nav_ok = page.evaluate(
            """() => Array.from(document.querySelectorAll('.slide'))
                         .filter(s => s.classList.contains('active')).length === 1"""
        )
        if not nav_ok:
            problems.append("navigation: expected exactly one active slide")
        page.keyboard.press("ArrowLeft")
        browser.close()

    print(f"Viewport {w}x{h} | slides: {total}" + (f" (spec: {expected})" if expected else ""))
    for i, head in enumerate(slide_heads, start=1):
        print(f"  slide {i:2d}: {head}")
    if problems:
        print("\nFAIL:")
        for p in problems:
            print(f"  - {p}")
        return 1
    print("\nPASS: все слайды собраны качественно — текст в карточках, нет переполнений.")
    return 0


if __name__ == "__main__":
    sys.exit(main())
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall