Skip to content
Back to skills

Failure Contract Design

ASecurity

`analysis-agent`/`task-agent`/`review-agent`: use when retryable, terminal, timeout, partial-failure, or fallback semantics change across boundaries; skip unchanged failures.

  • 7 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 8, 2026
businessapisecurity

Works with

  • terminal
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 22, 2026

npx -y skills add machenjie/rd-skills --skill failure-contract-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Failure Contract Design?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Failure Contract Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/machenjie-failure-contract-design/badge)](https://www.skillsdirectory.com/skills/machenjie-failure-contract-design)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: failure-contract-design
description: "`analysis-agent`/`task-agent`/`review-agent`: use when retryable, terminal, timeout, partial-failure, or fallback semantics change across boundaries; skip unchanged failures."
---

# failure-contract-design

## Registry Trigger

**Use when**

- failure meaning taxonomy retryable terminal timeout cancellation dependency partial degraded boundary translation safe representation cause preservation

**Do not use when**

- no task-local failure contract design decision is required

## Skill Role

Define typed failure meaning, boundary translation, partial/degraded ownership, authorized cause, and safe representation. Exclude retry mechanics and queue disposition.

## High-Value Rules

- Separate typed consumer meaning from authorized cause at each changed boundary.
- Own partial/degraded meaning and recovery.
- Load only the named Reference for active selection, closure, or proof.

## Anti-Patterns

- Local success substituted for evidence of the failure contract design contract.

## Stop Conditions

- Route retry identity/budgets and unknown outcomes to `idempotency-retry-design`; queue disposition to `message-queue-design`.
- Route effect recovery to `transaction-consistency` or `data-side-effect-flow-tracing`; operational diagnostics to `logging-error-handling`, `observability`, or `reliability-observability-gate`.
- Route public failure contracts to `error-code-design` and `data-api-contract-changer`; disclosures to `security-privacy-gate`.

## Output Contract

- Failure Contract with stable taxonomy, boundary translation, retryable or terminal meaning, partial or degraded outcomes, safe external and internal representations, preserved cause, negative-path evidence, specialist routes, and residual risk

## Targeted References

| Path | Type | Load when | Do not load when | Required by | Required output |
|---|---|---|---|---|---|
| [benchmarks and patterns](references/benchmarks-and-patterns.md) | benchmark-pattern | Failure taxonomy, translation, retry, or degraded-state semantics need selection | No material boundary or failure behavior changes | task-agent, review-agent, analysis-agent | option-comparison, selected-approach |
| [checklist](references/checklist.md) | decision-checklist | Failures span partial outcomes, cancellation, dependencies, or async terminal states | One internal error remains fully contained | task-agent, review-agent, analysis-agent | checklist-result, residual-risk |
| [evidence patterns](references/evidence-patterns.md) | evidence-pattern | Failure claims need fresh translation, redaction, and recovery tests | No safety or retryability claim is being closed | task-agent, review-agent, analysis-agent | evidence-record, proof-limit, residual-risk |

Files in this skill

  • SKILL.md5 KB
  • references/benchmarks-and-patterns.md4.7 KB
  • references/checklist.md1.7 KB
  • references/evidence-patterns.md2.9 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in business →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.