offline-diagram-triplet

offline-diagram-triplet is a skill for Codex from ucsahinn/codex-chef. It costs 56 tokens per session (653 once invoked), scanned A, original, MIT.

A skill for creating diagrams entirely on your computer from a written description or Mermaid text. Mermaid is a text format for describing diagrams; the result also includes an editable Excalidraw file and SVG and PNG images.

In plain words
What is it for?
Use it to make small flowcharts for documentation, plans, or system explanations, with Mermaid, Excalidraw, SVG, PNG, and optional Markdown output.
Why use it?
It provides diagram files without sending content over the network and keeps the source editable for later changes.

Skill for Codex

Written for Codex: agents/openai.yaml present. Also seen: mentions Codex.

Good fit Use it to make small flowcharts for documentation, plans, or system explanations, with Mermaid, Excalidraw, SVG, PNG, and optional Markdown output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ucsahinn/codex-chef/offline-diagram-triplet
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.

Any agent
npx skills add ucsahinn/codex-chef --skill offline-diagram-triplet
Clone the repo
git clone --depth 1 https://github.com/ucsahinn/codex-chef

Made for: Codex.

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 offline-diagram-triplet

README.md
[![agentmods](https://agentmods.dev/badge/skills/ucsahinn/codex-chef/offline-diagram-triplet/github.svg)](https://agentmods.dev/skills/ucsahinn/codex-chef/offline-diagram-triplet)
Your own site
<a href="https://agentmods.dev/skills/ucsahinn/codex-chef/offline-diagram-triplet"><img src="https://agentmods.dev/badge/skills/ucsahinn/codex-chef/offline-diagram-triplet/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for offline-diagram-triplet

Your own site · 80×15
<a href="https://agentmods.dev/skills/ucsahinn/codex-chef/offline-diagram-triplet"><img src="https://agentmods.dev/badge/skills/ucsahinn/codex-chef/offline-diagram-triplet.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 653 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.00056 $0.00653
Opus 5 $0.00028 $0.00327
Sonnet 5 $0.00011 $0.00131
Haiku 4.5 $0.00006 $0.00065

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

Security

Grade A, and why

offline-diagram-triplet 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 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/render-diagram-triplet.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/codex-chef-workflows/skills/offline-diagram-triplet/SKILL.md · 90 lines

How it starts

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

Offline Diagram Triplet

Use this skill to turn an English diagram request into four local artifacts:

  1. Mermaid source (.mmd)
  2. Editable Excalidraw scene (.excalidraw)
  3. Rendered SVG (.svg)
  4. Rendered PNG (.png)

Also create a Markdown snippet when the user wants the Mermaid source embedded in docs. Keep everything local and offline.

Workflow

  1. Convert the user's English brief into a small Mermaid flowchart TD or flowchart LR.
  2. Keep labels short and inspectable. Prefer 4-12 nodes.
  3. Save the Mermaid source to a .mmd file.
  4. Run the bundled renderer:
node plugins/codex-chef-workflows/skills/offline-diagram-triplet/scripts/render-diagram-triplet.mjs --mermaid path/to/diagram.mmd --out-dir artifacts/diagrams --name diagram-name
  1. Return the created file paths and include the Mermaid block in the response or target Markdown file.

Reference Routing

Read references/diagram-contract.md before extending the renderer, handling unsupported Mermaid syntax, changing output formats, or validating Excalidraw compatibility. For ordinary small diagrams, follow the subset below.

Mermaid Subset

Use this subset for predictable offline rendering:

flowchart LR
  A[English brief] --> B[Mermaid source]
  B --> C[Editable Excalidraw]
  B --> D[SVG]
  B --> E[PNG]

Supported node forms:

  • A[Rectangle]
  • B(Rounded)
  • C((Ellipse))
  • D{Decision}
  • A --> B
  • A -->|edge label| B
  • A -.-> B
  • A ==> B
  • A --- B

Avoid unsupported Mermaid features such as subgraphs, HTML labels, icons, classDefs, click handlers, remote images, and sequence diagrams unless you also implement or verify a renderer for them.

Markdown Embedding

When writing docs, embed the source:

```mermaid
flowchart LR
  A[Input] --> B[Editable diagram]
```

The starter's /make-pdf style workflows can render Markdown Mermaid blocks through their own PDF toolchain, while this skill still emits standalone local assets for review and editing.

Read the full file on GitHub · 90 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 10d ago First seen · 90 lines · 56 tokens per session scan A 3992b3ec78a7

Subscribe to this mod's changes

offline-diagram-triplet is a skill published in the GitHub repository ucsahinn/codex-chef (6 stars, last pushed 24d ago), licensed MIT. It adds 56 tokens to every session and 653 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-31.

Related

Other skills, from other repositories

create-codex-theme

Create, customize, validate, locally install, and test theme packs for Codex Desktop from generated background artwork, a landscape image, brand palette, or style brief. Use when a user asks to make a Codex theme, generate or convert artwork into a Codex background/theme pack, prepare free or branded theme assets…

ViisOpen/get-codex-theme · 83 tokens

feedbacks

Screen+voice capture for visual feedback. Setup whisper.cpp, launch the capture app, or analyze a session. When ticket-takeaway is installed, adds SDLC context (ticket-linked output, context push after analysis).

ytubecoder/ticket-takeaway · 47 tokens

canvas-design

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

Hipson47/Hipson · 59 tokens

theme-factory

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

Hipson47/Hipson · 62 tokens

web-design-reviewer

This skill enables visual inspection of websites running locally or remotely to identify and fix design issues. Triggers on requests like "review website design", "check the UI", "fix the layout", "find design problems". Detects issues with responsive design, accessibility, visual consistency, and layout breakage…

Galaxy-Dawn/claude-scholar · 74 tokens

post-acceptance

This skill should be used when the user asks to "prepare conference presentation", "create presentation slides", "design poster", "make academic poster", "write promotion content", "create Twitter thread", or mentions post-acceptance conference preparation. Provides comprehensive workflow for presentation, poster, and…

Galaxy-Dawn/claude-scholar · 66 tokens