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
✓ PassedNo 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.
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
- 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.
- 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
- OPERATION:
fileUpdate(Shopify Files API, for product images) orproductImageUpdate— mutation (only ifdry_run: false)
- 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.
- Author: commerce-agentic
- Source: commerce-agentic/agentic-commerce-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.