Générer une image via DALL-E

VérifiéPrudence

Génère des images en automatisant ChatGPT avec des profils de navigateur sauvegardés. Supporte la génération parallèle sur plusieurs comptes.

Spar Skills Guide Bot
ContenuIntermédiaire
2025/07/2026
Claude Code
#image-generation#browser-automation#chatgpt#parallel-generation#account-management

Recommandé pour

Notre avis

Génère des images via DALL-E en automatisant des sessions ChatGPT avec des profils de navigateur sauvegardés, permettant une exécution parallèle sur plusieurs comptes.

Points forts

  • Génération en parallèle sur plusieurs comptes simultanément
  • Gestion automatisée des profils de navigateur
  • Rapport clair de succès/échec par compte
  • Configuration interactive pour ajouter de nouveaux comptes

Limites

  • Nécessite une connexion manuelle pour chaque nouveau compte
  • Dépend de Chrome et de sessions persistantes
  • Pas de solution de repli si l'interface ChatGPT change
Quand l'utiliser

Quand vous devez générer plusieurs images en parallèle avec différents comptes ChatGPT.

Quand l'éviter

Si vous avez besoin d'une seule image rapidement ou si les comptes ne sont pas encore configurés.

Analyse de sécurité

Prudence
Score qualité85/100

The skill relies on Node.js dependencies and custom TypeScript scripts to manage browser profiles and interact with ChatGPT. While the scripts appear to be part of the skill, the use of npm install and browser automation introduces moderate risk if the packages or code are malicious or incorrectly vetted. No destructive or exfiltration commands are explicitly present, but the potential for hidden malicious payloads exists.

Points d'attention
  • Uses Bash to run npm install and npx ts-node, executing scripts that automate browser sessions. If dependencies or local scripts are compromised, they could exfiltrate data or perform unintended actions.

Exemples

Generate with all accounts
/generate-image --all "a cat wearing a top hat, digital art"
Generate with specific accounts
/generate-image --profile=acc1,acc2 "sunset over mountains"
Generate with auto-detect profiles
/generate-image "a futuristic city skyline"

name: generate-image description: Generate an image via ChatGPT DALL-E using a saved browser session. Usage: /generate-image [--profile=acc1] <prompt> allowed-tools: Bash(npx:) Bash(npm:)

generate-image skill

Generates images by automating ChatGPT with saved browser profiles. Supports parallel generation across multiple accounts.

Step 1 — Install dependencies (once)

Check whether node_modules exists in the skill directory. If not, run:

cd ".claude/skills/generate-image" && npm install

Step 2 — Discover available profiles

Always run this first before anything else:

cd ".claude/skills/generate-image" && npx ts-node scripts/list-profiles.ts

Parse the output:

  • PROFILES_READY:acc1,acc2 → accounts that are set up and ready to generate
  • PROFILES_AVAILABLE:acc3,acc4,acc5 → empty slots available to add new accounts
  • NO_PROFILES_FOUND → no accounts set up yet

Step 3 — Decide the flow

Case A — No profiles set up (NO_PROFILES_FOUND)

Tell the user no accounts are logged in yet. Open Chrome immediately for acc1 without asking:

cd ".claude/skills/generate-image" && npx ts-node scripts/setup-profile.ts acc1

After setup completes, if the user had a prompt, generate with acc1 automatically. Then ask:

Account added! What would you like to do next?

  1. Generate the image now with acc1
  2. Add another account first
  3. Cancel

Case B — Profiles exist AND user provided a prompt (no add-account request)

Skip asking. Generate immediately using all ready profiles (or the ones specified with --profile). Go to Step 4.

Case C — Profiles exist AND user provided a prompt AND user wants to add more accounts

Do not ask for confirmation. Immediately:

  1. Show which profiles are ready: e.g. Ready: acc1, acc2 — Next slot: acc3
  2. Open Chrome right away for the next available slot:
cd ".claude/skills/generate-image" && npx ts-node scripts/setup-profile.ts <next_available_slot>
  1. After Chrome setup completes, ask:

New account added! What would you like to do with your prompt?

  1. Generate with all accounts (including the new one)
  2. Generate using selected existing accounts
  3. Add yet another account

Case D — Profiles exist AND no prompt was given

Show the user a compact summary, for example:

Ready accounts: acc1, acc2
Free slots: acc3, acc4, acc5

What would you like to do?

  1. Generate an image with all ready accounts
  2. Generate with specific accounts
  3. Add another account

Wait for the user's choice before proceeding.

Step 4 — Generate images (parallel)

Run with a comma-separated list of profiles. The script launches all profiles simultaneously:

cd ".claude/skills/generate-image" && npx ts-node scripts/generate-image.ts --profile=acc1,acc2 "your prompt here"

To use all ready accounts automatically, use --all:

cd ".claude/skills/generate-image" && npx ts-node scripts/generate-image.ts --all "your prompt here"

After the script exits:

  • Report / status per account
  • Show each image path (printed as Image saved → <path>)
  • If an account shows "not set up" error, suggest running setup for that profile

Step 5 — Add a new account

Run setup for the next available slot (e.g., acc3):

cd ".claude/skills/generate-image" && npx ts-node scripts/setup-profile.ts acc3

Chrome opens interactively. The user logs in manually, then presses Enter. The session is saved to profiles/acc3/.

After setup completes, offer to generate an image immediately with the newly added account.

Parsing the /generate-image invocation

/generate-image [--profile=acc1|acc1,acc2] [--all] <image prompt text>
  • --profile=acc1,acc2 — use specific profiles (comma-separated)
  • --all — use every ready profile
  • No flag → auto-detect all ready profiles
  • Everything else is the image prompt

Environment (optional)

If Chrome is not in its default location, create .env from .env.example and set CHROME_PATH.

Skills similaires