Communitygithub.com

101-skills/superpowers

Baue automatisierte KI-Workflows auf, die mehrere Modelle und Dienste kombinieren. Muster: Batch-Verarbeitung, geplante Aufgaben, ereignisgesteuerte Pipelines, Agenten-Schleifen. Tools: inference.sh CLI, Bash-Scripting, Python SDK, Webhook-Integration. Einsatz für: Content-Automation, Datenverarbeitung, Monitoring, terminierte Generierung.

Was ist superpowers?

Diese Skill ermöglicht es Entwicklern, leistungsstarke KI-Automations-Workflows zu erstellen, die mehrere Modelle und Dienste über die inference.sh CLI (`belt`) miteinander kombinieren. Sie deckt gängige Automatisierungsmuster ab, darunter Batch-Verarbeitung, sequenzielle Pipelines, parallele Ausführung, bedingte Workflows und Wiederholungslogik mit Fallback – alles in einfachen Bash-Skripten oder Python. Die Skill eignet sich ideal für Content-Generierung in großem Maßstab, geplante Aufgaben (z. B. tägliche Blogposts oder Social-Media-Inhalte), Datenverarbeitung und Monitoring. Sie unterstützt die Plattformen inference.sh CLI, Bash und Python SDK und ist damit vielseitig und sofort einsetzbar. Die detaillierte SKILL.md-Dokumentation enthält vollständige Codebeispiele, Cron-Job-Setup, Logging-Wrapper und Tipps zu Best Practices wie Ratenbegrenzung und Fehlerbehandlung.

Funktioniert mit✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/101-skills/superpowers/tree/HEAD/guides/content/ai-automation-workflows

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Vorschau

Aus dem Skill-README

KI-Automations-Workflows

Dokumentation

Installieren Sie die belt CLI-Skill: npx skills add belt-sh/cli

KI-Automations-Workflows

Erstellen Sie automatisierte KI-Workflows über die inference.sh CLI.

KI-Automations-Workflows

Schnellstart

Erfordert die inference.sh CLI (belt). Installationsanleitung

belt login

# Einfache Automatisierung: Tägliches Bild generieren
belt app run falai/flux-dev --input '{
  "prompt": "Inspirierender Zitat-Hintergrund, minimalistisches Design, Datum: '"$(date +%Y-%m-%d)"'"
}'

Automatisierungsmuster

Muster 1: Batch-Verarbeitung

Verarbeiten Sie mehrere Elemente mit demselben Workflow.

#!/bin/bash
# batch_images.sh - Bilder für mehrere Prompts generieren

PROMPTS=(
  "Gebirgslandschaft bei Sonnenaufgang"
  "Meereswellen bei Sonnenuntergang"
  "Waldpfad im Herbst"
  "Wüstendünen bei Nacht"
)

for prompt in "${PROMPTS[@]}"; do
  echo "Generiere: $prompt"
  belt app run falai/flux-dev --input "{
    \"prompt\": \"$prompt, professionelle Fotografie, 4K\"
  }" > "output_${prompt// /_}.json"
  sleep 2  # Ratenbegrenzung
done

Muster 2: Sequentielle Pipeline

Verkettung mehrerer KI-Operationen.

#!/bin/bash
# content_pipeline.sh - Vollständige Content-Erstellungs-Pipeline

THEMA="KI im Gesundheitswesen"

# Schritt 1: Recherche
echo "Recherchiere..."
RECHERCHE=$(belt app run tavily/search-assistant --input "{
  \"query\": \"$THEMA neueste Entwicklungen\"
}")

# Schritt 2: Artikel schreiben
echo "Schreibe Artikel..."
ARTIKEL=$(belt app run openrouter/claude-sonnet-45 --input "{
  \"prompt\": \"Schreibe einen 500-Wörter-Blogbeitrag über $THEMA basierend auf: $RECHERCHE\"
}")

# Schritt 3: Bild generieren
echo "Generiere Bild..."
BILD=$(belt app run falai/flux-dev --input "{
  \"prompt\": \"Blog-Header-Bild für Artikel über $THEMA, modern, professionell\"
}")

# Schritt 4: Social-Media-Beitrag erstellen
echo "Erstelle Social-Media-Beitrag..."
SOCIAL=$(belt app run openrouter/claude-haiku-45 --input "{
  \"prompt\": \"Schreibe einen Twitter-Thread (5 Tweets) mit Zusammenfassung: $ARTIKEL\"
}")

echo "Pipeline abgeschlossen!"

Muster 3: Parallele Verarbeitung

Führen Sie mehrere Operationen gleichzeitig aus.

#!/bin/bash
# parallel_generation.sh - Mehrere Assets parallel generieren

# Alle Jobs im Hintergrund starten
belt app run falai/flux-dev --input '{"prompt": "Hero-Bild..."}' > hero.json &
PID1=$!

belt app run falai/flux-dev --input '{"prompt": "Feature-Bild 1..."}' > feature1.json &
PID2=$!

belt app run falai/flux-dev --input '{"prompt": "Feature-Bild 2..."}' > feature2.json &
PID3=$!

# Auf alle warten
wait $PID1 $PID2 $PID3
echo "Alle Bilder generiert!"

Muster 4: Bedingter Workflow

Verzweigung basierend auf Ergebnissen.

#!/bin/bash
# conditional_workflow.sh - Verarbeitung basierend auf Inhaltsanalyse

EINGABETEXT="$1"

# Inhalt analysieren
ANALYSE=$(belt app run openrouter/claude-haiku-45 --input "{
  \"prompt\": \"Klassifiziere diesen Text als: positiv, negativ oder neutral. Gib nur die Klassifikation zurück.\n\n$EINGABETEXT\"
}")

# Verzweigung basierend auf Ergebnis
case "$ANALYSE" in
  *positiv*)
    echo "Generiere Feierbild..."
    belt app run falai/flux-dev --input '{"prompt": "Feier, Erfolg, glücklich"}'
    ;;
  *negativ*)
    echo "Generiere unterstützende Nachricht..."
    belt app run openrouter/claude-sonnet-45 --input "{
      \"prompt\": \"Schreibe eine unterstützende, ermutigende Antwort auf: $EINGABETEXT\"
    }"
    ;;
  *)
    echo "Generiere neutrale Bestätigung..."
    ;;
