Skip to content

anbeime/skill / skills/diagram-design/skills/diagram-design

diagram-design

Verified

Create branded architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart (polar/radial lollipop), loop/flywheel, nested, tree, org chart, layer stack, exploded axonometric, axonometric plan, Venn, pyramid/funnel, treemap and marimekko, heatmap, bar and dumbbell, waterfall, line (slopegraph, ridgeline, streamgraph, bump), Gantt and scatter charts (bubble, beeswarm), high-level, process, medallion, data flow, DP integration, DP security matrix, Sankey, fishbone, Wardley map, kanban, user journey, service blueprint, deployment, dependency graph, UML class, story map, or database schema diagrams as HTML/SVG/PNG, with .drawio, Mermaid, and .excalidraw import, plus lifecycle phase maps, block decomposition trees, and onboarding guidance.

FileKindSize
SKILL.mdskill md30.1 KB
assets/example-architecture-containment-dark.htmlother14.2 KB
assets/example-architecture-containment-full.htmlother17.1 KB
assets/example-architecture-containment.htmlother14.1 KB
assets/example-architecture-dark.htmlother11.8 KB
assets/example-architecture-delta-dark.htmlother20.1 KB
assets/example-architecture-delta-full.htmlother21.7 KB
assets/example-architecture-delta.htmlother20.0 KB
assets/example-architecture-full.htmlother14.6 KB
assets/example-architecture.htmlother11.8 KB
assets/example-axonometric-plan-campus-animated.htmlother46.8 KB
assets/example-axonometric-plan-campus-dark.htmlother30.9 KB
assets/example-axonometric-plan-campus-full.htmlother33.5 KB
assets/example-axonometric-plan-campus.htmlother30.9 KB
assets/example-axonometric-plan-coffee-shop-animated.htmlother54.3 KB
assets/example-axonometric-plan-coffee-shop-dark.htmlother38.6 KB
assets/example-axonometric-plan-coffee-shop-full.htmlother41.2 KB
assets/example-axonometric-plan-coffee-shop.htmlother38.5 KB
assets/example-axonometric-plan-dark.htmlother28.2 KB
assets/example-axonometric-plan-full.htmlother30.6 KB
assets/example-axonometric-plan-warehouse-animated.htmlother53.7 KB
assets/example-axonometric-plan-warehouse-dark.htmlother38.2 KB
assets/example-axonometric-plan-warehouse-full.htmlother40.6 KB
assets/example-axonometric-plan-warehouse.htmlother37.9 KB
assets/example-axonometric-plan.htmlother28.0 KB
assets/example-bar-dark.htmlother8.8 KB
assets/example-bar-full.htmlother11.0 KB
assets/example-bar.htmlother8.7 KB
assets/example-beeswarm-dark.htmlother31.9 KB
assets/example-beeswarm-full.htmlother35.6 KB
assets/example-beeswarm.htmlother31.4 KB
assets/example-bubble-dark.htmlother11.2 KB
assets/example-bubble-full.htmlother14.8 KB
assets/example-bubble.htmlother11.1 KB
assets/example-bump-dark.htmlother12.6 KB
assets/example-bump-full.htmlother16.2 KB
assets/example-bump.htmlother12.5 KB
assets/example-data-flow-dark.htmlother12.7 KB
assets/example-data-flow-full.htmlother15.5 KB
assets/example-data-flow.htmlother12.5 KB
assets/example-datalake-dark.htmlother24.3 KB
assets/example-datalake-full.htmlother27.7 KB
assets/example-datalake.htmlother25.8 KB
assets/example-db-schema-dark.htmlother24.2 KB
assets/example-db-schema-full.htmlother27.0 KB
assets/example-db-schema.htmlother23.9 KB
assets/example-dependency-dark.htmlother17.4 KB
assets/example-dependency-full.htmlother20.6 KB
assets/example-dependency.htmlother17.2 KB
assets/example-deployment-dark.htmlother13.2 KB
assets/example-deployment-full.htmlother16.4 KB
assets/example-deployment.htmlother13.1 KB
assets/example-dp-integration-dark.htmlother14.4 KB
assets/example-dp-integration-full.htmlother16.9 KB
assets/example-dp-integration.htmlother14.4 KB
assets/example-dp-security-matrix-dark.htmlother10.0 KB
assets/example-dp-security-matrix-full.htmlother12.3 KB
assets/example-dp-security-matrix.htmlother10.6 KB
assets/example-er-dark.htmlother13.9 KB
assets/example-er-full.htmlother16.7 KB
assets/example-er.htmlother13.8 KB
assets/example-exploded-ai-stack-animated.htmlother52.2 KB
assets/example-exploded-ai-stack-dark.htmlother35.2 KB
assets/example-exploded-ai-stack-full.htmlother38.0 KB
assets/example-exploded-ai-stack.htmlother35.2 KB
assets/example-exploded-dark.htmlother8.3 KB
assets/example-exploded-full.htmlother11.2 KB
assets/example-exploded-keyboard-animated.htmlother203.4 KB
assets/example-exploded-keyboard-dark.htmlother176.6 KB
assets/example-exploded-keyboard-full.htmlother189.1 KB
assets/example-exploded-keyboard.htmlother186.4 KB
assets/example-exploded-phone-animated.htmlother33.8 KB
assets/example-exploded-phone-dark.htmlother17.0 KB
assets/example-exploded-phone-full.htmlother19.6 KB
assets/example-exploded-phone.htmlother16.9 KB
assets/example-exploded-unboxing-animated.htmlother33.3 KB
assets/example-exploded-unboxing-dark.htmlother16.3 KB
assets/example-exploded-unboxing-full.htmlother18.9 KB
assets/example-exploded-unboxing.htmlother16.3 KB
assets/example-exploded.htmlother8.5 KB
assets/example-fishbone-dark.htmlother8.5 KB
assets/example-fishbone-full.htmlother11.1 KB
assets/example-fishbone.htmlother8.4 KB
assets/example-flowchart-dark.htmlother9.2 KB
assets/example-flowchart-full.htmlother12.0 KB
assets/example-flowchart.htmlother9.2 KB
assets/example-gantt-dark.htmlother10.0 KB
assets/example-gantt-full.htmlother11.6 KB
assets/example-gantt.htmlother9.8 KB
assets/example-heatmap-dark.htmlother17.8 KB
assets/example-heatmap-full.htmlother21.5 KB
assets/example-heatmap.htmlother17.7 KB
assets/example-high-level-dark.htmlother23.5 KB
assets/example-high-level-full.htmlother27.7 KB
assets/example-high-level-vertical-dark.htmlother24.3 KB
assets/example-high-level-vertical-full.htmlother27.9 KB
assets/example-high-level-vertical.htmlother29.7 KB
assets/example-high-level.htmlother26.3 KB
assets/example-import-drawio.htmlother11.8 KB
assets/example-import-excalidraw.htmlother7.5 KB
assets/example-import-mermaid.htmlother7.9 KB
assets/example-it-state-dark.htmlother11.7 KB
assets/example-it-state-full.htmlother13.9 KB
assets/example-it-state.htmlother12.2 KB
assets/example-journey-dark.htmlother8.9 KB
assets/example-journey-full.htmlother11.4 KB
assets/example-journey.htmlother8.9 KB
assets/example-kanban-dark.htmlother10.8 KB
assets/example-kanban-full.htmlother13.6 KB
assets/example-kanban.htmlother10.7 KB
assets/example-layers-dark.htmlother6.8 KB
assets/example-layers-full.htmlother9.8 KB
assets/example-layers.htmlother6.7 KB
assets/example-line-dark.htmlother7.3 KB
assets/example-line-full.htmlother9.8 KB
assets/example-line.htmlother7.3 KB
assets/example-loop-dark.htmlother6.7 KB
assets/example-loop-full.htmlother9.7 KB
assets/example-loop-terminal.htmlother9.8 KB
assets/example-loop.htmlother6.6 KB
assets/example-marimekko-dark.htmlother13.3 KB
assets/example-marimekko-full.htmlother16.6 KB
assets/example-marimekko.htmlother13.2 KB
assets/example-medallion-dark.htmlother12.7 KB
assets/example-medallion-full.htmlother15.5 KB
assets/example-medallion.htmlother12.6 KB
assets/example-nested-dark.htmlother6.6 KB
assets/example-nested-full.htmlother9.6 KB
assets/example-nested.htmlother6.7 KB
assets/example-org-chart-dark.htmlother11.3 KB
assets/example-org-chart-full.htmlother11.8 KB
assets/example-org-chart.htmlother11.3 KB
assets/example-paved-road-animated.htmlother27.7 KB
assets/example-polar-dark.htmlother10.2 KB
assets/example-polar-full.htmlother12.4 KB
assets/example-polar.htmlother10.1 KB
assets/example-policy-trace-animated.htmlother24.9 KB
assets/example-process-dark.htmlother14.7 KB
assets/example-process-full.htmlother17.1 KB
assets/example-process.htmlother14.6 KB
assets/example-pyramid-dark.htmlother6.5 KB
assets/example-pyramid-full.htmlother9.5 KB
assets/example-pyramid.htmlother6.4 KB
assets/example-quadrant-consultant.htmlother11.6 KB
assets/example-quadrant-dark.htmlother6.5 KB
assets/example-quadrant-full.htmlother9.4 KB
assets/example-quadrant.htmlother6.4 KB
assets/example-queue-animated.htmlother29.3 KB
assets/example-radar-dark.htmlother7.5 KB
assets/example-radar-full.htmlother10.2 KB
assets/example-radar.htmlother7.7 KB
assets/example-ridgeline-dark.htmlother10.1 KB
assets/example-ridgeline-full.htmlother13.9 KB
assets/example-ridgeline.htmlother10.0 KB
assets/example-sankey-dark.htmlother8.8 KB
assets/example-sankey-full.htmlother11.5 KB
assets/example-sankey.htmlother8.7 KB
assets/example-scatter-dark.htmlother9.3 KB
assets/example-scatter-full.htmlother11.3 KB
assets/example-scatter.htmlother9.2 KB
assets/example-sequence-dark.htmlother13.5 KB
assets/example-sequence-full.htmlother17.8 KB
assets/example-sequence-oauth-dark.htmlother11.8 KB
assets/example-sequence-oauth-full.htmlother16.2 KB
assets/example-sequence-oauth.htmlother14.0 KB
assets/example-sequence.htmlother13.4 KB
assets/example-service-blueprint-dark.htmlother14.6 KB
assets/example-service-blueprint-full.htmlother19.0 KB
assets/example-service-blueprint.htmlother15.5 KB
assets/example-slopegraph-dark.htmlother10.2 KB
assets/example-slopegraph-full.htmlother13.7 KB
assets/example-slopegraph.htmlother10.1 KB
assets/example-state-dark.htmlother8.5 KB
assets/example-state-full.htmlother11.4 KB
assets/example-state-lifecycle-dark.htmlother9.4 KB
assets/example-state-lifecycle-full.htmlother12.3 KB
assets/example-state-lifecycle.htmlother10.0 KB
assets/example-state.htmlother8.5 KB
assets/example-story-map-dark.htmlother12.0 KB
assets/example-story-map-full.htmlother15.1 KB
assets/example-story-map.htmlother11.9 KB
assets/example-streamgraph-dark.htmlother12.7 KB
assets/example-streamgraph-full.htmlother16.1 KB
assets/example-streamgraph.htmlother12.6 KB
assets/example-swimlane-dark.htmlother10.3 KB
assets/example-swimlane-full.htmlother13.2 KB
assets/example-swimlane.htmlother10.3 KB
assets/example-timeline-dark.htmlother7.2 KB
assets/example-timeline-full.htmlother10.1 KB
assets/example-timeline.htmlother7.2 KB
assets/example-tree-block-decomposition-dark.htmlother8.1 KB
assets/example-tree-block-decomposition-full.htmlother11.4 KB
assets/example-tree-block-decomposition.htmlother8.0 KB
assets/example-tree-dark.htmlother10.8 KB
assets/example-tree-full.htmlother13.7 KB
assets/example-tree.htmlother10.7 KB
assets/example-treemap-dark.htmlother7.5 KB
assets/example-treemap-full.htmlother10.5 KB
assets/example-treemap.htmlother7.4 KB
assets/example-uml-class-dark.htmlother12.1 KB

