# new-model-integration

new-model-integration is a Claude Code skill for adding image or video generation models to Draw Things. It guides the work from compilation through model wiring and CLI checks.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 171 repo stars
- Author: drawthingsai
- License: GPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/drawthingsai/local-code-community/tree/HEAD/.agents/skills/new-model-integration/SKILL.md
- Updated: 2026-11-17
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/new-model-integration

## What it does

The skill lays out an integration path for a model in the Draw Things app or CLI. It starts with an end-to-end compile, then covers a model builder, checkpoint key mapping with `ModelWeightMapper`, and adding a `ModelVersion` case along with the switches that use it.

Tokenizer setup gets its own step. When a model has multiple text streams, the skill recommends keeping their connections explicit; existing tokenizers, text encoders, or VAEs can be reused first. A successful CLI launch alone does not complete validation: run an actual sample and inspect its image. The workflow targets SwiftDiffusion in the Draw Things repository.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add drawthingsai/local-code-community --skill new-model-integration -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/new-model-integration/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/new-model-integration/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add drawthingsai/local-code-community --skill new-model-integration -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/new-model-integration/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add drawthingsai/local-code-community --skill new-model-integration -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/new-model-integration/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install drawthingsai/local-code-community .agents/skills/new-model-integration
```

2. **Manually: put the files in place**
- File: `.github/skills/new-model-integration/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add drawthingsai/local-code-community --skill new-model-integration -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/drawthingsai/local-code-community --path .agents/skills/new-model-integration
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/new-model-integration/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/drawthingsai/local-code-community/tree/HEAD/.agents/skills/new-model-integration/SKILL.md

## When to use it
- create a builder for a new generative model
- map checkpoint weights to model keys
- locate switches that need a new `ModelVersion` case
- wire up a model with multiple text streams

## Example prompts
- Add an image-generation model to the Draw Things app, starting with a compile.
- Introduce a `ModelVersion` case for this model and find the switches that use it.
- Reuse the existing text encoder and check a generated sample through the CLI.

## Similar
- [blockbench-new-model](https://affpapa.org/en/nevibecode/skills/blockbench-new-model.md) — skill · 286 installs
- [pydantic-ai-model-integration](https://affpapa.org/en/nevibecode/skills/pydantic-ai-model-integration.md) — skill · 120 installs
- [recipe-copy-sheet-for-new-month](https://affpapa.org/en/nevibecode/skills/recipe-copy-sheet-for-new-month.md) — skill · 31200 installs
- [angular-new-app](https://affpapa.org/en/nevibecode/skills/angular-new-app.md) — skill · 21200 installs
- [new-unity-project](https://affpapa.org/en/nevibecode/skills/new-unity-project.md) — skill · 8000 installs
- [asc-whats-new-writer](https://affpapa.org/en/nevibecode/skills/asc-whats-new-writer.md) — skill · 6100 installs

From the same set: [drawthingsai/local-code-community](https://affpapa.org/en/nevibecode/by/drawthingsai/local-code-community.md) — 20 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
