---
name: gomnee-ready-site
description: Build a new website, or adapt an existing Next.js site, so Gomnee can host it and publish Articles to it. Use when someone is building their first website to run on Gomnee, or asks to make a site ready for Gomnee hosting, Article publishing, previews, measurement or Search Console. Covers the repository and build profile, pages and metadata, the Article template, the publishing API with private previews on Postgres, structured data, sitemap, measurement hooks and the handover to the owner.
metadata:
  publisher: Gomnee
  homepage: https://gomnee.com/build
  version: "2.0.0"
  updated: "2026-11-25"
---

# Build a site Gomnee can run

Gomnee runs a site's organic growth: its agents research, plan, write and
publish Articles, and the owner's rules decide what runs on its own and what
waits for them. This skill builds the site those Articles land on, so it is
ready from the first commit.

You work in the owner's repository. Gomnee never edits it: it reads the
committed source, builds previews of exact commits, and publishes approved
Articles to the site's own publishing API, which it checks itself. Gomnee
checks everything here again during onboarding, so finishing this skill does
not make a site qualified.

Starting from nothing? Create the repository from the template, which
already follows this skill, publishing API and previews included:
https://github.com/GOMNEE/starter-personal-site ("Use this template"). Then
make it the owner's: their facts in `lib/site.ts`, their pages, a Postgres
database and a publishing key, and `pnpm test && pnpm build && pnpm check`.

The same starter, file by file, for an agent that builds without GitHub:
https://gomnee.com/.well-known/agent-skills/gomnee-ready-site/references/example.md

## Ask only for what is missing

- The site's name, what it is for, and who it is for.
- The author as Articles should show it: a person or the organization, never
  a model.
- Language and main market.
- The public domain, and whether it uses `www`.
- A Postgres database for the Articles, or permission to create one (Neon is
  free to start; on Vercel it comes from the Marketplace).
- The first pages' real content, or permission to leave marked placeholders.

Never invent facts, clients, numbers, quotes or reviews. Leave a visible
placeholder and list it in the handover.

## 1. A repository Gomnee can build

- Keep the source in a GitHub repository the owner controls. The owner
  connects it through Gomnee's GitHub App, selecting only this repository.
  The app reads; it never writes.
- Use Next.js with the App Router, as a static export or full stack.
- Make the build explicit: the app at the repository root, `packageManager`
  and `engines.node` in `package.json`, a committed lockfile, and `build` and
  `start` scripts. A clean checkout must build with those commands.
- Name every environment variable the site reads in `.env.example` at the
  repository root, one per line with an empty value and a mark on the same
  line: `# required:core` when the site can't run without it,
  `# optional:core` otherwise, for example `DATABASE_URL= # required:core`.
  Gomnee reads that file when the owner connects the repository and asks for
  each required value before it deploys; an unmarked line counts as
  required. Values live in `.env.local` on the owner's computer and in
  Gomnee's protected settings, never in Git.
- Need one service, reached over the internet through a named variable:
  Postgres at `DATABASE_URL`, where the Articles Gomnee publishes are stored.
  Nothing else from the host: no host database, background worker, scheduled
  job, private network or persistent disk.

## 2. Pages

Build at least the home page, an about page, the Article index (`/blog`),
the Article page (`/blog/[slug]`), a privacy page and a real 404.

On every page:

- One canonical address: https, one host, no query string, and a
  self-referencing `<link rel="canonical">`. Redirect the other host (with or
  without `www`) in one step.
- `<html lang>` matching the content.
- A unique `<title>` close to the visible heading, and a meta description.
  Gomnee's house targets are a title of at most 60 characters and a
  description of 140 to 160; search engines may rewrite both.
- Exactly one `h1`, subheadings in order, and text readable on a 390 px wide
  phone with no sideways scrolling.
- Alt text that describes each informative image, empty alt on decorative
  ones, and images sized for their display (`next/image`).

The home page also carries `WebSite` and `Organization` (or `Person`)
structured data, each with a stable `@id`.

## 3. The Article template

