Logo Ai Error Resilience

Ai Error Resilience

Cộng đồng
varunk130
ai-error-resilience

Thiết kế trải nghiệm xử lý lỗi khéo léo cho sản phẩm AI — từ nội dung bịa đặt, sự không chắc chắn và kết quả sai đến các trường hợp ngoại lệ. Dùng khi cần: thiết kế trải nghiệm người dùng cho nội dung AI bịa đặt, xử lý lỗi AI, thiết kế thể hiện sự không chắc chắn, giảm cấp tính năng một cách khéo léo, khôi phục sau lỗi AI, ngưỡng độ tin cậy, phương án dự phòng an toàn.

Add to TypingMind

Tổng quan

Nhà phát hànhvarunk130
Kho mãai-ux-skill-library
Tên kỹ năngai-error-resilience
Sao
3
Bản fork
0
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
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ộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được varunk130 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 Ai Error Resilience 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/varunk130/ai-ux-skill-library/tree/main/skills/ai-error-resilience
  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/varunk130/ai-ux-skill-library.git /tmp/ai-ux-skill-library
mkdir -p .claude/skills
cp -r /tmp/ai-ux-skill-library/skills/ai-error-resilience .claude/skills/ai-error-resilience
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 Ai Error Resilience 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 Ai Error Resilience 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 Ai Error Resilience 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.

AI Error Resilience

Design AI products that fail gracefully, communicate uncertainty honestly, and help users recover without losing trust. The RECOVER framework treats AI errors as a design material, not a bug to hide.

Core Principle

Traditional software has bugs. AI has probabilistic outputs on a spectrum of correctness. You cannot design AI UX using binary error/success patterns. Instead, design for a continuum: right, mostly right, partially right, uncertain, wrong, and dangerously wrong.


The RECOVER Framework

LetterPhaseDesign Question
RRecognizeCan the system detect when its output may be unreliable?
EExpress UncertaintyDoes the interface clearly communicate degrees of confidence to the user?
CContain Blast RadiusIf the AI is wrong, what's the worst that can happen? How is damage limited?
OOffer AlternativesDoes the user get a Plan B when Plan A might be wrong?
VVerify CollaborativelyCan the user easily check, correct, or confirm the AI's output?
EEvolve from ErrorsDoes the system learn from this error type to prevent future occurrences?
RRestore ConfidenceAfter a failure, how does the product rebuild the user's willingness to try again?

AI Error Taxonomy

Not all AI errors are created equal. Each type requires a different UX response.

Error TypeDescriptionSeverityUX Response Pattern
Confident hallucinationAI invents facts and states them as truthCriticalCitation requirement + verification prompt
Stale knowledgeAI references outdated informationHighTimestamp + "knowledge cutoff" indicator
Context misreadAI misinterprets the user's intent or contextMediumReflect understanding before answering
Partial answerAI addresses some but not all parts of a queryMediumChecklist showing what was/wasn't addressed
Formatting errorContent is correct but presented poorlyLowEasy reformat/regenerate affordance
Refusal overreachAI refuses a legitimate request due to overly strict safety filtersMediumExplain why + offer alternative path
Confidence inversionAI is most confident when it's most wrongCriticalMandatory human review for high-stakes outputs

The Error Severity Matrix

Use this matrix to determine the appropriate UX response based on error probability and consequence:

Low ConsequenceMedium ConsequenceHigh Consequence
High Probability of ErrorAuto-correct silently + logWarn before action + suggest alternativesBlock action + require human approval
Medium ProbabilityShow confidence indicatorPresent with verification promptRequire explicit confirmation + evidence
Low ProbabilityNo intervention neededSubtle confidence signalAdd verification step for critical outputs

Uncertainty Communication Patterns

The Hedging Spectrum

From most to least uncertain, calibrate AI language:

Confidence LevelAI Language PatternVisual SignalExample
90%+Direct statementGreen / no indicator"The meeting is scheduled for 3pm."
70-90%Qualified statementAmber indicator"Based on the data available, the meeting appears to be at 3pm."
50-70%Explicit uncertaintyAmber + explanation"I found conflicting information. It may be 3pm, but some sources say 2pm."
30-50%Presented as possibilitiesRed indicator"I'm not confident about this. Here are the possibilities I found: [list]"
Below 30%Deferred to user/humanRed + escalation"I don't have enough information to answer reliably. Here's what might help: [resources]"

Anti-pattern: Using the same hedging language for everything ("I think..." prepended to every response). This makes hedging meaningless. Reserve it for genuine uncertainty.


The Hallucination Defense Playbook

Prevention Layer (Before Output)

StrategyHow It WorksImplementation
Source groundingOnly make claims traceable to provided sourcesRAG architecture with citation requirements
Constraint declarationsAI states what information it's working from"Based on the 3 documents you uploaded..."
Confidence gatingSuppress outputs below confidence thresholdSet per-use-case thresholds (e.g., medical = 90%, casual = 50%)
Scope framingAI explicitly states what's in and out of scope"I can help with X. For Y, you'll need [alternative]."

