Having an AI assistant build your portfolio site: six-part prompts
From the under-construction page through launch, hand the AI assistant one section at a time, and check each result yourself before moving on.
How to use: give the AI assistant one section at a time. After each section, check the result yourself and run the verification commands it gives before moving on to the next. Replace the blanks marked <> with your own information.
The URLs in the prompts point to the Markdown version of each chapter in this series (append index.md to each page URL). The AI assistant reads this version more cleanly than the web page.
General reminders (they apply to every section; you can put them in your project’s CLAUDE.md or AGENTS.md):
- Do not ask me to paste passwords or tokens into the conversation. For steps that need sign-in, tell me where to click.
- You cannot change the dashboard settings (DNSSEC, HTTPS, redirects, Access, AI crawlers), so list the steps for me to carry out.
- After finishing each item, give me a curl.exe command to test it. Do not just say it is done.
- For facts that expire (package versions, free-tier quotas, dashboard menu locations), check the official documentation before answering.
- I write the self-introduction and work descriptions myself. You may suggest edits, but do not introduce me in the third person in my place.Step 1: Put up the under-construction page
Read section 2 of https://wizerdbache.com/notes/cloudflare-domain-setup/index.md.
My domain is <your domain>, and I have already bought it on Cloudflare.
Create a static page that says only “under construction” on one line, add noindex, and deploy it as a Worker named <worker name> using Wrangler (npx wrangler@latest).
Bind it to the main address and www., and turn off workers_dev and preview_urls. The live site will later use the same Worker name.
Add WRANGLER_SEND_METRICS=false to the Wrangler commands. After deploying, give me a command to verify it.After deploying, do it yourself by following After buying the domain (sections 1, 3, and 4): in the dashboard, turn on DNSSEC, Always Use HTTPS, and the www redirect.
Step 2: Site skeleton and three template pages
Read these three articles:
https://wizerdbache.com/notes/portfolio-site-overview/index.md
https://wizerdbache.com/notes/portfolio-site-structure/index.md
https://wizerdbache.com/notes/personal-site-geo/index.md
Build a static portfolio site with Astro (no adapter, pure static output), and deploy it to the same Worker.
1. Check the current versions of Astro and related packages, and record them in the README.
2. Follow the site map and URL rules in section 1 of the “Site structure” article, and set trailingSlash to always.
3. Split the site into three layers: content (src/content, Markdown), data preparation, and the look (layouts, components, styles). Content files must not contain style names.
4. Write fonts, colors, and spacing as variables. Host the fonts on the site itself (Fontsource), and do not link to Google Fonts.
5. Build only three template pages first: home, one work page, and about page, using placeholder content. Give me a local preview URL; after I review it, apply the design to the whole site.Step 3: Work data and work pages
Following section 3 of the “Site structure” article, create a content collection for the work with these fields: title, one-sentence summary, my role, date, status, category, main image, link, featured (yes/no), and public (yes/no).
Add a check for each field (the build fails if the main image or alt text is missing), and include one deliberately wrong sample to prove that the check works.
Generate both the featured items on the home page and the work index from this data. The work index filters by category, the filter is stored in the URL, and it shows everything when JavaScript has not loaded.
Convert images to WebP/AVIF during the build, and strip EXIF data.Then write the content for 3–6 pieces of work yourself, following the five-part format in section 3 of Site structure and work pages.
Step 4: Search, GEO, and automatic output
Following sections 2 and 3 of https://wizerdbache.com/notes/personal-site-geo/index.md, generate these automatically at build time:
canonical, sitemap, robots.txt, Open Graph share cards, JSON-LD (Person, CreativeWork, BlogPosting), RSS, llms.txt, and a per-page index.md counterpart (with rel="alternate").
Generate everything from the content data. Do not write any of it by hand.Step 5: Privacy and security
Read these two articles:
https://wizerdbache.com/notes/personal-site-privacy/index.md
https://wizerdbache.com/notes/personal-site-security/index.md
1. Using the template in section 3 of the “Privacy” article, create /privacy/. Its content must match what the site actually does (list only the third-party services it really uses), and add a footer link to it on every page. Write the content and show it to me; only go live after I confirm it.
2. Add public/_headers, following section 4 of the “Site security” article.
3. Write the pre-launch check (npm run verify): a secrets and personal data scan, a banned-word scan (read the list from a local file that is not in git), internal links, a canonical URL and share image on every page, no leftover noindex, and a per-page load size limit.
Give each check a deliberately wrong sample to prove it catches the problem. If any check fails, do not deploy.Step 6: Launch
Check each item in sections A and B of https://wizerdbache.com/notes/site-prelaunch-checklist/index.md, and give me the results as a table. Once everything passes, remove noindex and deploy.
After deploying, test the home page, one work page, /privacy/, /sitemap-index.xml, /llms.txt, /robots.txt, a page that does not exist (it should return 404), and http:// and www. (they should return 301).Optional
- Traffic analytics: following Traffic analytics (section 2), choose one option. If you choose Cloudflare Web Analytics, turn it on in the dashboard, give the code snippet to the AI to add to the layout, and update the privacy page.
- Private pages: following Site security (section 6), lock the page first, verify it, and only then add the content.
- Web-based admin: following the token principles in Site security (section 7).
After launch
After the site goes live, run a real security pass on it and keep a record of the result, as documented in the sequel series “After Your Site Goes Live: Hands-On Security”.
← Previous:Pre-launch checklist for a personal site
Email subscriptions will open later. For now, you can follow new articles and work with RSS.