Mermaid Diagrams
jjmartres/opencode
Helps an agent pick the right Mermaid diagram type and write the syntax for class, sequence, flow, ER, C4, state and other software diagrams.
Generates a self-contained HTML diagram of a code change or architecture, with data flow, file groupings and design decisions, and a copy-as-image button for sharing.
$ npx skills add comet-ml/opik --skill diagram-generation -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install comet-ml/opik diagram-generation --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/comet-ml/opik.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/diagram-generation .claude/skills/diagram-generation && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "diagram-generation" agent skill from https://github.com/comet-ml/opik/tree/main/.agents/skills/diagram-generation into .claude/skills/diagram-generation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "diagram-generation", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/comet-ml/opik/tree/main/.agents/skills/diagram-generationType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add comet-ml/opik --skill diagram-generation -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install comet-ml/opik diagram-generation --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/comet-ml/opik.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/diagram-generation .agents/skills/diagram-generation && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "diagram-generation" agent skill from https://github.com/comet-ml/opik/tree/main/.agents/skills/diagram-generation into .agents/skills/diagram-generation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "diagram-generation", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add comet-ml/opik --skill diagram-generation -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install comet-ml/opik diagram-generation --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/comet-ml/opik.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/diagram-generation .cursor/skills/diagram-generation && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "diagram-generation" agent skill from https://github.com/comet-ml/opik/tree/main/.agents/skills/diagram-generation into .cursor/skills/diagram-generation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "diagram-generation", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/comet-ml/opik.git --path .agents/skills/diagram-generation--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add comet-ml/opik --skill diagram-generation -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install comet-ml/opik diagram-generation --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/comet-ml/opik.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/diagram-generation .gemini/skills/diagram-generation && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "diagram-generation" agent skill from https://github.com/comet-ml/opik/tree/main/.agents/skills/diagram-generation into .gemini/skills/diagram-generation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "diagram-generation", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install comet-ml/opik diagram-generationInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add comet-ml/opik --skill diagram-generation -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/comet-ml/opik.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/diagram-generation .github/skills/diagram-generation && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "diagram-generation" agent skill from https://github.com/comet-ml/opik/tree/main/.agents/skills/diagram-generation into .github/skills/diagram-generation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "diagram-generation", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add comet-ml/opik --skill diagram-generation -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install comet-ml/opik diagram-generation --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/comet-ml/opik.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/diagram-generation .opencode/skills/diagram-generation && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "diagram-generation" agent skill from https://github.com/comet-ml/opik/tree/main/.agents/skills/diagram-generation into .opencode/skills/diagram-generation/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "diagram-generation", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
diagram-generationGenerates a self-contained HTML diagram of a code change or architecture, with data flow, file groupings and design decisions, and a copy-as-image button for sharing.
This skill produces a single self-contained HTML file that visualizes a code change, a data flow or an architecture decision, for pull request reviews, task plans and architectural explanations. The file is saved in a diagrams folder at the main repository root, resolved through git rev-parse --git-common-dir so it survives when the session runs in a worktree.
Diagrams follow a style guide and an HTML template shipped with the skill, with a dark GitHub-style theme, semantic color coding and a responsive layout, plus a Copy as image button for pasting into Slack, Jira or PR descriptions. The agent picks up to four sections from request or data flow, why this approach, files changed by layer, and key design decisions, weighting them by whether the change is a bug fix, new feature, refactor or cross-component work.
Listed gotchas: the html2canvas script tag needs integrity and crossorigin attributes, Playwright screenshots need absolute paths, more than four sections makes diagrams too tall, the toBlob call needs a null check, and diagrams show high-level summaries rather than raw diff hunks or Jira comments.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 2982cd7. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
HTML Architecture Diagram Generator loads about 642 tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 303 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from comet-ml/opik at commit 2982cd7, republished under its Apache-2.0 licence (© comet-ml). 303 words, ~642 tokens.
.claude/skills/diagram-generation/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.Generate self-contained HTML diagrams that visualize code changes, data flows, and architecture decisions.
{MAIN_REPO_ROOT}/diagrams/opik-{TICKET_NUMBER}-diagram.html — always resolved against the main repo root (via git rev-parse --git-common-dir), even when the session runs inside a worktree, so the file outlives the worktreeFollow the style guide in style-guide.md and use the HTML template in template.md.
<script> tag must include integrity and crossorigin attributes — see template.md for the current hashbrowser_take_screenshottoBlob can return null: The Canvas toBlob call in the copy-as-image script needs a null check — see template.md© comet-ml, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files in .agents/skills/diagram-generation of comet-ml/opik.
Open the folder on GitHubat commit 2982cd7
HTML Architecture Diagram Generator next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| HTML Architecture Diagram Generator this skillcomet-ml/opik | 22k | — | ~642 | Automated safety check: Pass | Apache-2.0 | |
| Mermaid Diagramsjjmartres/opencode | 133 | 6 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Miro Code Reviewmiroapp/miro-ai | 160 | — | ~4.8k | Automated safety check: Warn | MIT | |
| Map Architectureazalio/map-framework | 156 | — | ~2.2k | Automated safety check: Pass | MIT | |
| Code Change Analysis Gatetelagod/code-abyss | 243 | — | ~532 | Automated safety check: Notes | MIT | |
| GitHub Code ReviewRedWoodOG/Hermes-Desktop | 177 | 5 repos | ~3.4k | Automated safety check: Notes | MIT |
jjmartres/opencode
Helps an agent pick the right Mermaid diagram type and write the syntax for class, sequence, flow, ER, C4, state and other software diagrams.
miroapp/miro-ai
A skill your agent uses when the user wants to create a visual code review on a Miro board from a pull/merge request (GitHub, GitLab, or any forge), local uncommitted changes, or a branch comparison…
azalio/map-framework
Opt-in proactive architecture-deepening report: ranks codebase areas by recent git hotspot and design friction, generates a ranked Markdown+Mermaid candidate report under…
telagod/code-abyss
Checks what a code change touched, how far its impact reaches and whether design docs, tests and README files kept up, before commit or in review.
RedWoodOG/Hermes-Desktop
Review code changes by analyzing git diffs, leaving inline comments on PRs, and performing thorough pre-push review.
shareAI-lab/learn-claude-code
Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.
comet-ml/opik
Checklist for wiring a new linter into Opik's Code Quality pipeline: the four files to edit, the silent-failure gotchas and the pass/fail verification loop.
comet-ml/opik
Shows how to add product analytics events to Opik's frontend, Java backend and Python SDK, all reporting through Segment to PostHog with an opik_ name prefix.
comet-ml/opik
Investigates a failed Opik end-to-end test from CI, TestOps or a local run, decides regression versus flake, and proposes a fix without editing tests.
comet-ml/opik
Rules for writing PR descriptions, changelog entries and feature documentation in the Opik repository, including the exact headings that CI requires.
comet-ml/opik
Turns a code change into one committed, passing Playwright end-to-end spec by resolving the change scope and handing authoring to a companion skill.
comet-ml/opik
Starts, rebuilds, and troubleshoots the Opik local dev stack, including an optional Comet Platform integration mode for the Opik team.
Works with
Categories
Generates a self-contained HTML diagram of a code change or architecture, with data flow, file groupings and design decisions, and a copy-as-image button for sharing. This skill produces a single self-contained HTML file that visualizes a code change, a data flow or an architecture decision, for pull request reviews, task plans and architectural explanations. The file is saved in a diagrams folder at the main repository root, resolved through git rev-parse --git-common-dir so it survives when the session runs in a worktree.
HTML Architecture Diagram Generator fits situations like: visualizing the changes in a pull request for reviewers; explaining an architectural decision with a diagram; documenting how a request or data flows through the layers; showing a before and after comparison for a refactor or bug fix.
Run `npx skills add comet-ml/opik --skill diagram-generation -a claude-code`. Or copy the skill folder (.agents/skills/diagram-generation in comet-ml/opik) into .claude/skills/diagram-generation in your project. Claude Code loads it when a task matches its description.
Run `npx skills add comet-ml/opik --skill diagram-generation -a codex`. Or copy the skill folder (.agents/skills/diagram-generation in comet-ml/opik) into .agents/skills/diagram-generation in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add comet-ml/opik --skill diagram-generation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/diagram-generation, .gemini/skills/diagram-generation, .github/skills/diagram-generation and .opencode/skills/diagram-generation in your project.
Going by SKILL.md and its folder, HTML Architecture Diagram Generator needs the command-line tools its instructions call (git). Our summary lists: Git, to resolve the main repository root.
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
HTML Architecture Diagram Generator is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 642 tokens (SKILL.md is roughly 2.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with HTML Architecture Diagram Generator: Mermaid Diagrams (jjmartres/opencode, 133 stars), Miro Code Review (miroapp/miro-ai, 160 stars), Map Architecture (azalio/map-framework, 156 stars) and Code Change Analysis Gate (telagod/code-abyss, 243 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
comet-ml (a GitHub organization) maintains it in comet-ml/opik, which has 22,468 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 9, 2026.
Source: comet-ml/opik on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.