Seo

From gridaco/grida · View interactive version

Seo is an AI agent skill from the GitHub repository gridaco/grida. SEO best practices for the Grida project across Next.js pages, blog posts, and documentation. Covers Next.js metadata API, Open Graph / Twitter cards, sitemaps, image search optimization, structured data (JSON-LD), Docusaurus frontmatter, and content writing for search. Use when creating or editing

How to use this skill

Skill file

SEO

Guidelines for search engine optimization across the Grida project -- Next.js

pages, blog posts, and documentation.

Scope

| Surface | Location | Framework |

| ------------------------- | --------------------------------- | ---------- |

| Marketing / product pages | editor/app/(www)/ | Next.js 16 |

| Blog | docs/blog/ or apps/docs/blog/ | Docusaurus |

| Documentation | docs/** | Docusaurus |

| Sitemaps | editor/app/sitemap.ts + others | Next.js |

Next.js Pages (`editor/app/(www)`)

Metadata

Every public page must export metadata (static or dynamic).

// Static
export const metadata: Metadata = {
  title: "Page Title — Grida",
  description: "Concise, keyword-rich description under 160 chars.",
  keywords: ["relevant", "keywords"],
  openGraph: {
    title: "Page Title — Grida",
    description: "Same or tailored OG description.",
    images: ["/og/page-name.png"],
  },
  twitter: {
    card: "summary_large_image",
  },
};

// Dynamic
export async function generateMetadata({ params }): Promise<Metadata> { ... }

Rules:

`metadataBase`

When openGraph.images uses relative paths, the layout or page must set:

metadataBase: new URL("https://grida.co"),

Without this, crawlers may see broken OG URLs.

Sitemap

Public pages belong in editor/app/sitemap.ts.

{
  url: "https://grida.co/new-page",
  changeFrequency: "monthly",
  priority: 0.5,
}

new sitemap.ts is invisible to crawlers until it's added as a Sitemap:

line in editor/app/robots.txt — non-root sitemaps are not auto-discovered.

packages/sitemap.ts) over hand-maintained URL lists, which drift.

Google Image Search

Next.js <Image> renders optimized /_next/image?url=... URLs that Google

Images indexes unreliably.

For pages where images are the search target (brand assets, logos, press

kits):

stable, direct public URL (e.g. /brand/grida-symbol-240.png).

Checklist for image assets:

Structured Data (JSON-LD)

Use JSON-LD for rich results where applicable:

Embed via a <script type="application/ld+json"> in the page or layout.

Documentation (`docs/**`)

Docs are built with Docusaurus and published at grida.co/docs.

Frontmatter

Every doc page should have:

---
title: Feature Name
description: One-line summary for search snippets (under 160 chars).
keywords: [keyword1, keyword2]
---

Headings

Internal Linking

and improves user navigation.

Blog Posts

Title

Meta Description

Content Structure

the snippet).

Social Sharing

Crawl Control

`robots.txt`

Located at editor/app/robots.txt. Currently allows everything except

/private/. When adding new route groups that should not be indexed (e.g.

internal tools, preview embeds, auth flows), add a Disallow: rule here.

Canonical URLs & Tenant Domains

Grida serves grida.co (main) and [tenant].grida.site (tenant sites).

Tenant-rendered pages must not compete with grida.co pages in search.

https://grida.co/....

own *.grida.site domain -- never to grida.co.

Known Gaps

metadataBase. Pages with relative OG images should set it themselves

(see metadataBase section above) or it should be added to the root layout.

General SEO Writing Rules

These apply across all surfaces (pages, docs, blog):

  1. One primary keyword per page. Include it in the title, first paragraph,

and at least one heading.

  1. Write for humans first. Natural, helpful content ranks better than

keyword-stuffed text.

  1. Unique content. Every page must have a unique title and description.

Duplicate meta across pages hurts rankings.

  1. Descriptive link text. Use meaningful anchor text, not "click here."
  2. Alt text on images. Describe what the image shows; include keywords

when natural.

  1. URL structure. Keep URLs short, lowercase, hyphenated, and descriptive.

Avoid IDs or query params in public URLs.

  1. Mobile-first. Ensure pages render well on mobile -- Google uses

mobile-first indexing.

  1. Performance. Page speed is a ranking factor. Prefer static/SSG pages

for marketing content. Lazy-load below-fold images.

Verification Checklist

Before shipping a public page or post:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.