界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

cctv-news-fetcher

cctv-news-fetcher

【效率与协作】Fetch and parse news highlights from CCTV News Broadcast (Xinwen Lianbo) for a given date.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: cctv-news-fetcher description: Fetch and parse news highlights from CCTV News Broadcast (Xinwen Lianbo) for a given date. user-invocable: true

CCTV News Fetcher

This skill allows you to fetch summary titles and content from the CCTV News Broadcast for any specific date.

Usage

You can ask the agent to:

  • "Fetch CCTV news for 20250210"
  • "Give me the news highlights for yesterday"

Instructions

When the user asks for news from a specific date:

  1. Format the date as YYYYMMDD. If the user says "yesterday" or "today", calculate the date relative to the current local time.
  2. Execute the script at {baseDir}/scripts/news_crawler.js using bun or node.
    • Command: bun {baseDir}/scripts/news_crawler.js <YYYYMMDD>
  3. Parse the JSON output and summarize it for the user. Group news by "Domestic" and "International" if possible based on titles, or just list the highlights.

Configuration

The skill depends on node-html-parser. Ensure bun is installed in the environment.

我的收藏