Joint session with Vercel: How to build intelligent storefronts (May 15th)

Test Post

  • Knut Melvær

    Principal Developer Marketing Manager

Published

You built a prototype. Maybe it's a product catalog, a landing page, an internal tool. You prompted Claude Code for a few hours and now you have something that looks real. The demo goes well. People are interested.

Then comes the next question: "Can the content team try this out?"

And you realize the problem. The product names are strings in a React component. The descriptions are hardcoded in a TypeScript file. Every piece of content lives in code, which means every content change requires you. You can't hand the prototype to a content writer and say "populate this with real product descriptions." So the prototype sits in a folder, impressive but inert, while everyone waits for "real" development resources.

A content backend changes this. Your content writer logs in, adds real products, and discovers that the categories don't match the taxonomy they use. Your marketing lead puts in actual copy and realizes you need a short description field for product cards. These are the conversations that turn a prototype into a product, and they can't happen when content is locked in code files.

What this guide covers

This guide walks you through adding a content backend to your prototype using Sanity (a content management system) and Claude Code (an AI coding tool). By the end, you'll have an editing interface where your team can add and change content, a frontend that displays it, and a prototype that can evolve based on real feedback from real users.

The whole thing takes about an hour. You don't need to be a developer. You need to know what you're building and be comfortable prompting an AI tool to build it for you.

But this guide isn't a list of prompts to copy-paste. It teaches you a way of working with AI coding tools that's different from casual chat prompting. You'll learn:

  • How to set up an AI coding tool for a specific domain (connecting it to real infrastructure, giving it expert knowledge through skills, and providing project context it reads before every task)
  • How to describe what you need in terms of editorial workflows, not technical specs, and get output that's designed for your team
  • How to go from an empty project to a working, editable prototype that your team can populate, test, and iterate on together

The example is a product catalog on Sanity, but the approach (set up your tools, describe the workflow, let AI handle the implementation) applies to any project and any AI coding tool. This is what takes you from asking ChatGPT to write code snippets to using AI to build real things at work.

Editor note: gated form goes here

We'll use a product catalog as the running example throughout. Swap in whatever fits your project: a marketing site, an event page, a resource library, a help center. The process is about the same.

Before you start: prerequisites for building with Claude Code

New to Claude Code? Start here

Already used it? Skip to the install list below.

Claude Code is Anthropic's AI coding assistant. You tell it what you want in plain English, it does the work, and it shows you what it changed. You approve or redirect. Two ways to use it:

  • Desktop app. Mac and Windows. No terminal required. If the idea of a command line makes you uneasy, start here. Get it at claude.com/code.
  • Terminal (CLI). What this guide assumes from here on, because the Sanity toolkit ships as a CLI plugin. Desktop users can still follow along, the prompts are the same.

Go through Anthropic's Claude Code quickstart (10 to 15 minutes) before continuing. You just need to install it, log in, and see the welcome screen. Never used a terminal? Their terminal guide for new users covers that part. Come back here once you're in.

What you'll install

Four things. If you've used Claude Code or Cursor before, you probably have most of these already.

  • Node.js. Download the LTS version from nodejs.org. Node.js runs JavaScript outside a browser. It powers the tools we'll use throughout this guide.
  • A terminal. On Mac: open Terminal (in Applications > Utilities). On Windows: open PowerShell (search for it in the Start menu). This is where you'll type commands. If you've never used one, it looks like a text-only interface. You type a command, press Enter, it runs.
  • Claude Code (or Cursor). Get Claude Code at claude.ai/code. This guide uses Claude Code, but the prompts work in Cursor and similar AI coding tools too.
  • A text editor. VS Code is a good default. Optional though, Claude Code can create and edit files without one.

Set up Claude Code for Sanity projects

This setup takes about 10 minutes. You'll install the Sanity toolkit, write a project brief, and let Claude Code handle the scaffolding.

Step 1: Install the Sanity agent toolkit

Open Claude Code and run:

/plugin marketplace add sanity-io/agent-toolkit

Then install it:

/plugin install sanity-plugin@sanity-agent-toolkit

[SCREENSHOT 1 — Plugin install confirmation.] Art direction: Claude Code terminal showing the successful plugin install. Capture both slash commands and the confirmation output underneath. Dark terminal theme. Crop tight so viewers see the commands typed and the "plugin installed" message, no extra noise above or below. Width to fit the post's body column.

This gives Claude Code three things: a direct connection to Sanity's infrastructure (so it can create projects, read schemas, and write content), best-practice skills (so the code it generates follows Sanity's conventions), and slash commands for common workflows.

Without these, Claude Code is writing Sanity code from memory. It doesn't know your project and doesn't know Sanity's conventions, so you get schemas that technically work but feel half-finished: no field descriptions, no validation messages, no useful previews. An editor opening that Studio sees a blank form with no guidance.

With the toolkit installed, Claude Code reads your schema and applies Sanity's best practices, so the Studio it builds is one editors can actually use.

Step 2: Write your project brief

Before you create the project, tell Claude Code what you're building. Create a folder for your project, open it in Claude Code, and create a file called CLAUDE.md:

mkdir my-poc && cd my-poc

Write a brief that describes your editors, your content, and your workflow: