Skip to main content

LLM Friendly Documentation

This page makes it easy to share Yearn docs with an LLM using machine-readable endpoints built from the docs site.

Canonical endpoints

Example prompt

Use https://docs.yearn.fi/llms.txt as the entry point. Read the linked AI endpoints to answer my question, and cite canonical Yearn docs URLs from https://docs.yearn.fi in your response.

Install the Yearn Docs Skill

You can also install the Yearn docs skill, which is published from this docs site and gives instructions to query the docs:

Codex

Give this to Codex as the steps to install:

SKILL_DIR="${CODEX_HOME:-$HOME/.codex}/skills/yearn-docs-site-query"
mkdir -p "$SKILL_DIR/scripts"
curl -fsSL https://docs.yearn.fi/skills/yearn-docs-site-query/SKILL.md -o "$SKILL_DIR/SKILL.md"
curl -fsSL https://docs.yearn.fi/skills/yearn-docs-site-query/scripts/yearn_docs_query.py -o "$SKILL_DIR/scripts/yearn_docs_query.py"
chmod +x "$SKILL_DIR/scripts/yearn_docs_query.py"

Restart Codex after installation so the new skill is loaded.

Claude Code

Give this to Claude as the steps to install:

SKILL_DIR="$HOME/.claude/skills/yearn-docs-site-query"
mkdir -p "$SKILL_DIR/scripts"
curl -fsSL https://docs.yearn.fi/skills/yearn-docs-site-query/SKILL.md -o "$SKILL_DIR/SKILL.md"
curl -fsSL https://docs.yearn.fi/skills/yearn-docs-site-query/scripts/yearn_docs_query.py -o "$SKILL_DIR/scripts/yearn_docs_query.py"
chmod +x "$SKILL_DIR/scripts/yearn_docs_query.py"

In Claude Code, run /help and look for /yearn-docs-site-query.