graceful-degradation

仓库创建 2025年12月23日最近提交 6 个月前SkillHot 收录 21 天前
▸ 精选理由

提升系统稳健性并给出可修复建议,利于用户体验。

这个 Skill 做什么

当可选服务不可用时提供可操作的回退与友好提示策略。

当可选服务不可用时,提前检测并缓存健康状态,向用户展示可操作的回退建议和友好提示,避免浪费计算资源。用于有第三方依赖或可选功能(如外部 API、插件)的系统,能在故障时保持基本功能并指导修复。特别在于早检测、会话级缓存和提供明确的替代路径。

▸ 展开 SKILL.md 英文原文

Graceful Degradation with Helpful Messages

Skill 开发管理降级策略故障提示缓存可用性通用
3.9k
Stars
298
Forks
40
仓库内 Skill
+18
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/parcadei/Continuous-Claude-v3/main/.claude/skills/graceful-degradation/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/parcadei/Continuous-Claude-v3/main/.claude/skills/graceful-degradation/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Graceful Degradation with Helpful Messages

When optional services are unavailable, degrade gracefully with actionable fallback messages.

## Pattern

Check availability at the start, cache the result, and provide helpful messages that explain what's missing and how to fix it.

## DO

- Check service availability early (before wasting compute)
- Cache health check results for the session (e.g., 60s TTL)
- Provide actionable fallback messages:
  - What service is missing
  - What features are degraded
  - How to enable the service
- Continue with reduced functionality when possible

## DON'T

- Silently fail or return empty results
- Check availability on every call (cache it)
- Assume the 
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有