assets/example-sequence-full.html

View on GitHub
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Article Request · Sequence</title>
  <link href="https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@400;500;600&family=Geist+Mono:wght@400;500;600&display=swap" rel="stylesheet">
  <style>
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --color-paper:       #f5f5f5;
      --color-paper-2:     #ececec;
      --color-ink:         #2d3142;
      --color-muted:       #4f5d75;
      --color-soft:        #5a6580;
      --color-rule:        rgba(45,49,66,0.12);
      --color-rule-solid:  rgba(79,93,117,0.25);
      --color-accent:      #bf4520;
      --color-accent-tint: rgba(191,69,32,0.08);
      --color-link:        #2e5aa8;
      --font-sans:   'Geist', system-ui, sans-serif;
      --font-serif:  'Instrument Serif', 'Times New Roman', serif;
      --font-mono:   'Geist Mono', ui-monospace, Menlo, monospace;
    }

    body {
      font-family: var(--font-sans);
      background: var(--color-paper);
      min-height: 100vh;
      padding: 3rem 2rem;
      color: var(--color-ink);
    }

    .container { max-width: 1200px; margin: 0 auto; }

    .header { margin-bottom: 2.5rem; }

    .header-eyebrow {
      font-family: var(--font-mono);
      font-size: 0.66rem;
      font-weight: 500;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--color-muted);
      margin-bottom: 0.75rem;
    }

    h1 {
      font-family: var(--font-serif);
      font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
      font-weight: 400;
      letter-spacing: -0.02em;
      line-height: 1.1;
      color: var(--color-ink);
      margin-bottom: 0.5rem;
    }

    .subtitle {
      font-family: var(--font-sans);
      font-size: 1rem;
      line-height: 1.55;
      color: var(--color-muted);
      max-width: 58ch;
    }

    .diagram-container {
      background: var(--color-paper-2);
      border-radius: 8px;
      border: 1px solid var(--color-rule);
      padding: 1.5rem;
      overflow-x: auto;
    }

    svg { width: 100%; min-width: 900px; display: block; }

    .cards {
      display: grid;
      grid-template-columns: 1.1fr 1fr 0.9fr;
      gap: 1rem;
      margin-top: 1.5rem;
    }

    @media (max-width: 820px) {
      .cards { grid-template-columns: 1fr; }
    }

    .card {
      background: #ffffff;
      border-radius: 6px;
      border: 1px solid var(--color-rule);
      padding: 1.25rem;
    }

    .card .eyebrow {
      font-family: var(--font-mono);
      font-size: 0.5rem;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--color-muted);
      margin-bottom: 0.5rem;
    }

    .card-header {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      margin-bottom: 0.875rem;
      padding-bottom: 0.875rem;
      border-bottom: 1px solid rgba(45,49,66,0.08);
    }

    .card-dot {
      width: 7px; height: 7px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .card-dot.ink    { background: var(--color-ink); }
    .card-dot.muted  { background: var(--color-muted); }
    .card-dot.coral  { background: var(--color-accent); }
    .card-dot.link   { background: var(--color-link); }

    .card h3 {
      font-family: var(--font-sans);
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--color-ink);
      letter-spacing: -0.005em;
    }

    .card p {
      color: var(--color-muted);
      font-size: 0.8125rem;
      line-height: 1.55;
    }

    .card ul {
      list-style: none;
      color: var(--color-muted);
      font-size: 0.8125rem;
      line-height: 1.55;
    }

    .card li {
      margin-bottom: 0.3rem;
      padding-left: 0.875rem;
      position: relative;
    }

    .card li::before {
      content: '—';
      position: absolute;
      left: 0;
      color: rgba(45,49,66,0.25);
      font-size: 0.75rem;
    }

    .footer {
      margin-top: 2rem;
      padding-top: 1.5rem;
      border-top: 1px solid rgba(45,49,66,0.10);
      font-family: var(--font-mono);
      font-size: 0.72rem;
      letter-spacing: 0.06em;
      color: var(--color-soft);
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 0.5rem;
    }
  </style>
