历史上的今天——展示今日历史上发生的重大事件,中英双语精美时间线呈现。Today in history: significant events on this date, bilingual EN/CN visual timeline. Trigger on:历史上的今天、今天发生了什么、大事记、today in history、this day in history、on this day、historical events today。
Generate a beautiful visual timeline of significant historical events that happened on today's date.
Workflow
1. Get today's date — Determine the month and day.
Search for events — Use web_search to find 5-6 notable events that happened on this date across different centuries and categories. Query: "on this day [month] [day] history events". Try to cover: science/tech, politics, culture, sports, and notable births/deaths.
Curate and translate — Select the 5 most interesting/diverse events. Write each as a concise 1-2 sentence description in both English and Chinese.
Generate the visual — Create a single-file HTML artifact.
Visual Design Requirements
Create a vertical timeline layout, full-viewport:
- Layout: Vertical timeline with alternating left-right event cards. Timeline line runs down the center. Year markers on the timeline.
Typography: Use a distinguished font pair — a bold condensed display font for years (e.g., Oswald, Bebas Neue) and an elegant body font for descriptions (e.g., Source Serif Pro, Lora).
Color scheme: Deep, rich palette — think aged paper tones, or a modern editorial look with dark backgrounds and gold/amber accents. Rotate themes.
Event cards: Each card has: Year (large), Event title (bold), Description (EN + CN), and a category icon (emoji: 🔬 science, 🏛️ politics, 🎨 culture, ⚽ sports, 👤 people).
Animation: Cards should fade and slide in on load with staggered delays. Timeline line draws itself downward.
Header: "历史上的今天 / Today in History" with today's full date (e.g., "April 2 / 4月2日").
Ad-ready zone: <div id="ad-slot-middle"> between 3rd and 4th event (min-height 90px, centered). <div id="ad-slot-bottom"> at page bottom.
Footer: "Powered by ClawCode" at bottom.
Content Guidelines
- Mix different centuries — don't cluster in one era
Include at least one event relevant to China or Asia
Include at least one science/technology event
Keep descriptions concise but vivid — make history feel alive
Output
Save as /mnt/user-data/outputs/daily-history.html and present to user.
推送管理
CODEBLOCK0
支持渠道:telegram / feishu / slack / INLINECODE8
技能名称: daily-history
详细描述:
Today in History / 历史上的今天
生成一份精美的视觉时间线,展示今日发生的重大历史事件。
工作流程
1. 获取今日日期 — 确定月份和日期。
搜索事件 — 使用 web_search 查找发生在今日、跨越不同世纪和类别的5-6个显著事件。查询词:on this day [month] [day] history events。尽量涵盖:科学/技术、政治、文化、体育以及著名人物出生/逝世。
- Added scripts for managing morning and evening push notifications.
- Introduced push-toggle.js to enable/disable and check status of daily pushes per user.
- Push management supports custom time and channel (telegram, feishu, slack, discord).
- Updated documentation with usage instructions for push control.