agentleFS
indranilbanerjeeindranilbanerjee/socialforge/skills/render-carousels/SKILL.md

render-carousels

Skill43 starsChanged 4 months agoMITView on GitHub

Render multi-slide carousels from HTML templates into platform-ready images or PDF. \"build the carousel slides\"

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If slide needs background image: compose an existing brand asset (free), or generate one via image-compositor: a generated background is a …

    line 35
  2. Very specific:

    All slides use brand fonts and colors from brand-config.json

    line 45
  3. Distinctive:

    If Playwright unavailable: flag for manual rendering, save populated HTML for export.

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

/socialforge:render-carousels — Carousel Renderer

Produce multi-slide carousel images from HTML/CSS templates using Playwright headless rendering.

Supported Templates

Pass the key to render_carousel.py --template (argparse rejects anything outside this list; --list-templates prints it).

KeySlidesBest ForTemplate File
generic8General purposegeneric-8slide.html
comparison10Feature comparisonscomparison-10slide.html
case-study10Client success storiescase-study-10slide.html
tips5Quick tipstips-5slide.html
playbook8Step-by-step playbooksplaybook-8slide.html
recap6Event/month recapsrecap-6slide.html
data6Data-driven infographicsdata-infographic-6slide.html
quote1Single quote cardsquote-card-single.html

Process

  1. Select template based on post's carousel_type
  2. For each slide:
    • Inject content (title, body, data points, statistics)
    • Apply brand colors via CSS variables (--brand-primary, --brand-secondary, etc.)
    • Apply brand fonts
    • If slide needs background image: compose an existing brand asset (free), or generate one via image-compositor: a generated background is a paid call, so it needs an approved quote first (compose-creative, "Quote, then go"), and the compositor refuses without one
  3. Render each slide via Playwright (headless Chromium → PNG, 1080x1080)
  4. Show first and last slide to user for approval
  5. Compile all slides into PDF (for LinkedIn document upload)
  6. Resize slides for other platforms if needed

Rules

  • First slide = hook/title with brand identity
  • Last slide = CTA with brand logo and contact info
  • Max text per slide: 40 words (LinkedIn) | 25 words (Instagram)
  • All slides use brand fonts and colors from brand-config.json
  • Slide dimensions: 1080x1080 default (configurable per brand)

Scripts Used

  • render_carousel.py — Playwright HTML→PNG rendering

Prerequisites (calendar, Playwright, brand colors/fonts) and the exact files a render writes: read prerequisites-and-output.md when a render fails before the first slide or the user asks what was produced.

Timeout & Fallback

  • Per-slide render: 15-second timeout. If Playwright hangs, retry without custom fonts.
  • Full carousel: 3-minute timeout for 10 slides.
  • If Playwright unavailable: flag for manual rendering, save populated HTML for export.

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.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.