360 Secure SkillHub
360 安全技能中心

web-search

该 Skill 围绕给定主题构建多条搜索查询,优先调用 You.com MCP 的 you-search;未配置或出错时回退到 WebSearch。它解析结果的标题、URL 和相关性分数,按分数降序返回 Finding 对象,并记录降级路径或显式报告无结果。

分类:搜索
athola
athola
热度 29.39
最近更新 2026-12-01 15:18:22

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add athola/nm-tome-web-search
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
web-search
description
Searches the open web for docs, comparisons, and news via You.com MCP or WebSearch
version
1.10.3
triggers
["web","search","youcom","documentation","a topic needs knowledge beyond GitHub","forums","or academia"]
metadata
{"openclaw":{"homepage":"https://github.com/athola/claude-night-market/tree/master/plugins/tome","emoji":"🦞"}}
source
claude-night-market
source_plugin
tome

Night Market Skill: ported from claude-night-market/tome. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

Web Search

When To Use

  • Finding vendor documentation, standards, or official guides
  • Comparisons and benchmarks across products or approaches
  • News, release notes, and recent status for a technology
  • Standalone searches, or as one channel of a /tome:research session: the planner dispatches tome:web-searcher from medium depth, and the channel runs a positive control (RFC 2119) before its topic queries so its silence can count in the coverage verdict

When NOT To Use

  • Code implementations (use Skill(tome:code-search))
  • Community opinions (use Skill(tome:discourse))
  • Academic literature (use Skill(tome:papers))

Search the open web for pages about a topic. This is the general-knowledge channel: the pages no domain-specific channel targets.

Sources (Priority Order)

  1. You.com MCP server (you-search tool) when configured
  2. WebSearch tool as fallback (no configuration needed)

The You.com MCP server is optional. Without it the channel runs entirely on the built-in WebSearch tool, so a session never fails because the server is absent.

Setup (Optional)

To prefer You.com results, add the MCP server to your Claude Code config once:

# Keyless free profile
claude mcp add you --transport http https://api.you.com/mcp?profile=free

# Authenticated (higher rate limits; YDC_API_KEY from you.com)
claude mcp add you --transport http https://api.you.com/mcp \
  --header "Authorization: Bearer $YDC_API_KEY"

A key is only needed for the authenticated endpoint. The free profile needs no key and no account.

Workflow

  1. Build search queries using tome.channels.web.expand_web_queries()
  2. Run each query through the You.com MCP you-search tool if the server is configured, otherwise through WebSearch
  3. Parse results via parse_you_mcp_result() (raises ValueError on a response shape that is not a you-search envelope) or parse_websearch_result() (returns None for a result with no URL, which is dropped)
  4. Rank via rank_web_findings()
  5. Return Finding objects

Failure Handling

  • If the You.com MCP tool errors or is unreachable, retry the query through WebSearch and record the fallback in the query log so the report can show the channel ran degraded rather than ok
  • If both paths fail for every query, report the failure explicitly rather than returning fabricated or empty findings

Exit Criteria

  • At least one web search query built and executed for the requested topic, through You.com MCP or WebSearch
  • Results parsed into Finding objects with title, URL, and a relevance score, marked channel="web"
  • Findings returned from rank_web_findings() sorted by relevance score descending
  • If the You.com path failed and WebSearch was used, the fallback is reported rather than passed off as the primary source
  • If no results are found for any query, this is reported explicitly rather than returning an empty list silently