Logo: Forgiveness Undo And Soft Delete

Forgiveness Undo And Soft Delete

Communautéit
Deibler
forgiveness-undo-and-soft-delete

Use this skill when designing reversibility — undo systems, soft delete, archive-with-recovery, version history, "Undo Send" patterns, and any mechanism that lets a user step back from an action they regret. Trigger when designing destructive actions you want to be safe rather than friction-heavy, when picking between confirmation dialogs and undo toasts, when defining recovery windows, or when planning version-history features. Sub-aspect of `forgiveness`; read that first.

Iwwersiicht

EditeurDeibler
Repositoryuniversal-design-principles
Skill-Nummforgiveness-undo-and-soft-delete
Stären
9
Forks
3
Matgeliwwert Dateien
1
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.

  • 1 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

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

Installatioun

Installéiert de KI-Skill Forgiveness Undo And Soft Delete an TypingMind, fir e mat all LLM ze benotzen, oder setzt 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 „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Deibler/universal-design-principles/tree/main/plugins/interaction-and-control-principles/skills/forgiveness-undo-and-soft-delete
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng 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 d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Deibler/universal-design-principles.git /tmp/universal-design-principles
mkdir -p .claude/skills
cp -r /tmp/universal-design-principles/plugins/interaction-and-control-principles/skills/forgiveness-undo-and-soft-delete .claude/skills/forgiveness-undo-and-soft-delete
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Forgiveness Undo And Soft Delete 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 Forgiveness Undo And Soft Delete automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Forgiveness Undo And Soft Delete 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-Schlësselen.

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

Forgiveness through reversibility

Reversibility is the highest-leverage form of forgiveness short of structural prevention. It makes destructive actions safe by allowing recovery — users keep speed (no friction up front) and safety (the action is undoable). Whenever an action can be made reversible, that's almost always preferable to confirming it.

The reversibility ladder

Different actions need different reversibility approaches:

Synchronous undo (Cmd-Z)

The classic. The user takes an action; pressing Cmd-Z (or Ctrl-Z) reverses it. Multi-level undo lets the user back out through a sequence of actions.

When it applies: editing operations on a single object — text editing, image manipulation, design tool actions, code edits.

Implementation pattern:

  • Maintain an undo stack of inverse operations.
  • On each action, push the inverse onto the stack.
  • On Cmd-Z, pop and apply the inverse.
  • On any new action after undo, optionally clear the redo stack (or maintain redo separately).
js
const undoStack = [];
const redoStack = [];

function executeAction(action) {
  action.do();
  undoStack.push(action);
  redoStack.length = 0;
}

function undo() {
  const action = undoStack.pop();
  if (!action) return;
  action.undo();
  redoStack.push(action);
}

function redo() {
  const action = redoStack.pop();
  if (!action) return;
  action.do();
  undoStack.push(action);
}

Toast-with-undo (the modern default for one-off destructive actions)

The user takes an action that destroys or moves data; a toast appears with an "Undo" button for several seconds.

When it applies: archive, delete, move-to-folder, mark-read, and similar one-shot list actions.

Implementation pattern:

  • Optimistically update the UI (item disappears).
  • Send the destructive request to the server (or defer it for the undo window).
  • Show a toast with an Undo affordance for 5–10 seconds.
  • On Undo: reverse the optimistic update, cancel/reverse the server action.
  • On timeout: commit the action permanently.
js
async function archive(item) {
  const previous = items.slice();
  items = items.filter(i => i.id !== item.id);
  render();

  let undone = false;
  showToast(`"${item.name}" archived`, {
    action: { label: 'Undo', onClick: () => { undone = true; items = previous; render(); } },
    duration: 7000,
    onDismiss: () => { if (!undone) api.commitArchive(item.id); }
  });
}

The user gets the speed of "click and it happens" plus the safety of "you have 7 seconds to undo."

Soft delete with explicit recovery

A delete that doesn't actually remove the data — instead moves it to a recoverable state for some window (30 days, indefinitely, until storage cleanup).

When it applies: account-level data the user might want back later; emails, documents, files. Common in B2B SaaS.

Implementation pattern:

  • Mark the item as deleted with a timestamp.
  • Hide it from default views.
  • Provide a "Trash" or "Archive" view where deleted items can be restored.
  • After the recovery window, hard-delete via background job.
js
// Soft delete
async function softDelete(item) {
  await api.update(item.id, { deletedAt: new Date(), deletedBy: currentUser.id });
}

// In default queries
const visibleItems = items.filter(i => !i.deletedAt);

// Recovery view
const trashedItems = items.filter(i => i.deletedAt && daysAgo(i.deletedAt) < 30);

async function restore(item) {
  await api.update(item.id, { deletedAt: null, deletedBy: null });
}

Version history

The strongest reversibility: every state of the object is preserved; the user can return to any prior state.

When it applies: documents, code, designs, configurations — anything users edit over time and might want to revert.

Implementation pattern:

  • Snapshot the object on each meaningful change (or at intervals, or on explicit save).
  • Provide a "Version history" UI listing past states.
  • Allow viewing, restoring, or branching from any prior version.

Google Docs, Notion, Figma, GitHub all implement this. The user never fears editing because they can always restore.

The "Undo send" pattern

Gmail's pattern: an action that appears committed actually defers for a few seconds, allowing cancellation in that window.

When it applies: actions that the user often regrets immediately after triggering — sending an email, posting publicly, sending a message.

Implementation pattern:

  • On "Send," show "Sending..." with an Undo affordance for N seconds.
  • Don't actually transmit until N seconds elapse with no Undo.
  • On Undo, return to draft state.

The user feels they sent it; the system just defers commitment briefly. The defer window is short (5–30 seconds) — long enough to catch reflexive "wait!" moments, short enough not to delay genuine sends.

Choosing the right reversibility approach

Action typeRecommended reversibility
Text/edit/format changeSynchronous undo (Cmd-Z)
Archive / soft delete one itemToast-with-undo
Hard delete / account changesSoft delete + recovery view
Document editsVersion history + Cmd-Z
Send / publish / postUndo-send window
Bulk destructiveSoft delete + bulk-restore in trash

When reversibility isn't possible

Some actions genuinely can't be reversed at the data layer:

  • External communications (sent emails, sent SMS, public tweets) — the recipient already saw it.
  • Financial transfers — money has moved.
  • Compliance / legal commits — once signed, signed.
  • Hardware operations — once a physical command goes to a robot or printer, it's done.

For these, lean on the next-strongest forgiveness levels: structural prevention (good affordances), confirmation (deliberate intent), and warnings.

The "Undo send" pattern bridges this for some communications: the external action is still irreversible, but the system delays it long enough for the user to catch second thoughts.

Recovery window length

For toast-with-undo: 5–10 seconds is the typical range.

  • < 5 seconds: too short for users who realized after a moment of reflection.
  • 5–7 seconds: covers most reflexive corrections.
  • 10+ seconds: lingers; some users dismiss the toast before reading it.

For soft delete: 7–30 days is typical.

  • 7 days: balances storage cost with user recovery needs.
  • 30 days: standard for most SaaS; forgiving enough for vacations and weekends.
  • Indefinite: storage cost grows but maximum forgiveness.

Discoverability of recovery

A reversibility mechanism that users don't know exists doesn't help. Patterns:

  • Toast affordance is its own discovery — users see the Undo button and learn the pattern.
  • "Trash" or "Archive" navigation entry signals that deleted items can be recovered.
  • Onboarding mention for version history ("All changes saved. View history at any time.").

If users are filing tickets to recover data they could have restored themselves, the recovery affordance isn't visible enough.

Anti-patterns

  • Toast that vanishes too fast. A 2-second toast with an Undo button most users never see.
  • Soft delete with no recovery UI. Items go to a "trash" the user can't access.
  • Version history that's hidden. Buried under three menu levels; users don't know it exists.
  • Cmd-Z that doesn't undo destructive actions. Some apps undo formatting but not deletion. Inconsistent.
  • Undo that fails silently. Click Undo; nothing happens; no error; user is confused. If undo fails, say so.

Heuristics

  1. The "did they recover?" check. Look at support tickets for data loss. Each one is a reversibility failure.
  2. The toast-button audit. For every destructive action, is there a toast with Undo? If not, why not?
  3. The trash audit. Is there a Trash / Archive / Recycle Bin in your app? If items can be deleted but there's no recovery view, you're missing soft delete.

Related sub-skills

  • forgiveness (parent).
  • forgiveness-confirmation-and-prevention — the alternative when reversibility isn't possible.
  • feedback-loop — toast-with-undo is feedback that doubles as reversibility.
  • factor-of-safety (process) — engineering analog of "design with margin so errors are recoverable."

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Forgiveness Undo And Soft Delete?

Use this skill when designing reversibility — undo systems, soft delete, archive-with-recovery, version history, "Undo Send" patterns, and any mechanism that lets a user step back from an action they regret. Trigger when designing destructive actions you want to be safe rather than friction-heavy, when picking between confirmation dialogs and undo toasts, when defining recovery windows, or when planning version-history features. Sub-aspect of `forgiveness`; read that first.

Firwat Forgiveness Undo And Soft Delete op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Forgiveness Undo And Soft Delete 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 en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Forgiveness Undo And Soft Delete an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Deibler/universal-design-principles/tree/main/plugins/interaction-and-control-principles/skills/forgiveness-undo-and-soft-delete an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Forgiveness Undo And Soft Delete 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 Forgiveness Undo And Soft Delete benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Forgiveness Undo And Soft Delete domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Forgiveness Undo And Soft Delete gratis?

Deibler huet de Skill op GitHub publizéiert. Kuckt am Repository no de Lizenzbedéngungen. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen 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 e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

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