websearch
Provider-neutral public web search, grounded answers with verified citations, and focused page processing. Use to retrieve ranked links through Brave or…
от hyper-code-harness★ 22 звезды на GitHub
Установить websearch в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Web Search and Fetch
Use websearch.search for ranked public-web links and snippets. It returns one stable result shape across two engines:
brave— direct Brave Search API; fast and suitable for routine retrieval.google-browser— Google Search through the user's real Chrome; the default engine and useful for independent comparison.
The engine can be selected per call. When omitted, websearch.defaultEngine is used. Search is retrieval-only and does not generate an LLM answer.
Every field the engine supplied is preserved. description has highlight markup stripped, descriptionHtml keeps it, and Brave additionally fills publishedAt (is this page current?), language, site and extraSnippets — extra page excerpts that often answer the question without opening the page. Google fills the shared fields and leaves the rest null/empty.
Ranking and filtering results
Engines rank by their own signals, so a result that merely shares keywords can outrank the one that answers the question — and finding out costs a page load. Rerank with jev.rank: pass the results as candidates (title + description + extraSnippets), set minScore around 0.2, and keep what survives. Jev returns a calibrated relevance score per candidate, so the threshold means the same thing across queries; a result that is merely on-topic scores far below one that answers the question. jev.rank scores candidates concurrently and keeps a failed candidate in place rather than dropping it.
const found = await ctx.fns.websearch.search({ query, limit: 10 });
const ranked = await ctx.fns.jev.rank({
query,
candidates: found.results.map((r, i) => ({ id: String(i), text: [r.title, r.description, ...r.extraSnippets].join('\n') })),
minScore: 0.2,
});
const best = ranked.ranked.map((entry) => found.results[Number(entry.id)]);
Use websearch.fetch on a selected result URL with a focused prompt. It opens the URL through Browser, captures readable Markdown, and asks an LLM to apply the prompt. The model can be overridden per call; otherwise websearch.fetchModel is used, falling back to Hyper's global default model. Authenticated/private pages are not guaranteed; use a specialized plugin for those.
Fetch keeps the evidence, not only the summary: markdown holds the readable page as captured, so a claim can be quoted instead of trusted. Pass includeMarkdown: false when only the generated answer is wanted.
Grounded answers
Use websearch.answer when the question matters more than the links. One call searches, reads the top pages results as Markdown, and returns { answer, citations, sources }. Each citation carries a quote and a verified flag: the quote is matched back against the page text it was attributed to, so an invented quote arrives as verified: false instead of silently passing. Pass requireVerified: true to drop unverifiable citations, and read sources to see which pages failed to load.
Reading one page as data
websearch.read opens a URL and returns readable Markdown with no LLM involved. It re-snapshots until the extracted length stops growing, so client-rendered pages are not captured half-empty, and it always closes the tab. fetch and answer both read through it.
Compiling one page for deterministic processing
websearch.compile reads a page through websearch.read and converts the captured Markdown into a deterministic typed block document without an LLM. Use it when downstream code needs canonical Markdown, a SHA-256 content hash, stable block IDs, or exact Markdown offset and line provenance. It recognizes headings, paragraphs, lists and task items, quotes, fenced or indented code, Markdown tables, links, and images when the captured syntax supports them; malformed or unsupported input is preserved rather than repaired or invented. Source provenance is limited honestly to requested/resolved URLs and Markdown ranges because the readable capture does not expose DOM selectors.
Long pages
answer does not truncate an over-long page at a character limit: passages are scored with jev.rank and only the relevant ones reach the model, so the answer survives even when the useful section sits at the bottom of the page.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- package.json
- src/websearch/$setting_defaultEngine.ts
- src/websearch/$setting_fetchModel.ts
- src/websearch/CompiledDocument.ts
- src/websearch/answer.ts
- src/websearch/compile.test.ts
- src/websearch/compile.ts
- src/websearch/fetch.ts
- src/websearch/read.test.ts
- src/websearch/read.ts
- src/websearch/search.ts
FAQ
Что делает скилл websearch?
Provider-neutral public web search, grounded answers with verified citations, and focused page processing. Use to retrieve ranked links through Brave or Google Browser, answer a question from the live web with quote-level citations, or open a selected public page and apply an LLM instruction to its readable content.
Как установить скилл websearch?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл websearch запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…