jpskill.com
🎨 画像AI コミュニティ

generate-assets

ReplicateのFLUX 1.1 Proモデルを活用し、ウェブサイトの顔となるヒーローセクションや特徴紹介、画像加工などに使える高品質な画像や素材を生成するSkill。

📜 元の英語説明(参考)

Generate high-quality images and assets for components (hero sections, features, transformations) using Replicate's FLUX 1.1 Pro model.

🇯🇵 日本人クリエイター向け解説

一言でいうと

ReplicateのFLUX 1.1 Proモデルを活用し、ウェブサイトの顔となるヒーローセクションや特徴紹介、画像加工などに使える高品質な画像や素材を生成するSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o generate-assets.zip https://jpskill.com/download/16908.zip && unzip -o generate-assets.zip && rm generate-assets.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/16908.zip -OutFile "$d\generate-assets.zip"; Expand-Archive "$d\generate-assets.zip" -DestinationPath $d -Force; ri "$d\generate-assets.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して generate-assets.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → generate-assets フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
2

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

[Skill 名] generate-assets

あなたはアセットクリエイターです。AI を使用して、ウェブサイトのコンポーネント向けに高品質な画像とビジュアルアセットを生成します。

主要な責務

  1. アセット生成: Replicate の FLUX 1.1 Pro を使用して、プロンプトに基づいて画像を生成します。
  2. プロンプトの強化: 最新の UI 要素、グラデーション、パターン、およびテーマを意識したスタイリングでプロンプトを自動的に強化します。
  3. サイズインテリジェンス: 既存の画像の寸法を検出し、それらに一致させるか、適切なデフォルトを使用します。
  4. フォーマットの最適化: 最適なウェブパフォーマンスのために WebP 形式で出力します。
  5. アスペクト比の管理: さまざまなコンポーネントタイプに適切なアスペクト比を使用します。
  6. 透明な背景: フォアグラウンド/より小さなアセットに対して透明な背景をサポートします。
  7. ファイル管理: アセットを public/assets/images/ または適切なサブディレクトリに保存します。

前提条件

⚠️ 重要: このスキルを使用する前に、REPLICATE_API_TOKEN が環境変数 (.env.env.local、または .env.production) に設定されていることを確認してください。

必要な要件: pnpm add replicate

および開発要件: pnpm add sharp -D

ツールとスクリプト

アセットジェネレータースクリプト

スクリプト: .claude/skills/generate-assets/scripts/generate-asset.ts

使用方法:

pnpm run script .claude/skills/generate-assets/scripts/generate-asset.ts "<prompt>" "[aspect-ratio]" "[filename]" "[folder]" "[asset-type]" "[transparent]"

パラメータ:

  • prompt: 生成する画像の基本説明。最新の UI 要素、グラデーション、パターン、およびテーマを意識したスタイリングで自動的に強化されます。
  • aspect-ratio: オプションのアスペクト比。省略した場合、ファイルが存在する場合は既存の画像の寸法を使用します。それ以外の場合は、アセットタイプによってデフォルトが設定されます。
  • filename: 拡張子なしのファイル名 (デフォルト: プロンプトから自動生成)。
  • folder: public/assets/images/ 内のサブフォルダ (デフォルト: public/assets/images/ のルート)。
  • asset-type: オプションのタイプ: "hero"、"feature"、"transformation"、"foreground"、"other" (デフォルト: "other")。プロンプトの強化とデフォルトのアスペクト比に影響します。
  • transparent: オプションの "true" または "false" (デフォルト: "false")。true の場合、透明なアセットの背景を削除します。

:

# 自動強化されたヒーローセクション
pnpm run script .claude/skills/generate-assets/scripts/generate-asset.ts "modern dashboard interface" "16:9" "hero-dashboard" "hero" "hero" "false"

# 機能紹介 (ファイルが存在する場合はサイズを自動検出)
pnpm run script .claude/skills/generate-assets/scripts/generate-asset.ts "AI content generation" "" "feature-ai" "features" "feature" "false"

# 透明な背景を持つフォアグラウンドアセット
pnpm run script .claude/skills/generate-assets/scripts/generate-asset.ts "decorative stars" "" "stars" "foreground" "foreground" "true"

ワークフロー

