src/autoskillit/skills_extended/arch-lens-scenarios/SKILL.md
Create Scenarios architecture diagram showing end-to-end user journeys and component cooperation validation. Validation lens answering "Do the components work together?"
npx skillsauth add talont-org/autoskillit arch-lens-scenariosInstall 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: Validation (+1 Validator) Primary Question: "Do the components work together?" Focus: End-to-End User Journeys, Component Cooperation, Scenario Validation
/autoskillit:arch-lens-scenarios or /autoskillit:make-arch-diag scenariosNEVER:
run_in_background: true is prohibited)ALWAYS:
/autoskillit:mermaid skill using the Skill tool - this is MANDATORYtemp/arch-lens-scenarios/...
save path to absolute by prepending the full CWD:
diagram_path = /absolute/cwd/temp/arch-lens-scenarios/{filename}.md
This token is MANDATORY — the pipeline cannot proceed without it./autoskillit:arch-lens-scenarios [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:
Primary Use Cases
Happy Path Flows
Error/Recovery Flows
Resume/Restart Flows
Integration Points
Choose 3-5 representative scenarios:
For each scenario:
CRITICAL - Analyze Read/Write Direction: For EVERY component in each scenario:
For scenario flows, annotate each arrow:
This reveals the actual data dependencies between scenario steps.
Use flowchart with:
Direction: LR (left-to-right) for sequential scenario flow
Subgraphs per Scenario:
Node Styling:
cli class: Entry points (CLI, triggers)phase class: Initialization, setuphandler class: Processing componentsstateNode class: Data/state componentsoutput class: Outputs, artifactsdetector class: Recovery, continue pathsShow Sequential Flow:
Write the diagram to: {{AUTOSKILLIT_TEMP}}/arch-lens-scenarios/arch_diag_scenarios_{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}
# Scenarios Diagram: {System Name}
**Lens:** Scenarios (Validation)
**Question:** Do the components work together?
**Date:** {YYYY-MM-DD}
**Scope:** {What was analyzed}
## Scenario Overview
| Scenario | Purpose | Key Components |
|----------|---------|----------------|
| {name} | {validates what} | {components} |
## Scenarios Diagram
```mermaid
%%{init: {'flowchart': {'nodeSpacing': 40, 'rankSpacing': 50, 'curve': 'basis'}}}%%
flowchart LR
%% CLASS DEFINITIONS %%
classDef cli 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 output fill:#00695c,stroke:#4db6ac,stroke-width:2px,color:#fff;
classDef detector fill:#b71c1c,stroke:#ef5350,stroke-width:2px,color:#fff;
subgraph Scenario1 ["SCENARIO 1: Primary Flow"]
direction TB
S1_CLI["CLI Entry"]
S1_INIT["Initialize"]
S1_PROC["Process"]
S1_OUT["Output"]
end
subgraph Scenario2 ["SCENARIO 2: Resume"]
direction TB
S2_DETECT["Detect State"]
S2_LOAD["Load Checkpoint"]
S2_CONT["Continue"]
end
subgraph Scenario3 ["SCENARIO 3: Error"]
direction TB
S3_DETECT["Detect Failure"]
S3_HANDLE["Handle Error"]
S3_RECOVER["Recovery Action"]
end
%% SCENARIO 1 FLOW %%
S1_CLI --> S1_INIT
S1_INIT --> S1_PROC
S1_PROC --> S1_OUT
%% SCENARIO 2 FLOW %%
S2_DETECT --> S2_LOAD
S2_LOAD --> S2_CONT
%% SCENARIO 3 FLOW %%
S3_DETECT --> S3_HANDLE
S3_HANDLE --> S3_RECOVER
%% CLASS ASSIGNMENTS %%
class S1_CLI,S2_DETECT,S3_DETECT cli;
class S1_INIT phase;
class S1_PROC,S2_LOAD,S3_HANDLE handler;
class S1_OUT stateNode;
class S2_CONT,S3_RECOVER detector;
Color Legend: | Color | Category | Description | |-------|----------|-------------| | Dark Blue | Entry | CLI/trigger entry points | | Purple | Init | Initialization and detection | | Orange | Process | Core processing components | | Teal | State | Data and state components | | Red | Continue | Resumption and recovery |
| Scenario | Validates | Key Components | |----------|-----------|----------------| | {name} | {what it validates} | {component list} |
Purpose: {What this validates}
Flow:
Purpose: {What this validates}
Flow:
---
## 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 detailed workflow view
- `/autoskillit:arch-lens-error-resilience` - For failure handling details
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?"