Create Sequence View

by a-scolan

skill

Create sequence views showing temporal flows and user interactions. Uses plain arrows with descriptive labels (no relationship kinds).

Skill Details

Repository Files

1 file in this skill directory


name: create-sequence-view description: Create sequence views showing temporal flows and user interactions. Uses plain arrows with descriptive labels (no relationship kinds).

Create Dynamic Sequence View

Use this skill when documenting use case flows and interactions.

Core Requirement: Always Include Initiating Actors

Dynamic views MUST explicitly show the actor(s) that initiate the flow for context:

  • Start every sequence with the external actor (user, external system, scheduler)
  • Show which user action triggers which internal flows
  • Make causality explicit: "Who does what? When? Why?"
  • This answers: "What triggers this behavior? Who is involved?"

Organization & Purpose

Place sequence/dynamic views in the 'Use Cases' subfolder to show temporal flows - how the system behaves during important operations.

Types of use cases to document:

  • User workflows: Upload → validation → processing → storage (happy path)
  • Validation & error flows: Input validation, exception handling, retries
  • Async patterns: Message queues, background jobs, notifications
  • Data flows: Data movement through system (retrieval, transformation, storage)
  • Disaster recovery: Failover, replication, recovery procedures
  • Integration patterns: External system interactions, polling, webhooks
views 'Use Cases' {
  dynamic view upload_flow { ... }
  dynamic view retrieval_flow { ... }
  dynamic view backup_replication { ... }
  dynamic view error_handling { ... }
}

Requirements

  1. Use dynamic view with descriptive ID
  2. Include initiating actor - ALWAYS start with external actor (user, system, scheduler)
  3. No relationship kinds: Use plain -> not -[kind]->
  4. Step labels: Add descriptive text for each interaction explaining WHAT happens
  5. Temporal order: Steps execute top-to-bottom showing sequence
  6. Folder organization: Group all use cases in views 'Use Cases' subfolder
  7. Title format: "Use Cases / [WorkflowName]" (e.g., "Use Cases / Upload")
  8. CRITICAL: No parent-child relationships - Cannot show container -> container.component

Parent-Child Restriction

Dynamic views CANNOT show a parent element calling its own child:

// ❌ INVALID: Container calling its own component
developer -> mySystem.webapp
mySystem.webapp -> mySystem.webapp.authModule   // ❌ COMPILATION ERROR!

// ✅ CORRECT: Actor directly accesses component
developer -> mySystem.webapp.authModule 'Initiates login'
mySystem.webapp.authModule -> ldapServer 'Validates credentials'

Why this restriction exists:

  • Dynamic views show interactions BETWEEN independent parts
  • Parent-child is a containment relationship, not an interaction
  • In real systems, actors interact with specific components, not abstract containers

Example

views 'Use Cases' {
  dynamic view sequence_upload {
    title 'Use Cases / Document Upload Flow'
  
  user -> mySystem.webapp 'Opens upload form'
  mySystem.webapp -> mySystem.api 'POST /upload'
  mySystem.api -> mySystem.storage 'Store file'
  mySystem.api -> mySystem.queue 'Queue processing job'
  mySystem.queue -> mySystem.worker 'Execute job'
  mySystem.worker -> mySystem.database 'Update metadata'
}

Related Skills

Attack Tree Construction

Build comprehensive attack trees to visualize threat paths. Use when mapping attack scenarios, identifying defense gaps, or communicating security risks to stakeholders.

skill

Grafana Dashboards

Create and manage production Grafana dashboards for real-time visualization of system and application metrics. Use when building monitoring dashboards, visualizing metrics, or creating operational observability interfaces.

skill

Matplotlib

Foundational plotting library. Create line plots, scatter, bar, histograms, heatmaps, 3D, subplots, export PNG/PDF/SVG, for scientific visualization and publication figures.

skill

Scientific Visualization

Create publication figures with matplotlib/seaborn/plotly. Multi-panel layouts, error bars, significance markers, colorblind-safe, export PDF/EPS/TIFF, for journal-ready scientific plots.

skill

Seaborn

Statistical visualization. Scatter, box, violin, heatmaps, pair plots, regression, correlation matrices, KDE, faceted plots, for exploratory analysis and publication figures.

skill

Shap

Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing models, or implementing explainable AI. Works with tree-based models (XGBoost, LightGBM, Random Forest), deep learning (TensorFlow, PyTorch), linear models, and any black-box model

skill

Pydeseq2

Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.

skill

Query Writing

For writing and executing SQL queries - from simple single-table queries to complex multi-table JOINs and aggregations

skill

Pydeseq2

Differential gene expression analysis (Python DESeq2). Identify DE genes from bulk RNA-seq counts, Wald tests, FDR correction, volcano/MA plots, for RNA-seq analysis.

skill

Scientific Visualization

Meta-skill for publication-ready figures. Use when creating journal submission figures requiring multi-panel layouts, significance annotations, error bars, colorblind-safe palettes, and specific journal formatting (Nature, Science, Cell). Orchestrates matplotlib/seaborn/plotly with publication styles. For quick exploration use seaborn or plotly directly.

skill

Skill Information

Category:Skill
Last Updated:1/30/2026