Skip to content

🔍 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:

  1. Server-rendered HTML (SSR / SSG): Page text, <title>, meta tags, canonical link, and JSON-LD must exist in the initial curl HTML response — not injected after useEffect. In Next.js App Router, keep page and layout files as Server Components and push "use client" down to interactive leaf components.
  2. Dynamic sitemap.xml (stack-templates/sitemap.ts): Generate from real routes/data; include only canonical, indexable 200-status absolute https:// URLs (never /api/, auth pages, or redirects). Use real lastModified dates — never stamp new Date() on unchanged pages every build.
  3. Clean robots.txt (stack-templates/robots.ts):
  4. Never leave a stray Disallow: / or block /_next/, CSS, or JS.
  5. Disallow only private paths (/api/, /admin/, /dashboard/, auth routes).
  6. Link Sitemap: https://<domain>/sitemap.xml.
  7. Explicitly allow AI search crawlers (GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, PerplexityBot, Google-Extended) so public products get cited in AI answers.
  8. No stray noindex: Audit layouts, X-Robots-Tag headers, and env checks so public pages are indexable while login, dashboards, and preview deploys stay noindex. Never both Disallow in robots.txt and noindex the same URL.
  9. Single-hop canonical redirects: http, https, www, and non-www must reach the canonical URL in one 301/308 hop; internal links must point directly to the final URL.
  10. Real HTTP 404 (stack-templates/not-found.tsx): Unknown URLs must return actual status 404 (never a 200 SPA soft-404) with clear links back to Home and core pages.
  11. Self-referencing absolute canonicals: Set metadataBase once in the root layout, then per-page alternates: { canonical: "/path" }. Never hardcode the homepage canonical inside the root layout.

  • Unique <title> & meta description per page: Keyword first, < 60 chars title (%s | Brand), 150–160 chars description written for click-through, plus OpenGraph & Twitter card metadata with a 1200×630 image (summary_large_image) and max-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 / SoftwareApplication on product homepages; Person with sameAs links (tanisheesh.in, GitHub, LinkedIn, ORCID) on author/about pages; BreadcrumbList matching visible breadcrumbs on inner pages; FAQPage only 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.txt for 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 explicit width/height or aspect-ratio; preload the hero image (priority / fetchpriority="high"), lazy-load below the fold, and write real descriptive alt text (alt="" for decorative visuals). Use next/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.