The unofficial CLI client for sktime framework
4
stars
41
commits
Python
primary language
Aug 25, 2026
updated
The command line for sktime, built for AI agents and humans.
Search estimators, fetch datasets, inspect time series files, and run fit / predict / evaluate workflows straight from your shell.
sktime is a Python library, so trying a forecaster usually means opening an editor:
import pandas as pd
from sktime.forecasting.naive import NaiveForecaster
y = pd.read_csv("airline.csv", index_col=0).squeeze()
y.index = pd.PeriodIndex(y.index, freq="M")
forecaster = NaiveForecaster(sp=12)
forecaster.fit(y)
print(forecaster.predict(fh=range(1, 13)))
The same forecast, from the shell:
sktime-cli run fit-predict "NaiveForecaster(sp=12)" --data airline.csv --fh 1:12
Both print the same twelve numbers. The difference is what you needed to know
first: that NaiveForecaster lives in sktime.forecasting.naive, and that
sktime wants a PeriodIndex rather than the strings the csv gave you. The
CLI works both of those out for you, from the file and the estimator name.
Every command is one process. It reads files or names, calls sktime, writes results, and exits with a meaningful code.
run fit writes a .zip you can copy, commit, or delete, and any later
command picks it up by path. Run something twice and you get the same
answer.registry search forecaster -t capability:missing_values=true lists every
forecaster that handles gaps, marking the ones whose dependencies you
already have. Results come from a disk cache, so repeat searches are cheap."NaiveForecaster(sp=12)" is the
whole configuration. * composes a pipeline, | a multiplexer, and +
a transformer union, so "Deseasonalizer() * NaiveForecaster()" is a
model too..ts, .tsf,
and .arff go in. --format human|agent|json|quiet comes out.3
with the install command in the error's hint. Nothing fails with a bare
traceback.uv tool install sktime-cli # or: pip install sktime-cli
Check the setup and see which optional dependencies are available:
sktime-cli doctor
# What can I use?
sktime-cli registry search forecaster -t capability:missing_values=true
sktime-cli registry describe NaiveForecaster
# Get data.
sktime-cli datasets load airline --output airline.csv
sktime-cli data inspect airline.csv
# Fit, predict, evaluate. Estimators are given as sktime spec strings.
sktime-cli run fit "NaiveForecaster(sp=12)" --data airline.csv --model-out model.zip
sktime-cli run predict --model model.zip --fh 1:12
sktime-cli run evaluate "NaiveForecaster(sp=12)" --data airline.csv --fh 1:12 \
--metric MeanAbsolutePercentageError
--data takes either a file path or a dataset name, so once you know the name
you can skip the download and pass --data airline directly. A path is read
wins, so a local airline.csv shadows the built-in airline dataset.
For a longer walkthrough, see the quickstart.
| Group | Commands | What it does |
|---|---|---|
registry | search · describe · tags · types | Find sktime estimators by scitype, name, and capability tag |
datasets | list · describe · load | Browse and fetch built-in, UCR/UEA, Monash, and fpp3 datasets |
catalogues | list · get | Browse sktime's benchmark catalogues |
data | inspect · convert · split | Detect mtypes and scitypes, convert formats, split temporally and into folds |
run | fit · predict · fit-predict · transform · detect · evaluate | One-shot workflows for forecasting, classification, transformation and detection |
model | inspect | Look inside a saved model artifact and round-trip its spec |
metrics | list · score | List metric objects and score predictions against observations |
| (top level) | check · version · env · doctor · cache | Validate an object against sktime's API, environment info, health check, workspace |
Every option is listed in the CLI reference, which is generated from the application itself.
Add --json to any command and you get exactly one parseable JSON document on
stdout. Errors are JSON on stderr, with stable codes and a hint field that
usually contains the fix.
| Exit | Meaning |
|---|---|
0 | Success |
1 | Library or unexpected failure |
2 | Usage error |
3 | Missing optional dependency, and the hint says what to install |
4 | Estimator, dataset, or model not found |
5 | Data validation or spec error |
The full agent contract and task recipes live in an
agent skill
that also ships inside the package, at the location package-bundled skills use. Add
sktime-cli to the project, then let
library-skills find it:
uv add sktime-cli # or: pip install sktime-cli
uvx library-skills --claude # installs the skills you pick from your packages
That symlinks the skill into .agents/skills/, and --claude adds
.claude/skills/ for Claude Code. Your agent then knows how to drive the CLI.
To skip the prompt, name it: uvx library-skills --claude --skill sktime-cli.
If you installed the CLI as a standalone tool rather than as a project dependency, pull the skill straight from this repository:
npx skills add siddharth7113/sktime-cli
Or copy the one file yourself:
mkdir -p ~/.claude/skills/sktime-cli
curl -fsSL https://raw.githubusercontent.com/siddharth7113/sktime-cli/main/skills/sktime-cli/SKILL.md \
-o ~/.claude/skills/sktime-cli/SKILL.md
For the details, see using sktime-cli from an agent.
Full documentation is at sktime-cli.readthedocs.io:
sktime-cli is an independent, unofficial command-line client for sktime. It
is not maintained by or affiliated with the sktime project.
Version 0.0.2 is an early alpha release. Discovery and one-shot runs work, and the roadmap lists what comes next.
Issues and pull requests are welcome. To set up a development environment, run the checks, and build the docs, see Contributing.
BSD 3-Clause, matching sktime.
41 commits
Python
100.0%
The unofficial CLI client for sktime framework
4
stars
41
commits
Python
primary language
Aug 25, 2026
updated
The command line for sktime, built for AI agents and humans.
Search estimators, fetch datasets, inspect time series files, and run fit / predict / evaluate workflows straight from your shell.
sktime is a Python library, so trying a forecaster usually means opening an editor:
import pandas as pd
from sktime.forecasting.naive import NaiveForecaster
y = pd.read_csv("airline.csv", index_col=0).squeeze()
y.index = pd.PeriodIndex(y.index, freq="M")
forecaster = NaiveForecaster(sp=12)
forecaster.fit(y)
print(forecaster.predict(fh=range(1, 13)))
The same forecast, from the shell:
sktime-cli run fit-predict "NaiveForecaster(sp=12)" --data airline.csv --fh 1:12
Both print the same twelve numbers. The difference is what you needed to know
first: that NaiveForecaster lives in sktime.forecasting.naive, and that
sktime wants a PeriodIndex rather than the strings the csv gave you. The
CLI works both of those out for you, from the file and the estimator name.
Every command is one process. It reads files or names, calls sktime, writes results, and exits with a meaningful code.
run fit writes a .zip you can copy, commit, or delete, and any later
command picks it up by path. Run something twice and you get the same
answer.registry search forecaster -t capability:missing_values=true lists every
forecaster that handles gaps, marking the ones whose dependencies you
already have. Results come from a disk cache, so repeat searches are cheap."NaiveForecaster(sp=12)" is the
whole configuration. * composes a pipeline, | a multiplexer, and +
a transformer union, so "Deseasonalizer() * NaiveForecaster()" is a
model too..ts, .tsf,
and .arff go in. --format human|agent|json|quiet comes out.3
with the install command in the error's hint. Nothing fails with a bare
traceback.uv tool install sktime-cli # or: pip install sktime-cli
Check the setup and see which optional dependencies are available:
sktime-cli doctor
# What can I use?
sktime-cli registry search forecaster -t capability:missing_values=true
sktime-cli registry describe NaiveForecaster
# Get data.
sktime-cli datasets load airline --output airline.csv
sktime-cli data inspect airline.csv
# Fit, predict, evaluate. Estimators are given as sktime spec strings.
sktime-cli run fit "NaiveForecaster(sp=12)" --data airline.csv --model-out model.zip
sktime-cli run predict --model model.zip --fh 1:12
sktime-cli run evaluate "NaiveForecaster(sp=12)" --data airline.csv --fh 1:12 \
--metric MeanAbsolutePercentageError
--data takes either a file path or a dataset name, so once you know the name
you can skip the download and pass --data airline directly. A path is read
wins, so a local airline.csv shadows the built-in airline dataset.
For a longer walkthrough, see the quickstart.
| Group | Commands | What it does |
|---|---|---|
registry | search · describe · tags · types | Find sktime estimators by scitype, name, and capability tag |
datasets | list · describe · load | Browse and fetch built-in, UCR/UEA, Monash, and fpp3 datasets |
catalogues | list · get | Browse sktime's benchmark catalogues |
data | inspect · convert · split | Detect mtypes and scitypes, convert formats, split temporally and into folds |
run | fit · predict · fit-predict · transform · detect · evaluate | One-shot workflows for forecasting, classification, transformation and detection |
model | inspect | Look inside a saved model artifact and round-trip its spec |
metrics | list · score | List metric objects and score predictions against observations |
| (top level) | check · version · env · doctor · cache | Validate an object against sktime's API, environment info, health check, workspace |
Every option is listed in the CLI reference, which is generated from the application itself.
Add --json to any command and you get exactly one parseable JSON document on
stdout. Errors are JSON on stderr, with stable codes and a hint field that
usually contains the fix.
| Exit | Meaning |
|---|---|
0 | Success |
1 | Library or unexpected failure |
2 | Usage error |
3 | Missing optional dependency, and the hint says what to install |
4 | Estimator, dataset, or model not found |
5 | Data validation or spec error |
The full agent contract and task recipes live in an
agent skill
that also ships inside the package, at the location package-bundled skills use. Add
sktime-cli to the project, then let
library-skills find it:
uv add sktime-cli # or: pip install sktime-cli
uvx library-skills --claude # installs the skills you pick from your packages
That symlinks the skill into .agents/skills/, and --claude adds
.claude/skills/ for Claude Code. Your agent then knows how to drive the CLI.
To skip the prompt, name it: uvx library-skills --claude --skill sktime-cli.
If you installed the CLI as a standalone tool rather than as a project dependency, pull the skill straight from this repository:
npx skills add siddharth7113/sktime-cli
Or copy the one file yourself:
mkdir -p ~/.claude/skills/sktime-cli
curl -fsSL https://raw.githubusercontent.com/siddharth7113/sktime-cli/main/skills/sktime-cli/SKILL.md \
-o ~/.claude/skills/sktime-cli/SKILL.md
For the details, see using sktime-cli from an agent.
Full documentation is at sktime-cli.readthedocs.io:
sktime-cli is an independent, unofficial command-line client for sktime. It
is not maintained by or affiliated with the sktime project.
Version 0.0.2 is an early alpha release. Discovery and one-shot runs work, and the roadmap lists what comes next.
Issues and pull requests are welcome. To set up a development environment, run the checks, and build the docs, see Contributing.
BSD 3-Clause, matching sktime.
41 commits
Python
100.0%