AgentSkillsCN

process_news_digest

端到端工作流,用于处理每日新闻摘要:确保期刊内容完整,清理链接,添加标签并进行有序归类。

SKILL.md
--- frontmatter
name: process_news_digest
description: End-to-end workflow to process daily news digest: ensures journal, cleans links, tags, and organizes them.

Process News Digest Workflow

This is the main skill that chains all other skills to perform the full nightly news digest workflow.

Steps

  1. Ensure Daily Journal Exists

    • usage: ensure_daily_journal(date=CURRENT_DATE)
    • Purpose: Make sure the destination file journals/YYYY_MM_DD.md exists and has the template.
  2. Clean Temp Links (Formatting)

    • usage: Run clean_temp_links script on pages/TempLinks.md.
    • Purpose: Remove **HH:MM**, decode URLs.
    • Command: python3 .agent/skills/clean_temp_links/clean_links.py "{workspace_root}/pages/TempLinks.md"
  3. Clean Link Titles

    • usage: Run clean_link_titles script on pages/TempLinks.md.
    • Purpose: Remove suffixes like | TechNews, - MoneyDJ.
    • Command: python3 .agent/skills/clean_link_titles/clean_titles.py "{workspace_root}/pages/TempLinks.md"
  4. Add Hashtags

    • usage: add_hashtags LLM skill on pages/TempLinks.md.
    • Purpose: Analyze content and append tags (#AI, #TSLA, etc.).
  5. Organize to Journal

    • usage: organize_links_to_journal LLM skill.
    • Input: pages/TempLinks.md
    • Target: journals/YYYY_MM_DD.md
    • Purpose: Sort links into sections and move them to today's journal.
  6. Clear Temp Links

    • usage: Run clear_file script on pages/TempLinks.md.
    • Purpose: After successful move, clear TempLinks.md.
    • Command: python3 .agent/skills/clear_file/clear_file.py "{workspace_root}/pages/TempLinks.md"

Usage

Run this skill to execute the entire pipeline.