dv-add-model-provider
БесплатноБез исполняемых скриптовНе проверенUse to add a provider plugin, a model, or a server to the DreamVerse model catalog @dv/models. For coding agents.
от fastvideo-project★ 128 звёзд на GitHubОб этом скилле
Add a DreamVerse model provider
This skill is for coding agents that change this repository. The app agent uses the runtime skill video-model-selection.
Use this skill to connect a provider to the DreamVerse model catalog @dv/models. A provider plugin registers model entries into ctx.dvModels. Do not edit @dv/models to add a provider, a model, or a server.
This skill uses these terms:
- Provider: a video generation system, such as FastVideo, fal, or SGLang.
- Server: one running backend of a provider.
- Provider plugin: a DSH plugin package that connects one provider to
ctx.dvModels. - Entry: one
ModelEntry. An entry is one model of one provider for one task. - Key: the four entry fields
modality,task,providerandmodel.
The example is the provider plugin @dv/fastvideo in packages/dv/fastvideo/. Use its files as the example. Do not copy its model data. FastVideo publishes no limits endpoint, so @dv/fastvideo reads the limits of each server from the validated modelFacts config of that server. @dv/uniserve in packages/dv/uniserve/ reads the limits from its server.
No compatibility code
@dv/models has one key format and one entry type. Do not add aliases, adapters, or fallback code for other catalog formats.
Read first
- Read
packages/dv/models/README.md. - In that README, read the sections "Model keys", "Model entries", and "Render requests and render streams".
- Read the sections "The
dvModelsservice", "What a provider plugin owns", and "Add a provider or a model". - Read the section "Known Limitations and Deferred Work".
- Read
packages/dv/models/src/types.ts. The JSDoc ofModelEntryis the contract that each entry must obey. - Read
packages/dv/fastvideo/src/index.tsandpackages/dv/fastvideo/tests/fastvideo.spec.ts. - Read
packages/AGENTS.mdanddocs/cookbook/adding-a-package.mdbefore you create a package.
What a provider must supply
A provider plugin can implement an entry only when the provider supplies the items in this section. Examine the provider before you write code. If the provider does not supply an item, tell the user before you continue.
- Model limits. The provider must give the limits of each model for each task:
- The shortest and the longest shot duration, in whole seconds.
- The frame count for each supported duration, or exact
durationsSecchoices when the API accepts seconds without publishing frame counts. Do not invent frame rates. - The aspect ratios and the resolutions, with a default value for each.
- The frame size in pixels for each supported pair when published; duration-based APIs may omit unknown
frameSizes. Do not invent pixel geometry. - The input limits: the minimum and maximum count of references and of first frames.
- The media types that each input accepts, such as
image,video, oraudio, with a maximum count for each media type.
- Access to the limits. The provider must give the limits through an endpoint or in its documentation. When the provider has an endpoint for the limits, read the limits from that endpoint. Then
facts()andschema()give the values that the running server uses. When the provider has no endpoint for the limits, put the documented limits in a validated config field of each server, such asmodelFactsof@dv/fastvideo. Refuse a config whose limits are not consistent when the plugin loads. - Model parameters. The provider must document the name, the type, and the range of each model parameter. These parameters go into
extra. - Model ID. The provider must give a stable ID for each served model.
facts()returns this ID asmodelId. - Render endpoint. The provider must accept one request with these values, or values that the plugin can translate into them:
- The prompt.
- The reference media, in order, with the media type of each item.
- An optional first frame image.
- The frame width and the frame height.
- The frame count.
- The seed.
- The values of the model parameters.
- Media transfer. The provider must accept the media bytes in the request, or a URL that the plugin can create for each asset.
- Output. The provider must return the video bytes and the media type of the video.
- Last frame. The provider must return the last frame of the video, or the plugin must have a way to extract it as PNG bytes.
- Errors. The provider must report a failed render as an error that the plugin can detect, with a message.
- Cancellation. Use the documented remote cancellation contract. If the provider has none, explicitly expose monitoring-only cancellation in the schema, model description, UI, and documentation; do not invent a cancellation endpoint or claim that local abort stops provider billing.
What the provider plugin must implement
Do these steps to add a provider.
Create the package
- Create the package
packages/dv/<provider>/, wher
Установить dv-add-model-provider в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл dv-add-model-provider?
Use to add a provider plugin, a model, or a server to the DreamVerse model catalog @dv/models. For coding agents.
Как установить скилл dv-add-model-provider?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dv-add-model-provider запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic