Logo vun Snapshot Backups

Snapshot Backups

Organisatioun
Cognigy
snapshot-backups

Use when backing up a Cognigy project before changing an existing AI Agent, rolling a project back to a previous state, undoing agent changes, or working with Cognigy Snapshots — create, restore, list, delete.

Iwwersiicht

EditeurCognigy
Repositorycognigy-plugin
Skill-Nummsnapshot-backups
Stären
20
Forks
14
Matgeliwwert Fichieren
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Vum Cognigy op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Snapshot Backups an TypingMind, fir e mat all LLM ze benotzen, oder füügt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vun GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier hei drënner an a bestätegt.
    https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/snapshot-backups
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill afügen → Vu GitHub-URL, pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an de Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Cognigy/cognigy-plugin.git /tmp/cognigy-plugin
mkdir -p .claude/skills
cp -r /tmp/cognigy-plugin/plugin/skills/snapshot-backups .claude/skills/snapshot-backups
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Snapshot Backups an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Snapshot Backups automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Snapshot Backups net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Keys.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Snapshot Backups and Rollback

Snapshots cover AI Agents and their skills, tools, MCP servers and personas as well as legacy agents, so manage_agent and manage_agent_components changes 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.

Read this before offering a backup

  • A snapshot covers the entire project — every AI Agent, Flow, Connection, LLM, Lexicon, Extension, Function, Playbook, Goal, Snippet and Locale in it. Restoring reverts all of them, not just the agent you are working on.
  • A snapshot does NOT contain:
    • Endpoints (and their API keys)
    • Knowledge AI — stores, sources, chunks, connectors
    • Intent Trainer learning sentences
    • Analytics data, contact profiles, logs
    • Other snapshots and packages
  • So for an agent that uses knowledge, a snapshot is not a complete backup. Say this in one line when you offer it, rather than letting the user believe otherwise.
  • Restoring is irreversible and deletes resources before recreating them.
  • Snapshots cannot be renamed or edited after creation.

Supported workflow

Back up before changing an existing agent

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:

  1. Do not report the change as done. Nothing happened.
  2. Ask the user, in one short line, whether they want a restorable backup first. If the agent uses knowledge, add that Knowledge AI is not covered.
  3. If they accept:
    • manage_snapshots { operation: "create", projectId: "<projectId>", label: "pre-persona-update" }
    • Wait for created: true.
  4. If they decline:
    • manage_snapshots { operation: "decline", projectId: "<projectId>" }
  5. Retry the held call. It now goes through, and nothing else is held for that project.

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".

Roll back to a backup

  1. manage_snapshots { operation: "list", projectId: "<projectId>" }
  2. Pick the snapshot. isPluginBackup: true marks the ones this plugin created.
  3. If the target is not the backup this session just created — an older backup, or a human-made snapshot — the project's current state is about to be destroyed with nothing to come back to. Offer to snapshot the current state first, and create it if the user agrees and a slot is free. Skip this when the restore simply reverts this session's own changes to the backup it just took.
  4. Get a preflight — this changes nothing:
    • manage_snapshots { operation: "restore", projectId: "<projectId>", snapshotId: "<snapshotId>" }
  5. Show the user the returned warnings and notRestored lists, and the snapshot's name and age. Ask for explicit agreement.
  6. Only after they agree:
    • manage_snapshots { operation: "restore", projectId: "<projectId>", snapshotId: "<snapshotId>", confirm: true }
  7. Afterwards:
    • Every resource id in the project has changed. Re-list agents and flows; do not reuse any id from earlier in the conversation.
    • Tell the user to check Endpoints assigned to non-primary Locales in the Cognigy UI — those are marked with a red dot and need manual repair.
    • Knowledge AI was not restored.

At the snapshot limit

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.

  1. create returns error: "snapshot_limit_reached" with count, assumedMax, deletableBackups, and oldestDeletable.
  2. If 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 }
    • This deletes the oldest plugin-created backup and then creates the new one. The response reports it as deletedToFreeSlot.
  3. If 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.
  4. If the response is 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.

Delete a backup the plugin created

  1. manage_snapshots { operation: "delete", projectId: "<projectId>", snapshotId: "<snapshotId>" }
  2. If it returns 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.
  3. If it returns inUseByEndpoint: true, an Endpoint is serving that snapshot. The user has to point the Endpoint at a different snapshot first.

Operations

list

Lists the project's snapshots with isPluginBackup on each, plus the current count.

Required:

  • projectId

Optional:

  • limit
  • skip

Returns count, assumedMax, atLimit, snapshots, oldestDeletableBackup.

create

Creates a backup snapshot of the project and waits for the task to finish.

Required:

  • projectId

Optional:

  • label — short reason, used inside the generated name. Do not pass a full name.
  • confirmDeleteOldest — only after the user agreed to free a slot
  • waitForCompletion
  • timeoutMs

restore

Rolls the project back. Returns a preflight report and changes nothing unless confirm: true.

Required:

  • projectId
  • snapshotId

Optional:

  • confirm — must be true to actually restore. Set it only after the user has seen the preflight and agreed.
  • waitForCompletion
  • timeoutMs

delete

Deletes a snapshot. Accepts only snapshots this plugin created.

Required:

  • projectId
  • snapshotId

Optional:

  • waitForCompletion
  • timeoutMs

decline

Records 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:

  • projectId

read_task

Reads a create/restore/delete task and returns normalized status and progress.

Required:

  • projectId
  • taskId

Notes

  • Create, restore and delete are asynchronous platform tasks. By default this tool waits for completion; a long-running task can outlive the wait, in which case the response carries pending: true and a taskId to poll with read_task.
  • Snapshot names must be unique within a project. The generated name includes a second-resolution timestamp, so back-to-back backups never collide.
  • Identification: a plugin backup is named [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.
  • Unknown outcomes: if a create/restore/delete task was started but its status could not be read, the result carries 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.
  • Downloading, packaging and uploading snapshots are deliberately not supported. Use the Cognigy UI for those.
  • A snapshot deployed to an Endpoint cannot be deleted at all — the platform refuses.

Heefeg gestallte Froen

Wat mécht de KI-Skill Snapshot Backups?

Use when backing up a Cognigy project before changing an existing AI Agent, rolling a project back to a previous state, undoing agent changes, or working with Cognigy Snapshots — create, restore, list, delete.

Firwat Snapshot Backups op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Snapshot Backups besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt amplaz vun engem Abonnement pro Benotzerplaz. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Snapshot Backups an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Cognigy/cognigy-plugin/tree/main/plugin/skills/snapshot-backups an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Snapshot Backups benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Snapshot Backups benotzen?

Esou vill Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Snapshot Backups domat benotzen – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama a méi – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Snapshot Backups gratis?

Jo. De Skill gëtt vum Cognigy ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbaart Pak vun Instruktiounen, dat engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt en nokënnt a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a keng Lafzäitëmfeld a funktionéiere mat all Modell.

All weisen

Elo Ären eegene KI-Workspace ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