Mastering Claude Cowork

Free prompt · Claude Code · Vercel MCP

Register a domain and connect it to your Vercel site

One paste into Claude Code buys the domain through Vercel, points it at your site and tests that it works. It shows you the price first and spends nothing until you say yes.

Paste into Claude Code

Open Claude Code in the project whose site should get the domain. Copy this, fill in the first line (or leave it blank and Claude will ask), and paste it in:

Register a domain for this project and connect it to its Vercel site. Domain I want: ____________ (if blank, ask me; suggest nothing I didn't ask for) Ground rules - Spending money and sharing my personal details are my decisions. Never buy, and never fill in a registrant detail, without my explicit yes in this chat. Never take contact details from anywhere but my own message here (not git config, not files, not my accounts). - Change nothing in Vercel beyond adding this domain to this one project. No other domain, project setting, DNS record or deployment. - If a step fails or something looks different from what this prompt expects, stop and tell me. 1. Find the scope - Read .vercel/project.json for the project ID and team ID (orgId). If it is missing, list my Vercel teams and projects and ask me which one. Tell me the project's current production URL. - Read how the site is built and where its output lives (build script, output directory, vercel.json or vercel.ts), so you can compare the live site against it later. - If more than one Vercel connector is available and one returns "project not found" for an ID you read from .vercel/project.json, try the other before concluding anything; say which one you used. 2. Quote - Check the domain is available, then get a quote with the Vercel MCP get_purchase_quote (product: domain, the team ID, the domain, auto-renew on unless I said otherwise). - Show me every disclosure from the quote in a table: price and currency, term in years, that tax and fees may be added on top, auto-renew (on/off, renews at the then-current price, where to turn it off), that registrations are non-refundable, which payment method (the team's default card; give me the billing page link since the quote does not name the card), and the full-terms link. - Ask me to approve that exact price and auto-renew setting. Wait for my yes. 3. Registrant (WHOIS) contact - Call get_contact_info_schema for the domain and tell me if the TLD needs extra fields. - Ask me for: first and last name, optional organization, email, phone in +E.164 format, street address, city, state or region, postal code, two-letter country code. - Before I answer, tell me which of these may become public. Generic .com/.net rule: registrars usually redact a private person's name, street, phone and email, and may still show state and country, and the organization if given. Say plainly if you don't know this registrar's policy, and promise to check the public record after purchase. - Tell me the email must be real and monitored: the registrar sends a verification email, and an unverified contact can get the domain suspended. 4. Buy - Quotes expire after 5 minutes, so get a fresh quote right before buying. Buy only if the price and auto-renew setting are exactly what I approved; if anything changed, show me and ask again. - Call buy_domain with confirm: true, the fresh quote's idempotencyKey, expectedPrice and years from that quote, the same auto-renew setting, and the contact exactly as I typed it. - Poll get_domain_order with the orderId until the order says completed (or failed: then stop and show me the error). Never call buy_domain a second time for the same domain without asking me. 5. Connect - Add the apex (example.com) to the project as a production domain. - Add www.example.com with redirect to the apex, status 308. - If either comes back unverified, show me the verification challenge and complete it with verify_project_domain. List the project's domains afterwards to confirm. 6. Test (write predictions first) - Before running any test, write a table of tests and predicted results in the project's test log (create TEST_LOG.md if there is none). Then run each test and fill in the result next to its prediction, including surprises. - Tests, each against https://<domain>: a. DNS: nameservers and the apex and www records resolve to Vercel. b. HTTPS: the certificate verifies and covers the domain; http:// answers 308 to https://; any security headers the project config sets (HSTS etc.) are present. c. Every page and key file is byte-identical to the local build output (build first if needed and say what you built). d. Each response header the project config defines (Content-Security-Policy, Cache-Control, Content-Type...) matches the config for that path. e. https://www.<domain>/<a page> redirects 308 to the same path on the apex. f. https://<DOMAIN IN CAPITALS> serves the same page (QR codes and printed cards often use capitals). g. The old *.vercel.app URL still works, unchanged. h. If the project has an SEO or head-tag check (title and meta description lengths, for example), run it against the live domain and quote what it printed. i. Public registration record: query RDAP (https://rdap.verisign.com/com/v1/domain/<domain> for .com, then the registrar's RDAP link inside it) and tell me exactly which of my details are visible. - Contact verification: get_domain_contact_verification refuses until 30 minutes after purchase. Check it once after that; until then, remind me to watch my inbox for the verification email. 7. Wrap up - List every place in the repo that still points to the old URL, or that already assumed the new domain, but change none of them without asking. - Commit the test log on a new branch (not the default branch); don't push or merge unless I ask. - Report: what was bought and for how much, the order ID, the renewal date, what is public in WHOIS, each test with pass or fail, and anything left for me to do.

How it works

It stops and tells you if a step fails or anything looks different from what it expects.

  1. Find the project

    Reads the project and team IDs from .vercel/project.json, tells you the current production URL, and notes how the site is built.

  2. Quote

    Checks the domain is free, gets a quote, and shows every disclosure in a table: price, term, auto-renew, no refunds, which card. Then waits for your yes.

  3. Your contact details

    Asks for the registrant details the domain needs, and tells you first which of them may become public.

  4. Buy

    Gets a fresh quote and buys only if the price and auto-renew match what you approved. Then waits until the order completes.

  5. Connect

    Adds the domain to the project, and www with a 308 redirect to it. Completes any verification and lists the domains.

  6. Test

    Writes a prediction for each test before running it: DNS, HTTPS, redirects, headers, pages matching your build, the old URL, and what WHOIS shows.

It never does

  • Buy without your explicit yes to that exact price and auto-renew setting
  • Take your contact details from anywhere but your own message: not git config, not files, not your accounts
  • Buy the same domain twice without asking you
  • Change anything else in Vercel: no other domain, project setting, DNS record or deployment
  • Change a file that points to the old URL without asking, or push or merge its test log

Your part

  1. Name the domain you want
  2. Approve the price and the auto-renew setting
  3. Type your registrant details into the chat
  4. Confirm the registrar's verification email: an unverified contact can get the domain suspended

Questions

What does it cost?

The prompt is free. The domain costs what Vercel quotes, plus any tax or fees, and is charged to your Vercel team's default card. Registrations are non-refundable, which is why the prompt shows you the quote and waits for your yes.

Which of my details become public?

It depends on the registrar and the domain ending. The prompt tells you what it expects before you type anything, says plainly when it doesn't know, and after the purchase reads the public record to show you exactly what is visible.

What do I need before I start?

A project already deployed on Vercel, Claude Code, and the Vercel MCP connected with access to the team that owns the project.

Does it work in Cowork?

Not tried. It was written for Claude Code with the Vercel MCP connected.

Has it been tested?

The prompt it was made from was run once, in November 2026, to buy a .com and connect it to a static site on Vercel. This general version has not been run on another project yet.

A prompt does one job. The course teaches you to write your own.

Learn the hat each decision needs (product, design, marketing) and the words to direct AI in it, so you can build and market your product without hiring.