Token导航 LogoToken导航TokenDH.com
待分类需要联网github未标认证来源可访问许可证需确认审计通过

algo-social-virality算法社交病毒式传播

Agent Skill

algo-social-virality 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

367

周安装

15

GitHub Stars

125

下载量

119
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:algo-social-virality(算法社交病毒式传播)
来源仓库:https://github.com/asgard-ai-platform/skills
仓库路径:skills/algo-social-virality
安装命令:
npx skills add https://github.com/asgard-ai-platform/skills --skill algo-social-virality
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/asgard-ai-platform/skills --skill algo-social-virality

简介

algo-social-virality 运用 SIR 等传播模型预测内容扩散趋势与病毒阈值。

  • 适用于估算 campaign 能否自发传播或复盘历史爆款事件的场景。
  • 关键参数为 R0(基本再生数),求解常微分方程组模拟人群状态流转。
  • 需从 GitHub 仓库安装,使用前应评估是否具备时序数据处理能力。
  • 不预测个体行为,仅提供群体层面传播概率的宏观视角。

SKILL.md

Viral Spread Models

Overview

Compartmental models (SIR, SIS, SEIR) model how content/information spreads through populations. Susceptible → Infected → Recovered mirrors unaware → sharing → stopped sharing. Key metric: R0 (basic reproduction number). Solves as ODEs in O(T × N) for T timesteps, N compartments.

When to Use

Trigger conditions:

  • Modeling how content spreads through a social network
  • Estimating whether a campaign will achieve viral threshold
  • Analyzing post-hoc spread dynamics of viral events

When NOT to use:

  • When predicting individual user behavior (use influence scoring)
  • When measuring engagement metrics (use engagement rate calculator)

Algorithm

IRON LAW: Viral Spread Occurs ONLY When R0 > 1
R0 = transmission rate (β) / recovery rate (γ).
Below R0 = 1, content dies out regardless of initial seed size.
Above R0 = 1, exponential growth phase begins before saturation.
Design interventions (seeding, incentives) to push R0 above threshold.

Phase 1: Input Validation

Define: population size (N), initial seed size (I₀), transmission rate (β — probability of sharing upon exposure), recovery rate (γ — rate of losing interest). Gate: Parameters non-negative, β and γ estimated from historical data or assumed.

Phase 2: Core Algorithm

SIR Model: dS/dt = -βSI/N, dI/dt = βSI/N - γI, dR/dt = γI

  1. Initialize: S=N-I₀, I=I₀, R=0
  2. Iterate using Euler method or RK4 at discrete timesteps
  3. Track peak infected (maximum simultaneous sharers) and total ever-infected

SIS variant: No recovery to immune state — recovered become susceptible again (recurring content).

Phase 3: Verification

Check: S+I+R = N at all timesteps (conservation). Peak and final sizes plausible for given R0. Gate: Population conserved, dynamics consistent with R0.

Phase 4: Output

Return time series of compartments and summary metrics.

Output Format

{
  "time_series": [{"t": 0, "S": 9900, "I": 100, "R": 0}],
  "summary": {"R0": 2.5, "peak_infected": 3200, "peak_day": 12, "total_infected": 8500},
  "metadata": {"model": "SIR", "beta": 0.5, "gamma": 0.2, "population": 10000}
}

Examples

Sample I/O

Input: N=10000, I₀=10, β=0.3, γ=0.1 (R0=3.0) Expected: Exponential growth, peak ~4000 at day ~15, total infected ~9500

Edge Cases

InputExpectedWhy
R0 = 0.8Rapid decayBelow threshold, dies out
I₀ = 1Slower start but same eventual dynamicsSingle seed takes longer to ignite
β = γ (R0=1)Linear, no growthCritical threshold, endemic equilibrium

Gotchas

  • Homogeneous mixing assumption: SIR assumes everyone interacts equally. Real networks have hubs, clusters, and weak ties. Use network-based models for realistic spread.
  • Parameter estimation: β and γ are hard to estimate for social content. Use early spread data to fit parameters, then project.
  • Content ≠ disease: Unlike diseases, content sharing is voluntary and influenced by content quality, platform algorithms, and trends. Models give rough dynamics, not precise predictions.
  • Platform algorithms: Social media algorithms amplify or suppress content. The "transmission rate" is partly determined by the platform, not just user behavior.
  • Temporal dynamics: Content virality often has a much shorter lifecycle than disease (hours-days vs weeks-months). Adjust timescales accordingly.

References

  • For network-based epidemic models, see references/network-sir.md
  • For parameter estimation from early data, see references/parameter-fitting.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.48%
按下载量换算45

Claude

29.08%
按下载量换算35

Cursor

17.86%
按下载量换算21

Gemini CLI

8.23%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills