sktime-add-foundation-model
Skill by sktime
Guides an assistant through adding a pretrained time series foundation model to sktime as a forecaster. It is for contributors porting or wrapping Hugging Face, GitHub or paper models.
Install sktime-add-foundation-model
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sktime/sktime /tmp/sktime && mkdir -p ~/.claude/skills && cp -r /tmp/sktime/.agents/skills/sktime-add-foundation-model ~/.claude/skills/sktime-add-foundation-modelRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install sktime-add-foundation-model in Claude Code
git clone --depth 1 https://github.com/sktime/sktime /tmp/sktime && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/sktime/.agents/skills/sktime-add-foundation-model ~/.gemini/antigravity-cli/skills/sktime-add-foundation-modelAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install sktime-add-foundation-model in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a contributor guide for adding a pretrained time series foundation model to sktime as a forecaster. It covers models sourced from a Hugging Face checkpoint, a GitHub repo or a paper. The workflow starts with a duplicate check and an inspection of the upstream code, done without running it. It then covers licensing, weights access, and the choice between depending on a PyPI package and vendoring code into sktime/libs.
The skill then describes writing the forecaster adapter, with fit loading the model, predict running inference, and update only changing stored context. It also covers soft dependency isolation, model caching, device handling, probabilistic output and golden tests. It is written for sktime contributors, including those new to the project, and it asks the assistant to explain each decision and not to commit or open a PR unless asked.
Written from the project's SKILL.md and checked against it.
What it can do
- Inspect upstream codeReads the upstream source as untrusted data, without executing it or installing it.
- Check licensing and gatingEstablishes code and weights licenses and whether the checkpoint is gated.
- Choose packagingDecides between a PyPI dependency and vendoring code into sktime/libs.
- Write the forecasterCreates an adapter in sktime/forecasting from the extension template, with tags and loading rules.
- Add testsSets up get_test_params with tiny models and golden tests against reference forecasts.
- Update docsAdds API reference entries, vendor README entries and class docstring notes.
- Verify isolationRuns check_estimator and the no-softdeps test job, plus manual checks of predict methods.
What you need
- A Python environment with sktime and the model's dependencies
- Access to Hugging Face for weights, if the checkpoint is gated
- A local checkout of the sktime repository
Try asking
- Add the Hugging Face time series model at this repo as an sktime forecaster
- Check the license and gating of this foundation model before vendoring it
- Write golden tests for my new sktime foundation model forecaster
Good to know
- Inspection is done without running or installing the upstream code.
- Real-weight verification must run in a separate environment, and the skill says to report anything not run.
- Existing foundation model forecasters may predate these rules, so the skill says to follow it over old code.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/sktime-add-foundation-model/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB -
references/adapter-checklist.md11 KB -
references/vendoring.md5 KB
Alternatives to sktime-add-foundation-model
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
sktime-add-foundation-model: common questions
Can this skill add a Hugging Face time series model to sktime?
Yes. It covers adding a pretrained or zero-shot forecasting model from a Hugging Face checkpoint, GitHub repo or paper.
Does the skill allow trust_remote_code?
No. The source says sktime code must never use trust_remote_code=True, because it runs unreviewed code from the Hub.
Does it open pull requests automatically?
No. The skill says not to commit, push or open a PR unless the user asks for it.
How do I install sktime-add-foundation-model?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is sktime-add-foundation-model free?
The code is published under the BSD-3-Clause licence. The service it connects to may have its own pricing.
Is sktime-add-foundation-model safe to use?
It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to sktime-add-foundation-model?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
