AGENTS.md@website · diff
git:20261106.2049a0d to git:20261106.9154e3c
1 added, 1 removed. Audit A to A.
What this update changes in the checks
No check changed: every fixed check gives the same answer before and after this update.
A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.
# geeknative website
The landing page and documentation for geeknative: a static Next.js site (`output: "export"`) published to GitHub Pages at https://geekyants.github.io/geeknative/. Its design follows colony.geekyants.com: white paper, black type, one red (#CA0515), Archivo set wide, JetBrains Mono labels, and the ant colony drawing every figure.
## Layout
| Path | What it is |
|---|---|
| src/app/page.tsx, src/components/landing/ | The landing page, one component per section |
| src/lib/colony/ | The ant colony: engine and shaders adapted from colony.geekyants.com, plus geeknative's formations (mark, devices, flow, parity, markwhite, trail) |
| src/components/colony/ | The canvas, stages, and overlays that align labels with formations |
| src/components/showcase/ | Device frames (frames.tsx), the starter-app showcase, and one showcase per app |
| src/components/diagrams/ | The architecture diagram (also embedded in the docs with `{{architecture}}`) |
| content/docs/ | Docs pages in Markdown. Frontmatter: title, description. Callouts: `:::note`, `:::tip`, `:::caution` |
| src/app/docs/, src/components/docs/, src/lib/docs/ | The docs routes, layout, search (Pagefind) and Markdown pipeline |
| content/use-cases/, content/compare/, content/blog/ | Marketing pages in Markdown, one file per page. Frontmatter: title, description, label (short name for breadcrumbs), order, and date (YYYY-MM-DD, required for blog posts) |
| src/app/use-cases/, src/app/compare/, src/app/blog/, src/components/articles/, src/lib/articles.ts | Their routes, shared by all three collections, with the docs Markdown pipeline and prose styles |
| src/content/showcase.ts, src/app/showcase/ | The Showcase: an index at /showcase/ and one page per app. A new app is a catalog entry. The website build does not import demo-apps |
| src/lib/seo.ts, src/app/sitemap.ts | Absolute URLs, the share image and JSON-LD helpers, and /geeknative/sitemap.xml |
| scripts/ | preview (serves out/ under /geeknative), check-links, deploy (pushes out/ to gh-pages) |
## Rules
- Internal links: in components use next/link (`href="/docs/..."`, the base path is added); plain `<a>` and image paths need the `/geeknative` prefix. In Markdown, link to `/docs/<section>/<page>/`.
- Document only what exists in the repo today (template/ and packages/geeknative/). Planned work belongs on the Roadmap page.
- Writing style: short, plain sentences. No em dashes or en dashes. Code samples must match real file names, commands and generated symbols.
- SEO: canonical and og:url must be absolute (`absoluteUrl()` in src/lib/seo.ts), because Next doesn't add the base path to them. A page that sets its own `openGraph` also sets `images: [ogImage]`. New routes go in src/app/sitemap.ts.
- Use cases and comparisons describe what geeknative does today and stay fair to the alternatives: every comparison says when the other tool is the better choice.
- - Screenshots are real captures; regenerate them rather than editing them. The starter app lives in public/screens/. Each Showcase app lives in public/screens/<slug>/{ios,web,android}-<screen>.webp, named by the screen ids in src/content/showcase.ts. A screen with no file yet says so on the page.
+ - Screenshots are real captures; regenerate them rather than editing them. The starter app lives in public/screens/. Each Showcase app lives in public/screens/<slug>/{ios,web,android}-<screen>-{light,dark}.webp, named by the screen ids in src/content/showcase.ts. A screen with no file yet says so on the page.
- The colony: every `ColonyStage` gets its own ants, and they stay in that stage. Unlike colony.geekyants.com, ants never travel between sections as the page scrolls, because that was distracting. Every stage starts formed on load, the hero included (no entrance from the nav logo), and rebuilds after a resize place ants directly instead of walking them over.
- Scrolling is the browser's own. Don't add smooth-scroll or scroll-jacking libraries such as Lenis. The colony's canvas sits in the page and scrolls with it (it covers the viewport plus a margin and moves along each frame), so the ants stay locked to their figures under native scrolling.
## Commands
- `npm run dev`: dev server at http://localhost:3000/geeknative/ (search needs a build).
- `npm run build`: static export to out/, then the Pagefind index.
- `npm run check-links`: fails on broken internal links in out/.
- `npm run preview`: serves out/ at http://localhost:4410/geeknative/.
- `npm run deploy`: builds and pushes out/ to the gh-pages branch (CI does this on push to main).
<!-- BEGIN:nextjs-agent-rules -->
# This is NOT the Next.js you know
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` (resolved from this file's directory; in monorepos the `next` package may not be visible from the repo root) before writing any code. Heed deprecation notices.
This block is written and re-added by `next dev` — verify at `node_modules/next/dist/server/lib/generate-agent-files.js`. Removing it from a diff only re-creates the uncommitted change; committing it with your work keeps the tree clean.
<!-- END:nextjs-agent-rules -->