Detection Layer (During Output)

StrategyHow It WorksImplementation
Self-consistency checkingGenerate multiple responses; flag divergenceIf 3 generations disagree, show the disagreement to the user
Factual anchoringCross-reference claims against known dataHighlight claims that don't match provided sources
Temporal markersFlag information that may be outdated"This information is from [date]. Verify current status."

Recovery Layer (After Error)

StrategyHow It WorksImplementation
One-click correctionUser marks output as wrong with minimal effortThumbs down + "What was wrong?" dropdown
Regeneration with guidanceUser can ask AI to try again with a hint"Try again, but focus on [specific angle]"
Human escalationSeamless handoff to human when AI fails"Let me connect you with someone who can help with this."
Error acknowledgmentAI explicitly owns the mistake"You're right - my previous answer was incorrect. Here's the corrected version."

Safe Fallback Design

Every AI output needs a fallback plan. Design the fallback hierarchy:

PriorityFallback LevelWhat HappensUser Experience
1Graceful degradationAI provides a less detailed but more reliable answer"I can give you a general answer, but for specifics you'll want to check [source]."
2Transparent limitationAI explains what it can't do and why"I don't have access to real-time data for this. Here's what I know as of [date]."
3Alternative pathAI suggests another way to accomplish the goal"I can't do X directly, but here's how you might approach it using Y."
4Human handoffAI transfers to a human with full context"Transferring you to a specialist. I've shared our conversation so you won't need to repeat yourself."
5Graceful exitAI acknowledges the dead end respectfully"I've reached the limit of what I can help with here. Here are some resources that might help: [links]"

Anti-pattern: The cliff-edge fallback - AI works perfectly until it doesn't, then shows a generic "Something went wrong" error with no path forward.


The Blast Radius Audit

For every AI feature, map the blast radius of failure:

QuestionWhat to Document
What's the worst output the AI could produce?Specific harmful scenarios, not abstract risks
Who is harmed if the AI is wrong?End user, downstream consumers of the output, third parties
Is the harm reversible?Can the user undo, correct, or recover from a bad output?
How quickly is the error detectable?Immediately (user sees it), delayed (downstream impact), or hidden (user doesn't know)?
What safeguards exist?Human review, verification prompts, confidence gates, output constraints

Anti-Patterns

PatternWhy It Fails
Hiding uncertainty behind confident languageCreates automation bias; users can't calibrate trust
Showing a spinner then delivering a hallucinationUsers equate "thinking time" with reliability - longer processing implies more trustworthy answers
Generic error messages ("Something went wrong")Tells the user nothing actionable. Always specify: what failed, why, and what to do next
Requiring users to detect AI errors themselvesUsers are not QA testers. Build detection into the system
Punishing users for reporting errorsIf the correction flow is cumbersome, users will stop reporting and start silently distrusting
Overcorrecting after one errorDropping confidence displays to 0 after one mistake makes the system unusable. Recalibrate, don't overreact

Quick Reference

TaskFramework ElementKey Deliverable
Design error handling for AI productFull RECOVER frameworkError type map + severity matrix + fallback hierarchy
Audit AI product for failure risksBlast Radius AuditRisk map with harm scenarios and safeguards
Design hallucination preventionHallucination Defense Playbook3-layer defense (prevention, detection, recovery)
Calibrate uncertainty languageHedging SpectrumLanguage guidelines matched to confidence levels
Design safe fallback flowSafe Fallback Hierarchy5-level fallback chain with user experience specs

Integration

Works with: ai-trust-transparency (how errors affect trust), ai-conversation-architect (error recovery in dialogue), ai-safety-guardrails (preventing harmful errors), ai-feedback-loops (learning from error reports), ai-ux-eval (scores the recoverability dimension).

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

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

Thiết kế trải nghiệm xử lý lỗi khéo léo cho sản phẩm AI — từ nội dung bịa đặt, sự không chắc chắn và kết quả sai đến các trường hợp ngoại lệ. Dùng khi cần: thiết kế trải nghiệm người dùng cho nội dung AI bịa đặt, xử lý lỗi AI, thiết kế thể hiện sự không chắc chắn, giảm cấp tính năng một cách khéo léo, khôi phục sau lỗi AI, ngưỡng độ tin cậy, phương án dự phòng an toàn.

Vì sao nên dùng Ai Error Resilience 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. Ai Error Resilience 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 Ai Error Resilience trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/varunk130/ai-ux-skill-library/tree/main/skills/ai-error-resilience. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để 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 Ai Error Resilience?

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 Ai Error Resilience 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 Ai Error Resilience 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 Ai Error Resilience có miễn phí không?

Có. Kỹ năng này được varunk130 phát hành trên GitHub theo giấy phép MIT. 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 👇