No slash command · from anofox-tabfm
Generates synthetic tabular data and imputes missing values using the anofox_tabfm DuckDB extension. tabfm_generate samples new rows preserving column relationships; tabfm_impute fills NULLs conditioned on other columns. Useful for data augmentation, upsampling rare segments, or filling missing entries.
Ships in anofox-tabfm. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Extension: anofox_tabfm v2026.12.05 | DuckDB: v1.5.6 / v2.0 | Dual naming: tabfm_* and anofox_tabfm_* (identical)
The in-context engine used backwards: instead of predicting one column it models the table as a joint distribution, one column at a time (the chain rule), so relationships between columns survive, not only each column's marginal.
nori-30m and nori-1-5 are regress-only:
tabfm_generate refuses them, tabfm_impute fills numeric columns only.bins, at most 10): resolution is capped and extrapolation is impossible. A wide empty stretch
(iris petal length 1.9-3.0) is always a bin edge and never filled in.features := [...] or pass a subquery without them, and mint fresh keys yourself. For
impute, keep := ['id'] passes the key through untouched instead (never a feature, never filled).n. real rows + n must stay
within anofox_tabfm_max_rows (default 10000): for more synthetic rows, sample the input or make several
calls with different seeds. Impute costs rounds x (columns with NULLs) calls; columns := [...] limits it.opts values are strings; an unknown key or an out-of-range value is an error.seed gives the same rows.tabfm_generate(data, n [, features] [, opts] [, model]) -- sample n new rows
tabfm_impute (data [, columns] [, features] [, opts] [, model] [, keep]) -- fill NULLs
| argument | meaning |
|---|---|
data | table name or '(SELECT ...)': the rows to model (generate) or to fill (impute) |
n | a positive constant: how many rows to generate |
columns | impute only: the columns to fill (default: every column with a NULL) |
features | the columns used at all; the others are dropped from the output |
keep | impute only: columns passed through unchanged (a row key); never features, never filled. A name that matches nothing, or is also in columns / features, is an error |
opts | MAP(VARCHAR, VARCHAR), below |
model | model id; default anofox_tabfm_default_model |
| key | default | applies to | meaning |
|---|---|---|---|
seed | 42 | both | RNG seed |
temperature | 1.0 | generate | diversity: higher explores more, lower hugs the data |
bins | 10 | generate | quantile buckets per continuous column, 2–10 (clamped to the model's class head) |
column_order | random | generate | random, natural or missingness; impute ignores it and always fills the column with the fewest NULLs first |
rounds | 1 | impute | MICE-style refinement sweeps, 1–16 |
tabfm_generate: every column of data (or only features), plus synthetic_id (1..n, generation
order). With features omitted, SELECT * EXCLUDE (synthetic_id) has the shape of data.tabfm_impute: exactly the columns of data (or only features plus keep), so it round-trips. Non-NULL cells are
never changed; fills are the conditional best estimate (deterministic), at full precision for continuous
columns. A NaN in a FLOAT / DOUBLE column being filled counts as missing; ±Infinity is an error.SELECT * FROM tabfm_generate('(SELECT * EXCLUDE (id) FROM customers)', 100, model := 'mitra');
-- more diverse, reproducible
SELECT * FROM tabfm_generate('(SELECT * EXCLUDE (id) FROM customers)', 100,
opts := MAP{'seed': '7', 'temperature': '1.3'}, model := 'mitra');
-- only some columns
SELECT * FROM tabfm_generate('customers', 50, features := ['age', 'plan', 'income', 'churned'],
model := 'mitra');
Append to the source table, with fresh keys:
INSERT INTO customers
SELECT (SELECT max(id) FROM customers) + synthetic_id AS id, * EXCLUDE (synthetic_id)
FROM tabfm_generate('(SELECT * EXCLUDE (id) FROM customers)', 20, model := 'mitra');
Conditional generation is a filter on the input: generate from the segment you want more of.
SELECT * FROM tabfm_generate('(SELECT * EXCLUDE (id) FROM customers WHERE churned)', 50, model := 'mitra');
-- every NULL cell
CREATE TABLE clean AS SELECT * FROM tabfm_impute('raw', model := 'mitra');
-- only some columns, with refinement sweeps
SELECT * FROM tabfm_impute('raw', columns := ['income'], opts := MAP{'rounds': '3'}, model := 'mitra');
-- a row key that must come back but must not condition the fills
SELECT * FROM tabfm_impute('raw', keep := ['id'], model := 'mitra');
Compare marginals and a relationship between the real and the synthetic table:
CREATE TABLE synth AS
SELECT * EXCLUDE (synthetic_id) FROM tabfm_generate('(SELECT * EXCLUDE (id) FROM customers)', 200,
model := 'mitra');
SELECT 'real' AS src, avg(income) AS mean_income, avg(churned::INT) AS churn_rate,
corr(age, income) AS corr_age_income
FROM customers
UNION ALL
SELECT 'synthetic', avg(income), avg(churned::INT), corr(age, income) FROM synth;
-- category frequencies
SELECT plan, count(*) FILTER (WHERE src = 'real') AS real_n, count(*) FILTER (WHERE src = 'synth') AS synth_n
FROM (SELECT 'real' AS src, plan FROM customers UNION ALL SELECT 'synth', plan FROM synth)
GROUP BY plan ORDER BY plan;
Train on synthetic, test on real (TSTR) is the stronger check: generate from one part of the real data
and score a held-out part the generator never saw, with the synthetic table as context
(anofox-tabfm-predict and anofox-tabfm-evaluate). Compare with the same holdout scored from the real
training part (TRTR).
CREATE TABLE real_train AS SELECT * FROM customers WHERE hash(id) % 10 < 7;
CREATE TABLE real_hold AS SELECT * FROM customers WHERE hash(id) % 10 >= 7;
CREATE TABLE synth_train AS
SELECT * EXCLUDE (synthetic_id)
FROM tabfm_generate('(SELECT * EXCLUDE (id) FROM real_train)', 100, model := 'mitra');
-- keep := ['id'] brings the holdout's key back for the join (the synthetic context has none);
-- the holdout's labels in `test` are ignored
SELECT 'tstr' AS setup, tabfm_accuracy(h.churned, p.yhat) AS accuracy
FROM tabfm_classify('synth_train', 'churned', test := 'real_hold', keep := ['id'], model := 'mitra') p
JOIN real_hold h USING (id)
UNION ALL
SELECT 'trtr', tabfm_accuracy(h.churned, p.yhat)
FROM tabfm_classify('(SELECT * EXCLUDE (id) FROM real_train)', 'churned',
test := 'real_hold', keep := ['id'], model := 'mitra') p
JOIN real_hold h USING (id);
-- 0. once (needs httpfs): CALL tabfm_download('classification', model := 'mitra');
-- and, to impute numeric columns: CALL tabfm_download('regression', model := 'mitra');
SET anofox_tabfm_default_model = 'mitra';
-- 1. fill the gaps first, then model the clean table
CREATE TABLE filled AS SELECT * FROM tabfm_impute('raw');
-- 2. sample, keeping the source's shape
CREATE TABLE augmented AS
SELECT * FROM filled
UNION ALL
SELECT * EXCLUDE (synthetic_id) FROM tabfm_generate('filled', 40, opts := MAP{'seed': '1'});
SELECT count(*) FROM augmented;
More on the method and what binning preserves: docs/GENERATE.md in the repository.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub datazoode/anofox-tabfm --plugin anofox-tabfm5 skills in this plugin
/anofox-tabfm-evaluateEvaluating and comparing predictions with the anofox_tabfm DuckDB extension: classification metrics (accuracy, precision, recall, F1, ROC-AUC, log loss, ECE, confusion matrix), regression metrics (RMSE, MAE, R², MAPE, MedAE), proper scoring rules for predictive distributions (CRPS, log score, interval score), leakage-safe k-fold cross-validation, and the `_by` macros that feed anofox-visualization plots. Use when measuring how good a prediction is, comparing models with `tabfm_cross_validate` or `tabfm_fold_assign`, writing `tabfm_f1` / `tabfm_roc_auc` / `tabfm_rmse` aggregates, or plotting ROC, calibration, confusion-matrix or model-comparison charts with `tabfm_classification_metrics_by` and friends.
/anofox-tabfm-gpuGPU acceleration and device control for the anofox_tabfm DuckDB extension: NVIDIA CUDA and AMD ROCm (both served by the ggml GPU plugin) and Apple MLX backend plugins loaded at runtime, device discovery, per-model backend support, precision modes and GPU memory. Use when making predictions faster on a GPU, running `tabfm_accelerate` / `tabfm_download_runtime`, reading `tabfm_devices()` / `tabfm_backends()`, setting `anofox_tabfm_device`, `anofox_tabfm_gpu_precision` or `anofox_tabfm_ep_path`, checking which device actually served a query, or troubleshooting a GPU that is not used.
/anofox-tabfm-modelsChoosing, downloading and managing models for the anofox_tabfm DuckDB extension: the 27 built-in tabular foundation models (Mitra, TabPFN 2 / 2.5 / 2.6 / 3 / 3.5, TabICL v2, TabDPT, LimiX-2 and 2M, Kumo-Tabular, Inpriora, EXAONE, Nori, Orion, Causilo, Google TabFM), their licences and commercial use, the licence gate, Hugging Face tokens, and registering your own ONNX model. Use when picking a model, running `tabfm_download` / `tabfm_load` / `tabfm_unload` / `tabfm_remove`, reading `tabfm_list_models()` or `tabfm_models()`, setting `anofox_tabfm_default_model` or `anofox_tabfm_accept_hf_license`, calling `tabfm_register_model`, tuning the context cache, or checking whether a model may be used commercially.
/anofox-tabfm-predictZero-shot classification and regression in SQL with the anofox_tabfm DuckDB extension (tabular foundation models: TabPFN, Mitra, TabICL, TabDPT, LimiX and more). Use when predicting a label or a number for table rows from labelled example rows without training a model, writing `tabfm_classify` / `tabfm_regress` calls (train/test pair or one table with NULL targets), choosing features or `opts`, keeping a row key with `keep`, reading `yhat` / `yhat_score` / `proba`, scoring per segment, or bounding memory with `query_batch`.
Other plugins' skills for the same job