본문으로 건너뛰기
cccskills
무료GitHub에 공개

qa-resilience

Designs and tests distributed-system resilience. Use when adding retries, deadlines, hedging, circuit breakers, overload protection, chaos experiments, or SLO reliability gates.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(32)

  • SKILL.md11.5 KB
  • agents/openai.yaml332 B
  • assets/runbooks/resilience-runbook-template.md1.1 KB
  • assets/testing/fault-injection-playbook.md836 B
  • assets/testing/template-resilience-test-plan.md3.6 KB
  • data/sample-service-profile.json4.3 KB
  • data/sources.json20.7 KB
  • learnings.consolidated.md589 B
  • learnings.md584 B
  • references/ai-llm-resilience-failure-modes.md6.7 KB
  • references/bulkhead-isolation.md7.9 KB
  • references/cascading-failure-prevention.md27.7 KB
  • references/chaos-engineering-guide.md4.0 KB
  • references/chaos-tooling-recipes.md23.3 KB
  • references/circuit-breaker-patterns.md9.4 KB
  • references/deadlines-hedging.md8.0 KB
  • references/disaster-recovery-testing.md21.1 KB
  • references/distributed-systems-applied.md26.8 KB
  • references/gateway-mesh-resilience.md2.8 KB
  • references/graceful-degradation.md14.0 KB
  • references/health-check-patterns.md6.4 KB
  • references/idempotency-key-design.md11.3 KB
  • references/load-shedding-backpressure.md21.7 KB
  • references/reliability-theory-applied.md28.1 KB
  • references/resilience-checklists.md1.8 KB
  • references/resilience-telemetry.md2.6 KB
  • references/retry-patterns.md12.6 KB
  • references/slo-as-code.md5.2 KB
  • references/timeout-policies.md8.0 KB
  • scripts/README.md3.9 KB
  • scripts/resilience_checker.py21.8 KB
  • scripts/test_resilience_checker.py5.6 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

QA Resilience

Quick Reference

SymptomStart With
slow or hanging dependencydeadline and timeout budget
transient dependency failurebounded retry with jitter and retry budget
sustained dependency failurecircuit breaker and fallback
rate-limited dependencyhonor Retry-After, expose degraded behavior, and test quota paths intentionally
one bad host in a healthy pooloutlier detection or endpoint ejection
queue or pool saturationbulkheads, concurrency limits, load shedding
static concurrency limit keeps going stale under changing capacityadaptive concurrency limit with a static backstop; verify the goodput plateau — load-shedding-backpressure.md
non-critical feature outagegraceful degradation or feature flag fallback
resilience validationdeterministic fault injection before chaos

When to Use This Skill

  • retries, deadlines, hedging, breakers, bulkheads, and overload protection
  • degraded-mode UX or API behavior
  • service-mesh or gateway resilience policy
  • chaos engineering, game days, DR drills, and fault injection
  • release gates based on failure behavior, not only happy-path load tests

Route Elsewhere


Workflow

  1. Identify the critical user journeys and the dependencies that can break them.
  2. Define the contract per dependency:
    • timeout or deadline budget
    • retry ownership
    • breaker or outlier policy
    • concurrency and queue limits
    • degraded behavior if the dependency is unavailable
  3. Decide where the policy lives:
    • app code
    • client library
    • mesh or gateway
  4. Test in stages:
    • design review or checker output establishes policy coherence only
    • deterministic fault injection proves the response to a named controlled fault
    • staged chaos in non-production proves bounded behavior and recovery in that environment
    • narrow prod canary or game day proves only the observed target path and window, with guardrails
  5. Define pass or fail signals:
    • burn rate
    • p95 or p99
    • fallback rate
    • breaker transitions
    • shed volume
    • recovery time
  6. Record the injected fault, steady-state hypothesis, blast-radius limit, abort condition, observation window, recovery result, and dependencies simulated rather than observed.

Selective verification and hazard analysis

  • Use formal methods when the question is whether a recovery/failover protocol preserves an invariant under concurrent faults, or when a counterexample is needed. Return the property, initial states, transitions/environment assumptions, checked bound, result/trace, and model-to-code limits. A finite invariant check does not establish liveness or recovery time. Skip for routine timeout/retry configuration and named fault tests whose behavior is already directly observable.
  • Use safety engineering when retries, rollback, failover, operators, or other functioning controls can interact to cause a specified unacceptable loss, such as duplicate financial effects or destructive recovery. Return loss → hazard → unsafe control action and context → constraint → owner → verification evidence, including residual unknowns. Skip for ordinary availability or latency tuning without a harmful interaction question. Uptime and a hazard diagram do not prove safety.

Keep resilience policy, fault-injection execution, recovery evidence, and release recommendations with this skill; use the foundation only for the named gap.

Pattern Rules

  • retries happen at one layer only
  • deadlines come before retries
  • hedging is only for idempotent or cancellation-safe reads
  • overload handling must shed early instead of collapsing late
  • overload tests pass on goodput plateauing past capacity, not on "503s appeared"; shed responses are retried only at the retry-owning layer, within budget, after Retry-After
  • in regulated firms (EU DORA, UK FCA/PRA operational resilience), test each important business service against its impact tolerance, third parties included; counsel owns scoping — see disaster-recovery-testing.md
  • readiness and liveness must stay bounded and shallow
  • resilience behaviors belong in targeted checks; do not let rate-limit or degraded-mode coverage leak into unrelated happy-path suites
  • prod experiments require blast-radius limits, abort criteria, dashboards, and owners