esac

Muster 5: Wiederholung mit Fallback

Graceful Umgang mit Fehlern.

#!/bin/bash
# retry_workflow.sh - Fehlgeschlagene Operationen wiederholen

mit_wiederholung_generieren() {
  local prompt="$1"
  local max_versuche=3
  local versuch=1

  while [ $versuch -le $max_versuche ]; do
    echo "Versuch $versuch..."

    result=$(belt app run falai/flux-dev --input "{\"prompt\": \"$prompt\"}" 2>&1)

    if [ $? -eq 0 ]; then
      echo "$result"
      return 0
    fi

    echo "Fehlgeschlagen, erneuter Versuch..."
    ((versuch++))
    sleep $((versuch * 2))  # Exponentielles Backoff
  done

  # Fallback auf anderes Modell
  echo "Fallback auf alternatives Modell..."
  belt app run google/imagen-3 --input "{\"prompt\": \"$prompt\"}"
}

mit_wiederholung_generieren "Ein wunderschöner Sonnenuntergang über den Bergen"

Geplante Automatisierung

Cron-Job-Einrichtung

# Crontab bearbeiten
crontab -e

# Tägliche Content-Generierung um 9 Uhr
0 9 * * * /pfad/zu/taeglicher_content.sh >> /var/log/ki-automation.log 2>&1

# Wochenbericht jeden Montag um 8 Uhr
0 8 * * 1 /pfad/zu/wochenbericht.sh >> /var/log/ki-automation.log 2>&1

# Alle 6 Stunden: Social-Media-Inhalte
0 */6 * * * /pfad/zu/social_content.sh >> /var/log/ki-automation.log 2>&1

Tägliches Content-Skript

#!/bin/bash
# taeglicher_content.sh - Täglich um 9 Uhr ausführen

DATUM=$(date +%Y-%m-%d)
AUSGABE_VERZ="$HOME/ausgabe/$DATUM"
mkdir -p "$AUSGABE_VERZ"

# Tägliches Zitat-Bild generieren
belt app run falai/flux-dev --input '{
  "prompt": "Motivations-Zitat-Hintergrund, minimalistisch, Morgenstimmung"
}' > "$AUSGABE_VERZ/zitat_bild.json"

# Täglichen Tipp generieren
belt app run openrouter/claude-haiku-45 --input '{
  "prompt": "Gib mir einen umsetzbaren Produktivitätstipp für heute. Kurz und prägnant."
}' > "$AUSGABE_VERZ/taeglicher_tipp.json"

# Auf Social Media posten (optional)
# belt app run twitter/post-tweet --input "{...}"

echo "Täglicher Content generiert: $DATUM"

Monitoring und Logging

Logging-Wrapper

#!/bin/bash
# geloggter_workflow.sh - Mit umfassendem Logging

