Communitygithub.com

101-skills/superpowers

Construisez des workflows IA automatisés combinant plusieurs modèles et services. Modèles : traitement par lots, tâches planifiées, pipelines événementiels, boucles d'agents. Outils : CLI inference.sh, scripts bash, SDK Python, intégration webhook. Utilisations : automatisation de contenu, traitement de données, surveillance, génération planifiée. Déclencheurs : automatisation IA, automatisation de workflows, traitement par lots, pipeline IA, contenu automatisé, IA planifiée, cron IA, tâche batch IA, génération automatisée, workflow IA, contenu à grande échelle, script d'automatisation, orchestration IA.

Qu'est-ce que superpowers ?

Ce skill permet de construire des workflows d'IA automatisés en utilisant l'interface en ligne de commande `belt` d'[inference.sh](https://inference.sh). Il est idéal pour les développeurs et les utilisateurs d'agents IA qui souhaitent automatiser des tâches répétitives telles que la génération de contenu, le traitement de données, la surveillance et la génération planifiée. Le skill couvre plusieurs schémas d'automatisation : le traitement par lots (batch processing), les pipelines séquentiels, le traitement parallèle, les workflows conditionnels, et la réexécution avec repli (retry with fallback). Il fournit des scripts bash prêts à l'emploi, des exemples Python via le SDK, et des configurations cron pour la planification. Des bonnes pratiques, des templates de pipelines (calendrier de contenu, traitement de données) et des mécanismes de surveillance (logging, alertes) sont également inclus. Il s'installe via `npx skills add belt-sh/cli` et nécessite la CLI `belt`.

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

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Aperçu

Depuis le README du skill

Workflows d'Automatisation IA

Documentation

Installer le skill belt CLI : npx skills add belt-sh/cli

Workflows d'Automatisation IA

Construisez des workflows IA automatisés via la CLI inference.sh.

Workflows d'Automatisation IA

Démarrage Rapide

Nécessite la CLI inference.sh (belt). Instructions d'installation

belt login

# Automatisation simple : Générer une image quotidienne
belt app run falai/flux-dev --input '{
  "prompt": "Fond de citation inspirante, design minimaliste, date : '"$(date +%Y-%m-%d)"'"
}'

Modèles d'Automatisation

Modèle 1 : Traitement par Lots

Traitez plusieurs éléments avec le même workflow.

#!/bin/bash
# batch_images.sh - Générer des images pour plusieurs prompts

PROMPTS=(
  "Paysage de montagne au lever du soleil"
  "Vagues océaniques au coucher du soleil"
  "Sentier forestier en automne"
  "Dunes de désert la nuit"
)

for prompt in "${PROMPTS[@]}"; do
  echo "Génération : $prompt"
  belt app run falai/flux-dev --input "{
    \"prompt\": \"$prompt, photographie professionnelle, 4K\"
  }" > "output_${prompt// /_}.json"
  sleep 2  # Limitation de débit
done

Modèle 2 : Pipeline Séquentiel

Chaînez plusieurs opérations IA.

#!/bin/bash
# content_pipeline.sh - Pipeline complet de création de contenu

TOPIC="IA dans la santé"

# Étape 1 : Recherche
echo "Recherche..."
RECHERCHE=$(belt app run tavily/search-assistant --input "{
  \"query\": \"$TOPIC derniers développements\"
}")

# Étape 2 : Rédiger l'article
echo "Rédaction de l'article..."
ARTICLE=$(belt app run openrouter/claude-sonnet-45 --input "{
  \"prompt\": \"Écris un article de blog de 500 mots sur $TOPIC basé sur : $RECHERCHE\"
}")

# Étape 3 : Générer une image
echo "Génération de l'image..."
IMAGE=$(belt app run falai/flux-dev --input "{
  \"prompt\": \"Image d'en-tête pour un article sur $TOPIC, moderne, professionnelle\"
}")

# Étape 4 : Créer un post social
echo "Création du post social..."
SOCIAL=$(belt app run openrouter/claude-haiku-45 --input "{
  \"prompt\": \"Écris un thread Twitter (5 tweets) résumant : $ARTICLE\"
}")

echo "Pipeline terminé !"

Modèle 3 : Traitement Parallèle

Exécutez plusieurs opérations simultanément.

#!/bin/bash
# parallel_generation.sh - Générer plusieurs ressources en parallèle

# Démarrer tous les jobs en arrière-plan
belt app run falai/flux-dev --input '{"prompt": "Image principale..."}' > hero.json &
PID1=$!

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

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

# Attendre la fin de tous les jobs
wait $PID1 $PID2 $PID3
echo "Toutes les images ont été générées !"

Modèle 4 : Workflow Conditionnel

Branchez selon les résultats.

#!/bin/bash
# conditional_workflow.sh - Traiter en fonction de l'analyse du contenu

TEXTE_ENTREE="$1"

# Analyser le contenu
ANALYSE=$(belt app run openrouter/claude-haiku-45 --input "{
  \"prompt\": \"Classifie ce texte comme : positif, négatif, ou neutre. Retourne uniquement la classification.\n\n$TEXTE_ENTREE\"
}")

# Brancher selon le résultat
case "$ANALYSE" in
  *positif*)
    echo "Génération d'une image de célébration..."
    belt app run falai/flux-dev --input '{"prompt": "Célébration, succès, heureux"}'
    ;;
  *négatif*)
    echo "Génération d'un message de soutien..."
    belt app run openrouter/claude-sonnet-45 --input "{
      \"prompt\": \"Écris une réponse bienveillante et encourageante à : $TEXTE_ENTREE\"
    }"
    ;;
  *)
    echo "Génération d'un accusé de réception neutre..."
    ;;
