add-generation-support
БесплатноБез исполняемых скриптовНе проверенWire an existing ecosystem into the generation system. Adds generation support to basemodel.constants.ts, creates graph and handler files, and wires them into…
от civitai★ 7 333 звезды на GitHubОб этом скилле
Add Generation Support
Wires an existing ecosystem (already defined in basemodel.constants.ts) into the generation form. Requires the ecosystem, base model, license, and family to already exist — use the add-ecosystem skill first if any of those are missing.
When to use
- After
add-ecosystemfor a new provider - To re-enable generation for an ecosystem that was previously commented out
- When adding a new graph/handler pair for an existing ecosystem that didn't have one
Prerequisites check
Before starting, confirm the ecosystem exists in basemodel.constants.ts:
ECO.<Name>is defined- An
EcosystemRecordexists inecosystems - A
BaseModelRecordexists inbaseModelRecords
If any are missing, stop and direct the user to run add-ecosystem first.
Workflow (interactive after research)
1. Check @civitai/orchestration-client for ecosystem-specific types
The orchestrator client package is @civitai/orchestration-client. It replaced @civitai/client,
which can no longer be published to; the version line carries on unbroken in the new package. Nothing in
the repo imports the old name any more, so do not reintroduce it.
Always check the latest published client version, even if types aren't in the currently installed version.
# Check installed version (either package may be present)
grep -E '@civitai/(orchestration-)?client' package.json
# Check latest available
npm view @civitai/orchestration-client version
Search the latest version's types for the ecosystem:
cd /tmp && npm pack @civitai/orchestration-client@<latest-version> 2>/dev/null
tar -xzf civitai-orchestration-client-<latest-version>.tgz
grep -n "<EcosystemName>\|<ecosystem-name>" /tmp/package/dist/generated/types.gen.d.ts
Note what you find (or don't find):
- Ecosystem-specific types (e.g.,
SeedanceVideoGenInput,ComfyErnieStandardCreateImageGenInput): use them — they give you the exact field shape and strict enum literals - Multiple variant types (e.g., standard vs turbo): the handler will branch on model version and return the appropriate typed input
- No types at all: fall back to the generic
ImageGenStepTemplate/VideoGenStepTemplatewith a stringenginefield
If the installed version is older than the latest and the latest has useful types, bump it to the same
exact version in every package.json that lists it, then install:
git grep -l '"@civitai/orchestration-client"' -- '*package.json'
pnpm install
A bump in the root alone leaves two copies installed, and
src/__tests__/orchestration-client-single-version.test.ts fails.
Import new types from @civitai/orchestration-client rather than hand-rolling them.
2. Research model defaults
If the user hasn't already pointed you at docs, check the HuggingFace or official model card for:
- Model version IDs on Civitai (the user usually has these — ask if not)
- Recommended aspect ratios / resolutions (exact dimensions)
- Recommended guidance scale / cfg scale
- Recommended inference steps
- Supports LoRAs? (drives resources node)
- Supports negative prompts?
- Fixed sampler/scheduler (if the provider locks these, hardcode in the handler rather than exposing UI controls)
- Media type: image-only, video-only, or mixed
3. Decide on graph structure
Based on research, pick the right shape:
- Single model, simple: one
sliderDefper parameter, one aspect ratio set. Seedance is a good reference. - Multiple versions with same controls but different defaults: use
createCheckpointGraphwithversions.options. Parameter defaults can vary viactx.model?.idchecks. Seedream is a reference. - Multiple versions with different capability sets: use a computed
<name>Variantdiscriminator and branch into separate subgraphs. Ernie is a reference — base has LoRAs, turbo doesn't. - Model-dependent defaults on the same node key: if both variants have
cfgScalebut different defaults, just declare each branch arm with its ownsliderDefdefaults. Do NOT add a.effect()that callsset('cfgScale', ...)on variant change — see "Don't use.effect()to reset slider values across variants" below.
4. Confirm the plan with the user
Summarize:
Adding generation support for: <EcosystemName>
Graph: src/shared/form-graph/generation/<image|video|audio|model3d>/<name>.graph.ts
- Versions: <list with IDs>
- Aspect ratios: <list>
- Sliders: cfgScale (<range>, default <n>), steps (<range>, default <n>)
- Features: [resources, negativePrompt, images for I2V, etc.]
- Structure: [single graph | discriminator with subgraphs | version-dependent defaults]
Handler: src/server/services/orchestrator/form-graph/<name>.handler.ts
- Types: <from @civitai/orchestration-client, or generic>
- Step type: <imageGen | videoGen>
- Fixed params: sampler=<x>
Установить add-generation-support в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл add-generation-support?
Wire an existing ecosystem into the generation system. Adds generation support to basemodel.constants.ts, creates graph and handler files, and wires them into the ecosystem discriminator, workflow config, and router. Use after add-ecosystem when you need the ecosystem to show up in the generation form. Always checks @civitai/orchestration-client for ecosystem-specific types before writing the handler.
Как установить скилл add-generation-support?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл add-generation-support запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic