agentleFS
denno13denno13/claude-social-kit/skills/post-carousel/SKILL.md

post-carousel

Skill0 starsChanged 3 months agoMITView on GitHub

Builds finished social media posts and multi page carousels from a JSON spec: 4:5 for Instagram and LinkedIn, 9:16 for TikTok and Stories, plus a multi page PDF for a LinkedIn document post. One source, all outputs, rendered locally through headless Chrome. Use this skill whenever the user asks for a post, a carousel, a text card, a feed image or slides for social media, also when phrased casually: "make a post about X", "turn this into a carousel", "something for Instagram", "prepare this for LinkedIn". Not for animated video, that is the reel skill.

The file

Files
SKILL.md

Post Carousel

Turn a topic into finished, postable images. Everything runs locally: no cloud service, no API key, no credits.

Ablauf

  1. Inhalt sammeln. Zahlen und Fakten kommen vom Nutzer oder aus seinen Notizen. Nichts schätzen, im Zweifel nachfragen.
  2. Spec als JSON schreiben. Format unten, am besten neben die Ausgabe legen.
  3. Rendern: python scripts/karussell.py spec.json
  4. Ergebnis ansehen. Das Skript prüft kein Layout. Immer die PNG öffnen.
  5. Captions schreiben, pro Kanal eine.

Spec

{
  "marke": "marke.json",
  "ziel": "ausgabe",
  "praefix": "mein-post",
  "formate": ["4-5", "9-16"],
  "pdf": true,
  "karten": [
    {
      "kicker": "Kleine Rubrik oben",
      "h1": "Zeile eins<br>mit *Akzentwort*.",
      "sub": "Optionale Unterzeile.",
      "emoji": "📉",
      "figur": "zeigt",
      "blase": "Kurzer Kommentar.",
      "foto": "portrait.png",
      "body": [
        {"typ": "merk",   "text": "Fließtext im Akzent-Kasten.", "gross": true},
        {"typ": "liste",  "zeilen": [["Name", "Erklärung"]], "nachsatz": "…"},
        {"typ": "grid",   "kacheln": [["8", "Projekte", "5 live"]]},
        {"typ": "banner", "titel": "Rubrik", "text": "Claude Code"}
      ]
    }
  ]
}

Pflicht sind nur ziel und karten. Pfade dürfen relativ zur Spec-Datei stehen. <br> erzwingt den Umbruch, <b> hebt im Fließtext hervor.

Marke

Alles Markenspezifische steht in einer eigenen JSON, siehe examples/marke.example.json: Schrift, Akzentfarbe, Hintergrundverlauf, Wortmarke, Handle, URL. Ohne eigene Datei greift ein neutrales Standardthema.

Der Akzent ist ein Marker-Highlight, kein zweiter Schriftschnitt. Das Wort in *Sternchen* in der h1 bekommt die Akzentfarbe hinterlegt. Immer nur ein Wort pro Headline, sonst verliert es seine Wirkung.

Figuren und Portraits

figur verweist auf ein SVG aus der Marken-Datei, foto auf ein freigestelltes PNG. Es wird bewusst keine Figur mitgeliefert, das ist Markensache. Fehlt eine Datei, lässt das Skript die Figur weg und sagt es im Log.

Regeln, die das Skript selbst durchsetzt

Diese drei Fehler entstehen sonst immer wieder, weil Figur, Portrait und Banner alle unten rechts sitzen. Das Skript löst den Konflikt und protokolliert es:

KonfliktAuflösung
Foto und Figur auf einer KarteFoto gewinnt
Banner und Figur auf einer KarteBanner gewinnt
Portrait verdeckt die Fuß-URLURL wird ausgeblendet, nicht halb verdeckt

9:16 hält die unteren 400 px frei. Dort zeichnet TikTok Caption, Sound-Zeile und Kontonamen. Der Bereich sieht in der PNG leer aus und ist es im Feed nicht.

Was du selbst prüfen musst

Layout kann das Skript nicht beurteilen. Wiederkehrende Fehler:

  • Loch in der Mitte. Zu wenig Inhalt für die Fläche. Die Lösung ist mehr Substanz, nicht mehr Abstand: eine Kachel dazu, eine Listenzeile mehr.
  • Emoji auf einer Kachel. Das große Emoji sitzt in der freien Fläche zwischen Unterzeile und Inhalt. Wächst der Inhalt, kollidiert es.
  • Zu lange Zeilen. Über etwa 16 Zeichen pro Zeile wird jede Headline im Feed unleserlich. Im Zweifel kürzen statt verkleinern.

Fremdlogos

Nicht nachbauen. Fremde Marken aus dem Gedächtnis zu zeichnen wird erkennbar falsch und fällt auf den Absender zurück. Entweder die offiziell bereitgestellte SVG einsetzen oder den Namen als Wortmarke in einen banner-Block schreiben.

Voraussetzungen

Python 3, Google Chrome, optional Pillow für das PDF. Chrome wird selbst gefunden, sonst CHROME_PFAD setzen.

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.