Wordpress Ai Image Optimizerのロゴ

Wordpress Ai Image Optimizer

組織
respira-press
wordpress-ai-image-optimizer

Use when the user says 'optimize my wordpress images with ai', 'compress and optimize all images', 'audit my media library', or 'improve image performance'. Downloads images, compresses, converts to WebP, resizes and renames locally, re-uploads, and updates every content reference.

概要

公開者respira-press
リポジトリagent-skills-wordpress
スキル名wordpress-ai-image-optimizer
スター
50
フォーク
8
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    respira-pressがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Wordpress Ai Image Optimizer」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/respira-press/agent-skills-wordpress/tree/main/skills/wordpress-ai-image-optimizer
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/respira-press/agent-skills-wordpress.git /tmp/agent-skills-wordpress
mkdir -p .claude/skills
cp -r /tmp/agent-skills-wordpress/skills/wordpress-ai-image-optimizer .claude/skills/wordpress-ai-image-optimizer
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでWordpress Ai Image Optimizerを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にWordpress Ai Image Optimizerを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Wordpress Ai Image Optimizerは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

WordPress AI Image Optimizer

Version: 1.2.1 Updated: 2026-06-30 Freshly updated: v1.2.0 replaces per-image respira_update_media loops with a single respira_update_media_batch pass (up to ~50 items at once), snapshots the media library with respira_get_snapshot before the batch so the whole run is one-step reversible, runs the audit through respira_analyze_images, surfaces optional stock replacements via respira_search_stock_images + respira_sideload_image, and closes with a respira_generate_activity_report summary (e.g. "optimized 47 images, saved 1.2GB").

AI-powered image optimization for WordPress sites. Automatically compresses, converts formats, renames files, and updates all references. Processes images locally in AI code editor, creates optimized versions, and preserves originals for safety.

What This Skill Does

Scans:

  • All media library images
  • Images in posts and pages content
  • Featured images
  • Images in page builder elements (Elementor, Divi, Bricks, etc.)
  • WooCommerce product images
  • Images in custom post types

Detects:

  • File sizes (actual KB/MB on disk)
  • Image dimensions (width x height in pixels)
  • Format (JPG, PNG, GIF, WebP, AVIF, SVG)
  • Whether width/height attributes are set in HTML
  • Whether alt text exists (and quality)
  • Whether image is being used (orphaned media)
  • Whether responsive image sizes exist (WordPress srcset)
  • Compression quality (estimated from file size)
  • Lazy loading implementation
  • Non-SEO-friendly filenames (IMG_1234.jpg, screenshot.png, etc.)
  • Oversized originals (5000px uploaded when 2000px is max needed)
  • Missing srcset on content images
  • Builder images that bypass WordPress responsive system

Optimizes via AI Code Editor:

  • Downloads images from WordPress
  • Compresses with optimal quality settings (80-85% for JPG, lossless for PNG)
  • Converts to modern formats (WebP preferred, AVIF when appropriate)
  • Resizes oversized originals to optimal dimensions
  • Renames with SEO-friendly descriptive filenames
  • Generates missing alt text using AI
  • Regenerates WordPress responsive image sizes
  • Uploads optimized versions back to WordPress
  • Creates new media entries (keeps old files safe)
  • Updates all content references in duplicates

Provides:

  • Comprehensive image health score (0-100)
  • Impact-prioritized optimization opportunities
  • Before/after file size comparisons
  • Estimated page speed improvements
  • Plugin/CDN detection and recommendations

Requirements

  • Respira for WordPress plugin installed and connected
  • MCP connection active (desktop or WebMCP)
  • AI code editor with image processing tools (Claude Code, Cursor, etc.)
  • WooCommerce add-on (optional - for product image optimization)
  • Read access to scan images, write access to upload optimized versions

How to Use

Trigger Phrase

"optimize my wordpress images with ai"

Alternative Triggers

  • "run ai image optimization"
  • "compress and optimize all images"
  • "audit my media library"
  • "improve image performance"

What Happens

Phase 1: Comprehensive Image Audit

  1. Scans all images across site:
    • Media library (all uploaded files)
    • Content images (posts, pages, custom post types)
    • Featured images
    • Builder images (Elementor, Divi, Bricks, etc.)
    • WooCommerce product images (if WooCommerce active)
  2. Analyzes each image (use respira_analyze_images to drive the audit; it returns per-image findings in one call):
    • File size and format
    • Actual dimensions vs displayed dimensions
    • Alt text presence and quality
    • Filename SEO-friendliness
    • Usage (which pages/posts use this image)
    • Responsive image sizes (srcset)
    • Lazy loading implementation
  3. Detects optimization plugins/CDN:
    • Smush, ShortPixel, EWWW, Imagify, Optimole
    • Cloudflare, BunnyCDN, other CDNs
  4. Scores opportunities by impact:
    • File size x page traffic = optimization priority
    • Separates quick wins from big wins
  5. Generates comprehensive report

Phase 2: User Approval

Presents report and asks which optimizations to run:

  • Compress oversized images
  • Convert JPG/PNG -> WebP
  • Resize unnecessarily large originals
  • Rename non-SEO filenames
  • Add missing alt text
  • Regenerate responsive image sizes

