logo-generation

logo-generation is a cursor rule for Cursor from ChenZiHong-Gavin/llm-tech-report. It costs 48 tokens per session (647 once invoked), scanned A, original, MIT.

A repository rule and script for generating a timeline logo image that places model and company names along a time axis while avoiding overlapping text.

In plain words
What is it for?
Use it to create or update the repository’s logo, add model entries by year, add company colors, and generate the final PNG with the supplied script.
Why use it?
It removes the need to position labels manually when the timeline changes.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: reads .claude/ paths.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python .claude/skills/logo-generation/scripts/generate.py.

Good fit Use it to create or update the repository’s logo, add model entries…

Compare 6 cursor rules from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/ChenZiHong-Gavin/llm-tech-report
agentmods
npx agentmods add rules/chenzihong-gavin/llm-tech-report/logo-generation

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 logo-generation

README.md
[![agentmods](https://agentmods.dev/badge/rules/chenzihong-gavin/llm-tech-report/logo-generation.svg)](https://agentmods.dev/rules/chenzihong-gavin/llm-tech-report/logo-generation)
Your own site
<a href="https://agentmods.dev/rules/chenzihong-gavin/llm-tech-report/logo-generation"><img src="https://agentmods.dev/badge/rules/chenzihong-gavin/llm-tech-report/logo-generation.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 647 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.00048 $0.00647
Opus 5 $0.00024 $0.00324
Sonnet 5 $0.00010 $0.00129
Haiku 4.5 $0.00005 $0.00065

Measured 7d ago against content hash 16e455191b9c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

logo-generation 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 7d 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.

.cursor/rules/logo-generation.mdc · 68 lines

How it starts

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

Logo Generation (Timeline)

Generates the timeline logo.png for this repo. All model names are stacked above and below a horizontal time axis, with automatic overlap avoidance.

File layout

.claude/skills/logo-generation/
├── SKILL.md                  # canonical doc
└── scripts/
    ├── generate.py           # entry point: config + invoke
    ├── models.py             # data: all (year, name, company) entries
    └── draw.py               # drawing: timeline + anti-overlap algorithm

Output: logo.png in the repo root (~400 KB, 20×8 in, 300 DPI).

Dependencies

pip install matplotlib numpy

Run

# from the repo root
python .claude/skills/logo-generation/scripts/generate.py

How to update

Add a model

Edit scripts/models.py, add to the MODELS list:

(2025.50, "ModelName", "CompanyKey"),
  • year: YYYY + MM/12 (e.g. 2025-06 → 2025.50)
  • name: keep it short (DS-R1, not DeepSeek-R1)
  • company: must already exist in the COLORS dict in generate.py

No manual sorting needed — the script sorts by time.

Add a company

  1. Add "NewCo": "#hex" to the COLORS dict in generate.py
  2. Add the name to the legend list in draw.py if it should show in the legend

Adjust landmarks

Add/remove names in the LANDMARKS set in generate.py. Landmark font is 7.5 pt, normal 5.8 pt.

Anti-overlap algorithm

  • Pure data-coordinate estimation (no renderer call) — runs in seconds
  • text width = chars × fontsize × 0.55 / 72 × (x_range / fig_w)
  • text height = fontsize × 1.2 / 72 × (y_range / fig_h)
  • alternates above/below the axis by parity; on collision, pushes outward (step 0.24), up to 30 layers

Notes

  1. Keep names short — long names crowd the axis; prefer abbreviations
  2. 2023–2025 is the densest stretch — nudge the year decimal to de-cluster
  3. Past ~150 models — increase FIG_H or decrease y_step
  4. Dark background — avoid very dark colors (pure black, deep gray)
  5. Re-run after any data change and eyeball the result for overflow

Read the full file on GitHub · 68 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. 7d ago First seen · 68 lines · 48 tokens per session scan A 16e455191b9c

Subscribe to this mod's changes

logo-generation is a cursor rule published in the GitHub repository ChenZiHong-Gavin/llm-tech-report (35 stars, last pushed 18d ago), licensed MIT. It adds 48 tokens to every session and 647 once invoked, about $0.0002 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.