src/autoskillit/skills_extended/arch-lens-error-resilience/SKILL.md
Create Error/Resilience architecture diagram showing failure handling, recovery mechanisms, and circuit breakers. Diagnostic lens answering "How are failures handled?"
npx skillsauth add talont-org/autoskillit arch-lens-error-resilienceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Cognitive Mode: Diagnostic Primary Question: "How are failures handled?" Focus: Error Propagation, Recovery Mechanisms, Circuit Breakers, Validation Gates
/autoskillit:arch-lens-error-resilience or /autoskillit:make-arch-diag errorNEVER:
run_in_background: true is prohibited)ALWAYS:
/autoskillit:mermaid skill using the Skill tool - this is MANDATORYtemp/arch-lens-error-resilience/...
save path to absolute by prepending the full CWD:
diagram_path = /absolute/cwd/temp/arch-lens-error-resilience/{filename}.md
This token is MANDATORY — the pipeline cannot proceed without it./autoskillit:arch-lens-error-resilience [context_path]
If a context_path positional argument is present:
context_pathIf no context_path is provided, skip this step and explore the full CWD in Step 1.
Spawn Explore subagents to investigate:
Exception Hierarchy
Validation Gates
Error Detection
Recovery Mechanisms
Circuit Breakers
Error Routing
For each major operation, document:
CRITICAL - Analyze Read/Write Direction: For EVERY error handling component:
Distinguish:
| Mechanism | Trigger | Action | Limit | |-----------|---------|--------|-------| | Retry | Transient error | Repeat operation | max N | | Fallback | Specific error | Alternative action | - | | Circuit Breaker | Too many failures | Stop retrying | threshold |
Use flowchart with:
Direction: TB for error flow hierarchy
Subgraphs:
Node Styling:
handler class: Execution nodesdetector class: Validation gates, error detectiongap class: Failed/error state (yellow warning)stateNode class: Decision points, circuit breakeroutput class: Recovery actionsterminal class: Final states (success, error)Connection Types:
Write the diagram to: {{AUTOSKILLIT_TEMP}}/arch-lens-error-resilience/arch_diag_error_resilience_{YYYY-MM-DD_HHMMSS}.md (relative to the current working directory)
After writing the diagram file, emit a structured output line:
IMPORTANT: Emit the structured output tokens as literal plain text with no markdown formatting on the token names. Do not wrap token names in
**bold**,*italic*, or any other markdown. The adjudicator performs a regex match on the exact token name — decorators cause match failure.
diagram_path = {absolute_path_to_diagram_file}
# Error/Resilience Diagram: {System Name}
**Lens:** Error/Resilience (Diagnostic)
**Question:** How are failures handled?
**Date:** {YYYY-MM-DD}
**Scope:** {What was analyzed}
## Exception Hierarchy
BaseError ├── ValidationError ├── ProcessingError │ └── RetryableError └── FatalError
## Resilience Diagram
```mermaid
%%{init: {'flowchart': {'nodeSpacing': 40, 'rankSpacing': 50, 'curve': 'basis'}}}%%
flowchart TB
%% CLASS DEFINITIONS %%
classDef terminal fill:#1a237e,stroke:#7986cb,stroke-width:2px,color:#fff;
classDef stateNode fill:#004d40,stroke:#4db6ac,stroke-width:2px,color:#fff;
classDef handler fill:#e65100,stroke:#ffb74d,stroke-width:2px,color:#fff;
classDef phase fill:#6a1b9a,stroke:#ba68c8,stroke-width:2px,color:#fff;
classDef detector fill:#b71c1c,stroke:#ef5350,stroke-width:2px,color:#fff;
classDef output fill:#00695c,stroke:#4db6ac,stroke-width:2px,color:#fff;
classDef gap fill:#ff6f00,stroke:#ffa726,stroke-width:2px,color:#000;
subgraph Execution ["EXECUTION"]
EXEC["Execute<br/>━━━━━━━━━━<br/>Main operation"]
SUCCESS["SUCCESS<br/>━━━━━━━━━━<br/>Completed"]
RETRY["RETRY<br/>━━━━━━━━━━<br/>Transient failure"]
FAILED["FAILED<br/>━━━━━━━━━━<br/>Needs handling"]
end
subgraph Gates ["VALIDATION GATES (Fail-Fast)"]
GATE1["Validate Input<br/>━━━━━━━━━━<br/>Check required fields"]
GATE2["Validate State<br/>━━━━━━━━━━<br/>Check preconditions"]
end
subgraph Recovery ["RECOVERY MECHANISMS"]
direction TB
R_RETRY["Retry with Backoff<br/>━━━━━━━━━━<br/>Max N attempts"]
R_FALLBACK["Fallback Action<br/>━━━━━━━━━━<br/>Alternative path"]
R_CIRCUIT{"Circuit<br/>Breaker<br/>triggered?"}
end
subgraph Terminals ["TERMINAL STATES"]
T_COMPLETE([COMPLETE])
T_ERROR([ERROR])
T_CIRCUIT([CIRCUIT_BROKEN])
end
%% EXECUTION FLOW %%
EXEC --> SUCCESS
EXEC --> RETRY
EXEC --> FAILED
SUCCESS --> T_COMPLETE
RETRY -->|"back to queue"| EXEC
%% VALIDATION GATES %%
GATE1 -->|"missing"| T_ERROR
GATE1 -->|"valid"| GATE2
GATE2 -->|"invalid"| T_ERROR
GATE2 -->|"valid"| EXEC
%% RECOVERY %%
FAILED --> R_CIRCUIT
R_CIRCUIT -->|"not triggered"| R_RETRY
R_CIRCUIT -->|"triggered"| T_CIRCUIT
R_RETRY --> EXEC
R_RETRY -->|"exhausted"| R_FALLBACK
R_FALLBACK --> T_ERROR
%% CLASS ASSIGNMENTS %%
class EXEC,SUCCESS handler;
class RETRY,FAILED gap;
class GATE1,GATE2 detector;
class R_RETRY,R_FALLBACK output;
class R_CIRCUIT stateNode;
class T_COMPLETE,T_ERROR,T_CIRCUIT terminal;
Color Legend: | Color | Category | Description | |-------|----------|-------------| | Orange | Execution | Normal operation and success | | Yellow | Failed | Failure states requiring handling | | Red | Gates | Validation gates (fail-fast) | | Dark Teal | Recovery | Retry and fallback mechanisms | | Teal | Circuit | Circuit breaker decisions | | Dark Blue | Terminal | Final states |
| Mechanism | Trigger | Action | Max Attempts | |-----------|---------|--------|--------------| | {name} | {condition} | {what happens} | {limit} |
| Gate | Checks | Failure Mode | |------|--------|--------------| | {name} | {what validated} | {error raised} |
---
## Pre-Diagram Checklist
Before creating the diagram, verify:
- [ ] LOADED `/autoskillit:mermaid` skill using the Skill tool
- [ ] Using ONLY classDef styles from the mermaid skill (no invented colors)
- [ ] Diagram will include a color legend table
---
## Related Skills
- `/autoskillit:make-arch-diag` - Parent skill for lens selection
- `/autoskillit:mermaid` - MUST BE LOADED before creating diagram
- `/autoskillit:arch-lens-process-flow` - For normal flow view
- `/autoskillit:arch-lens-concurrency` - For parallel failure handling
development
Generate YAML recipes for .autoskillit/recipes/. Use when user says "make script skill", "generate script", "script a workflow", "write a script", "create a script", "new recipe", "write a pipeline", or when loaded by other skills for script formatting.
data-ai
Create Uncertainty Representation visualization planning spec showing error bar definitions, distribution-aware alternatives, and multi-seed variance protocols. Statistical lens answering "How is uncertainty honestly represented?"
data-ai
Create Temporal Dynamics visualization planning spec showing axis scaling (linear vs log), smoothing disclosure, epoch/step alignment, run aggregation (mean + variance bands), early-stopping markers, and wall-clock vs step-count x-axis. Temporal lens answering "Are training dynamics shown clearly and honestly?"
data-ai
Create Narrative Story Arc visualization planning spec showing visual consistency across the report (same color = same model everywhere), logical figure progression, redundant figure detection, and narrative dependency between figures. Narrative lens answering "Do the figures tell a coherent story across the report?"