User can choose:

  • "Optimize everything" (all optimizations)
  • "Compress only" (no format changes)
  • "Top 10 images" (highest impact first)
  • "Homepage images only" (critical pages first)

Phase 3: AI Processing

  1. Snapshot the media library before any writes with respira_get_snapshot so the entire batch is reversible in one step (respira_restore_snapshot). Take this once, before the batch — not per image.
  2. Downloads images from WordPress to local workspace.
  3. Processes images locally:
    • Compression
    • Format conversion
    • Resizing
    • SEO-friendly renaming
    • AI alt text generation
    • Optional: when an image is low quality or simply wrong for the page, find a replacement with respira_search_stock_images and pull it in with respira_sideload_image instead of re-optimizing the original
  4. Uploads optimized versions back to WordPress:
    • Creates NEW media entries (original files untouched)
    • Applies metadata in one pass with respira_update_media_batch rather than one respira_update_media call per image. The batch accepts up to ~50 items, so a typical library is updated in a single call (alt text, title, caption, description). Fall back to single respira_update_media only for one-off corrections.
    • Marks old files as "deprecated - replaced by [new-filename]"
  5. Updates content references in duplicates:
  • Creates duplicates of affected posts/pages
  • Replaces old image URLs with new optimized URLs
  • Updates builder and WooCommerce image references
  1. Regenerates responsive image sizes and srcset support

Phase 4: Review & Publish

  1. Provides before/after comparison:
  • File size savings
  • Format changes
  • Dimension changes
  • Filename improvements
  • Pages affected
  1. User reviews duplicates in WordPress admin
  2. User approves publishing
  3. Old files remain available for safety and rollback
  4. Generate a run summary with respira_generate_activity_report so the work is auditable in one line (e.g. "optimized 47 images, saved 1.2GB, added alt text to 31"). This reads from the change log Respira already recorded for the batch.

Honest Disclaimer

This skill downloads images, processes them with AI, and uploads optimized versions. You review all changes before publishing.

What this skill CANNOT do:

  • Guarantee perfect quality (compression is lossy)
  • Fix already broken/corrupted image files
  • Optimize CSS background images
  • Process images hosted externally outside WordPress uploads
  • Improve composition/art direction (technical optimization only)

What this skill CAN do:

  • Compress images without visible quality loss
  • Convert to WebP for significant size reduction
  • Resize oversized originals to practical dimensions
  • Rename files with SEO-friendly names
  • Generate descriptive alt text
  • Update references automatically in duplicates
  • Preserve originals for safety and rollback

Safety Model

  • Non-destructive: Creates NEW optimized images and keeps old files
  • Duplicate-first: Updates content in duplicates, never live pages
  • User approval required: Review before publishing
  • Rollback ready: Old files preserved and reversible
  • No live site impact until explicit approval

Technical Details

Uses these Respira MCP tools:

Audit:

  • respira_analyze_images (drives the Phase 1 audit; per-image findings in one call)

Media Operations:

  • respira_list_media
  • respira_get_media
  • respira_upload_media
  • respira_update_media_batch (primary metadata writer — up to ~50 items per call)
  • respira_update_media (single-item fallback / one-off corrections)
  • respira_delete_media (optional cleanup)

Stock Replacements (optional):

  • respira_search_stock_images
  • respira_sideload_image

Snapshot & Rollback:

  • respira_get_snapshot (capture before the batch)
  • respira_restore_snapshot (one-step revert)

Reporting:

  • respira_generate_activity_report (run summary: images optimized, space saved, alt text added; plugin 9.0 and later list it as a tool; on older plugins call respira_invoke_ability with ability: "respira/generate-activity-report" and the same arguments under args)

Content Scanning:

  • respira_list_pages
  • respira_list_posts
  • respira_read_page
  • respira_read_post
  • respira_get_builder_info

Content Updates:

  • respira_create_page_duplicate
  • respira_create_post_duplicate
  • respira_update_page
  • respira_update_post

WooCommerce (optional):

  • woocommerce_list_products
  • woocommerce_get_product
  • woocommerce_update_product

Plugin Detection:

  • respira_list_plugins

Related Skills

  • SEO & AEO Amplifier
  • WordPress Site DNA
  • Mobile Experience Report

Built by Respira Team https://respira.press/skills/wordpress-ai-image-optimizer

よくある質問

AIスキル「Wordpress Ai Image Optimizer」では何ができますか?

Use when the user says 'optimize my wordpress images with ai', 'compress and optimize all images', 'audit my media library', or 'improve image performance'. Downloads images, compresses, converts to WebP, resizes and renames locally, re-uploads, and updates every content reference.

TypingMindでWordpress Ai Image Optimizerを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Wordpress Ai Image Optimizerはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにWordpress Ai Image Optimizerをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/respira-press/agent-skills-wordpress/tree/main/skills/wordpress-ai-image-optimizerを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Wordpress Ai Image Optimizerを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Wordpress Ai Image Optimizerで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもWordpress Ai Image Optimizerを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Wordpress Ai Image Optimizer」は無料ですか?

はい。respira-pressがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