AgentStack
SKILL verified MIT Self-run

Agentic Commerce Generate Alt Text

skill-commerce-agentic-agentic-commerce-skills-agentic-commerce-generate-alt-text · by commerce-agentic

Generate descriptive alt text for Shopify product images using a vision-language model (Claude with vision, GPT-4V, or Gemini). Covers 100% of images in one pass.

No reviews yet
0 installs
7 views
0.0% view→install

Install

$ agentstack add skill-commerce-agentic-agentic-commerce-skills-agentic-commerce-generate-alt-text

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Agentic Commerce Generate Alt Text? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Purpose

Most Shopify catalogs have | no | — | Specific products to process. If omitted, processes all products with image alt-coverage = 5) | | model | string | no | claude-sonnet-4-6 | Vision-language model to use |

Workflow Steps

  1. Identify target images: query products via [agentic-commerce-audit-images-alt](../../catalog-audit/agentic-commerce-audit-images-alt/SKILL.md). Collect image URLs + product context.
  1. For each image needing alt text:
  • Fetch the image bytes
  • Send to the chosen vision model with prompt:

``` Generate a concise alt text (under {max_length} chars) for this product image. Product title: {title} Vendor: {vendor} Product type: {productType}

Rules:

  • Describe what is visually present in the image
  • Include color, material, perspective (front/side/lifestyle) when visible
  • Do not invent specs that are not visible
  • No marketing language; factual description only

```

  • Capture the response
  1. OPERATION: fileUpdate (Shopify Files API, for product images) or productImageUpdate — mutation (only if dry_run: false)
  1. Output report: per-product, before/after alt-text coverage %, total images updated.

Safety

> ⚠️ Mutations gated behind dry_run: true by default. Vision models can describe images incorrectly (especially for niche or low-quality images). Recommend dry_run first, review a 10% sample, then run with dry_run: false on the full batch. > > Token costs: ~$0.001-0.003 per image with Claude Sonnet vision. A 500-product catalog (avg 5 images) costs ~$5-15 to fully process. Use a cheaper model (Gemini Flash or GPT-4o-mini) for cost reduction at a small quality trade-off.

GraphQL Operations

# productImageUpdate:mutation — validated against api_version 2025-01
mutation ImageAltUpdate($id: ID!, $altText: String!) {
  productImageUpdate(image: { id: $id, altText: $altText }) {
    image {
      id
      altText
    }
    userErrors {
      field
      message
    }
  }
}

Reference

The "what counts as good alt text" rules come from the images dimension of METHODOLOGY.md. Re-run the alt-text audit after fixes to measure score uplift.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.