Skillcask
Selling online

Digital Store on Cloudflare + Stripe

A Claude Code skill that sets up a store for digital downloads on your own domain: product pages written in Markdown, Stripe Payment Links for checkout, files in a private Cloudflare R2 bucket, and a download that only works after the Worker has confirmed the payment with Stripe. No store platform, no database, no monthly fee beyond what you already use.

  • Price: $29, one-time
  • Version: 1.0.0, updated 2026-10-29
  • Works with: Claude Code, or any agent with a shell
  • Seller: Stramanu (Emanuele Strazzullo)

What it does

  1. Copies a tested store template into your project: a static site builder, a Cloudflare Worker, a Wrangler config, an example catalog, a terms template and tests.
  2. Builds your pages from catalog.json and one Markdown file per product: home catalog, product pages with a buy box, a thank-you page with the download button, terms, 404.
  3. Makes the store readable by search engines and AI assistants: canonical URLs, Open Graph, Product JSON-LD, sitemap.xml, robots.txt, llms.txt, llms-full.txt, and a .md twin of every page.
  4. Wires Stripe: one Product per item with the file's R2 key in its metadata, a Payment Link that returns the buyer to /thanks/ with the Checkout Session id, and the EU immediate-delivery consent text.
  5. Protects the files: they live in a private R2 bucket. /api/download asks Stripe whether the session is complete and paid, then streams the file named in the product metadata. A new product needs no code change.
  6. Adds cookieless analytics (Microsoft Clarity with consent denied) if you want them, never on the purchase page.
  7. Tests the whole path with a one-use 100% promotion code before you share the link.

A real session

We built our own store with exactly this stack on 2026-10-29: domain on Cloudflare, private R2 bucket, Stripe product and Payment Link, restricted read-only key set by the owner, a $0 checkout with a one-use code, and the download verified (HTTP 200, the right zip). The same Worker and build ship in this skill, generalized for any kind of file, with 13 tests (5 for the build, 8 for the Worker).

What you do yourself

Log in to Cloudflare with Wrangler, own a domain on Cloudflare, have a Stripe account, and create the restricted Stripe key (read-only on Checkout Sessions, Products and Prices) and store it with wrangler secret put. The skill never handles your keys and never changes DNS or account settings for you.

Requirements

  • A Cloudflare account and a domain on Cloudflare (Workers free tier is enough to start)
  • A Stripe account
  • Python 3 and Node.js 18+ (for npx wrangler)
  • Optional: a Stripe MCP server, so Claude creates the products and links for you; a Microsoft Clarity project

What you get

A zip with the Claude Code plugin: the digital-store skill (step-by-step setup, adding and updating products, troubleshooting) and the store template (build.py, src/worker.js, wrangler.jsonc, example catalog and product page, terms template, tests). Single-user license.

Limits

The terms page is a template to adapt to your situation and country; it is not legal advice. Taxes, invoices and consumer rules depend on who you are and where you sell. Stripe and Cloudflare fees and terms apply. Payment Links sell one product per checkout.

Read this page as Markdown