Claude + Shopify API (custom prompt pipeline)
The most powerful DIY path for generating llms.txt for a 1,000-product Shopify store with Claude is to write a script that hits the Shopify Admin REST or GraphQL API, pulls products, collections, pages, and blog posts in paginated batches, then passes the structured JSON to Claude with a prompt that instructs it to produce valid llms.txt markdown. The file format follows Jeremy Howard’s open standard: a title, a one-line summary, then short linked sections for collections, flagship products, and policies.
The main challenge at 1,000+ SKUs is file size. Listing every product verbatim creates a file that is too large for most AI models to process efficiently. The solution is to use Claude to generate collection-level summaries with links to individual product pages, rather than inlining all product data. Use the Shopify API’s products.json?limit=250 endpoint in four paginated calls to pull your full catalog, then ask Claude to group by collection and write a 40-word summary per group. The resulting file typically comes in under 200 KB even for a 1,400-SKU store.


























