Image Generator logo

Image Generator

Community
nicmarti
image-generator

Génère des images heroic fantasy pour BFRPG via fal.ai FLUX.1. Portraits de personnages/PNJ, scènes d'aventure, monstres, objets magiques et lieux. Utilise des prompts optimisés pour le style fantasy médiéval.

Overview

Publishernicmarti
Repositoryskills-weaver
Skill nameimage-generator
Stars
30
Forks
3
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by nicmarti on GitHub. Read the source before you install it.

Installation

Install the Image Generator AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/nicmarti/skills-weaver/tree/master/core_agents/skills/image-generator
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/nicmarti/skills-weaver.git /tmp/skills-weaver
mkdir -p .claude/skills
cp -r /tmp/skills-weaver/core_agents/skills/image-generator .claude/skills/image-generator
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Image Generator in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Image Generator on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Image Generator is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Image Generator - Générateur d'images Heroic Fantasy

Skill pour générer des illustrations fantasy de haute qualité via l'API fal.ai avec le modèle FLUX.1 [pro].

Prérequis

Variable d'environnement requise :

bash
export FAL_KEY="votre_clé_api_fal"

Utilisation Rapide

bash
# Compiler si nécessaire
go build -o sw-image ./cmd/image

# Portrait de personnage existant
./sw-image character "Aldric"

# Portrait de PNJ généré
./sw-image npc --race=elf --gender=f --occupation=skilled

# Scène d'aventure
./sw-image scene "Trois aventuriers explorent une crypte en pleine nuit par temps couvert"

# Monstre
./sw-image monster dragon --style=epic

Commandes Disponibles

Portrait de Personnage

bash
./sw-image character <nom> [options]

# Exemples:
./sw-image character "Aldric" --style=realistic
./sw-image character "Lyra" --style=painted

Portrait de PNJ

bash
./sw-image npc [options]

# Options:
#   --race=<race>          Race (human, dwarf, elf, halfling)
#   --gender=<m|f>         Sexe
#   --occupation=<type>    Type d'occupation
#   --style=<style>        Style artistique

# Exemples:
./sw-image npc --race=dwarf --gender=m --occupation=authority
./sw-image npc --race=elf --occupation=religious --style=dark_fantasy

Scène d'Aventure

bash
./sw-image scene "<description>" [options]

# Options:
#   --type=<type>          Type de scène prédéfini
#   --style=<style>        Style artistique
#   --size=<size>          Taille d'image

# Types de scène:
#   tavern, dungeon, forest, castle, village,
#   cave, battle, treasure, camp, ruins

# Exemples:
./sw-image scene "Combat contre des gobelins" --type=battle --style=epic
./sw-image scene "Repos au coin du feu" --type=camp --style=painted
./sw-image scene "Une taverne animée" --type=tavern

Illustration de Monstre

bash
./sw-image monster <type> [options]

# Monstres disponibles:
#   goblin, orc, skeleton, zombie, dragon,
#   troll, ogre, wolf, spider, rat, bat, slime,
#   ghost, vampire, werewolf, minotaur, basilisk,
#   chimera, hydra, lich

# Exemples:
./sw-image monster dragon --style=epic
./sw-image monster lich --style=dark_fantasy
./sw-image monster goblin --style=illustrated

Objet Magique

bash
./sw-image item <type> [description] [options]

# Types d'objets:
#   weapon, armor, potion, scroll, ring,
#   amulet, staff, wand, book, artifact

# Exemples:
./sw-image item weapon "épée flamboyante ancienne"
./sw-image item potion "potion de guérison rouge brillante"
./sw-image item artifact "orbe de pouvoir mystérieux"

Lieu / Carte

bash
./sw-image location <type> [nom] [options]

# Types de lieux:
#   city, town, village, castle, dungeon,
#   forest, mountain, swamp, desert, coast,
#   island, underworld

# Exemples:
./sw-image location dungeon "Les Mines Abandonnées"
./sw-image location castle "Forteresse de Shadowkeep"
./sw-image location forest "La Forêt des Murmures"