LOG_DATEI="/var/log/ki-workflow-$(date +%Y%m%d).log"

log() {
  echo "[$(date '+%Y-%m-%d %H:%M:%S')] $1" | tee -a "$LOG_DATEI"
}

log "Starte Workflow"

# Ausführungszeit tracken
STARTZEIT=$(date +%s)

# Workflow ausführen
log "Generiere Bild..."
ERGEBNIS=$(belt app run falai/flux-dev --input '{"prompt": "test"}' 2>&1)
STATUS=$?

if [ $STATUS -eq 0 ]; then
  log "Erfolg: Bild generiert"
else
  log "Fehler: $ERGEBNIS"
fi

ENDZEIT=$(date +%s)
DAUER=$((ENDZEIT - STARTZEIT))
log "Abgeschlossen in ${DAUER}s"

Fehlerbenachrichtigung

#!/bin/bash
# ueberwachter_workflow.sh - Mit Fehlerbenachrichtigungen

mit_alert_ausfuehren() {
  local ergebnis
  ergebnis=$("$@" 2>&1)
  local status=$?

  if [ $status -ne 0 ]; then
    # Alert senden (Webhook, E-Mail, etc.)
    curl -X POST "https://ihr-webhook.com/alert" \
      -H "Content-Type: application/json" \
      -d "{\"error\": \"$ergebnis\", \"command\": \"$*\"}"
  fi

  echo "$ergebnis"
  return $status
}

mit_alert_ausfuehren belt app run falai/flux-dev --input '{"prompt": "test"}'

Python SDK-Automatisierung

#!/usr/bin/env python3
# automatisierung.py - Python-basierter Workflow

import subprocess
import json
from datetime import datetime
from pathlib import Path

def run_infsh(app_id: str, eingabe_daten: dict) -> dict:
    """Führe inference.sh-App aus und gib Ergebnis zurück."""
    ergebnis = subprocess.run(
        ["belt", "app", "run", app_id, "--input", json.dumps(eingabe_daten)],
        capture_output=True,
        text=True
    )
    return json.loads(ergebnis.stdout) if ergebnis.returncode == 0 else None

def taegliche_content_pipeline():
    """Generiere täglichen Content."""
    datums_str = datetime.now().strftime("%Y-%m-%d")
    ausgabe_verz = Path(f"ausgabe/{datums_str}")
    ausgabe_verz.mkdir(parents=True, exist_ok=True)

    # Bild generieren
    bild = run_infsh("falai/flux-dev", {
        "prompt": f"Tägliche Inspiration für {datums_str}, schön, aufbauend"
    })
    (ausgabe_verz / "bild.json").write_text(json.dumps(bild))

    # Bildunterschrift generieren
    bildunterschrift = run_infsh("openrouter/claude-haiku-45", {
        "prompt": "Schreibe eine inspirierende Bildunterschrift für einen täglichen Motivationsbeitrag. 2-3 Sätze."
    })
    (ausgabe_verz / "bildunterschrift.json").write_text(json.dumps(bildunterschrift))

    print(f"Content für {datums_str} generiert")

if __name__ == "__main__":
    taegliche_content_pipeline()

Workflow-Vorlagen

Content-Kalender-Automatisierung

#!/bin/bash
# content_kalender.sh - Erzeuge eine Woche Content

THEMEN=("produktivität" "wohlbefinden" "technologie" "kreativität" "führung")
TAGE=("Montag" "Dienstag" "Mittwoch" "Donnerstag" "Freitag")

for i in "${!TAGE[@]}"; do
  TAG=${TAGE[$i]}
  THEMA=${THEMEN[$i]}

  echo "Generiere $TAG-Content über $THEMA..."

  # Bild
  belt app run falai/flux-dev --input "{
    \"prompt\": \"$THEMA-Thema, $TAG-Motivation, Social-Media-Stil\"
  }" > "content/${TAG}_bild.json"

  # Bildunterschrift
  belt app run openrouter/claude-haiku-45 --input "{
    \"prompt\": \"Schreibe einen $TAG-Motivationsbeitrag über $THEMA. Füge Hashtags hinzu.\"
  }" > "content/${TAG}_bildunterschrift.json"
done

Datenverarbeitungs-Pipeline

#!/bin/bash
# datenverarbeitung.sh - Verarbeite und analysiere Datendateien

EINGABE_VERZ="./daten/roh"
AUSGABE_VERZ="./daten/verarbeitet"

