# Kiln Check Deprecation

Check Kiln's model list for deprecated or sunset models across all providers.

- Repository: https://github.com/Kiln-AI/Kiln (5247 stars)
- Category: Engineering
- License: see repository
- Last updated: 2026-11-01
- Runs scripts: yes, review before use

## Install

Claude Code: `npx skills add Kiln-AI/Kiln --skill kiln-check-deprecation -g -a claude-code -y`
Codex: `npx skills add Kiln-AI/Kiln --skill kiln-check-deprecation -g -a codex -y`
Cursor: `npx skills add Kiln-AI/Kiln --skill kiln-check-deprecation -g -a cursor -y`
Gemini CLI: `npx skills add Kiln-AI/Kiln --skill kiln-check-deprecation -g -a gemini-cli -y`

## Description

Check Kiln's model list for deprecated or sunset models across all providers. Use when the user wants to find deprecated models, check model availability, audit the model list for stale entries, or mentions model deprecation/sunset/end-of-life.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Check Model Deprecation in Kiln

Audit `libs/core/kiln_ai/adapters/ml_model_list.py` to find models that have been deprecated, removed, or are approaching end-of-life across all providers. **All checks are free**, they use model-listing endpoints, not inference.

---

## Global Rules

- **Sandbox:** All `curl`, `uv run`, and `python3` commands that hit the network MUST use `required_permissions: ["all"]`. The sandbox blocks network access.
- **Env vars:** Source `.env` before running check scripts: `export $(grep -v '^#' .env | xargs)`
- **Vertex AI auth:** The Vertex check requires `gcloud` CLI authentication. Before running, ask the user to run `gcloud auth login` if they haven't recently. If `gcloud auth print-access-token` fails, prompt the user to authenticate.
- **Non-destructive:** This skill only sets `deprecated=True` on individual provider entries. It never removes models or providers from the list.
- **Skip already-deprecated:** Only check providers where `deprecated=False` (the default). Don't re-check entries already marked deprecated.

---

## Phase 1, Extract Current Model-Provider Pairs

Run the extraction script from the repo root:

```bash
python3 .agents/skills/kiln-check-deprecation/scripts/extract_models.py > /tmp/kiln_extracted.json
```

This fetches the published model list from `https://remote-config.getkiln.ai/kiln_config_v2.json` and extracts:
- The provider name
- The model_id
- The parent model's enum name

It skips entries already marked `deprecated=True`.

**Output:** JSON to stdout (pipe to file), human summary to stderr.

The JSON contains:
- `deprecated_count`: number of already-deprecated entries
- `providers`: dict of provider_name → sorted unique list of model_ids
- `entries`: list of `{enum, provider, model_id}` for each non-deprecated entry

---

## Phase 2, Check Each Provider

### Option A: Check all providers at once

The rest: https://github.com/Kiln-AI/Kiln/blob/HEAD/.agents/skills/kiln-check-deprecation/SKILL.md
