🔍 SEO & AI Search Guidelines¶
Every public hosted web app should be crawlable, indexable, and citable by both Google / Bing and AI search engines (ChatGPT, Perplexity, Gemini, Claude). For a full 20-point live crawl audit on an existing site, run the installed /vibe-seo skill.
1. Crawlability & Indexing (Must-Have Foundation)¶
Never polish copy on a page crawlers cannot render. Fix these first, in order:
- Server-rendered HTML (
SSR/SSG): Page text,<title>, meta tags, canonical link, and JSON-LD must exist in the initialcurlHTML response — not injected afteruseEffect. In Next.js App Router, keep page and layout files as Server Components and push"use client"down to interactive leaf components. - Dynamic
sitemap.xml(stack-templates/sitemap.ts): Generate from real routes/data; include only canonical, indexable200-status absolutehttps://URLs (never/api/, auth pages, or redirects). Use reallastModifieddates — never stampnew Date()on unchanged pages every build. - Clean
robots.txt(stack-templates/robots.ts): - Never leave a stray
Disallow: /or block/_next/, CSS, or JS. - Disallow only private paths (
/api/,/admin/,/dashboard/, auth routes). - Link
Sitemap: https://<domain>/sitemap.xml. - Explicitly allow AI search crawlers (
GPTBot,OAI-SearchBot,ChatGPT-User,ClaudeBot,PerplexityBot,Google-Extended) so public products get cited in AI answers. - No stray
noindex: Audit layouts,X-Robots-Tagheaders, and env checks so public pages are indexable while login, dashboards, and preview deploys staynoindex. Never bothDisallowinrobots.txtandnoindexthe same URL. - Single-hop canonical redirects:
http,https,www, and non-wwwmust reach the canonical URL in one301/308hop; internal links must point directly to the final URL. - Real HTTP
404(stack-templates/not-found.tsx): Unknown URLs must return actual status404(never a200SPA soft-404) with clear links back to Home and core pages. - Self-referencing absolute canonicals: Set
metadataBaseonce in the root layout, then per-pagealternates: { canonical: "/path" }. Never hardcode the homepage canonical inside the root layout.
2. On-Page Semantics, Structured Data & AI Search¶
- Unique
<title>& meta description per page: Keyword first,< 60chars title (%s | Brand),150–160chars description written for click-through, plus OpenGraph & Twitter card metadata with a1200×630image (summary_large_image) andmax-image-preview:large. - Strict heading tree: Exactly one
<h1>per page matching the page intent, followed by ordered<h2>/<h3>(never pick heading tags for font size). - Grounded JSON-LD (
<script type="application/ld+json">): WebSite/SoftwareApplicationon product homepages;PersonwithsameAslinks (tanisheesh.in, GitHub, LinkedIn, ORCID) on author/about pages;BreadcrumbListmatching visible breadcrumbs on inner pages;FAQPageonly for real visible Q&As.- Hard rule: NEVER fabricate
AggregateRating,Review, user counts, or testimonials. - Internal linking: Every public page reachable within 3 clicks of
/via real<a href>links (zero orphan pages, zero<div onClick>navigation). /llms.txt(stack-templates/llms-route.ts): Serve a concise markdown index of the site and its key URLs at/llms.txt(and optionally/llms-full.txtfor docs-heavy tools) kept in sync with routes.- Direct answers for AI citation: Under question-style headings, lead with a crisp 2–3 sentence direct answer before diving into details.
3. Core Web Vitals, Media & Trust (E-E-A-T)¶
- Targets (mobile first):
LCP <= 2.5s,INP <= 200ms,CLS <= 0.1. - Images & fonts: Serve WebP/AVIF (
next/image) with explicitwidth/heightoraspect-ratio; preload the hero image (priority/fetchpriority="high"), lazy-load below the fold, and write real descriptivealttext (alt=""for decorative visuals). Usenext/font/font-display: swap. - Trust & legal shell: Include real author attribution (
Tanish Poddar→https://tanisheesh.in), real contact (hi@tanisheesh.in),/privacy(stack-templates/privacy-page.tsx), and/terms(stack-templates/terms-page.tsx). Keep footer sponsor/status links lightweight — never inject render-blocking third-party embeds.
4. External Verification & Search Console Handoff¶
Always verify against the served live HTML (not just source files):
D="https://<domain>"
curl -s "$D/robots.txt"
curl -sI "$D/sitemap.xml" | head -n 1
curl -s -o /dev/null -w "%{http_code}\n" "$D/definitely-not-a-page-check" # must be 404
curl -sL "$D/" | grep -i -E "<title>|rel=\"canonical\"|name=\"robots\"|<h1"
curl -s "$D/llms.txt" | head -n 20
Automated indexing & one-time Search Console setup:
1. Verify root domain sc-domain:tanisheesh.in once in Google Search Console (using scripts/setup-search-indexing.ps1 -VerifyTxt "google-site-verification=..." to append the DNS TXT record safely in GoDaddy — covers every *.tanisheesh.in subdomain automatically) and import into Bing Webmaster Tools.
2. On every hosted site, include stack-templates/indexnow-route.ts (/indexnow-key.txt) + .github/workflows/seo-ping.yml so pushes to main automatically ping IndexNow (Bing + ChatGPT Search) and Bing Webmaster API.
3. Run scripts/setup-search-indexing.ps1 -SiteUrl "https://<sub>.tanisheesh.in" right after deploying a new site to submit its sitemap.xml via IndexNow, Bing API, and Google Search Console API.
4. Validate structured data with Google Rich Results Test and run Lighthouse mobile check.