Skip to content
Back to skills

Swap Model

ASecurity

Change which model an alias uses or add a model to a fallback chain. Usage: /swap-model <alias> <provider/model> [position]. Edits config only, then reloads and smoke-tests.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 6, 2026
ai-agents

Security analysis

A100/100

Scanned October 6, 2026

npx -y skills add AndrewTtofi/llm-gateway --skill swap-model --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Swap Model?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Swap Model
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/andrewttofi-swap-model/badge)](https://www.skillsdirectory.com/skills/andrewttofi-swap-model)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: swap-model
description: Change which model an alias uses or add a model to a fallback chain. Usage: /swap-model <alias> <provider/model> [position]. Edits config only, then reloads and smoke-tests.
---
1. Confirm the provider exists in config/models.yaml; if not, run add-provider first.
2. Verify the model ID against the provider's current docs (WebFetch) — model IDs change.
3. Edit config/models.yaml: replace or insert the model in the alias chain (position defaults to first).
4. Ensure config/pricing.yaml has an entry; if the price is unknown, add null and tell the user.
5. Run `make test` (config tests catch typos), then `make reload`.
6. Smoke test: one non-streaming and one streaming request to the alias; show which provider served it (x-gateway-provider header).
7. Add a CHANGELOG entry under [Unreleased] → Changed: "alias <x> now uses <model>".
No code in app/ should change. If it seems to need to, stop and explain why.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.