Gomnee's Articles land here, so its shape matters most.

- Route: `/blog/{slug}` or `/articles/{slug}`. Slugs are lowercase and
  hyphenated, and never change after publication. Nothing rewrites them.
- Show the title as the page's only `h1`, the description, the author, the
  publication date, the last-updated date when it differs, and the body.
- Render Markdown safely wherever an Article has it (body, sections, steps,
  answers, table cells): headings, lists, links, tables, code and images. Drop
  raw HTML rather than inject it; for example, `react-markdown` with
  `skipHtml` and `rehype-sanitize`, and without `rehype-raw`.
- Build the metadata from the Article: title, description, canonical URL,
  and Open Graph `article` with its published and modified times.
- Emit exactly one `BlogPosting` (or `Article`), built from the same facts
  the page shows: `headline`, `description`, `datePublished`,
  `dateModified`, `author`, `publisher` (the site's own person or
  organization, not Gomnee), `mainEntityOfPage`, `inLanguage`, and `image`
  when there is a real one. Leave out what you don't know.
- List every Article in `sitemap.xml` with its last real change as
  `lastModified`, name the sitemap in `robots.txt`, and link every Article
  from the index page.
- Render Gomnee's Article document as Gomnee sends it, in any of its three
  formats: Markdown; `gomnee_article_v1`, with sections, authors, a reviewer,
  images, citations and a search title and description; and
  `gomnee_article_v2`, which adds a listing-card cover, questions, a
  procedure, a comparison, how it was checked, categories and tags. Schema:
  https://gomnee.com/schemas/gomnee-article-v2.json
- Lay the page out the way Gomnee's destinations do, each part only when the
  Article has it: breadcrumbs (with `BreadcrumbList`), category and reading
  time, title, summary, byline with reviewer and dates, the "how it was
  checked" note, contents, the opening, the hero image, each section with its
  steps, comparison table, questions, evidence, images and sources, then one
  numbered source list (with `FAQPage` for questions) and an author box. The
  cover appears only on listing cards.
- Store Articles exactly as Gomnee sent them, in Postgres, and read them
  through one module, such as `lib/articles.ts` with `listArticles()` and
  `getArticle(slug)`. Don't add hand-written Article files or a second
  source.

## 4. The publishing destination

Gomnee delivers one exact approved revision of an Article to an API the site
owns, then reads it back: Gomnee's Custom Website protocol, served from the
site's canonical origin and authenticated with a key the site issues
(`Authorization: Bearer`, from `GOMNEE_PUBLISHING_TOKEN`, at least 32 random
characters).

| Method | Path                                                           | What it does                                         |
| ------ | -------------------------------------------------------------- | ---------------------------------------------------- |
| GET    | `/api/integrations/gomnee/publishing/v1`                       | Declares the site's capabilities, after a database check |
| PUT    | `/api/integrations/gomnee/publishing/v1/articles/{articleKey}` | Publishes or updates one Article, live               |
| GET    | `/api/integrations/gomnee/publishing/v1/articles/{articleKey}` | Reads it back exactly as stored                      |
| POST   | `/api/integrations/gomnee/publishing/v1/previews`              | Keeps a private, expiring preview for Gomnee's review screen |

- Declare `gomnee_publishing_capabilities_v2`: adapter
  `gomnee.custom_website_articles`, the site's exact origin, the formats
  `markdown`, `gomnee_article_v1` and `gomnee_article_v2`, a template ID and
  version, one complete-Article destination field, and
  `coverPlacement: "listing_card"`.
- Accept only the exact request schemas, refuse unknown fields, and check the
  canonical content digest. Each `commandId` is idempotent: an exact retry
  returns its first receipt; a reused command with other content, a stale
  `expectedRemoteVersion` or a changed slug returns 409 and changes nothing.
- Previews keep a snapshot for at most 15 minutes behind a random token (store
  only its hash). They render with the real article page at a same-origin URL
  that is `noindex`, `no-store`, `no-referrer`, never listed or measured, and
  framed only by `https://app.gomnee.com` (CSP `frame-ancestors`). A preview
  for an older template version returns 409.
