Files
market/skills/delete-agent/SKILL.md
T
yige 7a4c0144d1 feat: 更新智能体归档与恢复技能至2.7.0 / Update Agent archive and restore skill (#291)
## 中文

`delete-agent` 2.6.0 仍把删除描述为不可恢复,并要求选择 `deleteRuns`,与当前客户端的归档行为冲突。更新至
2.7.0,说明可恢复归档、`list_archived` / `restore`、ID 冲突与团队/调度回执;永久删除继续由用户在界面完成。

最低客户端版本提高到已正式发布的 10.0.204,同步中英文技能、目录元数据及 CHANGELOG。通过正式 Windows x64 包的真实
ToolExecutor 验证列表与原 ID 恢复,文件及会话历史前后一致;权限与审批模式未更改。该运行只覆盖这次正向场景。

验证:完整目录与 i18n 校验通过(0 错误,104 条现有警告);该技能中英翻译新鲜度通过;公开信息扫描与 diff 检查通过。客户端
seed 将在市场合入后的独立 PR 更新。

## English

`delete-agent` 2.6.0 describes deletion as irreversible and asks for
`deleteRuns`, conflicting with current archive behavior. Version 2.7.0
documents recoverable archiving, `list_archived` / `restore`, ID
conflicts, and team/schedule receipts. Permanent deletion remains a user
action in the interface.

Require released DesireCore 10.0.204 and synchronize both languages,
catalog metadata, and the changelog. The formal Windows x64 package
executed listing and original-ID restoration through its real
ToolExecutor; files and conversation history matched afterward, with
permission and approval settings unchanged. This runtime evidence covers
that positive scenario.

Validation: complete catalog and i18n checks passed (0 errors, 104
existing warnings), as did this skill's translation freshness,
public-information scan, and diff checks. A separate client PR will
update the seed after the marketplace change merges.
2026-11-17 17:08:41 +08:00

6.7 KiB

license, name, description, version, type, risk_level, status, disable-model-invocation, tags, metadata, market
license name description version type risk_level status disable-model-invocation tags metadata market
MIT delete-agent Archive unused Agents, list local archives and restore them through ManageAgent. Only the user can permanently delete an Agent through the interface. 2.7.0 meta medium enabled true
agent
deletion
meta
author updated_at i18n
desirecore 2026-11-17
default_locale source_locale locales zh-CN en-US
en-US zh-CN
zh-CN
en-US
name short_desc description body source_hash translated_by translated_at
删除与恢复智能体 归档或恢复智能体,保留历史并报告团队和调度事项 通过 ManageAgent 归档不再使用的智能体、查询本机归档与恢复;永久删除仅由用户在界面完成。 ./SKILL.zh-CN.md sha256:4f5aae9c80b22ee9 ai:gpt-6 2026-11-16
name short_desc description body source_hash translated_by translated_at
Archive and Restore Agents Archive or restore Agents, keep history, and report team and schedule follow-up Archive unused Agents, list local archives and restore them through ManageAgent. Only the user can permanently delete an Agent through the interface. ./SKILL.md sha256:4f5aae9c80b22ee9 ai:gpt-6 2026-11-16
icon category maintainer compatible_agents channel required_client_version
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none"><defs><linearGradient id="da2-a" x1="2" y1="7" x2="16" y2="21" gradientUnits="userSpaceOnUse"><stop stop-color="#FF9500"/><stop offset="1" stop-color="#FF3B30"/></linearGradient></defs><circle cx="9" cy="7" r="4" fill="url(#da2-a)" fill-opacity="0.15" stroke="url(#da2-a)" stroke-width="1.5"/><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2" fill="url(#da2-a)" fill-opacity="0.1" stroke="url(#da2-a)" stroke-width="1.5"/><circle cx="19" cy="11" r="4" fill="#FF3B30" fill-opacity="0.12"/><line x1="16.5" y1="11" x2="21.5" y2="11" stroke="#FF3B30" stroke-width="2" stroke-linecap="round"/></svg> productivity
name verified
DesireCore Official true
latest 10.0.204

delete-agent Skill

L0: One-Sentence Summary

Archive unused Agents or restore them from local archives, preserve conversation history, and report team and schedule follow-up from actual receipts.

L1: Overview

Use this for deleting an Agent, recovering an accidental deletion, or inspecting local archives. Use ManageAgent, without local HTTP calls or manually moving archive directories. Deletion archives the Agent: it can be recovered locally, does not expire automatically, and is excluded from subsequent backups and migration packages. Only the user can permanently delete it through Settings → Data & Privacy → Archive.

L2: Detailed Specification

Archive an Agent

When the target is unspecified, list candidates with ManageAgent(action='list'); use get for details. Verify the name and ID, explaining that history is retained and teams it leads are archived too. Do not reconfirm a clearly authorized target; clarify ambiguous targets first. The tool protects built-in Agents, the caller itself, and active Agents. Stop an active target through the interface or wait until it is idle.

Call ManageAgent(action='delete', id='example-agent'). Do not ask whether to delete history or pass deleteRuns=true: the new tool rejects it. Approval follows the caller's approval mode; do not promise a dialog. Report the actual archive identifier, team and worktree dispositions, and warnings. Unbinding preserves worktrees and branches. Retain archiveId for recovery when needed; do not claim archiving reclaims all disk space.

List Archives and Restore

Use ManageAgent(action='list_archived') to inspect local archives. This is read-only and does not roll forward or repair incomplete transactions. Explain the actual phase, restorable, and originalIdOccupied values. Query again when an identifier is missing or an archive has disappeared; never invent an archiveId.

For a restorable entry, call ManageAgent(action='restore', archiveId='identifier from the list'). If the original ID is occupied, obtain the user's choice of a new name and pass name; never overwrite an existing Agent. When the original ID is free, providing name renames without forcing an ID change. restoreLedTeams defaults to true; pass false if the user wants its led teams to remain archived.

An occupied original ID means restoration under a new ID: conversation history remains under the original ID, schedules are not restored, and absolute-path environments in private skills may need preparation again. Explain these consequences before execution. Restoration has the same approval tier as creation, with no additional confirmation. The owner still validates identity and permissions; do not supply a fabricated userId or impersonate the official Renderer.

Complete the Handoff from the Receipt

agentId identifies the actual restored Agent. idChanged and runsAttached describe identity and history attachment. Report teams.restored, teams.pending, teams.memberOf, and warnings. Led teams not restored together need handling in the archive page's Teams segment; former memberships are not reinstated.

Schedules do not enable automatically. schedules.reenablable can be enabled through the existing update entry; recreateRequired must be recreated, with scripts uploaded again; dropped lists definitions not restored under a new ID. Old instance authorization does not revive. MCP OAuth, App links, and worktree bindings are not reinstated. Agent restoration does not establish that all teams, schedules, or authorizations have been restored.

Failures and Permanent Deletion

Preserve returned error codes, states, and warnings. AGENT_RESTORE_ID_OCCUPIED requires name or another query to inspect concurrent occupation. Do not bypass AGENT_RESTORE_USER_MISMATCH by claiming another identity. Follow the actual failure for incomplete, corrupt, or cleanup-pending archives; do not remove containers yourself. Verify unknown results through the list before retrying a restore or creating another Agent.

If the user explicitly requests permanent deletion or history removal, guide them to the interface to review credential files and history scope and complete confirmation. Do not attempt purge, directory deletion through Bash, or Renderer-protected HTTP endpoints. Existing backup copies are unaffected by permanent deletion. Whether marketplace uninstall is recoverable depends on the actual client capability; this Skill does not promise later implementation stages.