cloudflare-images:check

cloudflare-images:check is a command for Claude Code from secondsky/claude-skills. It costs 37 tokens per session (2,847 once invoked), scanned A, original, MIT.

A health-check command for Cloudflare Images that tests the service connection and reviews its configuration and current usage.

In plain words
What is it for?
Use it to verify environment variables and API access, list variants, view storage usage, inspect recent images, and check CDN caching.
Why use it?
It brings authentication, connectivity, transformation settings, variants, quotas, recent images, and CDN caching into one check.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

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

Good fit Use it to verify environment variables and API access, list variants, view storage usage, inspect recent images, and check CDN caching.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/secondsky/claude-skills/check-images
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.

Clone the repo
git clone --depth 1 https://github.com/secondsky/claude-skills

Made for: Claude Code.

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:check

README.md
[![agentmods](https://agentmods.dev/badge/commands/secondsky/claude-skills/check-images.svg)](https://agentmods.dev/commands/secondsky/claude-skills/check-images)
Your own site
<a href="https://agentmods.dev/commands/secondsky/claude-skills/check-images"><img src="https://agentmods.dev/badge/commands/secondsky/claude-skills/check-images.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,847 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00037 $0.02847
Opus 5 $0.00018 $0.01424
Sonnet 5 $0.00007 $0.00569
Haiku 4.5 $0.00004 $0.00285

Measured 5d ago against content hash 9bc986365140, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

cloudflare-images:check 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 5d 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.

Makes network callslowCapability

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

API_RESPONSE=$(curl -s -o /dev/null -w "%{http_code}" \
plugins/cloudflare-images/commands/check-images.md · 393 lines

How it starts

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

Check Cloudflare Images Configuration

Run a complete health check of your Cloudflare Images setup including API connectivity, authentication, transformations, variants, and quota.

What This Command Does

When you run /check-images, Claude will:

  1. Verify environment variables are set correctly
  2. Test API connectivity
  3. Validate authentication (account ID + API token)
  4. Check if transformations are enabled for zone
  5. List all configured variants
  6. Show storage quota and usage
  7. Display recent images
  8. Verify CDN caching status

Usage

/check-images

No arguments required - the command will automatically discover configuration from environment variables.

Implementation

Run the following checks in sequence:

1. Verify Environment Variables

echo "📋 Checking environment variables..."

if [ -z "$CF_ACCOUNT_ID" ]; then
  echo "❌ CF_ACCOUNT_ID not set"
  echo "   Set in .env: CF_ACCOUNT_ID=your_account_id"
  exit 1
else
  echo "✅ CF_ACCOUNT_ID: ${CF_ACCOUNT_ID:0:8}..."
fi

if [ -z "$CF_API_TOKEN" ]; then
  echo "❌ CF_API_TOKEN not set"
  echo "   Set in .env: CF_API_TOKEN=your_api_token"
  exit 1
else
  echo "✅ CF_API_TOKEN: ${CF_API_TOKEN:0:10}..."
fi

if [ -z "$CF_ACCOUNT_HASH" ]; then
  echo "⚠️  CF_ACCOUNT_HASH not set (optional for delivery URLs)"
else
  echo "✅ CF_ACCOUNT_HASH: ${CF_ACCOUNT_HASH}"
fi

echo ""

2. Test API Connectivity

echo "🔌 Testing API connectivity..."

API_RESPONSE=$(curl -s -o /dev/null -w "%{http_code}" \
  "https://api.cloudflare.com/client/v4/accounts/${CF_ACCOUNT_ID}/images/v1" \
  -H "Authorization: Bearer ${CF_API_TOKEN}")

if [ "$API_RESPONSE" = "200" ]; then
  echo "✅ API connectivity: OK"
else
  echo "❌ API connectivity failed (HTTP $API_RESPONSE)"
  echo "   Verify CF_ACCOUNT_ID and CF_API_TOKEN are correct"
  exit 1
fi

echo ""

3. Validate Authentication

echo "🔑 Validating authentication..."

AUTH_RESULT=$(curl -s \
  "https://api.cloudflare.com/client/v4/accounts/${CF_ACCOUNT_ID}/images/v1" \
  -H "Authorization: Bearer ${CF_API_TOKEN}")

AUTH_SUCCESS=$(echo "$AUTH_RESULT" | jq -r '.success')

if [ "$AUTH_SUCCESS" = "true" ]; then
  echo "✅ Authentication: Valid"

  # Check permissions
  IMAGES_COUNT=$(echo "$AUTH_RESULT" | jq -r '.result.images | length')
  echo "   Images accessible: $IMAGES_COUNT"
else
  echo "❌ Authentication failed"
  ERRORS=$(echo "$AUTH_RESULT" | jq -r '.errors[].message')
  echo "   Error: $ERRORS"
  exit 1
fi

echo ""

Read the full file on GitHub · 393 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. 5d ago First seen · 393 lines · 37 tokens per session scan A 9bc986365140

Subscribe to this mod's changes

cloudflare-images:check is a command published in the GitHub repository secondsky/claude-skills (215 stars, last pushed yesterday), licensed MIT. It adds 37 tokens to every session and 2,847 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.