- Store Articles and previews in Postgres at `DATABASE_URL`, and apply the
  migrations at build.

Don't write it from scratch. The template implements all of this, with tests,
in `lib/publishing/`, `app/api/integrations/gomnee/publishing/v1/`,
`app/article-preview/` and `db/`: copy those as they are. Change the article
page freely, and bump the template version when the page changes what it
shows. Gomnee still qualifies the destination with its own probe and
read-back before it publishes.

## 5. Measurement, when Gomnee hosts the site

- Give each call to action the owner wants counted a short, stable
  `data-gomnee-cta` value, such as `contact` or `newsletter`.
- Keep a privacy page the owner can add Gomnee's entry to: page views and
  link clicks, counted without cookies, persistent identifiers or cross-site
  tracking.
- Don't add catch-all routes, or middleware that intercepts paths the site
  doesn't own. Scope middleware matchers to your routes, so paths Gomnee adds
  at deployment keep working.
- Name the private paths Gomnee's measurement must skip in the root layout:
  `<meta name="gomnee-measurement-exclude" content="/article-preview,/api">`.

## 6. Ready for AI agents, if the owner wants it

- `/llms.txt` listing the main pages, and Markdown versions of pages for
  requests with `Accept: text/markdown`.
- AI crawler rules and Content Signals in `robots.txt`. These are the owner's
  decisions: ask, don't assume.
- Once the site is live, check it with Gomnee's free AI site audit:
  https://app.gomnee.com/audit

## Check before you hand over

Build from a clean checkout, start the site, then check:

- Every page returns 200, and an unknown path returns 404.
- The `<head>` of the home page and of one Article: title, description,
  canonical and `lang`.
- The Article's JSON-LD parses and holds exactly one `BlogPosting` whose
  headline, author and dates match the page.
- `sitemap.xml` lists every Article, and `robots.txt` names the sitemap.
- Raw HTML in an Article body is not rendered.
- `pnpm test` passes against a test database (a name ending in `_test`).
- With the key, the capabilities endpoint answers 200 and declares the site's
  exact origin; without it, 401.
- A publish, read-back and preview round trip works, and the preview URL is
  `noindex` and framed only by Gomnee. The template's `pnpm check` does this
  against a test database.
- No sideways scrolling at 390 px, and a visible focus outline when tabbing.

## Hand over to the owner

Report what is done and what is left, against Gomnee's readiness list:

| Area        | Requirement                                                                                         | Gomnee readiness |
| ----------- | --------------------------------------------------------------------------------------------------- | ---------------- |
| Hosting     | GitHub repository, explicit build, named environment variables, nothing from the host, clean build | H1 to H6         |
| Publishing  | Article route and template, safe Markdown, metadata, one BlogPosting, stable slugs, sitemap, index | P1 to P6         |
| Publishing  | The Custom Website destination with private previews, on Postgres                                   | P7, qualified by Gomnee at onboarding |
| Measurement | `data-gomnee-cta` on actions, a privacy page, no catch-all middleware                               | M1 to M3         |

Then list what only the owner can do:

1. Connect the repository in Gomnee through its GitHub App, selecting only
   this repository. Gomnee is invite-only, and hosting is switched on per
   workspace.
2. Create the Postgres database and the publishing key. Gomnee reads
   `.env.example` and asks for `DATABASE_URL` and `GOMNEE_PUBLISHING_TOKEN`
   before it deploys: enter them there.
3. Review a preview of an exact commit, and publish it when ready.
4. Point the domain's DNS at Gomnee at cutover, with the records Gomnee
   gives.
5. Verify the site in Google Search Console, give Gomnee read-only access,
   and submit the sitemap.
6. In Gomnee, open Integrations → CMS and paste the same publishing key.
   Gomnee shows Connected once its own check of the site passes.

Never call the site qualified, approved or ready to publish. Gomnee decides
that with its own checks, and nothing goes live without the owner's approval
or the rules they set.
