tech-diagram

tech-diagram is a cursor rule for Cursor from thatrebeccarae/claude-marketing. It costs 53 tokens per session (1,023 once invoked), scanned A, original, MIT.

A technical-diagram rule creates standalone HTML files containing architecture diagrams, process flows, system illustrations, and inline SVG graphics.

In plain words
What is it for?
It helps create pipeline, layer, component, before-and-after, and timeline diagrams, using an embedded dark-mode visual style without external dependencies.
Why use it?
It provides a consistent way to show how software components, layers, or steps relate when prose is hard to follow.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit It helps create pipeline, layer, component, before-and-after, and timeline diagrams, using an embedded dark-mode visual style without external dependencies.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/thatrebeccarae/claude-marketing/tech-diagram
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/thatrebeccarae/claude-marketing

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tech-diagram

README.md
[![agentmods](https://agentmods.dev/badge/rules/thatrebeccarae/claude-marketing/tech-diagram.svg)](https://agentmods.dev/rules/thatrebeccarae/claude-marketing/tech-diagram)
Your own site
<a href="https://agentmods.dev/rules/thatrebeccarae/claude-marketing/tech-diagram"><img src="https://agentmods.dev/badge/rules/thatrebeccarae/claude-marketing/tech-diagram.svg" alt="Measured on agentmods" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,023 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.01023
Opus 5 $0.00026 $0.00511
Sonnet 5 $0.00011 $0.00205
Haiku 4.5 $0.00005 $0.00102

Measured 8d ago against content hash af9da3a9ada8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

tech-diagram scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

integrations/cursor/tech-diagram.mdc · 127 lines

How it starts

The opening of the file, as written. The whole thing — 127 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Technical Diagram Generator

Generate technical architecture diagrams and system illustrations as standalone HTML files with embedded CSS + inline SVG. No external dependencies.

Core Capabilities

  • Pipeline flow diagrams (data pipelines, CI/CD, ETL)
  • Layer/stack diagrams (tech stack, OSI model, infrastructure)
  • Component diagrams (microservices, system architecture)
  • Before/after split comparisons
  • Timeline diagrams (roadmaps, migration phases)
  • Metric callout rows (KPI summaries)

Design System

Color Tokens

:root {
  /* Dark mode (default canvas) */
  --bg-deep: #0d1117;
  --bg-surface: #161b22;
  --bg-elevated: #21262d;
  --border-subtle: rgba(240, 246, 252, 0.1);
  --text-bright: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;

  /* Accent palette */
  --accent-blue: #58a6ff;
  --accent-green: #3fb950;
  --accent-purple: #bc8cff;
  --accent-orange: #d29922;
  --accent-red: #f85149;
  --accent-cyan: #39d2c0;
  --accent-pink: #f778ba;

  /* Light mode (optional, for embedded diagrams) */
  --bg-light: #ffffff;
  --bg-light-surface: #f6f8fa;
  --text-light-primary: #1f2328;
  --text-light-secondary: #656d76;
}

Color Rules

  • Dark mode is default for all diagrams
  • Each pipeline stage or layer gets a distinct accent color
  • Use --text-secondary for labels and annotations
  • Use --border-subtle for connecting lines and borders
  • Semantic colors: green = healthy/success, red = error/alert, orange = warning

Typography

Role Font Weight Size
Diagram title system-ui 600 28-32px
Section/stage label system-ui 600 16-18px
Description text system-ui 400 13-14px
Annotation monospace 400 12px
Metric value monospace 700 36-48px

Canvas

Width:  1200px (default, responsive down to 800px)
Height: auto (content-driven)
Padding: 48px

Component Library

Pipeline Flow

Horizontal or vertical sequence of stages with connecting arrows. Each stage has an icon area, label, and description.

Read the full file on GitHub · 127 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 127 lines · 53 tokens per session scan A af9da3a9ada8

Subscribe to this mod's changes

tech-diagram is a cursor rule published in the GitHub repository thatrebeccarae/claude-marketing (132 stars, last pushed 3mo ago), licensed MIT. It adds 53 tokens to every session and 1,023 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.