AGENTS.md, and the site kit it uses ships a GUIDE.md and a CONTRACT.md with the full detail. Read those first when working on a site; this page is the overview.
How a site is made
- Astro, React, TypeScript and Tailwind, from SuperIntern’s template. Pages are prebuilt HTML; pages that show CRM tables are drawn when visited.
- Two parts. The site’s own files (pages, sections, layouts, styles, content and
src/site.config.ts) started as a copy of the template and are the site’s to change. The site kit,@superintern/site-kit, is the platform’s code: reading the CRM, forms, chat, consent, the shop, customer sign-in, and the build and check steps. See The site kit. - One git repository per site, reached only through SuperIntern:
https://git.superintern.app/<slug>.git. Get a sign-in with thesite_git_accesstool or a website key. - A new site starts as one commit, Started from the SuperIntern template, holding the template’s files and none of its history. The template itself is readable (never writable) at
https://git.superintern.app/site-starter.git, to see what it has now. Never merge it into a site. A new site shares no history with it, sogit mergerefuses it; on a site made before November 2026 a merge would go through, and either way it brings the template’s sample content back. - Push to
mainto build. Each push is built (npm ci --ignore-scripts, thennpm run build), checked by a safety gate, and stored as a version. A push never publishes. Publishing is a separate step the owner asks for. - A failed or refused build leaves the live site unchanged.
site_read(orsites status) gives the failed step and why.
Commands
The site’s files and the platform’s
AGENTS.md, CLAUDE.md, CONTRACT.md and .claude/ are never published.
The site kit
Every site uses the same kit, at the version written in itspackage.json. It is installed from vendor/site-kit-<version>.tgz.
- Import it, never copy it. Pages and sections import the kit’s parts by name, for example
import { loadRows } from "@superintern/site-kit/tables"orimport AddToCart from "@superintern/site-kit/components/AddToCart.astro". A copy insrc/stops getting the kit’s fixes. - Change a part by wrapping it in a component of the site’s own: pass it options, put your markup around it, style it with the site’s classes. When the kit can’t do something the site needs, build what you can around it and tell the owner what’s missing.
- The site’s own files the kit reads:
src/site.config.ts,src/lib/ui-text.ts(all wording),src/lib/table-needs.ts(what the site’s own lists hold) and the layout, which renders<SuperInternHead {...Astro.props} />in its<head>and<SuperInternBody />at the end of its<body>. - The full guide comes with the kit, at
node_modules/@superintern/site-kit/GUIDE.mdafternpm install(npx site-kit guideprints where), next to itsCONTRACT.md. - Updates arrive by themselves. SuperIntern moves a live site to a newer kit with one commit that changes only
vendor/,package.jsonandpackage-lock.json. It’s built and checked like any push, and goes live only if it passes and the live version hasn’t changed meanwhile; an unpublished draft is carried over on top. A major new version arrives as a draft change for the owner to review and publish. Never update the kit by hand;npx site-kit versionsays which version a site runs.
src/lib/, src/components/ and scripts/, imported as @/lib/…, and its AGENTS.md and CONTRACT.md describe them. SuperIntern moves such a site onto the kit once, with npx site-kit migrate, checking that the site builds the same before and after (the kit’s guide, Moving a site onto the kit, has the steps). Never merge the template into it to get the kit.
site.config.ts
Tracking tags are set by the owner in the dashboard, not in
analytics (that key is for sites hosted elsewhere).
Showing CRM data
- List each table under
crmTables.npm run tablesprints the lines. - A page that shows rows is a data page: it sets
export const prerender = false, reads in its own frontmatter withawait loadRows(Astro, "menu")orloadRow(Astro, "menu", slug), and returns a 404 for a missing item. - Only public tables, columns and items can be read. Handle missing fields and empty lists.
- Never copy CRM rows into source files, and never read the CRM from the visitor’s browser.
Forms, shop and sign-in
Call
site_table_list before building any of these. It says whether payments and sign-in are on, and what visitors may do with each table. Parts for features that are off render nothing; never hide or show them yourself.
Never
- Secrets,
.envfiles, CRM keys or tokens anywhere in the repository. The web chat key is the only key allowed. - Your own cart, checkout, sign-in, or a price typed into a page as the price charged.
- Password or card fields (the safety gate refuses them).
_worker.js,_headers,_routes.json,wrangler.*,functions/orsrc/middleware.ts.- Measurement scripts in pages. Use the owner’s tracking tags, and
data-eventortrack("…")for custom events with no personal data. - Fonts or scripts loaded from other sites; symlinks, executables or archives.
- Invented prices, reviews or numbers.
- Telling the owner the site is live after a push. It’s live after they publish.
Languages
The main language is served at/. Each other language lives in src/pages/<code>/ with matching paths, and its wording in src/lib/ui-text.ts.