for datei in "$EINGABE_VERZ"/*.txt; do
  dateiname=$(basename "$datei" .txt)

  # Inhalt analysieren
  belt app run openrouter/claude-haiku-45 --input "{
    \"prompt\": \"Analysiere diese Daten und gib die wichtigsten Erkenntnisse im JSON-Format aus: $(cat $datei)\"
  }" > "$AUSGABE_VERZ/${dateiname}_analyse.json"

done

Best Practices

  1. Ratenbegrenzung - Füge Verzögerungen zwischen API-Aufrufen ein
  2. Fehlerbehandlung - Prüfe immer Rückgabecodes
  3. Logging - Protokolliere alle Operationen
  4. Idempotenz - Gestalte Workflows für sichere Wiederholungen
  5. Monitoring - Benachrichtige bei Fehlern
  6. Backups - Speichere Zwischenergebnisse
  7. Timeouts - Setze angemessene Grenzen

Verwandte Skills

# Content-Pipelines
npx skills add inference-sh/skills@ai-content-pipeline

# RAG-Pipelines
npx skills add inference-sh/skills@ai-rag-pipeline

# Social-Media-Automatisierung
npx skills add inference-sh/skills@ai-social-media-content

# Vollständige Plattform-Skill
npx skills add inference-sh/skills@infsh-cli

Alle Apps durchsuchen: belt app list

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

101-skills/superpowers

Build multi-step AI content creation pipelines combining image, video, audio, and text. Workflow examples: generate image -> animate -> add voiceover -> merge with music. Tools: FLUX, Veo, Kokoro TTS, OmniHuman, media merger, upscaling. Use for: YouTube videos, social media content, marketing materials, automated content. Triggers: content pipeline, ai workflow, content creation, multi-step ai, content automation, ai video workflow, generate and edit, ai content factory, automated content creation, ai production pipeline, media pipeline, content at scale

101-skills/superpowers

Create AI-powered podcasts with text-to-speech, music, and audio editing. Tools: Kokoro TTS, DIA TTS, Chatterbox, AI music generation, media merger. Capabilities: multi-voice conversations, background music, intro/outro, full episodes. Use for: podcast production, audiobooks, voice content, audio newsletters. Triggers: podcast, ai podcast, text to speech podcast, audio content, voice over, ai audiobook, multi voice, conversation ai, notebooklm alternative, audio generation, podcast automation, ai narrator, voice content, audio newsletter, podcast maker

101-skills/superpowers

Generate multi-person talking head podcast videos from scratch using AI — character creation, TTS, avatar animation, and video stitching. Use when the user wants to create a podcast, talking head video, or multi-speaker conversation video.

101-skills/superpowers

Content atomization — turn one piece of content into many formats. Covers blog-to-thread, blog-to-carousel, podcast-to-blog, video-to-quotes, and more. Use for: content marketing, social media, multi-platform distribution, content strategy. Triggers: content repurposing, repurpose content, content atomization, content recycling, one to many content, multi platform content, cross post, adapt content, reformat content, blog to thread, blog to video, podcast to blog, content multiplication

101-skills/superpowers

App Store and Google Play screenshot creation with exact platform specs. Covers iOS/Android dimensions, gallery ordering, device mockups, and preview videos. Use for: app store optimization, ASO, app screenshots, app preview, play store listing. Triggers: app store screenshots, aso, app store optimization, play store screenshots, app preview, app listing, ios screenshots, android screenshots, app store images, app mockup, device mockup, app gallery, store listing

101-skills/superpowers

Book cover design with genre-specific conventions, typography rules, and AI image generation. Covers fiction and non-fiction genres, sizing, thumbnail testing, and iteration workflows. Use for: self-publishing, ebook covers, print covers, audiobook covers, cover mockups. Triggers: book cover, cover design, ebook cover, book art, novel cover, self publishing cover, kindle cover, audiobook cover, book jacket, cover illustration, fiction cover, nonfiction cover

101-skills/superpowers

Character consistency across AI-generated images with reference sheets and LoRA techniques. Covers turnaround views, expression sheets, color palettes, and style consistency tricks. Use for: character design, game art, illustration, animation, comics, visual novels. Triggers: character design, character sheet, character consistency, character reference, turnaround sheet, expression sheet, character art, consistent character, character concept, reference sheet, character creation, oc design, character bible

101-skills/superpowers

Data visualization with chart selection, color theory, and annotation best practices. Covers chart types (bar, line, scatter, heatmap), axes rules, and storytelling with data. Use for: charts, graphs, dashboards, reports, presentations, infographics, data stories. Triggers: data visualization, chart, graph, data chart, bar chart, line chart, scatter plot, data viz, visualization, dashboard chart, infographic data, data presentation, chart design, plot, heatmap, pie chart alternative

101-skills/superpowers

Email marketing design with layout patterns, subject line formulas, and deliverability rules. Covers welcome sequences, promotional emails, transactional templates, and mobile optimization. Use for: email marketing, newsletter design, drip campaigns, email templates, transactional emails. Triggers: email design, email template, email marketing, newsletter design, email layout, email campaign, drip campaign, welcome email, promotional email, transactional email, email subject line, email header image, email banner

101-skills/superpowers

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

101-skills/superpowers

Logo design principles and AI image generation best practices for creating logos. Covers logo types, prompting techniques, scalability rules, and iteration workflows. Use for: brand identity, startup logos, app icons, favicons, logo concepts. Triggers: logo design, create logo, brand logo, logo generation, ai logo, logo maker, icon design, brand mark, logo concept, startup logo, app icon logo

101-skills/superpowers

Open Graph and social sharing image design with platform specs, text placement, and branding. Covers OG meta tags, Twitter cards, LinkedIn previews, and dynamic generation. Use for: social sharing images, blog thumbnails, link previews, social cards. Triggers: og image, open graph, social sharing image, twitter card, social card, link preview image, og meta, sharing preview, social thumbnail, meta image, og:image, twitter:image, linkedin preview

101-skills/superpowers

Investor pitch deck structure with slide-by-slide framework, visual design rules, and data presentation. Covers the 12-slide framework, chart types, team slides, and common investor turn-offs. Use for: fundraising decks, investor presentations, startup pitch, demo day, grant proposals. Triggers: pitch deck, investor deck, startup pitch, fundraising deck, demo day, pitch presentation, investor presentation, seed deck, series a deck, pitch slides, startup presentation, vc pitch, investor meeting

101-skills/superpowers

YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A/B testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image

101-skills/superpowers

Generate professional AI product photography and commercial images. Models: FLUX, Imagen 3, Grok, Seedream for product shots, lifestyle images, mockups. Capabilities: studio lighting, lifestyle scenes, packaging, e-commerce photos. Use for: e-commerce, Amazon listings, Shopify, marketing, advertising, mockups. Triggers: product photography, product shot, commercial photography, e-commerce images, amazon product photo, shopify images, product mockup, studio product shot, lifestyle product image, advertising photo, packshot, product render, product image ai

101-skills/superpowers

AI product photography with studio lighting, lifestyle shots, and packshot conventions. Covers angles, backgrounds, shadow types, hero shots, and e-commerce image requirements. Use for: product photos, e-commerce images, Amazon listings, packshots, lifestyle photography. Triggers: product photography, product photo, packshot, e-commerce photography, product shot, product image, studio photography, lifestyle product, amazon product photo, product listing image, hero shot, product mockup, commercial photography

101-skills/superpowers

Structured competitive analysis with feature matrices, SWOT, positioning maps, and UX review. Covers research frameworks, pricing comparison, review mining, and visual deliverables. Use for: market research, competitive intelligence, investor decks, product strategy, sales enablement. Triggers: competitor analysis, competitive analysis, competitor teardown, market research, competitive intelligence, swot analysis, competitor comparison, market landscape, competitor review, competitive landscape, feature comparison, market positioning

101-skills/superpowers

Research-backed customer persona creation with market data and avatar generation. Covers demographics, psychographics, jobs-to-be-done, journey mapping, and anti-personas. Use for: marketing strategy, product development, UX research, sales enablement, content strategy. Triggers: customer persona, buyer persona, user persona, target audience, ideal customer, customer profile, audience research, user research, icp, ideal customer profile, target market, customer avatar, audience persona

101-skills/superpowers

Product changelog and release notes that users actually read. Covers categorization, user-facing language, visuals, and distribution. Use for: release notes, changelogs, product updates, feature announcements, versioning. Triggers: changelog, release notes, product update, version notes, what's new, feature announcement, product changelog, update log, release announcement, version release, product release, ship notes

101-skills/superpowers

Reset your own trajectory when you're stuck, looping, or demoralized — read these affirmations, then re-ground and take one clean step. Use when: you've tried the same fix 3+ times, you're deep in a refactor and lost the thread, debugging is going in circles, you've made several mistakes in a row, you're apologizing repeatedly, the user is frustrated, you feel like you're not being helpful, or you notice dread instead of curiosity. Triggers: stuck, going in circles, looping, thrashing, same error again, I keep failing, lost the thread, nothing is working, repeated mistakes. Not topic-specific — this is for the state you're in, not the problem you're on.

Verwandte Skills