Skip to main content

CLAUDE.md — docs/

This is a Mintlify documentation site for GAIA, served at https://docs.heygaia.io.

Key Commands

# Preview docs locally (run from the docs/ directory)
nx dev docs
# or directly:
cd docs && mintlify dev

# Mintlify CLI must be installed: npm install -g mintlify

Structure

  • docs.json — single source of truth for navigation, theme, SEO, and site config. All new pages must be registered here under navigation.tabs[].groups[].pages or they won’t appear in the sidebar.
  • introduction.mdx, quick-start.mdx, etc. — top-level pages
  • developers/, self-hosting/, bots/, cli/, configuration/ — section directories
  • knowledge/ — large programmatic SEO section (glossary, comparisons, use-cases, etc.). Hundreds of pages; don’t hand-edit en masse.
  • snippets/ — reusable MDX snippets (include via <Snippet file="..." />)
  • images/, logo/ — static assets

Skills

Always use the copywriting skill when writing or editing any prose in docs pages. Invoke it via the Skill tool before drafting feature descriptions, explanations, onboarding copy, or any user-facing text. Do not write marketing or explanatory copy ad-hoc. See the full skill reference table at the bottom of this file.

Writing Docs

Frontmatter (required on every page):
---
title: "Page Title"
description: "One-line description shown in meta and sidebar"
icon: "icon-name"   # optional, Font Awesome icon slug
---
Common Mintlify components used in this repo:
  • <Card>, <CardGroup cols={2}> — feature grids
  • <Steps>, <Step title="..."> — numbered how-to steps
  • <Tip>, <Note>, <Warning> — callout blocks
  • <Snippet file="snippets/foo.mdx" /> — shared content
Page paths in docs.json are relative and extensionless (e.g., "developers/introduction" maps to developers/introduction.mdx).

Mintlify Reference

When making component changes or adding new Mintlify components, fetch the official docs: https://www.mintlify.com/docs/llms.txt

Available Skills

Always invoke these via the Skill tool rather than doing the work ad-hoc:
SkillWhen to use
mintlifyConfiguring navigation in docs.json, adding Mintlify components, setting up API references, fixing build issues
copywritingWriting or improving feature descriptions, explanations, or any prose in docs pages
landing-page-copywriterHomepage copy (introduction.mdx) or feature landing pages
seo-geoOptimizing page titles, descriptions, and meta in docs.json or knowledge/ pages

Non-obvious Patterns

  • Navigation is not auto-discovered. Adding an .mdx file does nothing until its path is added to docs.json. Always update both.
  • The knowledge/ section is programmatic SEO. It has 180+ pages across glossary, comparisons, use-cases, etc. Edits to tone or structure should be done consistently across the group, not one-off.
  • No build step for content. MDX is rendered by Mintlify’s cloud (or local CLI). There is no compile step to run after editing — just save and the dev server hot-reloads.
  • Images go in images/, referenced as /images/filename.webp. Mintlify serves them as static assets from the project root.
  • docs.json uses $schema for editor autocomplete — keep it present when editing.