cloudflare-images:validate-config

cloudflare-images:validate-config is a command for coding agents from secondsky/claude-skills. It costs 43 tokens per session (3,823 once invoked), scanned A, original, MIT.

A configuration-checking command for Cloudflare Images used with Cloudflare Workers. Cloudflare Workers are server-side programs that run on Cloudflare’s network.

In plain words
What is it for?
Use it to validate wrangler.jsonc, environment files, API permissions, account settings, Worker access to Images, and transformation endpoints.
Why use it?
It catches invalid configuration, missing environment variables, permission problems, and broken image bindings before they cause runtime failures.

Command

Part of the cloudflare-images plugin — 1 skill, 3 commands, 3 agents shipped together

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.

agentmods
npx agentmods add commands/secondsky/claude-skills/validate-config
Clone the repo
git clone --depth 1 https://github.com/secondsky/claude-skills

Or install cloudflare-images, the plugin that ships this one along with the rest of its 1 skill, 3 commands, 3 agents.

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 cloudflare-images:validate-config

README.md
[![agentmods](https://agentmods.dev/badge/commands/secondsky/claude-skills/validate-config.svg)](https://agentmods.dev/commands/secondsky/claude-skills/validate-config)
Your own site
<a href="https://agentmods.dev/commands/secondsky/claude-skills/validate-config"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/validate-config.svg" alt="Measured on agentmods" height="20"></a>
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,823 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00043 $0.03823
Opus 5 $0.00022 $0.01912
Sonnet 5 $0.00009 $0.00765
Haiku 4.5 $0.00004 $0.00382

Measured yesterday against content hash bcda12317537, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

cloudflare-images:validate-config scanned grade A with 1 finding 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 yesterday.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

IMAGES_TEST=$(curl -s \
plugins/cloudflare-images/commands/validate-config.md · 525 lines

How it starts

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

Validate Cloudflare Images Configuration

Comprehensive validation of wrangler.jsonc, environment variables, and Cloudflare Images bindings for Workers integration.

What This Command Does

When you run /validate-config, Claude will:

  1. Check if wrangler.jsonc exists and has valid JSON
  2. Verify images binding configuration
  3. Validate environment variables (.env, .dev.vars)
  4. Test API token permissions
  5. Check account ID matches binding
  6. Verify Worker can access IMAGES binding
  7. Validate transformation endpoints
  8. Check for common configuration issues

Usage

/validate-config

Run from your Cloudflare Worker project root (where wrangler.jsonc is located).

Implementation

Run the following validation checks:

1. Check wrangler.jsonc Exists

echo "📁 Checking project structure..."

if [ ! -f "wrangler.jsonc" ]; then
  echo "❌ wrangler.jsonc not found"
  echo "   Run: wrangler init"
  exit 1
else
  echo "✅ wrangler.jsonc found"
fi

echo ""

2. Validate wrangler.jsonc Syntax

echo "📝 Validating wrangler.jsonc syntax..."

# Check if valid JSON (with comments allowed for JSONC)
if jq empty wrangler.jsonc 2>/dev/null; then
  echo "✅ Valid JSON syntax"
else
  # Try stripping comments and validating
  if grep -v '^\s*//' wrangler.jsonc | jq empty 2>/dev/null; then
    echo "✅ Valid JSONC syntax (with comments)"
  else
    echo "❌ Invalid JSON syntax in wrangler.jsonc"
    echo "   Check for trailing commas, missing quotes, etc."
    exit 1
  fi
fi

echo ""

3. Verify Images Binding Configuration

echo "🔗 Checking images binding..."

BINDING_EXISTS=$(jq -r 'has("images")' wrangler.jsonc 2>/dev/null)

if [ "$BINDING_EXISTS" = "true" ]; then
  echo "✅ images binding configured"

  # Validate binding structure
  BINDING_COUNT=$(jq -r '.images | length' wrangler.jsonc)
  echo "   Bindings configured: $BINDING_COUNT"

  # Check each binding
  for i in $(seq 0 $(($BINDING_COUNT - 1))); do
    BINDING_NAME=$(jq -r ".images[$i].binding" wrangler.jsonc)
    BINDING_ACCOUNT=$(jq -r ".images[$i].account_id" wrangler.jsonc)

    if [ "$BINDING_NAME" != "null" ]; then
      echo "   • Binding: $BINDING_NAME"
    else
      echo "   ⚠️  Binding $i missing 'binding' field (default: IMAGES)"
    fi

    if [ "$BINDING_ACCOUNT" != "null" ]; then
      echo "     Account: ${BINDING_ACCOUNT:0:8}..."
    else
      echo "     ⚠️  No account_id specified (will use account from wrangler auth)"
    fi
  done
else
  echo "❌ No images binding configured"
  echo ""
  echo "   Add to wrangler.jsonc:"
  echo '   {
     "images": [
       {
         "binding": "IMAGES",
         "account_id": "your_account_id"
       }
     ]
   }'
  exit 1
fi

echo ""

Read the full file on GitHub · 525 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. yesterday First seen · 525 lines · 43 tokens per session scan A bcda12317537

Subscribe to this mod's changes

cloudflare-images:validate-config is a command published in the GitHub repository secondsky/claude-skills (214 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 3,823 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.