时序预测工具
Prophet
by ckchzh
Forecast time-series data with seasonal trend modeling. Use when predicting sales, checking model accuracy, converting frequencies, analyzing growth.
安装
claude skill add --url github.com/openclaw/skills/tree/main/skills/ckchzh/prophet文档
Prophet
A utility toolkit for running, checking, converting, analyzing, and generating time-series forecasts. Record predictions, compare models, batch-process data, and generate reports — all from the command line with persistent local storage.
Quick Start
bash scripts/script.sh <command> [args...]
Commands
Core Operations
run <input>— Execute and record a forecast run (without args: show recent runs)check <input>— Log a validation or accuracy check (without args: show recent checks)convert <input>— Record a data conversion or frequency change (without args: show recent conversions)analyze <input>— Log an analysis finding (without args: show recent analyses)generate <input>— Record generated output such as forecast data (without args: show recent generations)preview <input>— Log a preview or dry-run result (without args: show recent previews)
Batch & Comparison
batch <input>— Record a batch processing job (without args: show recent batch entries)compare <input>— Log comparison data between models or runs (without args: show recent comparisons)
Configuration & Reporting
export <input>— Record an export operation (without args: show recent exports)config <input>— Log a configuration change (without args: show recent config entries)status <input>— Record a status observation (without args: show recent status entries)report <input>— Create a summary report entry (without args: show recent reports)
Utilities
stats— Show summary statistics across all entry typesexport <fmt>— Export all data (formats:json,csv,txt) via the built-in export functionsearch <term>— Search across all log files for a keywordrecent— Show the 20 most recent activity log entriesstatus— Display health check: version, data dir, entry count, disk usage (via built-in status function)help— Show available commandsversion— Print version (v2.0.0)
Each command accepts free-text input. When called without arguments, it displays the most recent 20 entries for that category.
Note: The script has both a
statussubcommand (for recording status notes) and a built-in_statushealth-check function. Similarly,exportserves as both a data-recording subcommand and a built-in export-to-file function.
Data Storage
All data is stored as plain-text log files in:
~/.local/share/prophet/
├── run.log # Forecast run records
├── check.log # Validation and accuracy checks
├── convert.log # Data conversion records
├── analyze.log # Analysis findings
├── generate.log # Generated forecast data
├── preview.log # Preview and dry-run results
├── batch.log # Batch processing jobs
├── compare.log # Model comparison data
├── export.log # Export operation records
├── config.log # Configuration changes
├── status.log # Status observations
├── report.log # Summary reports
└── history.log # Unified activity history
Each entry is stored as YYYY-MM-DD HH:MM|<input> — one line per record. The history.log file tracks all commands chronologically.
Requirements
- Bash 4.0+ with
set -euo pipefail - Standard Unix utilities:
date,wc,du,tail,grep,sed,cat,basename - No external dependencies, no network access required
- Write access to
~/.local/share/prophet/
When to Use
- Tracking forecast experiments — Use
runandcheckto log forecast runs and validation results for systematic comparison over time - Converting time-series frequencies — Use
convertto document frequency changes (daily → weekly, hourly → daily) and their impact on predictions - Batch forecasting pipelines — Use
batchto record batch jobs across multiple datasets or product lines, thencompareto contrast results - Analyzing seasonal trends — Use
analyzeto log observations about seasonality, growth patterns, and anomalies discovered during data exploration - Building forecast reports — Use
reportandexport jsonto generate structured summaries for stakeholders, combining run results with configuration notes
Examples
# Run a forecast and record it
prophet run "Q3 2025 sales forecast: 12,500 units, MAPE 4.2%"
# Log a validation check
prophet check "Holdout test: predicted 8,200 vs actual 8,450, error 2.96%"
# Record a frequency conversion
prophet convert "Converted daily sales to weekly aggregates for smoother trend"
# Analyze seasonal patterns
prophet analyze "Strong weekly seasonality detected: peaks Mon/Tue, trough Sat/Sun"
# Compare two model configurations
prophet compare "Multiplicative vs additive seasonality: multiplicative MAPE 3.1% vs 4.7%"
# View summary statistics
prophet stats
# Export all data as CSV
prophet export csv
# Search for entries about a specific metric
prophet search "MAPE"
Configuration
Set PROPHET_DIR environment variable to override the default data directory. Default: ~/.local/share/prophet/
Output
All commands output to stdout. Redirect to a file with prophet <command> > output.txt. Export formats (json, csv, txt) write to the data directory and report the output path and file size.
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
相关 Skills
Claude API
by anthropic
Build, debug, and optimize Claude API / Anthropic SDK apps. Apps built with this skill should include prompt caching. Also handles migrating existing Claude API code between Claude model versions (4.5 → 4.6, 4.6 → 4.7, retired-model replacements). TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`; user asks for the Claude API, Anthropic SDK, or Managed Agents; user adds/modifies/tunes a Claude feature (caching, thinking, compaction, tool use, batch, files, citations, memory) or model (Opus/Sonnet/Haiku) in a file; questions about prompt caching / cache hit rate in an Anthropic SDK project. SKIP: file imports `openai`/other-provider SDK, filename like `*-openai.py`/`*-generic.py`, provider-neutral code, general programming/ML.
并行代理
by axelhu
Use when facing 2 or more independent tasks that can be worked on without shared state - dispatches parallel subagents using sessions_spawn for concurrent investigation and execution, adapted for OpenClaw
高光制作器
by bwbernardweston18
>