Introduction¶
When planning topics, drafting briefs, or tracking public sentiment, a common approach is to search keywords in a browser and manually organize links. Handing the task of “searching across the web or specified sites by keyword and saving results as a structured file” to an Agent requires a verifiable data source and a fixed calling convention. Below is an introduction to tencenthotsearch-skill on SkillHub (identifier @user_5b28ea14/tencenthotsearch-skill, current version 1.0.1): it wraps Tencent Cloud’s online search API (SearchPro), lets you trigger hot-topic, trend, or keyword-based news retrieval within a conversation, and supports multiple export formats.
What Is This¶
tencenthotsearch-skill is a community-sourced (community) data-analysis Skill published by SkillHub user user_5b28ea14; the page displays the author as hanli. The official description states: it fetches popular news and articles via Tencent Cloud SearchPro, supports web-wide or site-specific searches, and can output JSON, CSV, TXT, or MD. Use this Skill when you need hot topics, trending discussions, or keyword-based article search powered by Tencent Cloud.
The SkillHub-side tag is requires_api_key=true, consistent with the SKILL.md in the package: you must configure Tencent Cloud SecretId and SecretKey. The package metadata also points to the upstream repository at https://github.com/neuhanli/skills/tree/main/TencentHotSearch-skill, so you can review scripts and configuration instructions yourself.
Core Features¶
The following capabilities come from the SkillHub description and the installed package’s SKILL.md (v1.0.1):
- Multi-keyword search: supports 1–5 keywords in a single query.
- Web-wide or site-specific search: search across the web without specifying a site, or restrict to a site with
-s(documentation examples includeqq.com,news.qq.com). - Multiple search modes: Mode
0natural search results (default),1multimodal VR,2hybrid results; some filter parameters are not valid in Mode 1—refer to the docs. - Time and industry filtering: supports
--from-time/--to-time(Unix timestamps in seconds);--industryoptions includegov/news/acad/finance(marked as a Premium capability in the docs). - Structured result fields: title, summary, dynamic summary, source, publish time, original link, relevance score, image list, and more.
- Multiple output formats:
json/csv/txt/md, defaultmd; a defaultoutput_dircan be set inconfig.json. - Integrated official API: domain
wsa.tencentcloudapi.com, version2025-05-08, API name SearchPro.
Runtime requirements: Python 3.7+; core logic uses the standard library, CSV export optionally uses pandas>=2.0.0 (see requirements.txt).
Installation and Activation¶
Install into an Agent via SkillHub CLI¶
First ensure skillhub is installed on your machine (if not, follow the SkillHub installation instructions and run the official installation script). When installing the Skill, you must use --dir to point to the current Agent’s skills directory; otherwise, it will default to ./skills/ and may not be recognized.
In Cursor, the skills directory is typically:
~/.cursor/skills/
Install command (consistent with the SkillHub page prompt, with the @ prefix in the identifier):
skillhub install @user_5b28ea14/tencenthotsearch-skill --dir ~/.cursor/skills/
For Claude Code, the common path is ~/.claude/skills/; for Codex, it is ~/.codex/skills/ or .agents/skills/ within a project. Replace the --dir above with the corresponding directory; the installation steps are identical.
You can also send the Agent the following prompt and have it complete the installation per the official docs:
Please install `@user_5b28ea14/tencenthotsearch-skill` according to https://skillhub.cn/install/skillhub.md.
Configure Tencent Cloud credentials¶
After entering the Skill directory, edit config.json (the package provides template fields):
{
"secret_id": "YOUR_TENCENT_CLOUD_SECRET_ID",
"secret_key": "YOUR_TENCENT_CLOUD_SECRET_KEY",
"output_dir": "./output"
}
SKILL.md notes that you need to enable “Online Search” in the Tencent Cloud console and obtain API keys; more detailed field descriptions are in the package’s CONFIG.md. Do not commit config.json to your repository.
Python dependencies (command-line script)¶
If you want to run the packaged scripts/tencent_hotsearch.py directly, execute in the Skill root directory:
pip install -r requirements.txt
Typical Usage¶
In-agent conversation¶
Per the official description, enable this Skill when users request any of the following; the Agent will invoke the script or an equivalent workflow according to SKILL.md:
- Get hot news or trending topics in a domain;
- Search the latest articles by keyword;
- Search within a specified site (e.g., Tencent-affiliated sites);
- Apply time or industry filters and save results as MD/JSON/CSV, etc.
Reproducible CLI examples¶
The following commands are excerpted from the package’s SKILL.md; run them from the Skill root directory with config.json configured.
Web-wide search, return 10 results, default MD:
python scripts/tencent_hotsearch.py "AI" "machine learning" -l 10
Limit to a specific site:
python scripts/tencent_hotsearch.py "AI" "machine learning" -s qq.com -l 10
Specify JSON output file:
python scripts/tencent_hotsearch.py "AI" "machine learning" -o results.json -f json
Time-range filtering (example timestamps from the docs):
python scripts/tencent_hotsearch.py "AI" --from-time 1704067200 --to-time 1706745600
Common flags include -l (result count; options: 10/20/30/40/50), -m (mode 0/1/2), -o / -f (output path and format), --print (print to terminal).
Suitable Scenarios and Cautions¶
Who it’s for
- Developers already using or planning to use Tencent Cloud SearchPro who want an Agent to handle the end-to-end “search hot topics → save results → further analysis” workflow;
- Scenarios requiring retrieval results to be fixed as JSON/CSV for downstream data-analysis pipelines.
Limitations and Notes
- You must provide API keys: calls will fail without valid
secret_id/secret_key; use least-privilege keys, rotate them periodically, and run in an isolated environment. - Network and file write permissions:
SKILL.mdstates the Skill needs access towsa.tencentcloudapi.comand to write results into the configured output directory. - Metadata and documentation: the package’s
SKILL.mdmentions that some registration metadata previously stated “no credentials required,” which conflicts with the actualconfig.jsonrequirement; treat the in-package documentation andrequires_api_key=trueas authoritative. - Premium features: industry filtering, some result caps, dynamic summaries, etc., depend on Tencent Cloud plans and the
SKILL.mddescription. - SkillHub statistics (at time of fetch): rating 100000, ~990 downloads, 24 installs; figures change as the SkillHub page updates.
Conclusion¶
tencenthotsearch-skill brings Tencent Cloud SearchPro search capabilities into a general SKILL.md workflow: installation and triggering on the Agent side via SkillHub, and reproducible search and export via config.json and scripts/tencent_hotsearch.py on the execution side. Official entry points:
- SkillHub page: https://www.skillhub.cn/skills/user_5b28ea14/tencenthotsearch-skill
- API identifier page: https://api.skillhub.cn/user_5b28ea14/tencenthotsearch-skill