/cognigy:snapshot-backupsfrom cognigy
Creates, restores, lists, and deletes Cognigy project snapshots for backup and rollback. Handles the server-enforced backup gate when modifying existing AI Agents.
Ships in cognigy. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Snapshots cover AI Agents and their skills, tools, MCP servers and personas as well as legacy agents, so
manage_agentandmanage_agent_componentschanges to an existing agent are held for the backup offer too.
Use manage_snapshots to take a restorable backup of a Cognigy project and to roll
it back. A Snapshot is an immutable copy of a whole project.
The server enforces this once per project, so you do not have to remember it.
The first attempt to change an existing agent in a given project —
update_ai_agent, create_tool, update_tool, a mutating manage_flow_nodes, or
delete_resource — is held: it changes nothing and returns
error: "backup_not_offered".
When you see that error:
manage_snapshots { operation: "create", projectId: "<projectId>", label: "pre-persona-update" }created: true.manage_snapshots { operation: "decline", projectId: "<projectId>" }Because the gate is per project, a later change to a different project can be held again in the same session — that is correct behaviour, not a malfunction. An answer given for one project says nothing about another, so ask again for the new one. (When the server cannot tell which project a call targets, it falls back to holding once for the session as a whole.)
The gate does not fire for an agent or project created in this same session — there is no prior state to roll back to — and never for read-only operations.
If you do not have the projectId, read it from
get_resource { resourceType: "agent", id: "<aiAgentId>" }, which returns it.
If create returns error: "snapshot_limit_reached", follow At the snapshot limit
below. If it returns error: "task_status_unknown", the outcome is unknown: poll read_task before saying anything, and do NOT create a second backup. If it returns pending: true, the backup does not exist yet — poll
read_task until it is done before changing anything, and note that a pending
create does not satisfy the gate.
label is a short reason, not a name. The plugin builds the name itself as
[AI Backup] v<N> <label> — <timestamp> so the backup is always identifiable and
always uniquely named. <N> only counts up within a project, so you can refer to a
backup as "v3" rather than by timestamp; list returns it as version.
Numbers are never reused within a session, but two sessions that both start from
the same list can mint the same number. If list ever shows two backups with the
same version, identify the one you mean by its timestamp or id, not by "v".
manage_snapshots { operation: "list", projectId: "<projectId>" }isPluginBackup: true marks the ones this plugin created.manage_snapshots { operation: "restore", projectId: "<projectId>", snapshotId: "<snapshotId>" }warnings and notRestored lists, and the snapshot's
name and age. Ask for explicit agreement.manage_snapshots { operation: "restore", projectId: "<projectId>", snapshotId: "<snapshotId>", confirm: true }A project holds a limited number of snapshots (10 by default, configurable per
installation). create pre-checks this and creates nothing when the project is full.
create returns error: "snapshot_limit_reached" with count, assumedMax,
deletableBackups, and oldestDeletable.oldestDeletable is present, ask the user whether to delete that backup to make
room, naming it. Only if they agree:
manage_snapshots { operation: "create", projectId: "<projectId>", label: "<why>", confirmDeleteOldest: true }deletedToFreeSlot.deletableBackups is empty, stop. The plugin never deletes a human-created
snapshot. Tell the user to delete one themselves in the Cognigy UI under
Deploy > Snapshots, then retry.error: "eviction_incomplete", freeing the slot could not be
confirmed and create stopped: no further backup was deleted and no snapshot was
created. Poll the task in haltedOn with read_task, then list before retrying.manage_snapshots { operation: "delete", projectId: "<projectId>", snapshotId: "<snapshotId>" }error: "not_a_plugin_backup", the snapshot was created by a human.
Do not try to work around it — tell the user to delete it in the Cognigy UI.inUseByEndpoint: true, an Endpoint is serving that snapshot. The
user has to point the Endpoint at a different snapshot first.listLists the project's snapshots with isPluginBackup on each, plus the current count.
Required:
projectIdOptional:
limitskipReturns count, assumedMax, atLimit, snapshots, oldestDeletableBackup.
createCreates a backup snapshot of the project and waits for the task to finish.
Required:
projectIdOptional:
label — short reason, used inside the generated name. Do not pass a full name.confirmDeleteOldest — only after the user agreed to free a slotwaitForCompletiontimeoutMsrestoreRolls the project back. Returns a preflight report and changes nothing unless
confirm: true.
Required:
projectIdsnapshotIdOptional:
confirm — must be true to actually restore. Set it only after the user has seen
the preflight and agreed.waitForCompletiontimeoutMsdeleteDeletes a snapshot. Accepts only snapshots this plugin created.
Required:
projectIdsnapshotIdOptional:
waitForCompletiontimeoutMsdeclineRecords that the user was asked for a backup and said no, which releases the backup
gate for the given project. Another project touched later in the same session is
still held once, and needs its own answer. Touches no API and creates nothing. Only
call this after actually asking the user, and pass the projectId the held call
targeted.
Required:
projectIdread_taskReads a create/restore/delete task and returns normalized status and progress.
Required:
projectIdtaskIdpending: true and a taskId to poll with read_task.[AI Backup] … and carries a marker in
its description. Both must match, which is why a human snapshot that happens to
share the name prefix is still protected from deletion here.error: "task_status_unknown" and
outcomeUnknown: true. The operation may have succeeded — do not report it as
failed and do not retry it. Poll read_task with the returned taskId first. On
create, created is null (not false) on this path, because whether the backup
exists is not yet known.restore and delete verify the snapshot belongs to the passed projectId. A
snapshotId from another project returns error: "snapshot_project_mismatch" and
changes nothing.What SKILL.md sets; muted values are Claude Code's defaults
18 skills in this plugin
/a2a-setupUse when the user explicitly asks for A2A (Agent2Agent), wants an agent to call an external / third-party A2A agent or one in another project or tenant, or wants to expose a Cognigy agent to outside A2A callers. Covers the manage_a2a_server endpoint and the create_tool { toolType: 'a2a' } tool type. NOT for connecting agents that live in the same project — those use the native Handover to AI Agent tool./agent-creationUse when the user wants to build, create, or set up a new Cognigy AI Agent from scratch, or change an agent's settings, skills, tools, knowledge or system prompt, or make it answer faster — covers checking what the environment supports, listing projects, ensuring an LLM exists, creating the agent, testing it, and refining it./npx claudepluginhub cognigy/cognigy-plugin --plugin cognigyOther plugins' skills for the same job