esac

Modèle 5 : Réessai avec Repli

Gérez les échecs avec élégance.

#!/bin/bash
# retry_workflow.sh - Réessayer les opérations échouées

generer_avec_reessai() {
  local prompt="$1"
  local max_tentatives=3
  local tentative=1

  while [ $tentative -le $max_tentatives ]; do
    echo "Tentative $tentative..."

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

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

    echo "Échec, nouvelle tentative..."
    ((tentative++))
    sleep $((tentative * 2))  # Backoff exponentiel
  done

  # Repli vers un modèle différent
  echo "Repli vers un modèle alternatif..."
  belt app run google/imagen-3 --input "{\"prompt\": \"$prompt\"}"
}

generer_avec_reessai "Un beau coucher de soleil sur les montagnes"

Automatisation Planifiée

Configuration Cron

# Éditer crontab
crontab -e

# Génération quotidienne de contenu à 9h
0 9 * * * /chemin/vers/daily_content.sh >> /var/log/ai-automation.log 2>&1

# Rapport hebdomadaire tous les lundis à 8h
0 8 * * 1 /chemin/vers/weekly_report.sh >> /var/log/ai-automation.log 2>&1

# Toutes les 6 heures : contenu pour les réseaux sociaux
0 */6 * * * /chemin/vers/social_content.sh >> /var/log/ai-automation.log 2>&1

Script de Contenu Quotidien

#!/bin/bash
# daily_content.sh - Exécuté quotidiennement à 9h

DATE=$(date +%Y-%m-%d)
REPERTOIRE_SORTIE="/output/$DATE"
mkdir -p "$REPERTOIRE_SORTIE"

# Générer l'image de citation quotidienne
belt app run falai/flux-dev --input '{
  "prompt": "Fond de citation motivante, minimaliste, ambiance matinale"
}' > "$REPERTOIRE_SORTIE/quote_image.json"

# Générer le conseil quotidien
belt app run openrouter/claude-haiku-45 --input '{
  "prompt": "Donne-moi un conseil de productivité exploitable pour aujourd'hui. Sois concis."
}' > "$REPERTOIRE_SORTIE/daily_tip.json"

# Publier sur les réseaux (optionnel)
# belt app run twitter/post-tweet --input "{...}"

echo "Contenu quotidien généré : $DATE"

Surveillance et Journalisation

Wrapper de Journalisation

#!/bin/bash
# logged_workflow.sh - Avec journalisation complète

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

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

log "Démarrage du workflow"

# Suivre le temps d'exécution
TEMPS_DEBUT=$(date +%s)

# Exécuter le workflow
log "Génération de l'image..."
RESULTAT=$(belt app run falai/flux-dev --input '{"prompt": "test"}' 2>&1)
STATUT=$?

if [ $STATUT -eq 0 ]; then
  log "Succès : Image générée"
else
  log "Erreur : $RESULTAT"
fi

TEMPS_FIN=$(date +%s)
DUREE=$((TEMPS_FIN - TEMPS_DEBUT))
log "Terminé en ${DUREE}s"

