Agent Skillsrcarmo/piclaw › web-search-summary

web-search-summary

GitHub

通过 SearXNG 或 DuckDuckGo 执行网络搜索,获取前几条结果并生成句子级摘要及可选的页面内容转换。

skel/.pi/skills/web-search-summary/SKILL.md rcarmo/piclaw

Trigger Scenarios

需要快速了解网页核心内容的场景 批量获取搜索结果摘要而非全文的场景

Install

npx skills add rcarmo/piclaw --skill web-search-summary -g -y
More Options

Non-standard path

npx skills add https://github.com/rcarmo/piclaw/tree/main/skel/.pi/skills/web-search-summary -g -y

Use without installing

npx skills use rcarmo/piclaw@web-search-summary

指定 Agent (Claude Code)

npx skills add rcarmo/piclaw --skill web-search-summary -a claude-code -g -y

安装 repo 全部 skill

npx skills add rcarmo/piclaw --all -g -y

预览 repo 内 skill

npx skills add rcarmo/piclaw --list

SKILL.md

Frontmatter
{
    "name": "web-search-summary",
    "description": "Search via SearXNG (or DuckDuckGo fallback), fetch top results, and return sentence-level summaries plus optional converted page content.",
    "distribution": "public"
}

Web Search Summary

Use this when you need short summaries of the top pages, not full page content.

If you need fetched Markdown as the main artifact, use web-search.

Search engine selection

  • If PICLAW_SEARX_URL is set or --searx-url is passed, the script uses SearXNG.
  • Otherwise, it falls back to DuckDuckGo HTML search (no API key required).

Examples

Run a summarised search:

bun /workspace/.pi/skills/web-search-summary/web-search-summary.ts --query "your query"

Adjust fetch depth or summary length:

bun /workspace/.pi/skills/web-search-summary/web-search-summary.ts --query "your query" --fetch-limit 3 --max-sentences 4 --max-chars 800

Output shape

The script prints JSON like:

{
  "query": "...",
  "searxUrl": "http://.../search",
  "limit": 5,
  "fetch": true,
  "maxSentences": 3,
  "maxChars": 600,
  "results": [
    {
      "title": "...",
      "url": "https://...",
      "content": "fetched markdown or original snippet",
      "summary": "short sentence-level digest"
    }
  ]
}
  • summary is only added for fetched items.
  • content contains converted Markdown when fetch succeeds.

Failure behaviour

  • If the search request fails, the script exits non-zero.
  • If page fetch fails for an individual result, the search still succeeds and that item gets summary: "Failed to fetch: ..." while other results continue.
  • Set --fetch false to skip page retrieval entirely.

Options

  • --query / --q — required search query
  • --limit — number of search results to return (default 5)
  • --fetch — set to false to skip page fetches (default true)
  • --fetch-limit — how many results to fetch and convert (default 2)
  • --searx-url — override the SearXNG endpoint (env: PICLAW_SEARX_URL; falls back to DuckDuckGo if unset)
  • --timeout — fetch timeout in milliseconds (default 15000)
  • --max-sentences — summary sentence limit (default 3)
  • --max-chars — summary character limit (default 600)

Notes

  • Summaries are heuristic first-sentence digests and may need human refinement.
  • HTML conversion uses turndown + linkedom and prefers <article>, <main>, or [role='main'].

Version History

  • 5fa0ce5 Current 2026-07-25 10:26

Same Skill Collection

runtime/skills/builtin/reload/SKILL.md
runtime/skills/builtin/remote-peer/SKILL.md
runtime/skills/builtin/schedule/SKILL.md
runtime/skills/builtin/script-discovery-annotation/SKILL.md
runtime/skills/builtin/send-message/SKILL.md
runtime/skills/integrations/playwright/SKILL.md
runtime/skills/operator/graphite-power-chart/SKILL.md
runtime/skills/operator/token-chart/SKILL.md
skel/.pi/skills/adaptive-cards-authoring/SKILL.md
skel/.pi/skills/bootstrap-container/SKILL.md
skel/.pi/skills/debug/SKILL.md
skel/.pi/skills/export-timeline-pdf/SKILL.md
skel/.pi/skills/extension-design/SKILL.md
skel/.pi/skills/extension-troubleshoot/SKILL.md
skel/.pi/skills/feature-refinement-flow/SKILL.md
skel/.pi/skills/feed-digest/SKILL.md
skel/.pi/skills/graph-design/SKILL.md
skel/.pi/skills/graphite-power-chart/SKILL.md
skel/.pi/skills/kanban-management/SKILL.md
skel/.pi/skills/mcp-adapter/SKILL.md
skel/.pi/skills/playwright/SKILL.md
skel/.pi/skills/reload/SKILL.md
skel/.pi/skills/remote-peer/SKILL.md
skel/.pi/skills/schedule/SKILL.md
skel/.pi/skills/script-discovery-annotation/SKILL.md
skel/.pi/skills/send-message/SKILL.md
skel/.pi/skills/setup/SKILL.md
skel/.pi/skills/situate-daily-notes/SKILL.md
skel/.pi/skills/technical-docs/SKILL.md
skel/.pi/skills/timeline-cleanup/SKILL.md
skel/.pi/skills/token-chart/SKILL.md
skel/.pi/skills/twitter-summary/SKILL.md
skel/.pi/skills/web-search/SKILL.md

Metadata

Files
0
Version
ae927fb
Hash
05a3cda9
Indexed
2026-07-25 10:26

- 위키
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 23:06
浙ICP备14020137号-1 $방문자$