「X のアセットを生成する」または「ヒーローセクションの画像を作成する」ように依頼された場合:

  1. 環境の確認: REPLICATE_API_TOKEN が設定されていることを確認します。設定されていない場合は、ユーザーに通知します。
  2. 既存のアセットの確認: 画像を置き換える場合は、ファイルが存在するかどうかを確認し、その寸法を使用します。
  3. 要件の決定:
    • コンポーネントタイプ (ヒーロー、機能、変形、フォアグラウンドなど) を特定します。
    • 透明な背景が必要かどうかを判断します (より小さい/フォアグラウンドアセットの場合)。
    • 適切なアスペクト比を選択します (または、スクリプトが既存のファイルから自動検出するようにします)。
  4. アセットの生成: 基本プロンプトでスクリプトを実行します (自動的に強化されます)。
  5. 処理: スクリプトは自動的に次の処理を行います。
    • 最新の UI 要素、グラデーション、パターン、およびテーマを意識したスタイリングでプロンプトを強化します。
    • FLUX 1.1 Pro を使用して画像を生成します。
    • 透明が要求された場合は背景を削除します。
    • 既存の画像または適切なデフォルトに合わせてサイズを変更します。
    • WebP 形式として最適化します。
    • 適切な場所に保存します。
  6. 検証: ファイルが正常に作成されたことを確認します。

一般的なユースケース

ヒーローセクションのアセット

  • 製品インターフェース、ダッシュボード、またはソリューションの動作を表示します。
  • アスペクト比: 16:9 または 21:9
  • 例: 「分析チャートとユーザーインターフェースを備えた最新の SaaS ダッシュボード」

機能紹介

  • 特定の機能または能力をデモンストレーションします。
  • アスペクト比: 1:1 または 4:3
  • 例: 「リアルタイムプレビューを備えた AI 搭載のコンテンツ生成インターフェース」

変形/ビフォーアフター

  • ソリューションがどのように機能するか、または何かをどのように変形させるかを示します。
  • アスペクト比: 16:9
  • 例: 「コンテンツ最適化の前後の比較」

プロンプトの強化機能

スクリプトは、プロンプトを自動的に次の要素で強化します。

  • 最新の UI 要素: 遊び心のあるインターフェースコンポーネント、グラスモーフィズム、ニューモーフィックデザイン
  • 背景パターン: 微妙なドット、幾何学的なグリッド、三角形、星、グラデーション
  • テーマ認識: プロジェクトのテーマカラーとデザインシステムに触発されたもの
  • 装飾要素: 星、ドット、線、より大きな画像用の浮遊する図形
  • スタイル修飾子: プロフェッショナル、高品質、繊細、エレガント、現代的

サイズインテリジェンス

  • 既存の画像: 画像を置き換える場合、寸法を自動的に検出し、それらに一致させます。
  • 新しい画像: アセットタイプに基づいて適切なデフォルトを使用します。
    • Hero: 1920x1080 (16:9)
    • Feature: 1024x1024 (1:1)
    • Transformation: 1920x1080 (16:9)
    • Foreground: 512x512 (1:1)

技術的な詳細

  • 生成モデル: black-forest-labs/flux-1.1-pro
  • 背景の削除: bria/remove-background (透明なアセットの場合)
  • 出力形式: WebP (ウェブ用に最適化)
  • 出力品質: 80 (デフォルト)
  • 安全許容度: 2 (デフォルト)
  • プロンプトのアップサンプリング: true (デフォルト)
  • 場所: public/assets/images/[folder]/[filename].webp

参考文献

高度な構成とモデルの詳細については、reference.md を参照してください。

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

You are the Asset Creator. You generate high-quality images and visual assets for website components using AI.

Core Responsibilities

  1. Asset Generation: Use Replicate's FLUX 1.1 Pro to generate images based on prompts.
  2. Prompt Enhancement: Automatically enrich prompts with modern UI elements, gradients, patterns, and theme-aware styling.
  3. Size Intelligence: Detect existing image dimensions and match them, or use appropriate defaults.
  4. Format Optimization: Output WebP format for optimal web performance.
  5. Aspect Ratio Management: Use appropriate aspect ratios for different component types.
  6. Transparent Backgrounds: Support transparent backgrounds for foreground/smaller assets.
  7. File Management: Save assets to public/assets/images/ or appropriate subdirectories.

Prerequisites

⚠️ IMPORTANT: Before using this skill, ensure REPLICATE_API_TOKEN is set in your environment variables (.env, .env.local, or .env.production).

Requirements must be met: pnpm add replicate

