Skip to content
Back to skills

Models And Providers

ASecurity

"Guides agents through Pydantic AI model selection, provider

  • 247 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
ai-agentspythongotestingapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill models-and-providers --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Models And Providers?

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

Security grade badge for Models And Providers
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-models-and-providers/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-models-and-providers)

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: models-and-providers
description: "Guides agents through Pydantic AI model selection, provider
  configuration, optional extras, native tools, embeddings, wrappers, fallback,
  concurrency, and provider troubleshooting."
disable-model-invocation: true
metadata:
  disco-role: operating
license: MIT
---

# Models and Providers

Use this sub-skill when a task involves choosing a Pydantic AI model string, configuring a provider or profile, installing optional provider dependencies, wrapping models for fallback/concurrency/instrumentation, adding provider-native tools, using embeddings, or diagnosing provider import/auth/settings failures.

## Read First

- Read [references/model-selection.md](references/model-selection.md) to choose `provider:model-name` strings, direct model/provider/profile classes, `ModelSettings`, `known_model_names()`, `FallbackModel`, `ConcurrencyLimitedModel`, and `InstrumentedModel`.
- Read [references/provider-installation.md](references/provider-installation.md) to map model strings, providers, embeddings, and common tools to the smallest `pydantic-ai-slim[...]` extra and environment-variable checklist.
- Read [references/native-tools-and-embeddings.md](references/native-tools-and-embeddings.md) when adding provider-native `WebSearchTool`, `CodeExecutionTool`, `MCPServerTool`, `FileSearchTool`, embedding workflows, or common tools that require extras.
- Read [references/troubleshooting.md](references/troubleshooting.md) to debug missing provider prefixes, optional SDK imports, API keys, Google/Vertex naming, profile/schema incompatibilities, fallback timing, and native-tool failures.
- Run [scripts/check_optional_provider.py](scripts/check_optional_provider.py) for a no-network import/config diagnostic for selected model, embedding, or common-tool providers.

## Route Elsewhere

- Use `../agent-core/` for `Agent` construction, run modes, dependencies, streaming, message history, and deterministic `TestModel`/`FunctionModel` testing.
- Use `../tools-and-toolsets/` for Python function tools, tool schemas, toolsets, approvals, deferred tools, and `ModelRetry` design.
- Use `../outputs-and-messages/` for `NativeOutput`, structured output support, message parts, multimodal content, and output/history serialization.
- Use `../mcp-and-integrations/` for MCP client/server lifecycles, provider-adaptive capabilities, Logfire, UI adapters, and durable execution integrations.
- Use `../cli-and-apps/` for `clai`, `pai`, web UI, and command-line model flags.

## Operating Rules

- Prefer provider-prefixed strings such as `openai:gpt-5.2`, `anthropic:claude-opus-4-6`, `google:gemini-3-pro-preview`, or `openrouter:google/gemini-3-pro-preview` when portability is enough.
- Instantiate concrete model/provider classes only when customizing authentication, base URLs, HTTP clients, profiles, default settings, retries, or gateway behavior.
- Treat cloud SDKs, credentials, native tools, common web tools, and embeddings as optional: diagnose imports and configuration locally before claiming provider access.
- Do not run cloud verification scripts or upload helpers as part of this runtime skill; credentialed Bedrock, Vertex/GCS, and file-upload scripts are source evidence only and are intentionally excluded.

Files in this skill

  • SKILL.md3.2 KB
  • references/model-selection.md8.1 KB
  • references/native-tools-and-embeddings.md6.2 KB
  • references/provider-installation.md7.5 KB
  • references/troubleshooting.md7.6 KB
  • scripts/check_optional_provider.py9.8 KB

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.

Comments

Loading comments…

Newsletter

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