Home / datazoode / anofox-forecast · plugins/anofox-forecast/skills/anofox-forecast-data-prep/SKILL.md · GitHub

anofox-forecast-data-prep skillA

anofox-forecast-data-prep is agent-read markdown (skill) from datazoode/anofox-forecast: Data preparation for the anofox_forecast DuckDB extension — filling gaps, imputing nulls, dropping bad series, differencing, detrending, hierarchical key operations. Use when preparing raw time series for downstream forecasting or backtesting with `ts_forecast_by` / `ts_cv_folds_by`..

Indexed from public GitHub and served as immutable, content-addressed versions. Install it pinned to an exact SHA-256 with the mdr CLI, and every file is verified against the hash recorded here before it reaches your agent. The deterministic audit below grades the latest version, and the same file always earns the same grade.

What the file says

# Anofox Forecast — Data Preparation Cheat Sheet

**Extension:** `anofox_forecast` v0.15.3 | **DuckDB:** v1.4.5 LTS / v1.5.4+ | **Dual naming:** `ts_*` and `anofox_fcst_ts_*` (identical)

Prep raw time series so downstream forecasting / CV has clean input: no gaps, no unwanted NULLs, no degenerate series, correct hierarchy.

## Critical gotcha — materialise between `_by` steps

`_by` table functions **do not chain in CTEs** — under parallel execution they silently return 0 rows. Always `CREATE TABLE` between pipeline steps.

```sql
-- BROKEN (silent 0 rows under parallelism):
WITH step1 AS (SELECT * FROM ts_fill_gaps_by('raw', id, ds, y, '1d', MAP{}))
SELECT * FROM ts_fill_nulls_const_by('step1', id, ds, y, 0.0);

-- CORRECT:
CREATE TABLE step1 AS SELECT * FROM ts_fill_gaps_by('raw', id, ds, y, '1d', MAP{});
CREATE TABLE step2 AS SELECT * FROM ts_fill_nulls_const_by('step1', id, ds, y, 0.0);
```

## Gap filling

### `ts_fill_gaps_by`
Insert missing date rows (NULL value) so every series has a complete regular grid.

```sql
ts_fill_gaps_by(source VARCHAR, group_col COLUMN, date_col COLUMN, value_col COLUMN,
                frequency VARCHAR) → TABLE
```
…

Read the whole file at its exact version.

How to install

Latest version
mdr add datazoode/anofox-forecast/anofox-forecast-data-prep@v0.15.3
Exact content
mdr add datazoode/anofox-forecast/anofox-forecast-data-prep@sha256:5ab3c81f6e0098a5

Pin to a label to follow the author's releases, or to a sha256 to freeze the exact bytes forever. Either way the resolved hash is written to mdr.lock, and mdr install reproduces it on any machine.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_2kjakfhqoesymzhd.svg)](https://markdownregistry.com/a/art_2kjakfhqoesymzhd)

1 badge views in 30 days

Versions

versioncommittedcommitsizeaudit
v0.15.3 latest2026-09-18 e2d0889 6,558 BA view

Audit of the latest version

A  17 of 17 checks passed. Deterministic, no model, same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (6558 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

datazoode/anofox-forecast · 39 stars · license NOASSERTION · pushed 2026-09-18 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_2kjakfhqoesymzhd
GET https://markdownregistry.com/api/v1/resolve?ref=datazoode/anofox-forecast/anofox-forecast-data-prep
GET https://markdownregistry.com/api/v1/blob/5ab3c81f6e0098a5ff1ce2173df7d180067e64ba0161418cad771e79fb27beba

Your agent does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

More from datazoode/anofox-forecast

CLAUDE.md@.claude claude
datazoode/anofox-forecast · .claude/CLAUDE.md
git:20260918.e2d0889 · audit A · 39 stars
AGENTS.md agents
datazoode/anofox-forecast · AGENTS.md
git:20260119.454c071 · audit A · 39 stars
anofox-forecast-backtest skill
datazoode/anofox-forecast · plugins/anofox-forecast/skills/anofox-forecast-backtest/SKILL.md · Backtesting, cross-validation, evaluation metrics, and conformal prediction intervals for the anofox_forecast DuckDB…
v0.15.3 · audit A · 39 stars
anofox-forecast-detection skill
datazoode/anofox-forecast · plugins/anofox-forecast/skills/anofox-forecast-detection/SKILL.md · Seasonality, changepoint, peak, and decomposition detection for the anofox_forecast DuckDB extension. Use when…
v0.15.3 · audit A · 39 stars
anofox-forecast-eda skill
datazoode/anofox-forecast · plugins/anofox-forecast/skills/anofox-forecast-eda/SKILL.md · Exploratory data analysis, data quality, and statistical diagnostics for the anofox_forecast DuckDB extension — 34…
v0.15.3 · audit A · 39 stars
anofox-forecast-models skill
datazoode/anofox-forecast · plugins/anofox-forecast/skills/anofox-forecast-models/SKILL.md · Forecasting models and the `ts_forecast_by` / `ts_forecast_var_by` API surface of the anofox_forecast DuckDB extension…
v0.15.3 · audit A · 39 stars

Every file in datazoode/anofox-forecast

Browse by kind, by grade A, or by owner.