Logo Wordpress Ai Image Optimizer

Wordpress Ai Image Optimizer

Tổ chức
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.

Tổng quan

Nhà phát hànhrespira-press
Kho mãagent-skills-wordpress
Tên kỹ năngwordpress-ai-image-optimizer
Sao
50
Bản fork
8
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được respira-press công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Wordpress Ai Image Optimizer trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/respira-press/agent-skills-wordpress/tree/main/skills/wordpress-ai-image-optimizer
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân 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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Wordpress Ai Image Optimizer trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Wordpress Ai Image Optimizer ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Wordpress Ai Image Optimizer với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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

Câu hỏi thường gặp

Kỹ năng AI Wordpress Ai Image Optimizer làm được gì?

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.

Vì sao nên dùng Wordpress Ai Image Optimizer trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Wordpress Ai Image Optimizer là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Wordpress Ai Image Optimizer trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/respira-press/agent-skills-wordpress/tree/main/skills/wordpress-ai-image-optimizer. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Wordpress Ai Image Optimizer?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Wordpress Ai Image Optimizer với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Wordpress Ai Image Optimizer với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Wordpress Ai Image Optimizer có miễn phí không?

Có. Kỹ năng này được respira-press phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