spritecook-use-presets — скилл для Claude Code: пресеты SpriteCook
Скилл подтягивает сохранённые пресеты SpriteCook через MCP и переносит их настройки в генерацию новых ассетов. Нужен, когда важна одинаковая стилистика в серии картинок.
npx skills add SpriteCook/skills --skill spritecook-use-presets -a claude-codeЧто делает spritecook-use-presets
Пресеты в SpriteCook — это сохранённые настройки и рецепты промптов. Скилл помогает достать их и применить к новой задаче: пользователь настраивает пресет в приложении, а агент через MCP вытаскивает его и генерирует ассеты в том же стиле, модели, размере и цветовой схеме.
Работает в паре с spritecook-workflow-essentials и профильным скиллом генерации. Сначала скилл вызывает list_presets(query=...) по имени или смыслу, выбирает подходящий по названию, режиму и описанию, затем get_preset_settings(preset_id=...) и раскладывает поля по аргументам инструмента: prompt, themeText, styleText, размеры, pixel, bgMode, colors. Референсы уходят в style_asset_ids (до 10 штук), reference_asset_id и edit_asset_id. Для тайлсетов есть tilesetPerspective, tilesetPieceSet, tilesetElevation.
Пресеты не подменяют запрос пользователя: они задают стиль и настройки, а новый субъект остаётся новым. Если подходящих пресетов несколько, скилл сначала уточняет. Опубликованные пресеты отдают ссылки на медиа, которые не всякий инструмент генерации принимает — тогда применяются текстовые настройки, а про референс агент скажет отдельно. Сохранение идёт только через save_private_preset и только как приватный черновик, без публикации.
Какие задачи решает
- сгенерировать серию спрайтов в одном стиле по сохранённому пресету
- перенести настройки пресета в аргументы MCP-инструмента генерации
- подставить референсные изображения стиля в новую генерацию
- сохранить удачные настройки как приватный пресет для повторного использования
- уточнить, какой из нескольких похожих пресетов имел в виду пользователь
Примеры запросов агенту
- используй мой пресет персонажа для синего волшебника, idle-спрайт
- сгенерируй ассеты в том же стиле, что и сохранённый пресет
- сохрани эти настройки как приватный пресет
Как установить spritecook-use-presets
1Через Skills CLI (Vercel)
npx skills add SpriteCook/skills --skill spritecook-use-presets -a claude-code2Вручную: положить файлы
~/.claude/skills/spritecook-use-presets/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/spritecook-use-presets/
1Через Skills CLI (Vercel)
npx skills add SpriteCook/skills --skill spritecook-use-presets -a codex2Вручную: положить файлы
.agents/skills/spritecook-use-presets/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add SpriteCook/skills --skill spritecook-use-presets -a cursor2Вручную: положить файлы
.cursor/skills/spritecook-use-presets/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install SpriteCook/skills spritecook-use-presets2Вручную: положить файлы
.github/skills/spritecook-use-presets/SKILL.md1Через Skills CLI (Vercel)
npx skills add SpriteCook/skills --skill spritecook-use-presets -a gemini-cli2Командой платформы
gemini skills install https://github.com/SpriteCook/skills --path skills/spritecook-use-presetsВручную: положить файлы
.devin/skills/spritecook-use-presets/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add SpriteCook/skills --skill spritecook-use-presets -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о spritecook-use-presets
Как установить spritecook-use-presets в Claude?
Одной командой: npx skills add SpriteCook/skills --skill spritecook-use-presets -a claude-code. Скилл окажется в ~/.claude/skills/spritecook-use-presets/SKILL.md.
Что делает spritecook-use-presets?
Достаёт сохранённые пресеты SpriteCook через MCP и переносит их настройки в генерацию: промпт, тему, стиль, размеры, цвета и референсные изображения.
Когда скилл вообще обращается к пресетам?
Только если пользователь прямо просит пресет, называет сохранённый или намекает на продолжение знакомого стиля. При обычном запросе на генерацию скилл пресеты не перебирает.
Исходный текст
SKILL.md · MIT
--- name: spritecook-use-presets description: "Use SpriteCook saved presets through MCP. Use when the user explicitly asks to use a preset, refers to one of their saved SpriteCook presets, asks for the same style/settings as a saved preset, or asks to save a private preset for future consistent asset generation." --- # SpriteCook Use Presets Use this skill with `spritecook-workflow-essentials` and the relevant generation skill. Presets are saved SpriteCook settings and prompt recipes. Their purpose is to help the user get consistent, similar output later, especially when they need a collection of related assets with the same style, model, prompt structure, dimensions, color guidance, and reference images. Users can fine-tune and save presets in the SpriteCook app, then ask an agent to use those presets through MCP. ## When To Use Presets - Use presets when the user explicitly says `use my preset`, names a saved preset, or asks for assets matching a saved SpriteCook setup. - Use presets when the user implies continuity with a named saved style or workflow, such as `use my character preset for this`. - Do not browse presets by default for ordinary generation requests. If the user does not mention or imply a preset, use the normal SpriteCook generation workflow. - Use `save_private_preset` only when the user asks to save a preset or preserve these settings for future use. ## Fetch And Apply 1. Call `list_presets(query=...)` with the user's preset name or intent. 2. Pick the best match by title first, then mode, status, description, and settings. 3. If multiple plausible presets remain, ask a concise clarification before generating. 4. Call `get_preset_settings(preset_id=...)` for the selected preset. 5. Map returned settings into the relevant MCP tool: - `prompt` -> base prompt or prompt guidance. - `themeText` -> `theme`. - `styleText` -> `style`. - `width`, `height`, `pixel`, `bgMode`, `aspectRatio`, `smartCropEnabled`, `smartCropMode`, `detailedModel`, `resolution`, `quality`, and `colors` -> matching generation arguments when the target tool supports them. - `settings.reference.styleAssetIds` -> `style_asset_ids` for `generate_game_art`, up to 10 asset IDs. - `settings.reference.contextAssetId` -> `reference_asset_id` for `generate_game_art`. - `settings.reference.editAssetId` -> `edit_asset_id` for `generate_game_art` only when the user is modifying that specific image. - `tilesetPerspective`, `tilesetPieceSet`, and `tilesetElevation` -> `generate_tileset` settings. 6. Preserve the user's requested subject or change. The preset should guide style/settings; it should not override the user's new intent unless the user asks for an exact repeat. ## Reference Images - Private draft presets can return owned asset IDs: - `settings.reference.styleAssetIds` - `settings.reference.contextAssetId` - `settings.reference.editAssetId` - Published presets can return frozen preset media URLs: - `settings.reference.styleUploadUrls` - `settings.reference.contextUploadUrl` - `settings.reference.editUploadUrl` - Use `style_asset_ids` directly for `settings.reference.styleAssetIds` when calling `generate_game_art`; pass at most 10 IDs. - Use `reference_asset_id` for `settings.reference.contextAssetId` when the preset provides one specific visual/context reference. - Use `edit_asset_id` only for `settings.reference.editAssetId`, when the user is modifying that specific image. - Treat style asset IDs as ambient style guide images: they establish style, palette, proportions, and rendering for new related assets. The prompt does not need to restate that they are style references unless the user asks to emphasize a specific detail. - If a preset returns multiple style asset IDs but the target tool only accepts one, prefer the first style asset unless the user asks to choose differently. - If a preset returns upload URLs that the target MCP generation tool cannot consume, still use the text/model/size/color settings and mention that the media reference could not be applied through that tool. ## Saving Presets - Use `save_private_preset(...)` only after the user asks to save a preset. - Save presets as private drafts only. Do not publish, share, or submit anything for moderation. - Include the settings that matter for repeatability: prompt pattern, theme, style, model, size, pixel mode, background mode, smart crop, quality, colors, and supported reference/edit/style images. - Use `style_references`, `reference_image`, `edit_image`, and preview asset IDs when the user wants the saved preset to include those images. - If saving fails because of the private preset limit or unavailable reference assets, explain the user-facing problem briefly and do not retry with missing references unless the user asks. ## Practical Pattern When the user says `Use my character preset for a blue wizard idle sprite`: 1. `list_presets(query="character")` 2. Select the likely character preset. 3. `get_preset_settings(preset_id="...")` 4. Generate with the preset's style/settings plus the new subject: `blue wizard idle sprite`.
© SpriteCook · MIT · SpriteCook/skills