CommunityResearch & Data Analysisgithub.com

skuio/sku-skills

Open-source e-commerce agent skills for the SKU.io API — authored once, generated for Claude, OpenAI, and Gemini.

What is sku-skills?

sku-skills is a Claude Code agent skill that open-source e-commerce agent skills for the SKU.io API — authored once, generated for Claude, OpenAI, and Gemini.

Works withClaude CodeCodex CLI~CursorGemini CLI
npx skills add skuio/sku-skills

Installed? Explore more Research & Data Analysis skills: obra/superpowers, affaan-m/quarkus-verification, affaan-m/uspto-database · View all 6 →

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

Find a Product

Use this skill to turn "the blue widget" or a scanned barcode into a concrete SKU.io product — its id, sku, name, and details — so downstream skills have an unambiguous reference.

Pick the right lookup

You have…CallWhy
An exact SKUGET /api/products/by-sku?sku=WIDGET-BLUE-01Direct, single result
A scanned barcode (UPC/EAN/GTIN)GET /api/products/barcode-lookup?code=0123456789012Resolves the barcode to its product (param is code)
A partial name or SKUGET /api/products/search?query=blue widgetFuzzy, may return several matches
A numeric product idGET /api/products/{id}Full record when you already have the id

Always prefer the most specific lookup you can. Use search only when you don't have an exact SKU or barcode — it can return multiple candidates that you must disambiguate.

Steps

  1. Choose the lookup above based on what you were given.

  2. Send the request with your Bearer token (scope products:read):

    curl -sS "https://$SKU_TENANT.sku.io/api/products/by-sku?sku=WIDGET-BLUE-01" \
      -H "Authorization: Bearer $SKU_PAT" -H "Accept: application/json"
    
  3. Handle the result:

    • Exactly one match → capture its id and sku; you're done.
    • Search returned several → narrow by matching the exact sku, or surface the top candidates (name + sku) to the user and ask which one. Do not silently pick the first.
    • No match → the product may not exist or may be archived. Report that rather than inventing an id. Consider a broader search query before giving up.

Notes

  • search is paginated — see shared/pagination.md. The best matches are on the first page; you rarely need to page for a lookup.
  • Product id is the stable key other skills expect (e.g. product_id on a sales-order line). Prefer passing id downstream over re-resolving by SKU each time.

API operations

MethodPathWhat it does
GET/api/products/searchFuzzy search products by name or SKU fragment.
GET/api/products/by-skuFetch a single product by its exact SKU.
GET/api/products/barcode-lookupResolve a scanned barcode (UPC/EAN/GTIN) to a product.
GET/api/products/{id}Fetch the full product record by its numeric id.

Authentication

Every request authenticates with a SKU.io Personal Access Token sent as a Bearer token:

Authorization: Bearer <YOUR_SKU_PAT>
  • Base URL: https://{tenant}.sku.io (replace {tenant} with your account subdomain)
  • Required scopes: products:read

Mint a token under Settings → Developer → Personal Access Tokens in the SKU.io web app. See shared/authentication.md for the full flow.


Improve this skill

Did this skill fall short—an unclear step, a wrong endpoint, or something it couldn't finish? Don't just work around it: capture what was off and open a pull request so the next agent does better.

  • Repo: https://github.com/skuio/sku-skills
  • Edit the canonical skill under skills/<domain>/<name>/ (not this generated file), then run npm run build and open a PR. External contributors: fork the repo and PR from the fork.
  • The full agent workflow is in AGENTS.md.

Your agent can do this end to end. The library gets better every time someone sends a fix.

Related Skills