Prompt Personnalisé

bash
./sw-image custom "<prompt>" [options]

# Pour des besoins spécifiques non couverts par les autres commandes

# Exemples:
./sw-image custom "Un groupe d'aventuriers traversant un pont de corde au-dessus d'un gouffre"
./sw-image custom "Une bibliothèque magique avec des livres volants"

Styles Artistiques

StyleDescriptionUtilisation recommandée
realisticPhotoréaliste, détailléPortraits immersifs
paintedStyle peinture à l'huileScènes, lieux
illustratedIllustration digitalePNJ, personnages (défaut)
dark_fantasySombre, atmosphériqueMonstres, donjons
epicCinématique, héroïqueBatailles, dragons

Tailles d'Image

TailleDimensionsUtilisation
square_hd1024x1024Objets, portraits
square512x512Vignettes
portrait_4_3768x1024Portraits verticaux
portrait_16_9576x1024Portraits étroits
landscape_4_31024x768Scènes
landscape_16_91024x576Scènes panoramiques (défaut)

Options Communes

bash
--style=<style>     # Style artistique (realistic, painted, illustrated, dark_fantasy, epic)
--size=<size>       # Taille d'image (square_hd, landscape_16_9, etc.)
--format=<format>   # Format de sortie (png, jpeg, webp)

Exemples d'Utilisation en Session

Illustrer un personnage créé

bash
# Créer le personnage
./sw-character create "Thorin" --race=dwarf --class=fighter

# Générer son portrait
./sw-image character "Thorin" --style=epic

Illustrer un PNJ rencontré

bash
# Générer le PNJ
./sw-npc generate --race=human --occupation=authority --attitude=negative

# Générer son portrait dans la foulée
./sw-image npc --race=human --occupation=authority --style=dark_fantasy

Illustrer une scène de combat

bash
# Logger le combat
./adventure log "Mon Aventure" combat "Embuscade de gobelins dans la forêt"

# Générer l'illustration
./sw-image scene "Embuscade de gobelins dans une forêt sombre" --type=battle --style=epic

Sortie

Les images sont sauvegardées dans data/images/ avec un nom unique basé sur le timestamp.

data/images/
├── image_1703001234567890123.png
├── image_1703001234567890124.png
└── ...

Coûts

FLUX.1 [schnell] via fal.ai coûte environ $0.003 par image, soit ~300 images par dollar.

Dépannage

Erreur "FAL_KEY environment variable not set"

bash
export FAL_KEY="votre_clé_fal_ai"

Erreur API 401

Vérifiez que votre clé API est valide sur fal.ai/dashboard/keys.

Images de mauvaise qualité

  • Utilisez un style approprié au sujet
  • Ajoutez plus de détails dans les descriptions
  • Essayez --style=realistic pour plus de détails

Lister les Options

bash
./sw-image list              # Toutes les options
./sw-image list styles       # Styles disponibles
./sw-image list scenes       # Types de scènes
./sw-image list monsters     # Types de monstres
./sw-image list items        # Types d'objets
./sw-image list locations    # Types de lieux
./sw-image list sizes        # Tailles d'image

Utilisé par

Ce skill est utilisé par les agents suivants :

AgentUsage
dungeon-masterIllustrations de scènes et personnages

Type : Skill autonome, peut être invoqué directement via /image-generator

Dépendances : Peut être utilisé avec character-generator et npc-generator pour illustrer les personnages créés

Frequently asked questions

What does the Image Generator AI skill do?

Génère des images heroic fantasy pour BFRPG via fal.ai FLUX.1. Portraits de personnages/PNJ, scènes d'aventure, monstres, objets magiques et lieux. Utilise des prompts optimisés pour le style fantasy médiéval.

Why use Image Generator on TypingMind?

Because you install it once and use it with any model. Image Generator is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Image Generator in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/nicmarti/skills-weaver/tree/master/core_agents/skills/image-generator. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Image Generator?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Image Generator?

As many as you like. As long as a model supports skills, you can use Image Generator with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Image Generator AI skill free?

It is published on GitHub by nicmarti. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