llm-optimization
Optimize websites for AI assistant recommendations. ChatGPT, Gemini, Perplexity, Claude. Get cited in AI answers.
Best use case
llm-optimization is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Optimize websites for AI assistant recommendations. ChatGPT, Gemini, Perplexity, Claude. Get cited in AI answers.
Teams using llm-optimization should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/llm-optimization/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How llm-optimization Compares
| Feature / Agent | llm-optimization | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Optimize websites for AI assistant recommendations. ChatGPT, Gemini, Perplexity, Claude. Get cited in AI answers.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# LLM Optimization Skill
## Purpose
Make websites appear in AI assistant recommendations and citations. Different from traditional SEO - optimized for how LLMs parse and recommend content.
## Core Rules
1. **Structured > Prose** — LLMs extract facts from clear structure
2. **Schema.org is Critical** — Speakable, FAQPage, HowTo schemas
3. **Answer the Question** — First paragraph must directly answer intent
4. **Cite Sources** — Links to authoritative sources build trust
5. **Entity Clarity** — Clear business name, location, service definitions
6. **Freshness Signals** — Last updated dates, recent content
7. **No Walls** — Content must be crawlable, no JS-only rendering
8. **Never Override Truth** — LLM optimization NEVER overrides factual accuracy or legal compliance
## LLM Crawlers to Support
| LLM | Crawlers | Notes |
|-----|----------|-------|
| OpenAI/ChatGPT | GPTBot, OAI-SearchBot, ChatGPT-User | GPTBot = training, others = real-time |
| Google Gemini | Google-Extended | robots.txt control token, not a distinct UA |
| Perplexity | PerplexityBot, Perplexity-User | Bot = indexing, User = real-time fetch |
| Claude | ClaudeBot, Claude-User, Claude-SearchBot | Official Anthropic crawlers |
| Microsoft Copilot | Bingbot | Uses Bing's crawler |
## robots.txt Configuration
```txt
# OpenAI crawlers
User-agent: GPTBot
Allow: /
User-agent: OAI-SearchBot
Allow: /
User-agent: ChatGPT-User
Allow: /
# Google AI (control token)
User-agent: Google-Extended
Allow: /
# Perplexity crawlers
User-agent: PerplexityBot
Allow: /
User-agent: Perplexity-User
Allow: /
# Anthropic/Claude crawlers
User-agent: ClaudeBot
Allow: /
User-agent: Claude-User
Allow: /
User-agent: Claude-SearchBot
Allow: /
```
## Content Structure for LLM Extraction
```html
<!-- 1. Direct Answer (first 150 chars) -->
<p class="lead">
[Business Name] provides [service] in [location].
[Key differentiator]. [Call to action].
</p>
<!-- 2. Quick Facts Box -->
<aside class="quick-facts" itemscope itemtype="https://schema.org/LocalBusiness">
<h2>Quick Facts</h2>
<dl>
<dt>Service Area</dt><dd itemprop="areaServed">[Areas]</dd>
<dt>Price Range</dt><dd itemprop="priceRange">[Range]</dd>
</dl>
</aside>
<!-- 3. FAQ Section (critical for LLM) -->
<section itemscope itemtype="https://schema.org/FAQPage">
<!-- Each Q&A as schema -->
</section>
```
## Forbidden
- ❌ Content behind JavaScript-only rendering
- ❌ Blocking LLM crawlers in robots.txt
- ❌ Missing Speakable schema
- ❌ Vague, marketing-speak first paragraphs
- ❌ No FAQ section on service pages
- ❌ Missing lastModified dates
- ❌ No structured data
## Definition of Done
- [ ] robots.txt allows all LLM crawlers
- [ ] Speakable schema on all key pages
- [ ] FAQPage schema on service pages
- [ ] First paragraph directly answers search intent
- [ ] Quick Facts box with structured data
- [ ] lastModified meta tag present
- [ ] Content renders without JavaScript
- [ ] Entity names consistent across site
## References
- [ChatGPT Optimization](references/chatgpt-optimization.md)
- [Gemini Optimization](references/gemini-optimization.md)
- [Perplexity Optimization](references/perplexity-optimization.md)
- [Schema Speakable](references/schema-speakable.md)Related Skills
prompt-optimization
Guidelines for creating effective prompts that maximize AI understanding and response quality. Helps developers craft clear, specific, actionable prompts with appropriate context for optimal AI assistance.
portfolio-optimization
Optimize project portfolio selection under constraints using mathematical optimization
generative-optimization
Expert guidance for solving optimization problems using generative models (GMM and Flow Matching). Use when users need to solve optimization, inverse problems, or find feasible solutions under constraints using probabilistic sampling approaches.
u09613-writing-and-rhetoric-optimization-for-household-logistics
Operate the "Writing And Rhetoric Optimization for household logistics" capability in production for household logistics workflows. Use when mission execution explicitly requires this capability and outcomes must be reproducible, policy-gated, and handoff-ready.
asset-optimization
Asset optimization skill for mesh and texture budgets.
grey-haven-seo-geo-optimization
Use when optimizing web content for search engine visibility, improving AI search engine citations (GEO), auditing website SEO, implementing structured data markup, or researching keyword strategy. Triggers: 'SEO', 'GEO', 'search optimization', 'schema markup', 'meta tags', 'AI search', 'Perplexity', 'search rankings', 'structured data', 'generative engine optimization', 'rich results', 'robots.txt', 'sitemap'.
sql-optimization-patterns
Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database...
readability-optimization
Analyze and improve text readability using Flesch-Kincaid scores, sentence length, paragraph density, and plain language techniques. Use this skill when reviewing or editing existing text for clarity.
PostgreSQL Performance Optimization
Production-grade PostgreSQL query optimization, indexing strategies, performance tuning, and modern features including pgvector for AI/ML workloads. Master EXPLAIN plans, query analysis, and database design for high-performance applications
postgresql-optimization
PostgreSQL database optimization workflow for query tuning, indexing strategies, performance analysis, and production database management.
database-advanced-optimization
Use SQL (PostgreSQL) when:
Conversion Optimization
Conversion Rate Optimization (CRO) is the systematic process of increasing the percentage of website or app visitors who complete a desired action (conversion) through data-driven experimentation and