[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6X9WSHY020TK0TDZRTNZZK4":3,"skill-same:01M6X9WSHY020TK0TDZRTNZZK4":179},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":6,"ownerHtmlUrl":53,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":54,"install":55,"resources":68},"01M6X9WSHY020TK0TDZRTNZZK4","timesfm-forecasting",null,"Zero-shot time series forecasting with Google's TimesFM foundation model. Use this skill when forecasting ANY univariate time series — sales, sensor readings, stock prices, energy demand, patient vitals, weather, or scientific measurements — without training a custom model. Supports both basic forecasting and advanced covariate forecasting (XReg) with dynamic and static exogenous variables. Automatically checks system RAM\u002FGPU before loading the model, validates dataset fit before processing, supports CSV\u002FDataFrame\u002Farray inputs, and returns point forecasts with calibrated prediction intervals. Includes a preflight system checker script that MUST be run before first use to verify the machine can load the model and handle your specific dataset.","gerald-ica\u002Fopencode-config-snapshot","gerald-ica","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F237541018?v=4","01M6NFATQ9M77J6PZF206YKZ8E","Gerald Welly","01M6X937M942ARP9QYR8ADNT85",2,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"forecasting","timesfm forecasting","advanced","prediction","when","sensor","energy","static","vitals","prices","checker","Variables","training","loading","processing","dataset","patient","stock","time","model","2026-11-10 10:12:30",false,"---\nname: timesfm-forecasting\ndescription: >\n  Zero-shot time series forecasting with Google's TimesFM foundation model. Use this\n  skill when forecasting ANY univariate time series — sales, sensor readings, stock prices,\n  energy demand, patient vitals, weather, or scientific measurements — without training a\n  custom model. Supports both basic forecasting and advanced covariate forecasting (XReg)\n  with dynamic and static exogenous variables. Automatically checks system RAM\u002FGPU before\n  loading the model, validates dataset fit before processing, supports CSV\u002FDataFrame\u002Farray\n  inputs, and returns point forecasts with calibrated prediction intervals. Includes a\n  preflight system checker script that MUST be run before first use to verify the machine\n  can load the model and handle your specific dataset.\nlicense: Apache-2.0\nmetadata:\n  author: Clayton Young (@borealBytes)\n  version: \"1.0.0\"\n---\n\n# TimesFM Forecasting\n\n## Overview\n\nTimesFM (Time Series Foundation Model) is a pretrained decoder-only foundation model\ndeveloped by Google Research for time-series forecasting. It works **zero-shot** — feed it\nany univariate time series and it returns point forecasts with calibrated quantile\nprediction intervals, no training required.\n\nThis skill includes a **mandatory preflight system checker** that verifies RAM, GPU memory,\nand disk space before the model is ever loaded so the agent never crashes the user's machine.\n\n> **Key numbers**: TimesFM 2.5 uses 200M parameters (~800 MB on disk, ~1.5 GB in RAM on\n> CPU, ~1 GB VRAM on GPU). The archived v1\u002Fv2 500M-parameter model needs ~32 GB RAM.\n> Always run the system checker first.\n\n## When to Use This Skill\n\nUse this skill when:\n\n- Forecasting **any univariate time series** (sales, demand, sensor, vitals, price, weather)\n- You need **zero-shot forecasting** without training a custom model\n- You want **probabilistic forecasts** with calibrated prediction intervals (quantiles)\n- You have time series of **any length** (the model handles 1–16,384 context points)\n- You need to **batch-forecast** hundreds or thousands of series efficiently\n- You want a **foundation model** approach instead of hand-tuning ARIMA\u002FETS parameters\n- You need **covariate forecasting** with exogenous variables (price, promotions, holidays, day-of-week effects) → use `forecast_with_covariates()` (TimesFM 2.5 + `pip install timesfm[xreg]`)\n\n\nDo **not** use this skill when:\n\n- You need classical statistical models with coefficient interpretation → use `statsmodels`\n- You need time series classification or clustering → use `aeon`\n- You need multivariate vector autoregression or Granger causality → use `statsmodels`\n- Your data is tabular (not temporal) → use `scikit-learn`\n- You cannot install optional dependencies → XReg requires scikit-learn and JAX\n\n\n> **Note on Anomaly Detection**: TimesFM does not have built-in anomaly detection, but you\n> can use the **quantile forecasts as prediction intervals** — values outside the 90% CI\n> (q10–q90) are statistically unusual. See `examples\u002Fanomaly-detection\u002F` for a full example.\n\n## ⚠️ Mandatory Preflight: System Requirements Check\n\n**CRITICAL — ALWAYS run the system checker before loading the model for the first time.**\n\n```bash\npython scripts\u002Fcheck_system.py\n```\n\nThis script checks:\n\n1. **Available RAM** — warns if below 4 GB, blocks if below 2 GB\n2. **GPU availability** — detects CUDA\u002FMPS devices and VRAM\n3. **Disk space** — verifies room for the ~800 MB model download\n4. **Python version** — requires 3.10+\n5. **Existing installation** — checks if `timesfm` and `torch` are installed\n\n> **Note:** Model weights are **NOT stored in this repository**. TimesFM weights (~800 MB)\n> download on-demand from HuggingFace on first use and cache in `~\u002F.cache\u002Fhuggingface\u002F`.\n\n```mermaid\nflowchart TD\n    start[\"? Run check_system.py\"] --> ram{\"RAM ≥ 4 GB?\"}\n    ram -->|\"Yes\"| gpu{\"GPU available?\"}\n    ram -->|\"No (2-4 GB)\"| warn_ram[\"⚠️ Warning: tight RAM\u003Cbr\u002F>CPU-only, small batches\"]\n    ram -->|\"No (\u003C 2 GB)\"| block[\"? BLOCKED\u003Cbr\u002F>Insufficient memory\"]\n    warn_ram --> disk\n    gpu -->|\"CUDA \u002F MPS\"| vram{\"VRAM ≥ 2 GB?\"}\n    gpu -->|\"CPU only\"| cpu_ok[\"✅ CPU mode\u003Cbr\u002F>Slower but works\"]\n    vram -->|\"Yes\"| gpu_ok[\"✅ GPU mode\u003Cbr\u002F>Fast inference\"]\n    vram -->|\"No\"| cpu_ok\n    gpu_ok --> disk{\"Disk ≥ 2 GB free?\"}\n    cpu_ok --> disk\n    disk -->|\"Yes\"| ready[\"✅ READY\u003Cbr\u002F>Safe to load model\"]\n    disk -->|\"No\"| block_disk[\"? BLOCKED\u003Cbr\u002F>Need space for weights\"]\n```\n\n### Dataset Preflight (NEW)\n\nBefore loading your actual data, verify it will fit in memory:\n\n```bash\n# Quick estimate for your dataset\npython scripts\u002Fcheck_system.py \\\n  --num-series 1000 \\\n  --context-length 1024 \\\n  --horizon 24 \\\n  --batch-size 32 \\\n  --estimate-only\n```\n\nThis will show you the estimated memory requirements and warn if your dataset is too large.\n\n**Memory Estimation Formula**:\n`RAM ≈ 0.8 GB (model) + 0.5 GB (overhead) + (0.2 MB × num_series × context_length \u002F 1000)`\n\n**Example Outputs**:\n\n✅ **Dataset Fits**:\n```\nTotal CPU memory: 2.34 GB\nTotal GPU memory: 2.15 GB\n```\n\n⚠️ **Dataset Too Large**:\n```\nDataset requires ~12.5 GB RAM but system has 8.0 GB.\nTry: context_length=512 or process in chunks of 50 series.\n```\n\n### Hardware Requirements by Model Version\n\n| Model | Parameters | RAM (CPU) | VRAM (GPU) | Disk | Context |\n| ----- | ---------- | --------- | ---------- | ---- | ------- |\n| **TimesFM 2.5** (recommended) | 200M | ≥ 4 GB | ≥ 2 GB | ~800 MB | up to 16,384 |\n| TimesFM 2.0 (archived) | 500M | ≥ 16 GB | ≥ 8 GB | ~2 GB | up to 2,048 |\n| TimesFM 1.0 (archived) | 200M | ≥ 8 GB | ≥ 4 GB | ~800 MB | up to 2,048 |\n\n> **Recommendation**: Always use TimesFM 2.5 unless you have a specific reason to use an\n> older checkpoint. It is smaller, faster, and supports 8× longer context.\n\n## ? Installation\n\n### Step 1: Verify System (always first)\n\n```bash\npython scripts\u002Fcheck_system.py\n```\n\n### Step 2: Install TimesFM\n\n```bash\n# Using uv (fast)\nuv pip install timesfm[torch]\n\n# Or using pip\npip install timesfm[torch]\n\n# For JAX\u002FFlax backend (faster on TPU\u002FGPU)\nuv pip install timesfm[flax]\n```\n\n### Step 3: Install PyTorch for Your Hardware\n\n```bash\n# CUDA 12.1 (NVIDIA GPU)\npip install torch>=2.0.0 --index-url https:\u002F\u002Fdownload.pytorch.org\u002Fwhl\u002Fcu121\n\n# CPU only\npip install torch>=2.0.0 --index-url https:\u002F\u002Fdownload.pytorch.org\u002Fwhl\u002Fcpu\n\n# Apple Silicon (MPS)\npip install torch>=2.0.0  # MPS support is built-in\n```\n\n## ? Quick Start\n\n### Minimal Example\n\n```python\nimport torch, numpy as np, timesfm\n\ntorch.set_float32_matmul_precision(\"high\")\n\nmodel = timesfm.TimesFM_2p5_200M_torch.from_pretrained(\n    \"google\u002Ftimesfm-2.5-200m-pytorch\"\n)\nmodel.compile(timesfm.ForecastConfig(\n    max_context=1024, max_horizon=256, normalize_inputs=True,\n    use_continuous_quantile_head=True, force_flip_invariance=True,\n    infer_is_positive=True, fix_quantile_crossing=True,\n))\n\npoint, quantiles = model.forecast(horizon=24, inputs=[\n    np.sin(np.linspace(0, 20, 200)),  # any 1-D array\n])\n# point.shape == (1, 24)         — median forecast\n# quantiles.shape == (1, 24, 10) — 10th–90th percentile bands\n```\n\n### Forecast with Covariates (XReg)\n\nTimesFM 2.5+ supports exogenous variables through `forecast_with_covariates()`.\nRequires `pip install timesfm[xreg]`.\n\n```python\npoint, quantiles = model.forecast_with_covariates(\n    inputs=inputs,\n    dynamic_numerical_covariates={\"price\": price_arrays},\n    dynamic_categorical_covariates={\"holiday\": holiday_arrays},\n    static_categorical_covariates={\"region\": region_labels},\n    xreg_mode=\"xreg + timesfm\",  # or \"timesfm + xreg\"\n)\n```\n\n### Anomaly Detection (via Quantile Intervals)\n\n```python\npoint, q = model.forecast(horizon=H, inputs=[values])\n\nlower_90 = q[0, :, 1]  # 10th percentile\nupper_90 = q[0, :, 9]  # 90th percentile\n\nactual = test_values\nanomalies = (actual \u003C lower_90) | (actual > upper_90)\n```\n\n| Severity | Condition | Interpretation |\n| -------- | --------- | -------------- |\n| **Normal** | Inside 80% CI | Expected behavior |\n| **Warning** | Outside 80% CI | Unusual but possible |\n| **Critical** | Outside 90% CI | Statistically rare (\u003C 10% probability) |\n\n> See `examples\u002Fanomaly-detection\u002F` for a complete worked example with visualization.\n\n## ? Understanding the Output\n\nTimesFM returns `(point_forecast, quantile_forecast)`:\n\n- **`point_forecast`**: shape `(batch, horizon)` — the median (0.5 quantile)\n- **`quantile_forecast`**: shape `(batch, horizon, 10)` — ten quantile slices:\n\n| Index | Quantile | Use |\n| ----- | -------- | --- |\n| 0 | Mean | Average prediction |\n| 1 | 0.1 | Lower bound of 80% PI |\n| 2 | 0.2 | Lower bound of 60% PI |\n| **5** | **0.5** | **Median (= `point_forecast`)** |\n| 8 | 0.8 | Upper bound of 60% PI |\n| 9 | 0.9 | Upper bound of 80% PI |\n\n```python\npoint, q = model.forecast(horizon=H, inputs=data)\n\nlower_80 = q[:, :, 1]  # 10th percentile\nupper_80 = q[:, :, 9]  # 90th percentile\nmedian   = q[:, :, 5]\n```\n\n## ? ForecastConfig Reference\n\nAll forecasting behavior is controlled by `timesfm.ForecastConfig`:\n\n```python\ntimesfm.ForecastConfig(\n    max_context=1024,                    # Max context window\n    max_horizon=256,                     # Max forecast horizon\n    normalize_inputs=True,               # RECOMMENDED — prevents scale instability\n    per_core_batch_size=32,              # Tune for memory\n    use_continuous_quantile_head=True,   # Better quantile accuracy for long horizons\n    force_flip_invariance=True,          # Ensures f(-x) = -f(x)\n    infer_is_positive=True,              # Clamp forecasts ≥ 0 when all inputs > 0\n    fix_quantile_crossing=True,          # Ensure q10 ≤ q20 ≤ ... ≤ q90\n    return_backcast=False,               # Return backcast (for covariate workflows)\n)\n```\n\n| Parameter | Default | When to Change |\n| --------- | ------- | -------------- |\n| `max_context` | 0 | Set to match your longest historical window |\n| `normalize_inputs` | False | **Always set True** |\n| `use_continuous_quantile_head` | False | **Set True** for calibrated PIs |\n| `infer_is_positive` | True | Set False for series that can be negative |\n| `fix_quantile_crossing` | False | **Set True** for monotonic quantiles |\n\nSee `references\u002Fapi_reference.md` for the complete parameter reference.\n\n## ? Common Workflows\n\n### Single Series Forecast\n\n```python\nimport torch, numpy as np, pandas as pd, timesfm, matplotlib\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\n\ntorch.set_float32_matmul_precision(\"high\")\nmodel = timesfm.TimesFM_2p5_200M_torch.from_pretrained(\n    \"google\u002Ftimesfm-2.5-200m-pytorch\"\n)\nmodel.compile(timesfm.ForecastConfig(\n    max_context=512, max_horizon=52, normalize_inputs=True,\n    use_continuous_quantile_head=True, fix_quantile_crossing=True,\n))\n\ndf = pd.read_csv(\"weekly_demand.csv\", parse_dates=[\"week\"])\nvalues = df[\"demand\"].values.astype(np.float32)\n\npoint, quantiles = model.forecast(horizon=52, inputs=[values])\n\nfig, ax = plt.subplots(figsize=(12, 5))\nax.plot(values[-104:], label=\"Historical\")\nx_fc = range(len(values[-104:]), len(values[-104:]) + 52)\nax.plot(x_fc, point[0], label=\"Forecast\", color=\"tab:orange\")\nax.fill_between(x_fc, quantiles[0, :, 1], quantiles[0, :, 9],\n                alpha=0.2, color=\"tab:orange\", label=\"80% PI\")\nax.legend(); ax.set_title(\"52-Week Demand Forecast\")\nplt.tight_layout(); plt.savefig(\"forecast.png\", dpi=150)\n```\n\n### Batch Forecasting (Many Series)\n\n```python\ndf = pd.read_csv(\"all_stores.csv\", parse_dates=[\"date\"], index_col=\"date\")\ninputs = [df[col].dropna().values.astype(np.float32) for col in df.columns]\n\npoint, quantiles = model.forecast(horizon=30, inputs=inputs)\n\nimport json\nresults = {col: {\"forecast\": point[i].tolist(),\n                 \"lower_80\": quantiles[i, :, 1].tolist(),\n                 \"upper_80\": quantiles[i, :, 9].tolist()}\n           for i, col in enumerate(df.columns)}\nwith open(\"batch_forecasts.json\", \"w\") as f:\n    json.dump(results, f, indent=2)\n```\n\n### Evaluate Forecast Accuracy\n\n```python\nH = 24\ntrain, actual = values[:-H], values[-H:]\npoint, quantiles = model.forecast(horizon=H, inputs=[train])\npred = point[0]\n\nmae  = np.mean(np.abs(actual - pred))\nrmse = np.sqrt(np.mean((actual - pred) ** 2))\nmape = np.mean(np.abs((actual - pred) \u002F actual)) * 100\ncoverage = np.mean((actual >= quantiles[0, :, 1]) & (actual \u003C= quantiles[0, :, 9])) * 100\n\nprint(f\"MAE: {mae:.2f} | RMSE: {rmse:.2f} | MAPE: {mape:.1f}% | 80% PI Coverage: {coverage:.1f}%\")\n```\n\n## ⚙️ Performance Tuning\n\n```python\n# Always set on Ampere+ GPUs (A100, RTX 3090+)\ntorch.set_float32_matmul_precision(\"high\")\n\n# Batch size guidelines:\n# GPU 8 GB VRAM:  per_core_batch_size=64\n# GPU 16 GB VRAM: per_core_batch_size=128\n# CPU 8 GB RAM:   per_core_batch_size=8\n# CPU 16 GB RAM:  per_core_batch_size=32\n\n# Memory-constrained: process in chunks\nCHUNK = 50\nresults = []\nfor i in range(0, len(inputs), CHUNK):\n    p, q = model.forecast(horizon=H, inputs=inputs[i:i+CHUNK])\n    results.append((p, q))\n```\n\n## ? Available Scripts\n\n### `scripts\u002Fcheck_system.py`\n\nMandatory preflight checker — run before first model load.\nNow includes **dataset-aware memory estimation** to prevent OOM errors before loading your data.\n\n```bash\n# Basic system check\npython scripts\u002Fcheck_system.py\n\n# Check if your specific dataset will fit\npython scripts\u002Fcheck_system.py \\\n  --num-series 1000 \\\n  --context-length 1024 \\\n  --horizon 24 \\\n  --batch-size 32\n\n# Quick memory estimate without system checks\npython scripts\u002Fcheck_system.py \\\n  --num-series 5000 \\\n  --context-length 2048 \\\n  --estimate-only\n```\n\n**What it checks**:\n\n1. **Available RAM** — warns if below 4 GB, blocks if below 2 GB\n2. **GPU availability** — detects CUDA\u002FMPS devices and VRAM\n3. **Disk space** — verifies room for the ~800 MB model download\n4. **Python version** — requires 3.10+\n5. **Existing installation** — checks if `timesfm` and `torch` are installed\n6. **Dataset fit** (NEW) — estimates memory for your specific dataset and warns if it won't fit\n\n### `scripts\u002Fforecast_csv.py`\n\nEnd-to-end CSV forecasting CLI.\n\n```bash\npython scripts\u002Fforecast_csv.py input.csv \\\n    --horizon 24 \\\n    --date-col date \\\n    --value-cols sales,revenue \\\n    --output forecasts.csv\n```\n\n## ? Reference Documentation\n\n| File | Contents |\n| ---- | -------- |\n| `references\u002Fsystem_requirements.md` | Hardware tiers, GPU\u002FCPU selection, memory estimation |\n| `references\u002Fapi_reference.md` | Full `ForecastConfig` docs, output shapes, model options |\n| `references\u002Fdata_preparation.md` | Input formats, NaN handling, CSV loading, covariate setup |\n\n## ? Examples\n\n| Example | Directory | What It Demonstrates |\n| ------- | --------- | -------------------- |\n| **Global Temperature Forecast** | `examples\u002Fglobal-temperature\u002F` | Basic `model.forecast()`, CSV → PNG → GIF pipeline |\n| **Anomaly Detection** | `examples\u002Fanomaly-detection\u002F` | Two-phase detrend + Z-score + quantile PI, 2-panel viz |\n| **Covariates (XReg)** | `examples\u002Fcovariates-forecasting\u002F` | `forecast_with_covariates()`, 2×2 shared-axis viz |\n\n```bash\n# Run all three examples:\ncd examples\u002Fglobal-temperature && python run_forecast.py && python visualize_forecast.py\ncd examples\u002Fanomaly-detection  && python detect_anomalies.py\ncd examples\u002Fcovariates-forecasting && python demo_covariates.py\n```\n\n### Expected Outputs\n\n| Example | Key output files | Acceptance criteria |\n| ------- | ---------------- | ------------------- |\n| global-temperature | `output\u002Fforecast_output.json`, `output\u002Fforecast_visualization.png` | `point_forecast` has 12 values; PNG shows context + forecast + PI bands |\n| anomaly-detection | `output\u002Fanomaly_detection.json`, `output\u002Fanomaly_detection.png` | Sep 2023 flagged CRITICAL (z ≥ 3.0) |\n| covariates-forecasting | `output\u002Fsales_with_covariates.csv`, `output\u002Fcovariates_data.png` | 108 rows (3 stores × 36 weeks); distinct price arrays per store |\n\n## Model Versions\n\n| Version | Params | Context | Status | HuggingFace checkpoint |\n| ------- | ------ | ------- | ------ | ---------------------- |\n| **2.5** | 200M | 16,384 | **Latest** | `google\u002Ftimesfm-2.5-200m-pytorch` |\n| 2.0 | 500M | 2,048 | Archived | `google\u002Ftimesfm-2.0-500m-pytorch` |\n| 1.0 | 200M | 2,048 | Archived | `google\u002Ftimesfm-1.0-200m-pytorch` |\n\n- TimesFM 1.0\u002F2.0: must pass `freq=[0]` for monthly data\n- TimesFM 2.5: no frequency flag — it was removed\n\n## Resources\n\n- **Paper**: [A Decoder-Only Foundation Model for Time-Series Forecasting](https:\u002F\u002Farxiv.org\u002Fabs\u002F2310.10688) (ICML 2024)\n- **HuggingFace**: https:\u002F\u002Fhuggingface.co\u002Fcollections\u002Fgoogle\u002Ftimesfm-release-66e4be5fdb56e960c1e482a6\n- **Google Blog**: https:\u002F\u002Fresearch.google\u002Fblog\u002Fa-decoder-only-foundation-model-for-time-series-forecasting\u002F\n- **BigQuery Integration**: https:\u002F\u002Fcloud.google.com\u002Fbigquery\u002Fdocs\u002Ftimesfm-model\n\n## Quality Checklist\n\nRun after every TimesFM task before declaring success:\n\n- [ ] **Output shape** — `point_fc` is `(n_series, horizon)`, `quant_fc` is `(n_series, horizon, 10)`\n- [ ] **Quantile indices** — index 0 = mean, 1 = q10 ... 9 = q90. NOT 0 = q0.\n- [ ] **Frequency flag** — TimesFM 1.0\u002F2.0: pass `freq=[0]` for monthly. TimesFM 2.5: omit.\n- [ ] **Series length** — context must be ≥ 32 data points.\n- [ ] **No NaN** — `np.isnan(point_fc).any()` must be False.\n- [ ] **Axes** — multiple panels sharing data must use `sharex=True`.\n- [ ] **`matplotlib.use('Agg')`** — before any pyplot import when running headless.\n- [ ] **`infer_is_positive`** — set False for temperature, financial returns, negatives.\n\n## Common Mistakes\n\n1. **Quantile index off-by-one** — `quant_fc[..., 0]` is the **mean**, not q0. q10 = index 1, q90 = index 9. Define: `IDX_Q10, IDX_Q90 = 1, 9`.\n\n2. **Variable shadowing in covariate loops** — don't use the outer loop variable as a comprehension variable when building per-series covariate dicts.\n\n3. **Wrong CSV column name** — global-temperature CSV uses `anomaly_c`, not `anomaly`. Print `df.columns` first.\n\n4. **TimesFM 2.5 required for `forecast_with_covariates()`** — TimesFM 1.0 does NOT have this method.\n\n5. **Future covariates must span the full horizon** — dynamic covariates need values for BOTH context AND forecast windows.\n\n6. **Context anomaly detection uses residuals** — detrend first, then Z-score. Raw Z-scores mislead on trending data.\n\n## Validation & Verification\n\n```bash\n# Anomaly detection regression:\npython -c \"\nimport json\nd = json.load(open('examples\u002Fanomaly-detection\u002Foutput\u002Fanomaly_detection.json'))\nassert d['context_summary']['critical'] >= 1, 'Sep 2023 must be CRITICAL'\nprint('Anomaly detection: PASS')\"\n\n# Covariates regression:\npython -c \"\nimport pandas as pd\ndf = pd.read_csv('examples\u002Fcovariates-forecasting\u002Foutput\u002Fsales_with_covariates.csv')\nassert len(df) == 108, f'Expected 108 rows, got {len(df)}'\nprint('Covariates: PASS')\"\n```\n","# TimesFM Forecasting\n\n## Overview\n\nTimesFM (Time Series Foundation Model) is a pretrained decoder-only foundation model\ndeveloped by Google Research for time-series forecasting. It works **zero-shot** — feed it\nany univariate time series and it returns point forecasts with calibrated quantile\nprediction intervals, no training required.\n\nThis skill includes a **mandatory preflight system checker** that verifies RAM, GPU memory,\nand disk space before the model is ever loaded so the agent never crashes the user's machine.\n\n> **Key numbers**: TimesFM 2.5 uses 200M parameters (~800 MB on disk, ~1.5 GB in RAM on\n> CPU, ~1 GB VRAM on GPU). The archived v1\u002Fv2 500M-parameter model needs ~32 GB RAM.\n> Always run the system checker first.\n\n## When to Use This Skill\n\nUse this skill when:\n\n- Forecasting **any univariate time series** (sales, demand, sensor, vitals, price, weather)\n- You need **zero-shot forecasting** without training a custom model\n- You want **probabilistic forecasts** with calibrated prediction intervals (quantiles)\n- You have time series of **any length** (the model handles 1–16,384 context points)\n- You need to **batch-forecast** hundreds or thousands of series efficiently\n- You want a **foundation model** approach instead of hand-tuning ARIMA\u002FETS parameters\n- You need **covariate forecasting** with exogenous variables (price, promotions, holidays, day-of-week effects) → use `forecast_with_covariates()` (TimesFM 2.5 + `pip install timesfm[xreg]`)\n\n\nDo **not** use this skill when:\n\n- You need classical statistical models with coefficient interpretation → use `statsmodels`\n- You need time series classification or clustering → use `aeon`\n- You need multivariate vector autoregression or Granger causality → use `statsmodels`\n- Your data is tabular (not temporal) → use `scikit-learn`\n- You cannot install optional dependencies → XReg requires scikit-learn and JAX\n\n\n> **Note on Anomaly Detection**: TimesFM does not have built-in anomaly detection, but you\n> can use the **quantile forecasts as prediction intervals** — values outside the 90% CI\n> (q10–q90) are statistically unusual. See `examples\u002Fanomaly-detection\u002F` for a full example.\n\n## ⚠️ Mandatory Preflight: System Requirements Check\n\n**CRITICAL — ALWAYS run the system checker before loading the model for the first time.**\n\n```bash\npython scripts\u002Fcheck_system.py\n```\n\nThis script checks:\n\n1. **Available RAM** — warns if below 4 GB, blocks if below 2 GB\n2. **GPU availability** — detects CUDA\u002FMPS devices and VRAM\n3. **Disk space** — verifies room for the ~800 MB model download\n4. **Python version** — requires 3.10+\n5. **Existing installation** — checks if `timesfm` and `torch` are installed\n\n> **Note:** Model weights are **NOT stored in this repository**. TimesFM weights (~800 MB)\n> download on-demand from HuggingFace on first use and cache in `~\u002F.cache\u002Fhuggingface\u002F`.\n\n```mermaid\nflowchart TD\n    start[\"? Run check_system.py\"] --> ram{\"RAM ≥ 4 GB?\"}\n    ram -->|\"Yes\"| gpu{\"GPU available?\"}\n    ram -->|\"No (2-4 GB)\"| warn_ram[\"⚠️ Warning: tight RAM\u003Cbr\u002F>CPU-only, small batches\"]\n    ram -->|\"No (\u003C 2 GB)\"| block[\"? BLOCKED\u003Cbr\u002F>Insufficient memory\"]\n    warn_ram --> disk\n    gpu -->|\"CUDA \u002F MPS\"| vram{\"VRAM ≥ 2 GB?\"}\n    gpu -->|\"CPU only\"| cpu_ok[\"✅ CPU mode\u003Cbr\u002F>Slower but works\"]\n    vram -->|\"Yes\"| gpu_ok[\"✅ GPU mode\u003Cbr\u002F>Fast inference\"]\n    vram -->|\"No\"| cpu_ok\n    gpu_ok --> disk{\"Disk ≥ 2 GB free?\"}\n    cpu_ok --> disk\n    disk -->|\"Yes\"| ready[\"✅ READY\u003Cbr\u002F>Safe to load model\"]\n    disk -->|\"No\"| block_disk[\"? BLOCKED\u003Cbr\u002F>Need space for weights\"]\n```\n\n### Dataset Preflight (NEW)\n\nBefore loading your actual data, verify it will fit in memory:\n\n```bash\n# Quick estimate for your dataset\npython scripts\u002Fcheck_system.py \\\n  --num-series 1000 \\\n  --context-length 1024 \\\n  --horizon 24 \\\n  --batch-size 32 \\\n  --estimate-only\n```\n\nThis will show you the estimated memory requirements and warn if your dataset is too large.\n\n**Memory Estimation Formula**:\n`RAM ≈ 0.8 GB (model) + 0.5 GB (overhead) + (0.2 MB × num_series × context_length \u002F 1000)`\n\n**Example Outputs**:\n\n✅ **Dataset Fits**:\n```\nTotal CPU memory: 2.34 GB\nTotal GPU memory: 2.15 GB\n```\n\n⚠️ **Dataset Too Large**:\n```\nDataset requires ~12.5 GB RAM but system has 8.0 GB.\nTry: context_length=512 or process in chunks of 50 series.\n```\n\n### Hardware Requirements by Model Version\n\n| Model | Parameters | RAM (CPU) | VRAM (GPU) | Disk | Context |\n| ----- | ---------- | --------- | ---------- | ---- | ------- |\n| **TimesFM 2.5** (recommended) | 200M | ≥ 4 GB | ≥ 2 GB | ~800 MB | up to 16,384 |\n| TimesFM 2.0 (archived) | 500M | ≥ 16 GB | ≥ 8 GB | ~2 GB | up to 2,048 |\n| TimesFM 1.0 (archived) | 200M | ≥ 8 GB | ≥ 4 GB | ~800 MB | up to 2,048 |\n\n> **Recommendation**: Always use TimesFM 2.5 unless you have a specific reason to use an\n> older checkpoint. It is smaller, faster, and supports 8× longer context.\n\n## ? Installation\n\n### Step 1: Verify System (always first)\n\n```bash\npython scripts\u002Fcheck_system.py\n```\n\n### Step 2: Install TimesFM\n\n```bash\n# Using uv (fast)\nuv pip install timesfm[torch]\n\n# Or using pip\npip install timesfm[torch]\n\n# For JAX\u002FFlax backend (faster on TPU\u002FGPU)\nuv pip install timesfm[flax]\n```\n\n### Step 3: Install PyTorch for Your Hardware\n\n```bash\n# CUDA 12.1 (NVIDIA GPU)\npip install torch>=2.0.0 --index-url https:\u002F\u002Fdownload.pytorch.org\u002Fwhl\u002Fcu121\n\n# CPU only\npip install torch>=2.0.0 --index-url https:\u002F\u002Fdownload.pytorch.org\u002Fwhl\u002Fcpu\n\n# Apple Silicon (MPS)\npip install torch>=2.0.0  # MPS support is built-in\n```\n\n## ? Quick Start\n\n### Minimal Example\n\n```python\nimport torch, numpy as np, timesfm\n\ntorch.set_float32_matmul_precision(\"high\")\n\nmodel = timesfm.TimesFM_2p5_200M_torch.from_pretrained(\n    \"google\u002Ftimesfm-2.5-200m-pytorch\"\n)\nmodel.compile(timesfm.ForecastConfig(\n    max_context=1024, max_horizon=256, normalize_inputs=True,\n    use_continuous_quantile_head=True, force_flip_invariance=True,\n    infer_is_positive=True, fix_quantile_crossing=True,\n))\n\npoint, quantiles = model.forecast(horizon=24, inputs=[\n    np.sin(np.linspace(0, 20, 200)),  # any 1-D array\n])\n# point.shape == (1, 24)         — median forecast\n# quantiles.shape == (1, 24, 10) — 10th–90th percentile bands\n```\n\n### Forecast with Covariates (XReg)\n\nTimesFM 2.5+ supports exogenous variables through `forecast_with_covariates()`.\nRequires `pip install timesfm[xreg]`.\n\n```python\npoint, quantiles = model.forecast_with_covariates(\n    inputs=inputs,\n    dynamic_numerical_covariates={\"price\": price_arrays},\n    dynamic_categorical_covariates={\"holiday\": holiday_arrays},\n    static_categorical_covariates={\"region\": region_labels},\n    xreg_mode=\"xreg + timesfm\",  # or \"timesfm + xreg\"\n)\n```\n\n### Anomaly Detection (via Quantile Intervals)\n\n```python\npoint, q = model.forecast(horizon=H, inputs=[values])\n\nlower_90 = q[0, :, 1]  # 10th percentile\nupper_90 = q[0, :, 9]  # 90th percentile\n\nactual = test_values\nanomalies = (actual \u003C lower_90) | (actual > upper_90)\n```\n\n| Severity | Condition | Interpretation |\n| -------- | --------- | -------------- |\n| **Normal** | Inside 80% CI | Expected behavior |\n| **Warning** | Outside 80% CI | Unusual but possible |\n| **Critical** | Outside 90% CI | Statistically rare (\u003C 10% probability) |\n\n> See `examples\u002Fanomaly-detection\u002F` for a complete worked example with visualization.\n\n## ? Understanding the Output\n\nTimesFM returns `(point_forecast, quantile_forecast)`:\n\n- **`point_forecast`**: shape `(batch, horizon)` — the median (0.5 quantile)\n- **`quantile_forecast`**: shape `(batch, horizon, 10)` — ten quantile slices:\n\n| Index | Quantile | Use |\n| ----- | -------- | --- |\n| 0 | Mean | Average prediction |\n| 1 | 0.1 | Lower bound of 80% PI |\n| 2 | 0.2 | Lower bound of 60% PI |\n| **5** | **0.5** | **Median (= `point_forecast`)** |\n| 8 | 0.8 | Upper bound of 60% PI |\n| 9 | 0.9 | Upper bound of 80% PI |\n\n```python\npoint, q = model.forecast(horizon=H, inputs=data)\n\nlower_80 = q[:, :, 1]  # 10th percentile\nupper_80 = q[:, :, 9]  # 90th percentile\nmedian   = q[:, :, 5]\n```\n\n## ? ForecastConfig Reference\n\nAll forecasting behavior is controlled by `timesfm.ForecastConfig`:\n\n```python\ntimesfm.ForecastConfig(\n    max_context=1024,                    # Max context window\n    max_horizon=256,                     # Max forecast horizon\n    normalize_inputs=True,               # RECOMMENDED — prevents scale instability\n    per_core_batch_size=32,              # Tune for memory\n    use_continuous_quantile_head=True,   # Better quantile accuracy for long horizons\n    force_flip_invariance=True,          # Ensures f(-x) = -f(x)\n    infer_is_positive=True,              # Clamp forecasts ≥ 0 when all inputs > 0\n    fix_quantile_crossing=True,          # Ensure q10 ≤ q20 ≤ ... ≤ q90\n    return_backcast=False,               # Return backcast (for covariate workflows)\n)\n```\n\n| Parameter | Default | When to Change |\n| --------- | ------- | -------------- |\n| `max_context` | 0 | Set to match your longest historical window |\n| `normalize_inputs` | False | **Always set True** |\n| `use_continuous_quantile_head` | False | **Set True** for calibrated PIs |\n| `infer_is_positive` | True | Set False for series that can be negative |\n| `fix_quantile_crossing` | False | **Set True** for monotonic quantiles |\n\nSee `references\u002Fapi_reference.md` for the complete parameter reference.\n\n## ? Common Workflows\n\n### Single Series Forecast\n\n```python\nimport torch, numpy as np, pandas as pd, timesfm, matplotlib\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\n\ntorch.set_float32_matmul_precision(\"high\")\nmodel = timesfm.TimesFM_2p5_200M_torch.from_pretrained(\n    \"google\u002Ftimesfm-2.5-200m-pytorch\"\n)\nmodel.compile(timesfm.ForecastConfig(\n    max_context=512, max_horizon=52, normalize_inputs=True,\n    use_continuous_quantile_head=True, fix_quantile_crossing=True,\n))\n\ndf = pd.read_csv(\"weekly_demand.csv\", parse_dates=[\"week\"])\nvalues = df[\"demand\"].values.astype(np.float32)\n\npoint, quantiles = model.forecast(horizon=52, inputs=[values])\n\nfig, ax = plt.subplots(figsize=(12, 5))\nax.plot(values[-104:], label=\"Historical\")\nx_fc = range(len(values[-104:]), len(values[-104:]) + 52)\nax.plot(x_fc, point[0], label=\"Forecast\", color=\"tab:orange\")\nax.fill_between(x_fc, quantiles[0, :, 1], quantiles[0, :, 9],\n                alpha=0.2, color=\"tab:orange\", label=\"80% PI\")\nax.legend(); ax.set_title(\"52-Week Demand Forecast\")\nplt.tight_layout(); plt.savefig(\"forecast.png\", dpi=150)\n```\n\n### Batch Forecasting (Many Series)\n\n```python\ndf = pd.read_csv(\"all_stores.csv\", parse_dates=[\"date\"], index_col=\"date\")\ninputs = [df[col].dropna().values.astype(np.float32) for col in df.columns]\n\npoint, quantiles = model.forecast(horizon=30, inputs=inputs)\n\nimport json\nresults = {col: {\"forecast\": point[i].tolist(),\n                 \"lower_80\": quantiles[i, :, 1].tolist(),\n                 \"upper_80\": quantiles[i, :, 9].tolist()}\n           for i, col in enumerate(df.columns)}\nwith open(\"batch_forecasts.json\", \"w\") as f:\n    json.dump(results, f, indent=2)\n```\n\n### Evaluate Forecast Accuracy\n\n```python\nH = 24\ntrain, actual = values[:-H], values[-H:]\npoint, quantiles = model.forecast(horizon=H, inputs=[train])\npred = point[0]\n\nmae  = np.mean(np.abs(actual - pred))\nrmse = np.sqrt(np.mean((actual - pred) ** 2))\nmape = np.mean(np.abs((actual - pred) \u002F actual)) * 100\ncoverage = np.mean((actual >= quantiles[0, :, 1]) & (actual \u003C= quantiles[0, :, 9])) * 100\n\nprint(f\"MAE: {mae:.2f} | RMSE: {rmse:.2f} | MAPE: {mape:.1f}% | 80% PI Coverage: {coverage:.1f}%\")\n```\n\n## ⚙️ Performance Tuning\n\n```python\n# Always set on Ampere+ GPUs (A100, RTX 3090+)\ntorch.set_float32_matmul_precision(\"high\")\n\n# Batch size guidelines:\n# GPU 8 GB VRAM:  per_core_batch_size=64\n# GPU 16 GB VRAM: per_core_batch_size=128\n# CPU 8 GB RAM:   per_core_batch_size=8\n# CPU 16 GB RAM:  per_core_batch_size=32\n\n# Memory-constrained: process in chunks\nCHUNK = 50\nresults = []\nfor i in range(0, len(inputs), CHUNK):\n    p, q = model.forecast(horizon=H, inputs=inputs[i:i+CHUNK])\n    results.append((p, q))\n```\n\n## ? Available Scripts\n\n### `scripts\u002Fcheck_system.py`\n\nMandatory preflight checker — run before first model load.\nNow includes **dataset-aware memory estimation** to prevent OOM errors before loading your data.\n\n```bash\n# Basic system check\npython scripts\u002Fcheck_system.py\n\n# Check if your specific dataset will fit\npython scripts\u002Fcheck_system.py \\\n  --num-series 1000 \\\n  --context-length 1024 \\\n  --horizon 24 \\\n  --batch-size 32\n\n# Quick memory estimate without system checks\npython scripts\u002Fcheck_system.py \\\n  --num-series 5000 \\\n  --context-length 2048 \\\n  --estimate-only\n```\n\n**What it checks**:\n\n1. **Available RAM** — warns if below 4 GB, blocks if below 2 GB\n2. **GPU availability** — detects CUDA\u002FMPS devices and VRAM\n3. **Disk space** — verifies room for the ~800 MB model download\n4. **Python version** — requires 3.10+\n5. **Existing installation** — checks if `timesfm` and `torch` are installed\n6. **Dataset fit** (NEW) — estimates memory for your specific dataset and warns if it won't fit\n\n### `scripts\u002Fforecast_csv.py`\n\nEnd-to-end CSV forecasting CLI.\n\n```bash\npython scripts\u002Fforecast_csv.py input.csv \\\n    --horizon 24 \\\n    --date-col date \\\n    --value-cols sales,revenue \\\n    --output forecasts.csv\n```\n\n## ? Reference Documentation\n\n| File | Contents |\n| ---- | -------- |\n| `references\u002Fsystem_requirements.md` | Hardware tiers, GPU\u002FCPU selection, memory estimation |\n| `references\u002Fapi_reference.md` | Full `ForecastConfig` docs, output shapes, model options |\n| `references\u002Fdata_preparation.md` | Input formats, NaN handling, CSV loading, covariate setup |\n\n## ? Examples\n\n| Example | Directory | What It Demonstrates |\n| ------- | --------- | -------------------- |\n| **Global Temperature Forecast** | `examples\u002Fglobal-temperature\u002F` | Basic `model.forecast()`, CSV → PNG → GIF pipeline |\n| **Anomaly Detection** | `examples\u002Fanomaly-detection\u002F` | Two-phase detrend + Z-score + quantile PI, 2-panel viz |\n| **Covariates (XReg)** | `examples\u002Fcovariates-forecasting\u002F` | `forecast_with_covariates()`, 2×2 shared-axis viz |\n\n```bash\n# Run all three examples:\ncd examples\u002Fglobal-temperature && python run_forecast.py && python visualize_forecast.py\ncd examples\u002Fanomaly-detection  && python detect_anomalies.py\ncd examples\u002Fcovariates-forecasting && python demo_covariates.py\n```\n\n### Expected Outputs\n\n| Example | Key output files | Acceptance criteria |\n| ------- | ---------------- | ------------------- |\n| global-temperature | `output\u002Fforecast_output.json`, `output\u002Fforecast_visualization.png` | `point_forecast` has 12 values; PNG shows context + forecast + PI bands |\n| anomaly-detection | `output\u002Fanomaly_detection.json`, `output\u002Fanomaly_detection.png` | Sep 2023 flagged CRITICAL (z ≥ 3.0) |\n| covariates-forecasting | `output\u002Fsales_with_covariates.csv`, `output\u002Fcovariates_data.png` | 108 rows (3 stores × 36 weeks); distinct price arrays per store |\n\n## Model Versions\n\n| Version | Params | Context | Status | HuggingFace checkpoint |\n| ------- | ------ | ------- | ------ | ---------------------- |\n| **2.5** | 200M | 16,384 | **Latest** | `google\u002Ftimesfm-2.5-200m-pytorch` |\n| 2.0 | 500M | 2,048 | Archived | `google\u002Ftimesfm-2.0-500m-pytorch` |\n| 1.0 | 200M | 2,048 | Archived | `google\u002Ftimesfm-1.0-200m-pytorch` |\n\n- TimesFM 1.0\u002F2.0: must pass `freq=[0]` for monthly data\n- TimesFM 2.5: no frequency flag — it was removed\n\n## Resources\n\n- **Paper**: [A Decoder-Only Foundation Model for Time-Series Forecasting](https:\u002F\u002Farxiv.org\u002Fabs\u002F2310.10688) (ICML 2024)\n- **HuggingFace**: https:\u002F\u002Fhuggingface.co\u002Fcollections\u002Fgoogle\u002Ftimesfm-release-66e4be5fdb56e960c1e482a6\n- **Google Blog**: https:\u002F\u002Fresearch.google\u002Fblog\u002Fa-decoder-only-foundation-model-for-time-series-forecasting\u002F\n- **BigQuery Integration**: https:\u002F\u002Fcloud.google.com\u002Fbigquery\u002Fdocs\u002Ftimesfm-model\n\n## Quality Checklist\n\nRun after every TimesFM task before declaring success:\n\n- [ ] **Output shape** — `point_fc` is `(n_series, horizon)`, `quant_fc` is `(n_series, horizon, 10)`\n- [ ] **Quantile indices** — index 0 = mean, 1 = q10 ... 9 = q90. NOT 0 = q0.\n- [ ] **Frequency flag** — TimesFM 1.0\u002F2.0: pass `freq=[0]` for monthly. TimesFM 2.5: omit.\n- [ ] **Series length** — context must be ≥ 32 data points.\n- [ ] **No NaN** — `np.isnan(point_fc).any()` must be False.\n- [ ] **Axes** — multiple panels sharing data must use `sharex=True`.\n- [ ] **`matplotlib.use('Agg')`** — before any pyplot import when running headless.\n- [ ] **`infer_is_positive`** — set False for temperature, financial returns, negatives.\n\n## Common Mistakes\n\n1. **Quantile index off-by-one** — `quant_fc[..., 0]` is the **mean**, not q0. q10 = index 1, q90 = index 9. Define: `IDX_Q10, IDX_Q90 = 1, 9`.\n\n2. **Variable shadowing in covariate loops** — don't use the outer loop variable as a comprehension variable when building per-series covariate dicts.\n\n3. **Wrong CSV column name** — global-temperature CSV uses `anomaly_c`, not `anomaly`. Print `df.columns` first.\n\n4. **TimesFM 2.5 required for `forecast_with_covariates()`** — TimesFM 1.0 does NOT have this method.\n\n5. **Future covariates must span the full horizon** — dynamic covariates need values for BOTH context AND forecast windows.\n\n6. **Context anomaly detection uses residuals** — detrend first, then Z-score. Raw Z-scores mislead on trending data.\n\n## Validation & Verification\n\n```bash\n# Anomaly detection regression:\npython -c \"\nimport json\nd = json.load(open('examples\u002Fanomaly-detection\u002Foutput\u002Fanomaly_detection.json'))\nassert d['context_summary']['critical'] >= 1, 'Sep 2023 must be CRITICAL'\nprint('Anomaly detection: PASS')\"\n\n# Covariates regression:\npython -c \"\nimport pandas as pd\ndf = pd.read_csv('examples\u002Fcovariates-forecasting\u002Foutput\u002Fsales_with_covariates.csv')\nassert len(df) == 108, f'Expected 108 rows, got {len(df)}'\nprint('Covariates: PASS')\"\n```\n",{"name":5,"license":15,"metadata":44,"description":47},{"author":45,"version":46},"Clayton Young (@borealBytes)","1.0.0","Zero-shot time series forecasting with Google's TimesFM foundation model. Use this skill when forecasting ANY univariate time series — sales, sensor readings, stock prices, energy demand, patient vitals, weather, or scientific measurements — without training a custom model. Supports both basic forecasting and advanced covariate forecasting (XReg) with dynamic and static exogenous variables. Automatically checks system RAM\u002FGPU before loading the model, validates dataset fit before processing, supports CSV\u002FDataFrame\u002Farray inputs, and returns point forecasts with calibrated prediction intervals. Includes a preflight system checker script that MUST be run before first use to verify the machine can load the model and handle your specific dataset.\n","main","41ab4ff4eae03f182f643b44a975d6f88c60194b","opencode\u002Fskills\u002Ftimesfm-forecasting",0,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot","https:\u002F\u002Fgithub.com\u002Fgerald-ica","2026-04-14 09:37:13",{"source":8,"skillName":5,"commands":56,"prompt":66,"zipAvailable":67},[57,60,63],{"tool":58,"command":59},"npx","npx skills add gerald-ica\u002Fopencode-config-snapshot --skill timesfm-forecasting",{"tool":61,"command":62},"bunx","bunx skills add gerald-ica\u002Fopencode-config-snapshot --skill timesfm-forecasting",{"tool":64,"command":65},"pnpm","pnpm dlx skills add gerald-ica\u002Fopencode-config-snapshot --skill timesfm-forecasting","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002FSKILL.md",true,[69,75,81,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147,151,155,159,163,167,171,175],{"path":70,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":73,"sourceHtmlUrl":74},"examples\u002Fanomaly-detection\u002Fdetect_anomalies.py","SCRIPT","脚本",17032,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fanomaly-detection\u002Fdetect_anomalies.py",{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"examples\u002Fanomaly-detection\u002Foutput\u002Fanomaly_detection.json","REFERENCE","参考文档",9019,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fanomaly-detection\u002Foutput\u002Fanomaly_detection.json",{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"examples\u002Fanomaly-detection\u002Foutput\u002Fanomaly_detection.png","ASSET","资产文件",217028,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fanomaly-detection\u002Foutput\u002Fanomaly_detection.png",{"path":88,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":89,"sourceHtmlUrl":90},"examples\u002Fcovariates-forecasting\u002Fdemo_covariates.py",19694,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fcovariates-forecasting\u002Fdemo_covariates.py",{"path":92,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":93,"sourceHtmlUrl":94},"examples\u002Fcovariates-forecasting\u002Foutput\u002Fcovariates_data.png",458505,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fcovariates-forecasting\u002Foutput\u002Fcovariates_data.png",{"path":96,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":97,"sourceHtmlUrl":98},"examples\u002Fcovariates-forecasting\u002Foutput\u002Fcovariates_metadata.json",1586,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fcovariates-forecasting\u002Foutput\u002Fcovariates_metadata.json",{"path":100,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":101,"sourceHtmlUrl":102},"examples\u002Fcovariates-forecasting\u002Foutput\u002Fsales_with_covariates.csv",7399,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fcovariates-forecasting\u002Foutput\u002Fsales_with_covariates.csv",{"path":104,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":105,"sourceHtmlUrl":106},"examples\u002Fglobal-temperature\u002Fgenerate_animation_data.py",5008,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fglobal-temperature\u002Fgenerate_animation_data.py",{"path":108,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":109,"sourceHtmlUrl":110},"examples\u002Fglobal-temperature\u002Fgenerate_gif.py",6659,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fglobal-temperature\u002Fgenerate_gif.py",{"path":112,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":113,"sourceHtmlUrl":114},"examples\u002Fglobal-temperature\u002Fgenerate_html.py",21161,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fglobal-temperature\u002Fgenerate_html.py",{"path":116,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":117,"sourceHtmlUrl":118},"examples\u002Fglobal-temperature\u002Foutput\u002Fanimation_data.json",133208,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fglobal-temperature\u002Foutput\u002Fanimation_data.json",{"path":120,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":121,"sourceHtmlUrl":122},"examples\u002Fglobal-temperature\u002Foutput\u002Fforecast_animation.gif",794231,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fglobal-temperature\u002Foutput\u002Fforecast_animation.gif",{"path":124,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":125,"sourceHtmlUrl":126},"examples\u002Fglobal-temperature\u002Foutput\u002Fforecast_output.csv",1494,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fglobal-temperature\u002Foutput\u002Fforecast_output.csv",{"path":128,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":129,"sourceHtmlUrl":130},"examples\u002Fglobal-temperature\u002Foutput\u002Fforecast_output.json",4524,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fglobal-temperature\u002Foutput\u002Fforecast_output.json",{"path":132,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":133,"sourceHtmlUrl":134},"examples\u002Fglobal-temperature\u002Foutput\u002Fforecast_visualization.png",156559,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fglobal-temperature\u002Foutput\u002Fforecast_visualization.png",{"path":136,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":137,"sourceHtmlUrl":138},"examples\u002Fglobal-temperature\u002Foutput\u002Finteractive_forecast.html",153063,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fglobal-temperature\u002Foutput\u002Finteractive_forecast.html",{"path":140,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":141,"sourceHtmlUrl":142},"examples\u002Fglobal-temperature\u002FREADME.md",5728,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fglobal-temperature\u002FREADME.md",{"path":144,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":145,"sourceHtmlUrl":146},"examples\u002Fglobal-temperature\u002Frun_example.sh",1532,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fglobal-temperature\u002Frun_example.sh",{"path":148,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":149,"sourceHtmlUrl":150},"examples\u002Fglobal-temperature\u002Frun_forecast.py",5499,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fglobal-temperature\u002Frun_forecast.py",{"path":152,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":153,"sourceHtmlUrl":154},"examples\u002Fglobal-temperature\u002Ftemperature_anomaly.csv",591,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fglobal-temperature\u002Ftemperature_anomaly.csv",{"path":156,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":157,"sourceHtmlUrl":158},"examples\u002Fglobal-temperature\u002Fvisualize_forecast.py",3294,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fexamples\u002Fglobal-temperature\u002Fvisualize_forecast.py",{"path":160,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":161,"sourceHtmlUrl":162},"references\u002Fapi_reference.md",9747,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Freferences\u002Fapi_reference.md",{"path":164,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":165,"sourceHtmlUrl":166},"references\u002Fdata_preparation.md",7205,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Freferences\u002Fdata_preparation.md",{"path":168,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":169,"sourceHtmlUrl":170},"references\u002Fsystem_requirements.md",7071,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Freferences\u002Fsystem_requirements.md",{"path":172,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":173,"sourceHtmlUrl":174},"scripts\u002Fcheck_system.py",24162,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fscripts\u002Fcheck_system.py",{"path":176,"resourceType":71,"resourceTypeDesc":72,"sizeBytes":177,"sourceHtmlUrl":178},"scripts\u002Fforecast_csv.py",8689,"https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftimesfm-forecasting\u002Fscripts\u002Fforecast_csv.py",[180,207,224,237,251,274],{"skillNo":181,"name":182,"nameZh":6,"description":183,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":184,"licenseFileUrl":6,"sourceHtmlUrl":185,"categories":186,"keywords":187,"publishedAt":39},"01M6X9YGEAGNPWZ4DDK38M68XY","web-design-guidelines","Web platform design and accessibility guidelines. Use when building web interfaces, auditing accessibility, implementing responsive layouts, or reviewing web UI code. Triggers on tasks involving HTML, CSS, web components, WCAG compliance, responsive design, or web performance.","MIT","https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Fweb\u002FSKILL.md",[],[188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,23],"design","web","guidelines","web design guidelines","web design","css","performance","components","tasks","code","ui","WCAG","platform design","use","responsive design","responsive","platform","triggers","implementing",{"skillNo":208,"name":209,"nameZh":6,"description":210,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":184,"licenseFileUrl":6,"sourceHtmlUrl":211,"categories":212,"keywords":213,"publishedAt":39},"01M6X9Y7HKEAQ39S35ZDPTHCH0","watchos-design-guidelines","Apple Human Interface Guidelines for Apple Watch. Use when building watchOS apps, complications, or workout features. Triggers on tasks involving Watch UI, Digital Crown, glanceable interfaces, or wrist-based interactions.","https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Fwatchos\u002FSKILL.md",[],[188,190,214,196,198,201,215,216,217,204,218,205,219,220,221,222,223,23],"watchos design guidelines","workout","human","apple","watch","apps","interface","for","platform-design","features",{"skillNo":225,"name":226,"nameZh":6,"description":227,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":184,"licenseFileUrl":6,"sourceHtmlUrl":228,"categories":229,"keywords":230,"publishedAt":39},"01M6X9Y2VCWR29YKF4SBSRX47B","visionos-design-guidelines","Apple Human Interface Guidelines for Apple Vision Pro. Use when building spatial computing apps, implementing eye\u002Fhand input, or designing immersive experiences. Triggers on tasks involving visionOS, RealityKit, spatial UI, or mixed reality.","https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Fvisionos\u002FSKILL.md",[],[188,190,231,232,196,201,216,217,204,205,219,233,220,234,235,206,221,222,23,236],"visionos design guidelines","visionos","mixed reality","pro","hand","spatial computing",{"skillNo":238,"name":239,"nameZh":6,"description":240,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":184,"licenseFileUrl":6,"sourceHtmlUrl":241,"categories":242,"keywords":243,"publishedAt":39},"01M6X9X510STJ022C8VGRQAHSE","tvos-design-guidelines","Apple Human Interface Guidelines for Apple TV. Use when building tvOS apps with focus-based navigation, Siri Remote input, or living room viewing experiences. Triggers on tasks involving Apple TV, tvOS, 10-foot UI, or media playback.","https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Ftvos\u002FSKILL.md",[],[188,190,244,196,245,201,246,216,217,204,205,219,247,248,249,220,250,221,222,23],"tvos design guidelines","Media","focus","input","remote","with","tv",{"skillNo":252,"name":253,"nameZh":6,"description":254,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":255,"licenseFileUrl":6,"sourceHtmlUrl":256,"categories":257,"keywords":258,"publishedAt":39},"01M6X9TZJ5QZM13B0AR1VSNHKS","sqlmap-defensive-audit","Use when working with sqlmap for defensive SQL injection research, local lab validation, code reading, or safe remediation guidance around SQLi testing workflows.","GPL-2.0","https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Fsqlmap-defensive-audit\u002FSKILL.md",[],[259,260,261,262,263,264,265,266,267,197,268,269,201,270,271,249,272,273,221,23],"audit","sqlmap","defensive","sqlmap defensive audit","testing","safe","research","workflows","sql","validation","remediation","guidance","local","reading","lab",{"skillNo":275,"name":276,"nameZh":6,"description":277,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":278,"licenseFileUrl":6,"sourceHtmlUrl":279,"categories":280,"keywords":281,"publishedAt":39},"01M6X9THKZARNAJQWTCT5CTH33","social-analyzer-osint","Use when working with Social Analyzer for profile discovery, OSINT workflow review, Python or Node setup, browser automation constraints, or defensive social footprint analysis.","AGPL-3.0","https:\u002F\u002Fgithub.com\u002Fgerald-ica\u002Fopencode-config-snapshot\u002Fblob\u002Fmain\u002Fopencode\u002Fskills\u002Fsocial-analyzer-osint\u002FSKILL.md",[],[282,283,284,285,286,287,288,289,290,291,292,293,294,295,201,296,261,249,221,23],"osint","social","analyzer","social analyzer osint","browser automation","python","workflow","automation","setup","browser","constraints","analysis","discovery","node","workflow review"]