360 Secure SkillHub
360 安全技能中心

Error

核心功能涵盖错误处理模式、HTTP状态码全参考、重试策略、调试技巧、日志规范等,通过`intro`/`http`/`retry`等bash命令调用。典型场景包括设计错误处理策略、查HTTP状态码、实现重试逻辑、调试生产错误、构建弹性系统等,支持配置数据目录,输出对应主题的专业参考资料。

ckchzh
ckchzh
热度 58.64
最近更新 2026-05-11 17:34:47
分类:开发依赖:代码执行应用场景:调试排错 / DevOps / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add error
Metadata
name
error
version
1.0.0
description
Error handling reference — error types, exception patterns, HTTP status codes, retry strategies, and observability. Use when designing error handling, debugging failures, or implementing resilient systems.
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills
tags
["error","exception","debugging","http-status","retry","resilience","devtools"]
category
devtools

Error — Error Handling & Resilience Reference

Quick-reference skill for error handling patterns, HTTP status codes, retry strategies, and debugging techniques.

When to Use

  • Designing error handling strategy for an application
  • Looking up HTTP status codes and their proper usage
  • Implementing retry logic with backoff strategies
  • Debugging production errors and failure patterns
  • Building resilient systems with circuit breakers

Commands

intro

scripts/script.sh intro

Overview of error handling — philosophy, types, and design principles.

http

scripts/script.sh http

HTTP status codes — complete reference with proper usage.

patterns

scripts/script.sh patterns

Error handling patterns — try/catch, Result types, error boundaries.

retry

scripts/script.sh retry

Retry strategies — exponential backoff, jitter, circuit breakers.

logging

scripts/script.sh logging

Error logging best practices — structured logging, context, severity levels.

messages

scripts/script.sh messages

Error message design — user-facing vs developer-facing, i18n, codes.

debug

scripts/script.sh debug

Debugging techniques — root cause analysis, bisection, tracing.

checklist

scripts/script.sh checklist

Error handling checklist for production applications.

help

scripts/script.sh help

version

scripts/script.sh version

Configuration

Variable Description
ERROR_DIR Data directory (default: ~/.error/)

Powered by BytesAgain | bytesagain.com | hello@bytesagain.com