lw-img-operations-integration

lw-img-operations-integration is a skill for Claude Code, Codex from Lonsdale201/wp-agent-skills. It costs 122 tokens per session (3,536 once invoked), scanned A, original, MIT.

A guide for operating and integrating LW Image 2.0 in WordPress, a system for publishing websites. It covers image conversion, uploads, backups, bulk jobs, cropping, command-line use, and integration interfaces.

In plain words
What is it for?
Use it to diagnose or extend WebP and AVIF conversion, upload processing, restore operations, WordPress commands, and related PHP or REST integrations.
Why use it?
It helps change image-processing settings or code without losing original files, image metadata, API credits, or links in existing content.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to diagnose or extend WebP and AVIF conversion, upload processing, restore operations, WordPress commands, and related PHP or REST integrations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lonsdale201/wp-agent-skills/lw-img-operations-integration
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Lonsdale201/wp-agent-skills --skill lw-img-operations-integration
Clone the repo
git clone --depth 1 https://github.com/Lonsdale201/wp-agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for lw-img-operations-integration

README.md
[![agentmods](https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/lw-img-operations-integration/github.svg)](https://agentmods.dev/skills/lonsdale201/wp-agent-skills/lw-img-operations-integration)
Your own site
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/lw-img-operations-integration"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/lw-img-operations-integration/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for lw-img-operations-integration

Your own site · 80×15
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/lw-img-operations-integration"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/lw-img-operations-integration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,536 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00122 $0.03536
Opus 5.5 $0.00049 $0.01414
Sonnet 5.5 $0.00024 $0.00707
Haiku 4.5 $0.00012 $0.00354

Measured 28d ago against content hash 58984337bae0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lw-img-operations-integration scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 28d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

lw-plugins/lw-img-operations-integration/SKILL.md · 297 lines

How it starts

The opening of the file, as written. The whole thing — 297 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LW Image 2.0: operations and integration

Use LW Image's admin screen, WP-CLI commands, and public hooks. Preserve originals, API credits, attachment metadata, and content URLs when changing an existing library.

Binding requirements and current surface

Read the installed plugin header before applying this reference:

Contract Version 2.0.2
WordPress 6.6 or newer
PHP 8.0 or newer
Main option lw_img_options
Admin screen LW Plugins -> Image
WP-CLI namespace wp lw-img
Admin REST namespace lw-img/v1
Backup root wp-content/uploads/lw-img-backups/
External service HelloImg API

The React admin needs WordPress 6.6's react-jsx-runtime registration. On an older WordPress release the settings page can be blank, so do not treat the declared minimum as a cosmetic header value.

Version 2.0.2 does not register WordPress Abilities or LW Site Manager abilities. Automate it through WP-CLI or a purpose-built integration using its public hooks. The lw-img/v1/admin/* routes belong to the cookie-authenticated admin application and all require manage_options.

Start with read-only checks

Run these before changing settings or processing media:

wp plugin list --name=lw-img --fields=name,status,version,update,update_version
wp lw-img status
wp lw-img doctor --format=json
wp lw-img leftovers --format=json

status reports the current queue, outcomes, savings, and backup size. doctor checks database engines, PHP, cURL, the image editor, output-format support, writable directories, disk space, cron loopback, old-image redirects, and API reachability. It exits non-zero when a critical check fails, so capture both output and exit status.

Version 2.0.2 has one machine-output edge case: when no competitor leftovers are found, wp lw-img leftovers --format=json prints a human Success: No leftovers found... line and exits zero instead of returning []. Accept either form in 2.0.2 automation, and remove the workaround after the command is fixed upstream.

Read the full file on GitHub · 297 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 28d ago First seen · 297 lines · 122 tokens per session scan A 58984337bae0

Subscribe to this mod's changes

lw-img-operations-integration is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (24 stars, last pushed 4d ago), licensed MIT. It adds 122 tokens to every session and 3,536 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-27.

Related

Other skills, from other repositories

wp-readme-optimizer

Reviews and rewrites WordPress.org plugin readme.txt files for maximum quality. Use this skill whenever a user pastes, uploads, or references a WordPress plugin readme.txt, or asks to improve, audit, review, score, or optimize a plugin's WordPress.org listing page. Also trigger when the user says things like "make my…

jdevalk/skills · 122 tokens

astro-seo

Audits and improves SEO for Astro sites. Use when the user asks to audit, set up, or improve SEO on an Astro site, or mentions head metadata, structured data, JSON-LD, sitemaps, IndexNow, Open Graph images, schema endpoints, NLWeb, hreflang, or search engine indexing in an Astro project. Produces drop-in code routed…

jdevalk/skills · 105 tokens

static-seo

Audits and improves SEO for static HTML sites. Use when the user asks to audit, set up, or improve SEO on a static site (Hugo, Jekyll, 11ty, Gatsby, Next.js static export, hand-rolled HTML, or wp-static-clone output), or mentions head metadata, structured data, JSON-LD, sitemaps, IndexNow, Open Graph images, schema…

jdevalk/skills · 143 tokens

readability-check

Runs a readability audit on a blog post draft or other multi-paragraph prose, calibrated for readers who read English as a second language. Checks ten categories — overall structure and topic order, paragraph structure, opening paragraph strength, tiered sentence length, passive voice, difficult words, filler and…

jdevalk/skills · 179 tokens

wp-static-clone

Clones a live WordPress (or other CMS-driven) site into a static HTML site deployable on any static host (Cloudflare Pages, Netlify, Vercel, S3+CloudFront, plain Apache/nginx). Use when the user wants to "scrape", "freeze", "archive", "static-ify", or "move to [host]" a WordPress site, or asks to turn a sitemap into…

jdevalk/skills · 137 tokens

content-seo

Audits a blog post draft or page copy for content-level SEO: search intent fit, focus keyphrase placement, E-E-A-T signals (experience, expertise, authoritativeness, trustworthiness), helpfulness and originality, content freshness, and internal linking. Use when the user asks "will this rank", "SEO check this post"…

jdevalk/skills · 155 tokens