src/autoskillit/skills_extended/arch-lens-process-flow/SKILL.md
Create Process/Execution Flow architecture diagram showing runtime behavior, state transitions, and decision points. Physiological lens answering "How does it behave?"
npx skillsauth add talont-org/autoskillit arch-lens-process-flowInstall 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: Physiological Primary Question: "How does it behave?" Focus: Runtime Behavior, State Transitions, Decision Points, Control Flow
/autoskillit:arch-lens-process-flow or /autoskillit:make-arch-diag processNEVER:
run_in_background: true is prohibited)ALWAYS:
/autoskillit:mermaid skill using the Skill tool - this is MANDATORYtemp/arch-lens-process-flow/...
save path to absolute by prepending the full CWD:
diagram_path = /absolute/cwd/temp/arch-lens-process-flow/{filename}.md
This token is MANDATORY — the pipeline cannot proceed without it./autoskillit:arch-lens-process-flow [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:
State Machines & Workflows
Entry Points & Triggers
Decision Points
Loop Mechanisms
Terminal States
For each workflow/state machine discovered:
Document key patterns:
CRITICAL - Analyze Read/Write Direction: For EVERY node that interacts with state or storage:
Label state interactions on edges:
Use flowchart with:
Direction: TB for hierarchical flow, LR for sequential processes
Node Types:
([Label]) - Rounded: Start/End terminals{Label} - Diamond: Decision points[Label] - Rectangle: Process nodes[[Label]] - Subroutine: Subgraph callsSubgraphs for Phases:
Node Styling:
terminal class: START, END, ERROR nodesphase class: Control flow, analysis nodeshandler class: Processing, execution nodesstateNode class: Decision, routing nodesdetector class: Validation gates, failure handlingEdge Labels:
Write the diagram to: {{AUTOSKILLIT_TEMP}}/arch-lens-process-flow/arch_diag_process_flow_{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}
# Process Flow Diagram: {Workflow Name}
**Lens:** Process Flow (Physiological)
**Question:** How does it behave?
**Date:** {YYYY-MM-DD}
**Scope:** {What was analyzed}
## Workflow Overview
| Phase | Nodes | Key Decision Points | Loop Mechanism |
|-------|-------|---------------------|----------------|
| {phase} | {count} | {decisions} | {loop info} |
## Flow 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;
%% TERMINALS %%
START([START])
COMPLETE([COMPLETE])
ERROR([ERROR])
subgraph Phase1 ["Phase Name"]
direction TB
N1["Node Name<br/>━━━━━━━━━━<br/>Description"]
N2{"Decision<br/>━━━━━━━━━━<br/>Condition?"}
N3["Process Node<br/>━━━━━━━━━━<br/>Action"]
end
%% FLOW %%
START --> N1
N1 --> N2
N2 -->|"condition A"| N3
N2 -->|"condition B"| ERROR
N3 --> COMPLETE
%% CLASS ASSIGNMENTS %%
class START,COMPLETE,ERROR terminal;
class N1,N3 handler;
class N2 stateNode;
Color Legend: | Color | Category | Description | |-------|----------|-------------| | Dark Blue | Terminal | Start, complete, and error states | | Purple | Phase | Control flow and analysis nodes | | Orange | Handler | Processing and execution nodes | | Teal | State | Selection and routing decisions | | Red | Detector | Validation gates and failure handling |
| Aspect | Value | Notes | |--------|-------|-------| | Total Nodes | {count} | | | Decision Points | {count} | | | Loop Mechanism | {description} | {max iterations} | | Error Paths | {count} | |
---
## 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-concurrency` - For parallel execution details
- `/autoskillit:arch-lens-error-resilience` - For failure handling specifics
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?"