SEO
Metadata
import { Helmet } from 'react-helmet'
export default function App() {
const seo = {
title: 'About',
description:
'This is an awesome site that you definitely should check out.',
url: 'https://www.mydomain.com/about',
image: 'https://mydomain.com/images/home/logo.png',
}
return (
<Helmet
title={`${seo.title} | Code Mochi`}
meta={[
{
name: 'description',
property: 'og:description',
content: seo.description,
},
{ property: 'og:title', content: `${seo.title} | Code Mochi` },
{ property: 'og:url', content: seo.url },
{ property: 'og:image', content: seo.image },
{ property: 'og:image:type', content: 'image/jpeg' },
{ property: 'twitter:image:src', content: seo.image },
{ property: 'twitter:title', content: `${seo.title} | Code Mochi` },
{ property: 'twitter:description', content: seo.description },
]}
/>
)
}
AEO
Discovery
-
llms.txtexists at root with structured index of all documentation -
robots.txtdoes not inadvertently block known AI agent user-agents -
agent-permissions.jsondefines access rules for automated clients -
AGENTS.mdexists in code repositories linking to relevant docs
Content structure
- Documentation pages available as clean Markdown (not just rendered HTML)
- Each page leads with a clear outcome statement in the first 200 words
- Headings are consistent and hierarchically correct
- Code examples immediately follow their prose description
- Parameter references use tables, not nested prose
Token economics
- Token counts are tracked per documentation page
- No single page exceeds 30,000 tokens without chunking strategy
- Token counts exposed in
llms.txtfor key pages - Token counts available as page metadata (meta tag or HTTP header)
Capability signaling
-
Skill.mdfiles describe what each service/API does, not just how to call it - Each skill includes: capabilities, required inputs, constraints, key doc links
- MCP server available for direct agent integration (if applicable)
Analytics
- AI referral sources segmented in web analytics
- Server logs monitored for known AI agent HTTP fingerprints
- Baseline established for AI vs. human traffic ratio
UX bridge
-
Copy for AIbutton available on documentation pages - Markdown source accessible via URL convention (e.g.
appending.md)
Best Practices
- Server side rendering (e.g. Next.js).
- Pre-Rendering
- Mobile performance optimization (e.g. minify resources, code splitting, CDN, lazy loading, minimize reflows).
- SEO-friendly routing and URL management.
- Google webmaster tools
<title>and<meta>in<head>(with tool likereact-helmet).- Includes a
robots.txtfile.
References
- Build your own RSC framework.
- Build your own Next.js.
- Build your own web framework.
- Modern websites building patterns.
- Modern rendering patterns.
- Basic SEO guide.
- SPA SEO guide.
- Google SEO guide.