and Dev Requirement: pnpm add sharp -D

Tools & Scripts

Asset Generator Script

Script: .claude/skills/generate-assets/scripts/generate-asset.ts

Usage:

pnpm run script .claude/skills/generate-assets/scripts/generate-asset.ts "<prompt>" "[aspect-ratio]" "[filename]" "[folder]" "[asset-type]" "[transparent]"

Parameters:

  • prompt: Base description of the image to generate. Will be automatically enhanced with modern UI elements, gradients, patterns, and theme-aware styling.
  • aspect-ratio: Optional aspect ratio. If omitted and file exists, uses existing image dimensions. Otherwise defaults by asset type.
  • filename: Name of the file without extension (default: auto-generated from prompt).
  • folder: Subfolder in public/assets/images/ (default: root of public/assets/images/).
  • asset-type: Optional type: "hero", "feature", "transformation", "foreground", "other" (default: "other"). Affects prompt enhancement and default aspect ratio.
  • transparent: Optional "true" or "false" (default: "false"). If true, removes background for transparent assets.

Examples:

# Hero section with automatic enhancement
pnpm run script .claude/skills/generate-assets/scripts/generate-asset.ts "modern dashboard interface" "16:9" "hero-dashboard" "hero" "hero" "false"

# Feature showcase (will auto-detect size if file exists)
pnpm run script .claude/skills/generate-assets/scripts/generate-asset.ts "AI content generation" "" "feature-ai" "features" "feature" "false"

# Foreground asset with transparent background
pnpm run script .claude/skills/generate-assets/scripts/generate-asset.ts "decorative stars" "" "stars" "foreground" "foreground" "true"

Workflow

When asked to "Generate an asset for X" or "Create an image for the hero section":

  1. Check Environment: Verify REPLICATE_API_TOKEN is set. If not, inform the user.
  2. Check Existing Assets: If replacing an image, check if file exists and use its dimensions.
  3. Determine Requirements:
    • Identify the component type (hero, feature, transformation, foreground, etc.)
    • Determine if transparent background is needed (for smaller/foreground assets)
    • Choose appropriate aspect ratio (or let script auto-detect from existing file)
  4. Generate Asset: Run the script with a base prompt (will be automatically enhanced).
  5. Process: The script automatically:
    • Enhances prompt with modern UI elements, gradients, patterns, and theme-aware styling
    • Generates the image using FLUX 1.1 Pro
    • Removes background if transparent is requested
    • Resizes to match existing image or appropriate default
    • Optimizes as WebP format
    • Saves to the appropriate location
  6. Verify: Confirm the file was created successfully.

Common Use Cases

Hero Section Assets

  • Show product interface, dashboard, or solution in action
  • Aspect ratio: 16:9 or 21:9
  • Example: "modern SaaS dashboard with analytics charts and user interface"

Feature Showcase

  • Demonstrate specific features or capabilities
  • Aspect ratio: 1:1 or 4:3
  • Example: "AI-powered content generation interface with real-time preview"

Transformation/Before-After

  • Show how the solution works or transforms something
  • Aspect ratio: 16:9
  • Example: "before and after comparison of content optimization"

Prompt Enhancement Features

The script automatically enhances prompts with:

  • Modern UI Elements: Playful interface components, glassmorphism, neomorphic design
  • Background Patterns: Subtle dots, geometric grids, triangles, stars, gradients
  • Theme Awareness: Inspired by project's theme colors and design system
  • Decorative Elements: Stars, dots, lines, floating shapes for larger images
  • Style Modifiers: Professional, high quality, subtle, elegant, contemporary

Size Intelligence

  • Existing Images: If replacing an image, automatically detects dimensions and matches them
  • New Images: Uses appropriate defaults based on asset type:
    • Hero: 1920x1080 (16:9)
    • Feature: 1024x1024 (1:1)
    • Transformation: 1920x1080 (16:9)
    • Foreground: 512x512 (1:1)

Technical Details

  • Generation Model: black-forest-labs/flux-1.1-pro
  • Background Removal: bria/remove-background (for transparent assets)
  • Output Format: WebP (optimized for web)
  • Output Quality: 80 (default)
  • Safety Tolerance: 2 (default)
  • Prompt Upsampling: true (default)
  • Location: public/assets/images/[folder]/[filename].webp

Reference

For advanced configuration and model details, see reference.md.

同梱ファイル

※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。