Tencent News Content Subscription
Paste the following prompt into your AI chat to install this skill:
Please install @tencent-adm/tencent-news according to https://skillhub.cn/install/skillhub.md.
About this skill
The Problem It Solves
Developers and data enthusiasts need to programmatically fetch structured content from Tencent News for analysis, archiving, or integration into other applications. Manually scraping web pages is costly to maintain, prone to breakage, and requires dealing with anti-scraping mechanisms. This skill provides a standardized solution via a Command-Line Interface (CLI), enabling users to obtain data through simple commands instead of complex code.
How It Works
The core of this skill is tencent-news-cli, a command-line tool that encapsulates the data-fetching logic. The skill itself defines a standardized interaction protocol with the CLI, primarily in two phases:
-
Environment Readiness Check & Configuration
- By executing the
cli-statescript, it retrieves the current environment status: whether the CLI exists, if an update is needed, and if the API Key is configured. - Based on this status, the intelligent agent guides the user through necessary steps sequentially: installing or updating the CLI, and configuring the API Key. All configuration actions are executed via the
run-cliscript, ensuring operational consistency and traceability. - Core Constraint: Obtaining the API Key is a manual user action; the agent never automatically opens browsers, clarifying the human-machine responsibility boundary.
- By executing the
-
Fetching & Presenting News Content
- The
helpcommand must be executed first to get the current list of all supported subcommands and parameters. This is crucial for avoiding outdated command errors. - User intent (e.g., "get trending", "fetch finance news") is mapped to one or more CLI subcommands.
- All actual business commands (e.g., querying news) are executed strictly through the
run-cliscript, with parameters constructed entirely based on thehelpoutput. Hardcoding is prohibited. - The JSON results returned by the CLI are rendered into a readable list format, including structured fields like title, source, time, summary, and original article link.
- The
Scope and Important Notes
- Hard Dependency on CLI & API Key: This skill cannot bypass the CLI to fetch news and requires a valid API Key. The availability of the CLI is a prerequisite for all functions.
- Version Coupling & Strict Compliance: CLI updates may change subcommands at any time. You must execute
helpat each interaction to get the latest command list. Any assumption based on memory will likely lead to failure. - Strict Error Handling Philosophy: When a CLI command fails (e.g., permission errors, network issues), the skill guides the user to handle specific errors but never degrades to alternative sources like web search. This ensures the purity and auditability of the data source.
- Platform Differences: The skill uses adapted scripts (
.sh/.ps1) to handle differences between macOS/Linux and Windows, but the underlying logic is consistent. Users must ensure they are running the script for the correct platform.
Use Cases
- A market analyst needs to fetch the latest headlines from the 'finance' and 'tech' categories of Tencent News daily to draft an industry trend briefing.
- A content operator needs to monitor updates to the 'trending' news list to plan related special topics in a timely manner.
- A researcher needs to batch collect news titles and summaries on a specific topic (e.g., 'AI') to train a text analysis model.
- A development team needs to automatically fetch news data via a script to integrate it into an internal data dashboard for visualization.
Best For
- A market analyst responsible for monitoring competitor dynamics: needs to quickly fetch structured titles and sources from multiple news categories, saving time on manual browsing.
- An editor who produces daily news summaries: needs to automate the scraping of the trending list to confirm today's key topics.
- A developer building a public opinion monitoring system: needs a reliable command-line interface to seamlessly integrate news data streams into a backend pipeline.
- A student or scholar researching social media dissemination patterns: needs to collect samples of news under specific topics for content analysis.
Related Skills
Transforms LLMs into knowledge base maintainers to incrementally build and maintain a persistent, interlinked Markdown wiki.
A mindmap generation skill specialized in distilling complex information into structured knowledge frameworks for easy understanding and reuse.
BookBone distills books into operational thinking frameworks, extracting core mental models, methodologies, and concepts into structured knowledge tools.
A Python function for local academic paper retrieval engine, supporting multi-platform parallel search, export, and citation analysis, with built-in classic paper index.