yanhua1010/self-media-content-workflow / skills/self-media-trend-radar
self-media-trend-radar
Verified安全追踪热点、研究关键词和拆解竞品内容,并将结果转成原创选题和证据包。用于用户要求找热点、看趋势、分析爆款、研究竞品账号、拆标题或开头、比较内容结构、发现评论需求、判断时效窗口,对比同一话题在海外与国内平台的热度差,以及为产品寻找值得参与的 Reddit 子版块和讨论帖。只做公开信息研究和只读采集,不自动互动、发布或使用主账号登录态抓取竞品。
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 3.4 KB |
| agents/openai.yaml | config | 268 B |
| references/overseas-compare.md | markdown | 4.1 KB |
| references/reddit-discovery.md | markdown | 2.5 KB |
| references/research-safety.md | markdown | 1.2 KB |
| scripts/overseas_compare.py | script | 299 B |
| scripts/radar/__init__.py | script | 59 B |
| scripts/radar/__main__.py | script | 4.9 KB |
| scripts/radar/client.py | script | 2.9 KB |
| scripts/radar/report.py | script | 1.8 KB |
| scripts/radar/score.py | script | 2.5 KB |
| scripts/radar/sources.py | script | 7.2 KB |
| scripts/tests/__init__.py | script | 0 B |
| scripts/tests/test_radar.py | script | 3.7 KB |
| scripts/topics.example.toml | config | 604 B |
scripts/radar/report.py
View on GitHub"""Render the daily brief as Markdown."""
from __future__ import annotations
import time
from .score import SideStats, TopicGap
SIDE_LABEL = {"global": "海外(X / YouTube / Reddit)", "cn": "国内(小红书 / 抖音 / B站)"}
def _date(ts: int | None) -> str:
return time.strftime("%Y-%m-%d", time.localtime(ts)) if ts else "—"
def _metrics(m: dict) -> str:
return " · ".join(f"{k} {v:,}" for k, v in m.items() if v)
def _side(label: str, s: SideStats) -> list[str]:
lines = [f"**{label}**:热度 {s.heat},窗口内 {s.fresh_count} 条,最早 {_date(s.first_seen)}", ""]
for it in s.top:
title = it.title.replace("\n", " ").replace("|", "/")[:80] or "(无标题)"
lines.append(f"- [{it.platform}] [{title}]({it.url}) — {it.author},{_date(it.published_at)},{_metrics(it.metrics)}")
if not s.top:
lines.append("- 窗口内没有结果")
return lines + [""]
def render(gaps: list[TopicGap], window_days: int, spent_usd: float, date: str) -> str:
gaps = sorted(gaps, key=lambda g: abs(g.gap), reverse=True)
out = [
f"# 海外对照 · {date}",
"",
f"窗口:最近 {window_days} 天 · 本次花费 ${spent_usd:.4f}",
"",
"热度 = 前 5 条内容互动量的 log10 均值,差 1 分约等于热 10 倍。热度差 = 海外热度 − 国内热度。",
"",
"| 话题 | 海外热度 | 国内热度 | 热度差 | 判断 |",
"|---|---|---|---|---|",
]
for g in gaps:
out.append(f"| {g.topic} | {g.global_side.heat} | {g.cn_side.heat} | {g.gap:+} | {g.verdict} |")
out.append("")
for g in gaps:
out += [f"## {g.topic}", "", f"{g.verdict}(热度差 {g.gap:+})", ""]
out += _side(SIDE_LABEL["global"], g.global_side)
out += _side(SIDE_LABEL["cn"], g.cn_side)
return "\n".join(out)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |