Logo Forgiveness

Forgiveness

Cộng đồng
Deibler
forgiveness

Use this skill whenever a design lets users do something they might regret — delete, send, publish, charge, transfer, archive, overwrite, irrecoverably commit. Trigger when designing destructive actions, undo systems, confirmation dialogs, soft-delete recovery, draft-saving, transaction reversal, "are you sure?" patterns, or any flow where a wrong move costs the user time, data, money, or trust. Trigger when the user mentions "users keep deleting things," "we get support tickets about lost data," "is this dangerous?", or when reviewing destructive UI. Forgiveness is one of the central principles in 'Universal Principles of Design' (Lidwell, Holden, Butler 2003) and one of Nielsen's 10 heuristics ("user control and freedom").

Tổng quan

Nhà phát hànhDeibler
Kho mãuniversal-design-principles
Tên kỹ năngforgiveness
Sao
9
Bản fork
3
Tệp đi kèm
1
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được Deibler công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Forgiveness trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/Deibler/universal-design-principles/tree/main/plugins/interaction-and-control-principles/skills/forgiveness
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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 .claude/skills/forgiveness
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Forgiveness trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Forgiveness ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Forgiveness với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Forgiveness

Forgiveness is the property of a design that helps users avoid mistakes and recover gracefully from the ones they make. The opposite — an unforgiving design — punishes errors with lost work, irreversible changes, or hostile error states. Since human error is inevitable, forgiving design is what determines whether the product is pleasant to use over time or a constant source of low-grade anxiety.

Definition (in our own words)

A forgiving design recognizes that users will make mistakes — slips (correct intent, wrong action), mistakes (wrong intent because of wrong model), and accidents (the cat walked across the keyboard). It builds in mechanisms to prevent errors before they happen, minimize their consequences when they do happen, and recover from them when prevention and minimization both fail. The principle's central insight: error is a property of the design, not of the user. A design that produces lots of user error is a poorly-designed design, even if every user "could have been more careful."

Origins and research lineage

  • Lidwell, Holden & Butler, Universal Principles of Design (2003) compactly articulated the principle and identified six strategies for incorporating forgiveness: good affordances, reversibility of actions, safety nets, confirmation, warnings, and help. The book noted an inverse relationship: stronger affordances and reversibility reduce the need for confirmations, warnings, and help.
  • Donald Norman, The Design of Everyday Things (1988, revised 2013) emphasized that "designing for error" is a core design responsibility, not an afterthought. Norman drew heavily on safety-engineering literature.
  • James Reason, Human Error (Cambridge University Press, 1990). The standard reference work in human-error research, originally grounded in industrial-safety analysis (aviation, nuclear, medical). Reason's slip/mistake distinction (a slip is a wrong action despite correct intent; a mistake is a correct action of a wrong intent) shapes most modern error-recovery thinking.
  • Jakob Nielsen, "10 Usability Heuristics" (1994 onward). Two of the ten heuristics directly concern forgiveness: "User control and freedom" (undo, escape) and "Help users recognize, diagnose, and recover from errors."
  • Aviation and medical safety design have shaped the understanding of how to build forgiveness into systems where errors are catastrophic. Crumple zones, fuse boxes, double-confirmation for destructive surgical commands, and "five rights" of medication administration are all forgiveness patterns from these domains.

The forgiveness ladder

Roughly ordered from preferred to least preferred — preferred ones reduce the need for the others:

1. Good affordances (prevent the error)

If the design makes the wrong action impossible or hard to do by accident, the error never occurs. A USB connector that can't be inserted upside-down (USB-C). A dialog where the destructive button is small and far from the safe one. A control that's only enabled when the operation makes sense.

This is the highest level of forgiveness because it requires no user attention or recovery — the error is structurally prevented.

2. Reversibility (recover from the error)

If the user can undo, the error costs only the time to notice and reverse. Cmd-Z is the canonical example; soft-delete with a recovery window is its data-layer counterpart. Version history is its document counterpart.

Reversibility is preferred to confirmation because it doesn't punish exploration. Users who feel safe to try things learn faster and use the product more confidently.

3. Safety nets (catch catastrophic errors)

A system or feature that minimizes damage when an error does happen and isn't reversible. Crumple zones in cars. Auto-saving drafts. Trash with a recovery window. Backup systems. The pilot's ejection seat in a fighter jet.

Safety nets are insurance against the unanticipated. They cost design and engineering effort but pay off when prevention and reversibility weren't enough.

4. Confirmation (require deliberate intent for destructive actions)

The user is asked to verify before a high-stakes action commits. "Are you sure you want to delete?" "Type DELETE to confirm." "Enter your password to authorize."

Confirmation is the most-overused forgiveness mechanism and the easiest to abuse. Confirmations applied to routine reversible actions get dismissed on autopilot, training users to ignore them when they finally apply to a real destructive action.

5. Warnings (signal danger before it happens)

Visual or auditory cues that something dangerous is about to happen. A "you have unsaved changes" prompt before navigating away. A warning label on industrial equipment. A road sign for a sharp curve.

Warnings work when applied sparingly to genuinely high-consequence moments. They become wallpaper when applied to everything.

6. Help (assist recovery after the error)

Documentation, error messages with remediation steps, support chat, recovery flows. The lowest-preferred level because it kicks in after the error has already happened and disrupted the user's task.

A useful diagnostic: the amount of help required is inversely proportional to the quality of the design. If users need extensive help to use your product, the help is compensating for missing forgiveness at the higher levels.

When to apply

  • Every destructive action. Delete, archive, transfer, send, publish, overwrite — each needs at least one level of forgiveness.
  • Every irreversible change. Account deletion, ownership transfer, plan downgrade, contract acceptance.
  • Every high-stakes input. Payment forms, address submissions for shipping, password setting.
  • Every flow where users invest time. Forms, drafts, edits — saving / auto-saving as forgiveness for navigation away.
  • Anywhere users have reported loss. "I lost my data" tickets are prima facie evidence of missing forgiveness.

When NOT to over-apply

  • Routine reversible actions. Don't confirm "Save" — saving is the whole point. Don't confirm "Apply filter" — the user can change the filter again.
  • High-frequency low-stakes actions. Confirmation fatigue is real. The user who dismisses 50 routine confirmations a day will dismiss the destructive one too.
  • Operations the user has just initiated themselves. If the user clicked "Delete," they probably meant to. Confirmation is for actions where the user might have not meant to (autopilot click, accidental keystroke).

The goal isn't maximum confirmation; it's appropriate friction calibrated to the action's stakes.

Worked examples

Example 1: a soft-delete with undo (the modern default)

Most modern apps prefer reversibility over confirmation for routine destructive actions.

html
<button onclick="archive(item)">Archive</button>

<script>
async function archive(item) {
  const previous = items.slice();
  items = items.filter(i => i.id !== item.id);
  render();
  await api.archive(item.id);
  showToast(`"${item.name}" archived`, {
    action: { label: 'Undo', onClick: () => unarchive(item, previous) },
    duration: 7000,
  });
}

function unarchive(item, previous) {
  items = previous;
  render();
  api.unarchive(item.id);
}
</script>

The action is one click; if wrong, one click in the toast restores. Most users never need the undo; the few who do have a 7-second window. No confirmation dialog, no friction on the common path.

Example 2: type-to-confirm for irreversible destruction

Some actions genuinely can't be undone (or shouldn't be made undoable for security/compliance reasons). For these, raise friction deliberately.

html
<button onclick="openDeleteDialog()">Delete account</button>

<dialog id="delete-dialog">
  <h2>Delete account permanently?</h2>
  <p>This deletes your account, all your projects (12), and revokes access for your team (38 members). It cannot be undone.</p>
  <p>To confirm, type your account email below:</p>
  <input id="confirm-input" placeholder="you@example.com" />
  <div class="actions">
    <button onclick="closeDialog()">Cancel</button>
    <button id="confirm-btn" disabled class="destructive">
      Delete account permanently
    </button>
  </div>
</dialog>

<script>
const input = document.getElementById('confirm-input');
const btn = document.getElementById('confirm-btn');
input.addEventListener('input', () => {
  btn.disabled = input.value !== currentUser.email;
});
</script>

The user must (a) intend to open the dialog, (b) read the consequences laid out, (c) actively type their email, (d) click the destructive button. Each step is a chance to step back. For genuinely irreversible high-stakes actions, this stack is appropriate.

Example 3: auto-save as a safety net

A form that auto-saves drafts protects the user from navigation accidents, browser crashes, and second-guessing.

html
<form id="post-editor">
  <input name="title" placeholder="Title" />
  <textarea name="body" placeholder="Write your post..."></textarea>
  <p class="save-status" aria-live="polite">All changes saved</p>
  <button>Publish</button>
</form>

<script>
const form = document.getElementById('post-editor');
const status = form.querySelector('.save-status');

form.addEventListener('input', debounce(async () => {
  status.textContent = 'Saving...';
  await api.saveDraft(serialize(form));
  status.textContent = `Saved at ${formatTime(new Date())}`;
}, 600));
</script>

The user never thinks about saving; the system saves continuously. If they navigate away, the draft survives. If they refresh, the draft restores. The "Publish" button is the only commit; everything else is reversible.

Example 4: warning before navigation away with unsaved changes

When the user has unsaved work and tries to leave, a warning is appropriate friction.

js
window.addEventListener('beforeunload', (e) => {
  if (form.dataset.dirty === 'true') {
    e.preventDefault();
    e.returnValue = '';  // browsers show their own confirmation
  }
});

The browser's native dialog appears. The user can cancel and stay, or confirm and lose changes. If you've also implemented auto-save, this dialog appears only briefly between auto-saves — and the saved draft is still there if they leave.

Example 5: error message that aids recovery

A poorly-designed error message says "Error 503." A forgiving error message names the problem, explains what went wrong, and offers the next step.

html
<div class="error-card">
  <h3>We couldn't process your payment</h3>
  <p>
    Your card (ending in 4242) was declined. This usually means insufficient
    funds or a billing-address mismatch.
  </p>
  <p>
    <button>Try a different card</button>
    <a href="/help/declined-payments">Why was my card declined?</a>
  </p>
</div>

The error doesn't blame the user; it explains, offers an action, and provides a path to deeper help.

Cross-domain examples

Aviation: the ejection seat

The ultimate safety net. The pilot can't undo a structural failure, but they can leave the aircraft. The seat itself is a forgiveness mechanism — designed for the moment everything else has failed.

Cars: crumple zones

The front and rear of a car are deliberately weakened to absorb collision energy through controlled deformation, protecting the cabin and occupants. This is "weakest link" applied to forgiveness — the chosen failure point preserves what matters.

Medical: pill organizers and barcoded medications

Medication errors are a leading cause of preventable hospital harm. Forgiveness mechanisms include weekly pill organizers (good affordance — visible state of taken vs. untaken), barcode scanning (verification), and the "five rights" workflow (right patient, right drug, right dose, right route, right time).

Industrial: lockout-tagout

Before maintenance on hazardous equipment, workers physically lock and tag the energy source so it can't be activated until the lock is removed. A forcing function that prevents accidental energizing — a pure prevention strategy.

Word processors: undo / redo / version history

Microsoft Word and successors normalized undo as standard. Modern systems extend this to version history (Google Docs, Notion) — the user can not only undo recent changes but visit any prior state.

Email: "Undo Send"

Gmail introduced an "Undo send" feature with a default 5-second window (configurable up to 30). The send doesn't actually go out for that period; cancel reverses it. A reversibility mechanism applied to a previously-irreversible action.

Anti-patterns

  • Confirmation fatigue. Confirming routine actions ("Save?", "Apply?", "Open?") trains users to dismiss confirmations on autopilot. When a real destructive confirmation appears, they dismiss that too.
  • Modal traps without escape. A "Are you sure?" with no Cancel, no Esc, no backdrop click. The user can only proceed.
  • Cryptic error messages. "Error: ENOENT" or "Operation failed" with no explanation. The user can't recover.
  • Pre-selected destructive option. A confirmation dialog with "Delete" pre-selected so Enter triggers it. Users hit Enter on autopilot.
  • No undo for routine actions. Apps where every change is committed immediately and irreversibly. Users learn fear, not confidence.
  • Soft-delete that's not recoverable. "Archive" that quietly purges 30 days later with no recovery window or explanation.
  • Help as the only forgiveness layer. "If you have problems, contact support." The user has already lost their work.

Heuristics

  1. The "what if they didn't mean it?" test. For each destructive action, ask: how does the user recover if they didn't mean to do this? If the answer is "they can't," you need at minimum strong confirmation; ideally reversibility.
  2. The confirmation count. Count how many confirmation dialogs a typical user encounters in a typical session. > 3 → likely confirmation fatigue. Replace some with undo.
  3. The error-message audit. Every error message in your app should answer (a) what happened, (b) why, (c) what to do next. Audit a sample; fix the ones that don't.
  4. The "lose your work" test. Try every plausible way a user might lose work: navigate away, close tab, refresh, lose connection, browser crash. For each, does the system recover? If yes, forgiveness is strong.

Related principles

  • affordance — good affordances prevent errors; this is the highest level of forgiveness.
  • constraint — constraints prevent invalid actions structurally.
  • errors — slip vs. mistake distinction shapes which forgiveness mechanism applies.
  • feedback-loop — feedback after an action lets the user catch errors quickly.
  • factor-of-safety (process) — engineering version of the same idea: design with margin so normal operation isn't at the edge of failure.
  • weakest-link (process) — crumple-zone logic; deliberately failing at a chosen point.
  • accessibility-understandable (process) — error identification and recovery are accessibility requirements.

Sub-aspect skills

  • forgiveness-undo-and-soft-delete — designing reversibility: undo systems, soft delete, version history, the "Undo Send" pattern.
  • forgiveness-confirmation-and-prevention — when confirmation is appropriate, how to design it, and how to prevent confirmation fatigue.

Closing

Forgiveness is the principle that determines whether a product is loved or feared. Loved products let users explore, undo, and recover; users develop confidence and use them daily without anxiety. Feared products punish exploration; users develop anxious habits and stick to the obvious paths. Build for the loved version: prevent first, reverse second, confirm only when you must.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Forgiveness làm được gì?

Use this skill whenever a design lets users do something they might regret — delete, send, publish, charge, transfer, archive, overwrite, irrecoverably commit. Trigger when designing destructive actions, undo systems, confirmation dialogs, soft-delete recovery, draft-saving, transaction reversal, "are you sure?" patterns, or any flow where a wrong move costs the user time, data, money, or trust. Trigger when the user mentions "users keep deleting things," "we get support tickets about lost data," "is this dangerous?", or when reviewing destructive UI. Forgiveness is one of the central princ...

Vì sao nên dùng Forgiveness trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Forgiveness là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Forgiveness trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/Deibler/universal-design-principles/tree/main/plugins/interaction-and-control-principles/skills/forgiveness. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Forgiveness?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Forgiveness với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Forgiveness với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Forgiveness có miễn phí không?

Kỹ năng này được Deibler phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