Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问许可证需确认审计通过

algo-forecast-prophet算法预测先知

Agent Skill

algo-forecast-prophet 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

376

周安装

16

GitHub Stars

125

下载量

132
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

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

简介

algo-forecast-prophet 基于 Meta 的 Prophet 模型,擅长分解时间序列中的趋势、季节性和节假日效应。

  • 广泛应用于电商流量、零售销售等每日或每周粒度的业务指标预测任务。
  • 自动处理缺失值与异常点,无需深度时序专业知识即可生成合理预测区间。
  • 安装方式:GitHub 仓库;适用于标准日历周期场景,但对非均匀采样或超高频数据效果受限。
  • 注意:不适合亚小时级高频数据或复杂外部变量建模,需配合领域知识调参。

SKILL.md

Prophet Forecasting

Overview

Prophet (Meta) decomposes time series into trend + seasonality + holidays + error. Uses an additive (or multiplicative) model fitted with Stan. Handles missing data, outliers, and holiday effects natively. Designed for business time series at daily/weekly granularity.

When to Use

Trigger conditions:

  • Forecasting business metrics (sales, traffic, engagement) at daily/weekly frequency
  • Data with strong seasonal patterns and known holiday effects
  • Need quick, reasonable forecasts without deep time series expertise

When NOT to use:

  • For high-frequency data (sub-hourly) — Prophet is designed for daily+
  • When you need causal/explanatory models (Prophet is descriptive)
  • For very short time series (< 2 seasonal cycles)

Algorithm

IRON LAW: Prophet Is an Additive Regression Model, NOT Classical Time Series
y(t) = g(t) + s(t) + h(t) + ε(t)
- g(t): piecewise linear or logistic trend with automatic changepoints
- s(t): Fourier series for yearly/weekly/daily seasonality
- h(t): user-specified holiday effects
Prophet does NOT model autocorrelation in residuals. If residuals are
autocorrelated, the uncertainty intervals will be too narrow.

Phase 1: Input Validation

Prepare DataFrame with columns: ds (datestamp), y (metric). Add regressor columns if available. Specify: country holidays, custom holidays, growth type. Gate: Data formatted, minimum 2 full seasonal cycles.

Phase 2: Core Algorithm

  1. Choose growth model: 'linear' (default) or 'logistic' (with cap and floor)
  2. Set seasonality: yearly (default), weekly (default), custom (e.g., monthly)
  3. Add holidays: country built-ins + custom events (promotions, launches)
  4. Fit model: m = Prophet(); m.fit(df)
  5. Generate future DataFrame and predict: m.predict(future)

Phase 3: Verification

Check: forecast components (trend, seasonality, holidays) are intuitive. Cross-validate: use Prophet's built-in cross_validation() with rolling windows. Evaluate MAPE, RMSE. Gate: MAPE acceptable for use case, components pass visual inspection.

Phase 4: Output

Return forecast with decomposed components.

Output Format

{
  "forecasts": [{"ds": "2025-04-15", "yhat": 1200, "yhat_lower": 1050, "yhat_upper": 1350}],
  "components": {"trend": "upward_3pct", "yearly_seasonality": "peak_in_december", "weekly_seasonality": "low_on_weekends"},
  "metadata": {"mape": 0.08, "training_days": 730, "forecast_days": 90}
}

Examples

Sample I/O

Input: 2 years of daily website traffic with Christmas spike and summer dip Expected: Forecast captures: upward trend, weekly pattern (weekday > weekend), annual pattern (Christmas spike, summer dip).

Edge Cases

InputExpectedWhy
Many missing daysProphet handles nativelyUnlike ARIMA, no imputation needed
Sudden trend changeChangepoint detected automaticallyProphet's key feature vs ARIMA
Multiplicative seasonalitySet seasonality_mode='multiplicative'When seasonal amplitude grows with trend

Gotchas

  • Default changepoint sensitivity: Prophet may over/under-detect trend changes. Tune changepoint_prior_scale (default 0.05): higher = more flexible, lower = smoother.
  • Flat forecasts: If trend changepoints are too conservative, long-range forecasts can be unrealistically flat. Increase flexibility or specify growth cap.
  • Holiday effects require specification: Prophet doesn't discover holidays automatically. You must provide a holiday DataFrame — missing holidays will not be modeled.
  • Not for causal inference: Prophet finds patterns but doesn't explain why. Adding a regressor shows correlation, not causation.
  • Uncertainty intervals: Based on historical trend change variance, not residual autocorrelation. May be too narrow if residuals are structured.

References

  • For Prophet hyperparameter tuning guide, see references/prophet-tuning.md
  • For cross-validation best practices, see references/prophet-cv.md

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.19%
按下载量换算46

Claude

31.47%
按下载量换算42

Cursor

17.45%
按下载量换算23

Gemini CLI

9.78%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

来源信息

继续浏览同类 Skills