scenario-delete-restore
БесплатноБез исполняемых скриптовНе проверенUse when deleting Scenario assets, models, or collections through MCP, or undoing a deletion: restoring images, videos, or LoRAs deleted by mistake, finding…
от scenario-labs★ 4 422 звезды на GitHubОб этом скилле
Scenario Delete and Restore
Overview
A deleted asset or model stays recoverable for 30 days, on the Max plan and above (Max, Team, legacy Premium, Enterprise). Below Max, the server refuses to list or restore deleted items, so a delete is final from the agent's side.
- A restore brings the item back, not reliably its filing: tags and collection membership are documented as lost, yet some tags survive. Read the restored rows before re-tagging.
- Collections have no restore tool. A deleted collection is rebuilt by hand or not at all.
- Recovery is per project: the deleted listings cover the project in scope only.
- The tools below marked read, write, or delete are catalog-only.
teams_list,models_list, andasset_displayare direct: called as is, scope at top level, never through an executor.scenario_tools_searchreturns a catalog tool's schema and lane; the matching executor runs it with{name, parameters}, scope ids insideparameters(see thescenarioskill). - Deleting a whole project is irreversible and belongs to
scenario-team-admin.
If a sibling skill named here is missing from your available skills, load it with skill_get
(Scenario MCP) or ask the user to install it (https://github.com/scenario-labs/skills#install);
unattended, proceed from tool schemas and flag the gap.
Quick reference
| Step | Tool | Lane | Notes |
|---|---|---|---|
| Find deleted assets | assets_list with deleted: true |
read | Most recently deleted first, each with deletedAt |
| Restore assets | asset_restore |
write | 1 to 100 asset_ids; returns restored and skipped |
| Find deleted models | models_list, filters: {"status": "deleted"} |
direct | Your own models only; never with privacy: "public" |
| Restore a model | model_restore |
write | One model_id per call |
| Delete assets | asset_delete |
delete | Returns deleted; split sets past 100 ids |
| Delete a model | model_delete |
delete | One model_id per call |
| Delete a collection | collection_delete |
delete | No restore tool exists |
| Re-file | asset_add_tags, collection_add_assets |
write | model_add_tags, collection_add_models for a model |
| Check the plan | teams_list |
direct | The team row's plan decides whether a delete is undone |
Restoring
- Find.
assets_listwithdeleted: truetakes nofilters: the server refuses the pair. Match the user's words client-side againstdeletedAt,kind,prompt,description, andmodelId, paging withpage_token(limitup to 100). The list is newest deletion first, so stop paging oncedeletedAtis older than the user's window.promptcomes in three forms:- An asset id (
asset_...): the prompt is a live text asset. Read it onassets_get_bulk, whose record carries the full prompt text, and match that. - Text, cut at 120 characters. A deleted asset's own record is unreadable (
asset_getreturns 404), so a row in the window whose cut text shows no match is ambiguous, not a miss. - Absent, on an upload, which keeps no file name either: match its
description, an automatic caption.
- An asset id (
- Models.
status: "deleted"is a key insidefiltersonmodels_list. Combined withprivacy: "public"the server refuses it: deleted models are always the team's own. - Confirm the set. Show the candidates (id,
deletedAt, prompt or name) when the match is not exact. Unattended, restore only items the task's description matches unambiguously, and list the rest as unresolved. - Read
skipped. Each entry carriesasset_idand a reason:not-found: a wrong id, or an asset of another project;not-deleted: already live, nothing to do;expired: past the retention window. Nothing recovers it: tell the user.
- Models come back as they were.
model_restorereturns the model to its prior status. An interrupted training returns astraining-canceled, so it needs a new training run. The server refuses a model that is not deleted or was deleted over 30 days ago: report which. - Plan refusal. A restore or deleted listing refused with a plan message is not retryable. Report that restoring needs Max or above; upgrading is the user's call (unattended: report and stop).
- Re-file. Re-apply the tags and collections the user still needs. Before re-tagging, read the re
Установить scenario-delete-restore в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл scenario-delete-restore?
Use when deleting Scenario assets, models, or collections through MCP, or undoing a deletion: restoring images, videos, or LoRAs deleted by mistake, finding something a user says they deleted, listing what was deleted recently, or cleaning up a project before a bulk delete. Keywords: delete, undelete, restore, recover, undo, trash, bin, recently deleted, 30 days, deleted model, deleted asset, cleanup.
Как установить скилл scenario-delete-restore?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл scenario-delete-restore запускает скрипты?
Нет, скилл состоит только из инструкций (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