Alerte d'Erreur

#!/bin/bash
# monitored_workflow.sh - Avec alertes d'erreur

executer_avec_alerte() {
  local resultat
  resultat=$("$@" 2>&1)
  local statut=$?

  if [ $statut -ne 0 ]; then
    # Envoyer une alerte (webhook, email, etc.)
    curl -X POST "https://votre-webhook.com/alert" \
      -H "Content-Type: application/json" \
      -d "{\"error\": \"$resultat\", \"command\": \"$*\"}"
  fi

  echo "$resultat"
  return $statut
}

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

Automatisation via SDK Python

#!/usr/bin/env python3
# automation.py - Workflow basé sur Python

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

def run_infsh(app_id: str, input_data: dict) -> dict:
    """Exécuter une application inference.sh et retourner le résultat."""
    resultat = subprocess.run(
        ["belt", "app", "run", app_id, "--input", json.dumps(input_data)],
        capture_output=True,
        text=True
    )
    return json.loads(resultat.stdout) if resultat.returncode == 0 else None

def pipeline_contenu_quotidien():
    """Générer du contenu quotidien."""
    date_str = datetime.now().strftime("%Y-%m-%d")
    repertoire_sortie = Path(f"output/{date_str}")
    repertoire_sortie.mkdir(parents=True, exist_ok=True)

    # Générer l'image
    image = run_infsh("falai/flux-dev", {
        "prompt": f"Inspiration quotidienne pour {date_str}, belle, édifiante"
    })
    (repertoire_sortie / "image.json").write_text(json.dumps(image))

    # Générer la légende
    legende = run_infsh("openrouter/claude-haiku-45", {
        "prompt": "Écris une légende inspirante pour un post de motivation quotidien. 2-3 phrases."
    })
    (repertoire_sortie / "caption.json").write_text(json.dumps(legende))

    print(f"Contenu généré pour {date_str}")

if __name__ == "__main__":
    pipeline_contenu_quotidien()

Templates de Workflow

Automatisation de Calendrier de Contenu

#!/bin/bash
# content_calendar.sh - Générer une semaine de contenu

SUJETS=("productivité" "bien-être" "technologie" "créativité" "leadership")
JOURS=("Lundi" "Mardi" "Mercredi" "Jeudi" "Vendredi")

for i in "${!JOURS[@]}"; do
  JOUR=${JOURS[$i]}
  SUJET=${SUJETS[$i]}

  echo "Génération du contenu du $JOUR sur $SUJET..."

  # Image
  belt app run falai/flux-dev --input "{
    \"prompt\": \"Thème $SUJET, motivation $JOUR, style réseaux sociaux\"
  }" > "content/${JOUR}_image.json"

  # Légende
  belt app run openrouter/claude-haiku-45 --input "{
    \"prompt\": \"Écris un post de motivation pour $JOUR sur $SUJET. Inclus des hashtags.\"
  }" > "content/${JOUR}_caption.json"
done

Pipeline de Traitement de Données

#!/bin/bash
# data_processing.sh - Traiter et analyser les fichiers de données

REPERTOIRE_ENTREE="./data/raw"
REPERTOIRE_SORTIE="./data/processed"

for fichier in "$REPERTOIRE_ENTREE"/*.txt; do
  nom_fichier=$(basename "$fichier" .txt)

  # Analyser le contenu
  belt app run openrouter/claude-haiku-45 --input "{
    \"prompt\": \"Analyse ces données et fournis des informations clés au format JSON : $(cat $fichier)\"
  }" > "$REPERTOIRE_SORTIE/${nom_fichier}_analysis.json"

done

Bonnes Pratiques

  1. Limitation de débit - Ajoutez des délais entre les appels API
  2. Gestion des erreurs - Vérifiez toujours les codes de retour
  3. Journalisation - Suivez toutes les opérations
  4. Idempotence - Concevez pour des réexécutions sûres
  5. Surveillance - Alertez en cas d'échec
  6. Sauvegardes - Sauvegardez les résultats intermédiaires
  7. Délais d'attente - Définissez des limites raisonnables

Skills Connexes

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

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

# Automatisation des réseaux sociaux
npx skills add inference-sh/skills@ai-social-media-content

# Skill complet de la plateforme
npx skills add inference-sh/skills@infsh-cli

Parcourez toutes les applications : 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.

Skills associés