yearn/yearn-devdocs/yearn-docs-site-query-2
Claude Code and agent skill by yearn/yearn-devdocs
- community
Checking that the SKILL.md file is still in the repository.
Query and cite Yearn documentation via the hosted docs site's AI exports (llms.txt, /ai/manifest.json, /ai/docs.jsonl, and optional /ai/raw/). Use when answering questions from docs.yearn.fi (or a Vercel preview) without cloning the repo, and when you need reliable retrieval + citations from the published docs.
Install
npx vskill@latest install yearn/yearn-devdocs/yearn-docs-site-query-2SKILL.md
Yearn Docs: hosted retrieval
Inputs
BASE(optional): The docs site origin to query (e.g. a Vercel preview). Defaults tohttps://docs.yearn.fi.
Example:
Tip: if you use a bash one-liner like BASE=... python3 ... --base "$BASE" ..., $BASE expands before the assignment takes effect. Prefer either --base 'https://...' directly, or export BASE=... first, or omit --base and rely on the default.
One-approval workflow (recommended)
To avoid repeated network approvals in restricted environments, use the bundled helper. It auto-checks for updates (conditional request) and only downloads docs.jsonl when it has changed, so you typically need only one approval per invocation:
If you want absolutely no network calls, force offline mode (no network at all):
To fetch a page by route:
To clear cached files for that BASE:
To see whether your cached data is stale (age/etag/manifest info):
To check the remote for updates and refresh the cache if needed (will require network approval in restricted environments):
To skip update checks and use cached data (if present):
To force a full re-download (even if unchanged):
Endpoints (relative to BASE)
GET /llms.txt— human/agent pointer file.GET /ai/manifest.json— machine-readable pointers (paths, counts, origin).GET /ai/docs.jsonl— plaintext corpus (JSON Lines: 1 JSON object per doc page).GET /ai/raw/...— optional raw.md/.mdxsource mirror (if present in corpus records).
Retrieval workflow
- Fetch
GET {BASE}/ai/manifest.jsonandGET {BASE}/llms.txt. - Download
GET {BASE}/ai/docs.jsonland parse it as JSONL (stream line-by-line). - Rank candidate records for the user query:
- Tokenize the query and score matches.
- Boost matches in
titleandheadings[].textover matches intext.
- Select the top records (e.g. 3–8), then select the best sections:
- Split
textby headings and keep the most relevant chunks.
- Answer using only the selected chunks (don’t hallucinate fields not present in the docs).
Record shape (docs.jsonl)
Expect at least:
title: page titleheadings: array of{ level, id?, text }text: extracted plaintext (may include fenced code blocks)route: the path on the site host (e.g./developers/addresses)url: canonical URL for the page (often onhttps://docs.yearn.fi/...)source.htmlPath: where it came from in the static build
Optional/newer:
canonicalUrlsource.rawPath: path under/ai/raw/...for exact.md/.mdx
Citing and linking
- Prefer citing the canonical URL in the record:
- Use
canonicalUrlif present, elseurl. - If
urlpoints to the wrong origin for the environment you’re using, citeBASE + route.
Exact-source fallback (for precise quotes/formatting)
When you need exact formatting, tables, or the original MDX:
- If
source.rawPathexists:GET {BASE}{source.rawPath}and quote from that. - Otherwise fetch the rendered page:
GET {BASE}{route}and extract the relevant section from HTML.
Caching
- Cache
GET {BASE}/ai/docs.jsonlper session. - If you can, revalidate with
ETag/If-None-Matchon subsequent runs.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingstatic/skills/yearn-docs-site-query/SKILL.md
Popularity
- Repository stars
- 89
- Repository forks
- 92
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 8 Apr 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/yearn/yearn-devdocs/yearn-docs-site-query-2)