update-llm-models

update-llm-models is a skill for Claude Code from yu-iskw/skill-inspector. It costs 40 tokens per session (678 once invoked), scanned C, original, Apache-2.0.

A maintenance procedure for checking and updating the default lightweight language-model choices in a TypeScript project. It uses web research to find current model identifiers for several providers.

In plain words
What is it for?
Use it when maintaining `src/core/llm.ts`, then run the project's lint and build checks to confirm the updates work.
Why use it?
It reduces the risk of a project relying on outdated model names or missing newer lightweight options.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when maintaining src/core/llm.ts, then run the project's lint and build checks to confirm the updates work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yu-iskw/skill-inspector/update-llm-models
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add yu-iskw/skill-inspector --skill update-llm-models
Clone the repo
git clone --depth 1 https://github.com/yu-iskw/skill-inspector

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for update-llm-models

README.md
[![agentmods](https://agentmods.dev/badge/skills/yu-iskw/skill-inspector/update-llm-models/github.svg)](https://agentmods.dev/skills/yu-iskw/skill-inspector/update-llm-models)
Your own site
<a href="https://agentmods.dev/skills/yu-iskw/skill-inspector/update-llm-models"><img src="https://agentmods.dev/badge/skills/yu-iskw/skill-inspector/update-llm-models/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for update-llm-models

Your own site · 80×15
<a href="https://agentmods.dev/skills/yu-iskw/skill-inspector/update-llm-models"><img src="https://agentmods.dev/badge/skills/yu-iskw/skill-inspector/update-llm-models.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 678 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.00678
Opus 5 $0.00020 $0.00339
Sonnet 5 $0.00008 $0.00136
Haiku 4.5 $0.00004 $0.00068

Measured 9d ago against content hash 30b359483ca9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade C, and why

update-llm-models scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

- **OpenAI**: [Models Overview](https://platform.openai.com/docs/models) <!-- trunk-ignore(markdown-link-check/403) -->
.claude/skills/update-llm-models/SKILL.md · 67 lines

How it starts

The opening of the file, as written. The whole thing — 67 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Update LLM Models

Purpose

This skill maintains the src/core/llm.ts file by ensuring that the default model identifiers for each provider are the latest available "lightweight" versions (e.g., Flash, Haiku, Mini).

Workflow

1. Research Latest Models

Use web_search to identify the most recent lightweight model identifiers for the following providers:

  • OpenAI: Look for "mini" or "nano" variants of the latest GPT model (e.g., GPT-5.2).
  • Anthropic: Look for "haiku" variants (e.g., Claude 4.5 Haiku).
  • Google: Look for "flash" variants (e.g., Gemini 3 Flash).
  • Mistral: Look for "small" or "mini" variants (e.g., Mistral Small 3.1).
  • Groq: Look for the most efficient models available on Groq (usually Llama 8B or 70B variants).

2. Identify Target Function

Locate the getDefaultModel function in [src/core/llm.ts](src/core/llm.ts).

3. Apply Updates

Update the return values in the switch statement for each provider. Ensure the model identifiers match the exact strings found during research.

4. Verification

  • Run pnpm lint to ensure no syntax errors or linting violations.
  • Run pnpm build to confirm the project still compiles.

Guidelines

  • Prefer Efficiency: Always choose the "lighter" or "faster" version if multiple variants exist (e.g., prefer gemini-2.5-flash over gemini-2.5-pro).
  • Exact Identifiers: Use the precise model identifier string required by the provider's API.
  • Provider Coverage: Ensure all providers in the LLMProvider type are addressed if they have a known lightweight default.

Examples

Before

case "google":
  return "gemini-2.5-flash";

After (Hypothetical Jan 2026)

case "google":
  return "gemini-3-flash";

Resources

Read the full file on GitHub · 67 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 67 lines · 40 tokens per session scan C 30b359483ca9

Subscribe to this mod's changes

update-llm-models is a skill published in the GitHub repository yu-iskw/skill-inspector (2 stars, last pushed 8d ago), licensed Apache-2.0. It adds 40 tokens to every session and 678 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

ax-signature

This skill helps an LLM generate correct DSPy signature code using @ax-llm/ax. Use when the user asks about signatures, s(), f(), field types, string syntax, fluent builder API, validation constraints, or type-safe inputs/outputs.

ax-llm/ax · 57 tokens

ax-cpp-gepa

Use when writing C++ code with axllm for GEPA, Pareto tradeoffs, reflection clients, metric budgets, optimizer state, and artifacts.

ax-llm/ax · 39 tokens

model-context

MCP (Model Context Protocol) - Build AI-native servers with tools, resources, and prompts. TypeScript/Python SDKs for Claude Desktop integration.

bobmatnyc/claude-mpm-skills · 34 tokens

ai-sdk

Answer questions about the AI SDK and help build AI-powered features. Use when developers: (1) Ask about AI SDK functions like generateText, streamText, ToolLoopAgent, embed, or tools, (2) Want to build AI agents, chatbots, RAG systems, or text generation features, (3) Have questions about AI providers (OpenAI…

pleaseai/claude-code-plugins · 155 tokens

ax-python-gen

Use when writing Python code with axllm for AxGen programs, forward calls, indexed multi-sampling, result pickers, streaming, tools, assertions, traces, usage, and output parsing.

ax-llm/ax · 46 tokens

system-createcli

Generate production-quality TypeScript CLIs with full documentation, error handling, and best practices. Creates deterministic, type-safe command-line tools following PAI's CLI-First Architecture. USE WHEN user says "create a CLI", "build a command-line tool", "make a CLI for X", or requests CLI generation. (user).

CarbeneAI/Forge · 70 tokens