Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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, provider and model.

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

  1. Read packages/dv/models/README.md.
  2. In that README, read the sections "Model keys", "Model entries", and "Render requests and render streams".
  3. Read the sections "The dvModels service", "What a provider plugin owns", and "Add a provider or a model".
  4. Read the section "Known Limitations and Deferred Work".
  5. Read packages/dv/models/src/types.ts. The JSDoc of ModelEntry is the contract that each entry must obey.
  6. Read packages/dv/fastvideo/src/index.ts and packages/dv/fastvideo/tests/fastvideo.spec.ts.
  7. Read packages/AGENTS.md and docs/cookbook/adding-a-package.md before 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.

  1. 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 durationsSec choices 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, or audio, with a maximum count for each media type.
  2. 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() and schema() 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 as modelFacts of @dv/fastvideo. Refuse a config whose limits are not consistent when the plugin loads.
  3. Model parameters. The provider must document the name, the type, and the range of each model parameter. These parameters go into extra.
  4. Model ID. The provider must give a stable ID for each served model. facts() returns this ID as modelId.
  5. 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.
  6. Media transfer. The provider must accept the media bytes in the request, or a URL that the plugin can create for each asset.
  7. Output. The provider must return the video bytes and the media type of the video.
  8. 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.
  9. Errors. The provider must report a failed render as an error that the plugin can detect, with a message.
  10. 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

  1. Create the package packages/dv/<provider>/, wher
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить dv-add-model-provider с