Failure Modes to Validate

  • timeouts and deadline propagation
  • retry storms and duplicate side effects
  • partial dependency outages
  • slow downstreams and long-tail latency
  • queue buildup and connection-pool exhaustion
  • one-bad-host behavior inside a pool
  • degraded-mode responses and stale-data fallbacks
  • rate-limit handling, Retry-After, and client backoff expectations
  • visible state convergence after recovery or backend resets
  • failover and failback behavior
  • metastable failure: a self-sustaining feedback loop (retry amplification, cache-miss stampede, queue backlog, connection-pool churn) that does not self-resolve after the original trigger clears — see references/cascading-failure-prevention.md

Testing Ladder

Deterministic first

  • inject latency, errors, timeouts, malformed payloads, and unavailable endpoints in controlled tests
  • verify the intended control activates and the wrong controls do not

Chaos second

  • start in non-production
  • use a small blast radius and a fixed time window
  • stop immediately on error-budget or customer-impact breach

DR and game days last

  • validate RTO and RPO claims explicitly
  • rehearse recovery ownership, not only technical failover

Operational Guardrails

  • every experiment needs a stated hypothesis and steady-state metric
  • every run should capture timestamps, targets, blast radius, and dashboard links
  • telemetry fields for retries, breaker transitions, hedging, shedding, and fallback are part of the resilience contract
  • releases should be gated on reliability behavior, not only resource usage

Anti-Patterns

  • no timeouts
  • retries at every hop
  • fixed-interval or unbounded retries
  • fixed per-call retry count with no system-wide retry budget (does not tighten as error rate rises)
  • retries without idempotency
  • hedging unsafe writes
  • no bulkheads or queue bounds
  • deep readiness or liveness checks
  • silent degraded mode
  • untested failover plans
  • happy-path-only load testing

Scripts

ScriptPurpose
scripts/resilience_checker.pyScores declared pattern coverage and reports gaps; rejects malformed claims

Typical usage:

python scripts/resilience_checker.py assess --input data/sample-service-profile.json
python scripts/resilience_checker.py gaps --input data/sample-service-profile.json
python scripts/resilience_checker.py report --input data/sample-service-profile.json --output resilience-report.md

Supply actual JSON booleans and explicit hedging N/A rationale. The heuristic score describes declared coverage; it does not establish fault behavior or recovery. See scripts/README.md for the input format and scoring logic.

ASCII Flow

Resilience request
  -> Identify failure mode: slow, transient, sustained, overloaded, or degraded
  -> Set deadlines, retry budgets, isolation, and fallback ownership
  -> Add telemetry for saturation, errors, latency, and degraded behavior
  -> Validate with deterministic fault injection before chaos experiments
  -> Gate release on recovery evidence, SLO impact, and rollback path
  -> Document runbook actions and residual risk

Navigation

Foundation applied recipes

Core references

Operational resources

Related Skills

Learnings Loop

When prior decisions or pitfalls are relevant, consult learnings.consolidated.md if present; use learnings.md only for needed history or as the available fallback. Otherwise skip both.

After applying it, if you encountered a pattern worth remembering, a mistake worth preventing, or a domain fact that surprised you, append one dated bullet to learnings.md via agents-skills-feedback-loop/scripts/append_learning.py. Do not modify SKILL.md itself.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Configures Claude Code hooks and Codex hooks.json/notify. Use when adding PreToolUse guards, Stop hooks, managed hooks, format-on-save, preflight, audits, or worktree/budget hooks.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

vasilyu1983/AI-Agents-public1012026년 10월 16일 업데이트

Configures and hardens Claude Code and Codex MCP servers. Use when connecting databases, APIs, SaaS, building servers, or serving a clearance-filtered knowledge base.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

vasilyu1983/AI-Agents-public1012026년 10월 16일 업데이트

Owns instruction files: AGENTS.md, CLAUDE.md, personal and repo rules. Use when writing, pruning, auditing them, sharing rules across Claude and Codex, or fixing ignored rules.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

vasilyu1983/AI-Agents-public1012026년 10월 16일 업데이트

Creates and audits agent skills: SKILL.md, references, scripts, runtime metadata. Use when writing, validating, or security-reviewing a skill, or fixing truncated skill listings.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

vasilyu1983/AI-Agents-public1012026년 10월 16일 업데이트

Adds per-skill learnings loops for dated patterns, mistakes, and domain facts. Use when wiring skill memory, consolidation, or drift audits.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

vasilyu1983/AI-Agents-public1012026년 10월 16일 업데이트

Chooses subagent, team, workflow, or debate and launches it on Claude Code or Codex. Use when delegating, running agent review boards, or installing shared agents.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

vasilyu1983/AI-Agents-public1012026년 10월 16일 업데이트

vasilyu1983의 스킬 모두 보기

이 스킬의 문제 신고