</head>
<body>
  <div class="container">

    <!-- Header -->
    <div class="header">
      <p class="header-eyebrow">Sequence · Diagram Design</p>
      <h1>Article request, cold cache</h1>
      <p class="subtitle">How a content site serves a reader when the requested slug isn't already sitting in Cloudflare's edge cache — origin render, beacon, and back in one round trip.</p>
    </div>

    <!-- Sequence Diagram -->
    <div class="diagram-container">
      <svg viewBox="0 0 1000 584" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="sequence-full-title sequence-full-desc">
        <title id="sequence-full-title">Article request, cold cache</title>
        <desc id="sequence-full-desc">Sequence diagram showing a cold-cache article request moving from reader and browser through Cloudflare to an Astro origin and analytics beacon.</desc>
        <defs>
          <!-- Dot grid background -->
          <pattern id="dots" width="22" height="22" patternUnits="userSpaceOnUse">
            <circle cx="1" cy="1" r="0.9" fill="rgba(45,49,66,0.10)"/>
          </pattern>

          <!-- Arrow markers -->
          <marker id="arrow" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
            <polygon points="0 0, 8 3, 0 6" fill="#4f5d75"/>
          </marker>
          <marker id="arrow-accent" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
            <polygon points="0 0, 8 3, 0 6" fill="#bf4520"/>
          </marker>
          <marker id="arrow-link" markerWidth="8" markerHeight="6" refX="7" refY="3" orient="auto">
            <polygon points="0 0, 8 3, 0 6" fill="#2e5aa8"/>
          </marker>
        </defs>

        <!-- Background: paper + dot grid -->
        <rect width="100%" height="100%" fill="#f5f5f5"/>
        <rect width="100%" height="100%" fill="url(#dots)" opacity="0.55"/>

        <!-- =================================================================
             LIFELINES — dashed vertical lines from each actor, behind everything.
             Actor lifeline x-coords: 128, 352, 584, 800
             ================================================================= -->
        <line x1="128" y1="128" x2="128" y2="488" stroke="rgba(45,49,66,0.22)" stroke-width="1" stroke-dasharray="3,3"/>
        <line x1="352" y1="128" x2="352" y2="488" stroke="rgba(45,49,66,0.22)" stroke-width="1" stroke-dasharray="3,3"/>
        <line x1="584" y1="128" x2="584" y2="488" stroke="rgba(45,49,66,0.22)" stroke-width="1" stroke-dasharray="3,3"/>
        <line x1="800" y1="128" x2="800" y2="488" stroke="rgba(45,49,66,0.22)" stroke-width="1" stroke-dasharray="3,3"/>

        <!-- =================================================================
             ACTIVATION BARS — w=8 rects on lifelines showing control duration.
             Drawn before message arrows so arrows land on their edges.
             ================================================================= -->
        <!-- Cloudflare activation: receives at y=176, responds at y=408 -->
        <rect x="348" y="180" width="8" height="232" fill="rgba(45,49,66,0.06)" stroke="#4f5d75" stroke-width="0.8"/>
        <!-- Astro activation: called at y=232, returns at y=352 -->
        <rect x="580" y="236" width="8" height="120" fill="rgba(45,49,66,0.06)" stroke="#4f5d75" stroke-width="0.8"/>

        <!-- =================================================================
             MESSAGE ARROWS — time flows top→down.
             Draw before labels so label masks cover the line.
             ================================================================= -->

        <!-- M1: Reader → Cloudflare  (HTTPS request · link-blue) -->
        <line x1="128" y1="176" x2="352" y2="176" stroke="#2e5aa8" stroke-width="1.2" marker-end="url(#arrow-link)"/>

        <!-- M2: Cloudflare → Astro  (cache miss · muted) -->
        <line x1="352" y1="232" x2="580" y2="232" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/>

        <!-- M3: Astro self-message  (render MDX · muted U-loop) -->
        <path d="M 588 284 L 624 284 L 624 316 L 588 316" fill="none" stroke="#4f5d75" stroke-width="1.2" marker-end="url(#arrow)"/>

        <!-- M4: Astro → Cloudflare  (return HTML · muted dashed) -->
        <line x1="580" y1="352" x2="356" y2="352" stroke="#4f5d75" stroke-width="1.2" stroke-dasharray="5,4" marker-end="url(#arrow)"/>

        <!-- M5: Cloudflare → Reader  (primary success · coral) -->
        <line x1="348" y1="408" x2="128" y2="408" stroke="#bf4520" stroke-width="1.4" marker-end="url(#arrow-accent)"/>

        <!-- M6: Reader → Analytics  (async beacon · muted dashed) -->
        <line x1="128" y1="464" x2="800" y2="464" stroke="#4f5d75" stroke-width="1.2" stroke-dasharray="5,4" marker-end="url(#arrow)"/>

        <!-- =================================================================
             MESSAGE LABELS — each with an opaque paper-colored mask.
             ================================================================= -->

        <!-- M1 label -->
        <rect x="188" y="160" width="104" height="12" rx="2" fill="#f5f5f5"/>
        <text x="240" y="170" fill="#2e5aa8" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">GET /ARTICLES/SLUG</text>

        <!-- M2 label -->
        <rect x="416" y="216" width="100" height="12" rx="2" fill="#f5f5f5"/>
        <text x="466" y="226" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">CACHE MISS · ORIGIN</text>

        <!-- M3 label (to the right of the self-loop) -->
        <rect x="632" y="292" width="72" height="12" rx="2" fill="#f5f5f5"/>
        <text x="668" y="302" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">RENDER MDX</text>

        <!-- M4 label -->
        <rect x="420" y="336" width="96" height="12" rx="2" fill="#f5f5f5"/>
        <text x="468" y="346" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">200 · HTML + MAX-AGE</text>

        <!-- M5 label (coral · primary response) -->
        <rect x="192" y="392" width="96" height="12" rx="2" fill="#f5f5f5"/>
        <text x="240" y="402" fill="#bf4520" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">200 · EDGE-CACHED</text>

        <!-- M6 label (placed between Astro and Analytics lifelines, a clear gap) -->
        <rect x="648" y="448" width="96" height="12" rx="2" fill="#f5f5f5"/>
        <text x="696" y="458" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">PAGEVIEW BEACON</text>

        <!-- =================================================================
             ACTOR BOXES — drawn after arrows/labels.
             Each actor: 144–160 wide × 56 tall. Centers: 128, 352, 584, 800.
             ================================================================= -->

        <!-- Actor 1: Reader (external / soft) -->
        <rect x="56" y="72" width="144" height="56" rx="6" fill="#f5f5f5"/>
        <rect x="56" y="72" width="144" height="56" rx="6" fill="rgba(79,93,117,0.10)" stroke="#5a6580" stroke-width="1"/>
        <rect x="64" y="80" width="28" height="12" rx="2" fill="transparent" stroke="rgba(90,101,128,0.40)" stroke-width="0.8"/>
        <text x="78" y="89" fill="#5a6580" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">EXT</text>
        <text x="128" y="104" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Reader</text>
        <text x="128" y="119" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">Browser</text>

        <!-- Actor 2: Cloudflare (cloud / muted) -->
        <rect x="280" y="72" width="144" height="56" rx="6" fill="#f5f5f5"/>
        <rect x="280" y="72" width="144" height="56" rx="6" fill="rgba(45,49,66,0.03)" stroke="rgba(45,49,66,0.30)" stroke-width="1"/>
        <rect x="288" y="80" width="32" height="12" rx="2" fill="transparent" stroke="rgba(45,49,66,0.22)" stroke-width="0.8"/>
        <text x="304" y="89" fill="#5a6580" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">EDGE</text>
        <text x="352" y="104" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Cloudflare</text>
        <text x="352" y="119" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">Pages · cache</text>

        <!-- Actor 3: Astro Origin (focal / coral) -->
        <rect x="504" y="72" width="160" height="56" rx="6" fill="#f5f5f5"/>
        <rect x="504" y="72" width="160" height="56" rx="6" fill="rgba(191,69,32,0.08)" stroke="#bf4520" stroke-width="1"/>
        <rect x="512" y="80" width="32" height="12" rx="2" fill="transparent" stroke="rgba(191,69,32,0.50)" stroke-width="0.8"/>
        <text x="528" y="89" fill="#bf4520" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">ORIG</text>
        <text x="584" y="104" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Astro Origin</text>
        <text x="584" y="119" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">SSR + MDX</text>

        <!-- Actor 4: Analytics (optional / dashed) -->
        <rect x="728" y="72" width="144" height="56" rx="6" fill="#f5f5f5"/>
        <rect x="728" y="72" width="144" height="56" rx="6" fill="rgba(45,49,66,0.02)" stroke="rgba(45,49,66,0.22)" stroke-width="1" stroke-dasharray="4,3"/>
        <rect x="736" y="80" width="28" height="12" rx="2" fill="transparent" stroke="rgba(45,49,66,0.22)" stroke-width="0.8"/>
        <text x="750" y="89" fill="#5a6580" font-size="7" font-family="'Geist Mono', monospace" text-anchor="middle" letter-spacing="0.08em">ASY</text>
        <text x="800" y="104" fill="#2d3142" font-size="12" font-weight="600" font-family="'Geist', sans-serif" text-anchor="middle">Analytics</text>
        <text x="800" y="119" fill="#4f5d75" font-size="9" font-family="'Geist Mono', monospace" text-anchor="middle">Beacon · async</text>

        <!-- =================================================================
             LEGEND — horizontal strip at the bottom.
             Separator at y=504, eyebrow at y=520, items at y=540–548.
             ================================================================= -->
        <line x1="56" y1="504" x2="944" y2="504" stroke="rgba(45,49,66,0.10)" stroke-width="0.8"/>
        <text x="56" y="520" fill="#4f5d75" font-size="8" font-family="'Geist Mono', monospace" letter-spacing="0.18em">LEGEND</text>

        <!-- Item 1: Actor swatch (coral focal) -->
        <rect x="56" y="540" width="14" height="10" rx="2" fill="rgba(191,69,32,0.08)" stroke="#bf4520" stroke-width="1"/>
        <text x="76" y="548" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Focal actor</text>

        <!-- Item 2: Activation bar swatch -->
        <rect x="188" y="536" width="4" height="18" fill="rgba(45,49,66,0.06)" stroke="#4f5d75" stroke-width="0.8"/>
        <text x="200" y="548" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Activation</text>

        <!-- Item 3: Request arrow (link-blue) -->
        <line x1="308" y1="546" x2="336" y2="546" stroke="#2e5aa8" stroke-width="1.2" marker-end="url(#arrow-link)"/>
        <text x="344" y="548" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">HTTP request</text>

        <!-- Item 4: Return / async (muted dashed) -->
        <line x1="476" y1="546" x2="504" y2="546" stroke="#4f5d75" stroke-width="1.2" stroke-dasharray="5,4" marker-end="url(#arrow)"/>
        <text x="512" y="548" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Return / async</text>

        <!-- Item 5: Primary response (coral) -->
        <line x1="652" y1="546" x2="680" y2="546" stroke="#bf4520" stroke-width="1.4" marker-end="url(#arrow-accent)"/>
        <text x="688" y="548" fill="#4f5d75" font-size="8.5" font-family="'Geist', sans-serif">Primary response</text>

      </svg>
    </div>

    <!-- Summary cards -->
    <div class="cards">
      <div class="card">
        <p class="eyebrow">THE HEADLINE</p>
        <div class="card-header">
          <span class="card-dot coral"></span>
          <h3>Edge handles the hot path</h3>
        </div>
        <p>On subsequent reads the whole exchange collapses to M1 → M5. Cloudflare serves the cached HTML without waking the origin. The coral arrow is the only one the reader ever perceives.</p>
      </div>

      <div class="card">
        <div class="card-header">
          <span class="card-dot ink"></span>
          <h3>Origin render on miss</h3>
        </div>
        <ul>
          <li>Astro SSRs MDX on cold cache</li>
          <li>Returns HTML + cache headers</li>
          <li>Edge stores the result</li>
          <li>Next reader skips the origin trip</li>
        </ul>
      </div>

      <div class="card">
        <div class="card-header">
          <span class="card-dot muted"></span>
          <h3>Analytics is fire-and-forget</h3>
        </div>
        <p>The pageview beacon is dashed for a reason: the reader never waits on it, and a failed beacon never breaks the page.</p>
      </div>
    </div>

    <!-- Footer -->
    <div class="footer">
      <span>content site · article request sequence</span>
      <span>example · schematic skill</span>
    </div>

  </div>
</body>
</html>
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall