Content search summarization

From gabrielmoreira/agent-skills-mirror · View interactive version

Content search summarization is an AI agent skill from the GitHub repository gabrielmoreira/agent-skills-mirror. Use this skill when asked to search public content platforms such as Bilibili or YouTube, pick the top relevant results for a topic, and summarize each item with links and brief overviews. Uses Runtime-aware routing — opencli first, fetch second, browser last.

How to use this skill

Skill file

Content search summarization skill

Use this skill when the user asks for tasks such as:

Execution routing (critical)

Before attempting any search, classify the platform and pick the best execution path:

if opencli supports the platform:
    use opencli (deterministic, zero LLM cost, session-reuse)
elif public API exists:
    use fetch (structured JSON, no rendering needed)
elif site is SSR and publicly accessible:
    use web_fetch or Playwright (metadata extraction)
else:
    require login-state browser or declare blocked

This is the single most important decision in this skill.

Platform registry

| Platform | opencli command | Public API | SSR fetch | Access tier |

|----------|----------------|-----------|-----------|-------------|

| Bilibili | opencli bilibili search --keyword <kw> | api.bilibili.com | partial | T1: opencli preferred |

| YouTube | opencli youtube search --keyword <kw> | YouTube Data API | partial | T1: opencli preferred |

| 小红书 | opencli xiaohongshu search --keyword <kw> | ❌ | ❌ SPA shell | T2: opencli required |

| 抖音 | opencli tiktok search --keyword <kw> | ❌ | ❌ JS obfuscated | T2: opencli required |

| 知乎 | opencli zhihu search --keyword <kw> | ❌ | ❌ login-gated | T2: opencli required |

| 微博 | opencli weibo search --keyword <kw> | ❌ | ❌ | T2: opencli required |

| 豆瓣 | opencli douban search --keyword <kw> | ❌ | partial | T2: opencli preferred |

| arXiv | ❌ | export.arxiv.org | ✅ SSR | T3: fetch / web_fetch |

| Wikipedia | opencli wikipedia search --keyword <kw> | en.wikipedia.org/api | ✅ SSR | T1: any path works |

| HackerNews | opencli hackernews top | hn.algolia.com/api | ✅ SSR | T1: any path works |

| Reddit | opencli reddit search --keyword <kw> | ❌ | partial | T1: opencli preferred |

| BBC | opencli bbc news | ❌ | ✅ SSR | T3: fetch / web_fetch |

Access tier definitions

When opencli is unavailable

If opencli is not installed or Browser Bridge is not connected:

Primary strategy

  1. Check the platform registry above and pick the correct execution path.
  2. For opencli: run the command and parse structured output (JSON/YAML).
  3. For fetch/web_fetch: construct the appropriate URL and extract metadata.
  4. Rank results by practical relevance, not just raw view count:
  1. Always include source links.

Supported workflow

1. Search

For opencli-supported platforms:

opencli bilibili search --keyword "<keyword>" --limit 10 -f json
opencli youtube search --keyword "<keyword>" --limit 10 -f json
opencli xiaohongshu search --keyword "<keyword>" --limit 10 -f json

For public API platforms:

https://api.bilibili.com/x/web-interface/search/type?keyword=<keyword>&search_type=video
https://hn.algolia.com/api/v1/search?query=<keyword>

For SSR platforms:

Use web_fetch to load the search result page and extract metadata.

2. Filter and rank

Prefer results that:

Avoid results that:

3. Fetch more detail

When possible, open each selected result page and collect:

Use those fields to produce a summary that is better than title-only guessing.

4. Summarize

For each selected item, provide:

Be clear when the summary is inferred from metadata and page description rather than a full transcript.

Output format

Return a compact ranked list.

Recommended structure:

  1. execution path used and why
  2. query keyword and capture time
  3. a ranked list of top items
  4. a short summary paragraph for each item

Recommended per-item fields:

Proven example patterns

Bilibili via opencli (recommended)

opencli bilibili search --keyword "AI agent" --limit 10 -f json

Then filter the top 5 most relevant, open detail pages for metadata enrichment.

arXiv via web_fetch (public SSR)

web_fetch https://arxiv.org/search/?query=AI+agent&searchtype=all

Extract paper titles, authors, abstracts from the SSR result page.

Xiaohongshu (opencli required)

opencli xiaohongshu search --keyword "AI skill" --limit 10 -f json

If opencli is not available, declare: "小红书 is a T2 platform that requires opencli with Browser Bridge. Public scraping is not reliable."

Key cautions

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.