diagram
Use when the user asks for a diagram, flowchart, sequence diagram, state machine, or entity-relationship diagram, or when a system, request flow, process, or…
Skill by jpenley
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jpenley-diagram
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, data
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/diagram
What's inside
- Skill name
diagram- Description
- Use when the user asks for a diagram, flowchart, sequence diagram, state machine, or entity-relationship diagram, or when a system, request flow, process, or data model is easier to show than to describe, including a diagram of real code or of a document's contents.
- License
- MIT
- Instructions
- 68 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (3)
- SKILL.md
- openai.yaml · agents/
- diagram-check.mjs · scripts/
SKILL.md (first lines)
# Diagram Draws a diagram as Mermaid text (GitHub, most docs tools, and every agent already read it) and checks it with the Mermaid CLI before handing it over. A diagram that parses is not a true one: the facts come from the source, and the check says which ones you tied to it. ## 1. Pick the diagram One diagram answers one question. | The question | Type | |---|---| | How parts connect, or how a process flows | `flowchart LR` (pipelines) or `flowchart TD` (hierarchies) | | Who calls whom, in what order | `sequenceDiagram` | | What states something has and how it moves between them | `stateDiagram-v2` | | Which tables or entities relate to which | `erDiagram` | | Which types extend or use which | `classDiagram` | | How two or more options differ | One `flowchart` with the shared parts drawn once and each option's added or changed nodes and edges labelled with its option (`A: publishes event`) or styled per option; or a before/after pair of only the part that changes | More than about fifteen nodes means two diagrams, or `subgraph` groups. ## 2. Get the facts For a real system, open the code before drawing. Every node and edge is something you read in a file, and the line above it says where: ``` %% src: src/routes/auth.ts:12 "verifyPassword(user, pw)" Login[Login handler] ``` The `%% src:` comment goes on its own line directly above the node or edge (Mermaid ignores it there and rejects it after a statement); several `path:line` references may share one comment. Quote a short piece of the line: a line number alone only proves the line exists, and the quote is checked against the file. What you couldn't trace is left out, or drawn dashed (`-.->`) with the label "unverified", never filled in from a name. From a brief in words, the brief is the source; say so in the report. For an unverified flowchart node, start its visible label with `Unverified:`. For an unverified edge, use a dashed arrow and start its edge label with `unverified`: ``` Future["Unverified: future worker"] Future -.->|unverified: possible storage| Storage ``` An unverified sequence message uses a dashed arrow and starts its message text with `unverified` (`API-->>Worker: unverified: possible refresh`). Edge and message labels can add descriptive text after the marker, with or without a colon. These labels apply only to their own statements. Cite each remaining claim. For other diagram forms, omit claims you cannot trace. ## 3. Write it On the lines after the diagram type, put `accTitle: <the question>` and `accDescr: <the one claim the diagram makes>`: screen readers announce them, and the claim travels with the figure. Declare each node once, with its label and shape (`API[API service]`), then refer to it by id. Declare sequence participants before their messages. Quote a label with punctuation (`Cache["Cache (Redis)"]`). Keep labels short; put words on an edge only where they change the meaning. Save the text as `<name>.mmd`, or as a ```` ```mermaid ```` block in the document it belongs to. ## 4. Check With this skill's folder as `<skill>`: ``` node <skill>/scripts/diagram-check.mjs <name>.mmd --root <repo> --out <name>.png ``` It parses and renders with `mmdc` (a syntax error comes back with its line), verifies every `%% src:` line against the files, and flags an id that is one letter off another id, which Mermaid draws as a second node without complaint. For a diagram of real code add `--require-src`. Each statement needs a preceding source comment with a quoted snippet, or a visible unverified label in the forms above. A citation covers one statement; put separate claims on separate lines. Sequence participant declarations and layout syntax need no citation. For conceptual diagrams from a brief, omit `--require-src`. Fix each finding and run it again. It takes a `.md` file too and checks every mermaid block in it. `mmdc not found` means mermaid-cli isn't installed: `npm install @mermaid-js/mermaid-cli` in the project or globally (Node 22.13 or later; it fetches a headless Chrome). Without it, `--no-render` runs the static checks only, and the report says the diagram was not rendered. ## 5. Look at it Open the image. Labels legible and not cut off, nothing overlapping, the main path reading in one direction, the picture answering the question. Fix problems in the text (direction, grouping, fewer nodes), not in the image. A harness that can't show you an image has not looked at it. ## 6. Report Give the diagram (its text or its path), then the checks as separate lines: parsed and rendered (yes, no, or not rendered), how many statements cite a source, how many are explicitly unverified, whether all the citations resolve, and whether you looked at the image. Check whether the cited code supports the diagram's meaning; matching snippets establish traceability. Say what the diagram leaves out. **Done when** the check comes back clean, or each remaining finding is explained in the report, and the report separates what was checked by the script from what you saw.
From jpenley/AITuning, MIT.
More from jpenley/AITuning
- 0.570score
understand
jpenley
Use when making sense of a body of material someone is new to (a folder of notes, papers, docs, reports, or a wiki), asking what a set of sources says, where…
SkillAFreshness: AClaude Code +9 - 0.570score
investigate
jpenley
Use when researching a question in depth, weighing evidence on a contested topic, checking whether a claim or article holds up, comparing what studies or…
SkillAFreshness: AClaude Code +9 - 0.570score
latest
jpenley
Use when catching up on what's new or interesting lately in a field, topic, technology, or research area, asking what people are working on, releasing…
SkillAFreshness: AClaude Code +9 - 0.570score
learn
jpenley
Use when someone wants to learn a subject, skill, language, or technology themselves over time, asks for a lesson, a study plan, practice questions, or a quiz…
SkillAFreshness: AClaude Code +9 - 0.570score
craft
jpenley
Use when writing or changing the markup, styles, or layout of a page, screen, or component (HTML, CSS, templates, email), or checking a page's accessibility…
SkillAFreshness: AClaude Code +9 - 0.570score
image-assets
jpenley
Use when generating or editing raster images, photos, illustrations, textures, sprites, transparent cutouts, or image assets for a project, or when imagegen…
SkillAFreshness: AClaude Code +9 - 0.565score
animate
jpenley
Use when adding or changing animation, transitions, hover or press effects, things that open and close smoothly, scroll-triggered reveals, loading states, or…
SkillAFreshness: AClaude Code +9 - 0.565score
codify
jpenley
Use when a project needs a design system, style guide, or DESIGN.md, when extracting design tokens (colours, type, spacing, radii) from an existing interface…
SkillAFreshness: AClaude Code +9 - 0.565score
compose
jpenley
Use when building a new page, screen, or component's look, restyling or redesigning an existing page or app, making a UI look better or less generic, or…
SkillAFreshness: AClaude Code +9 - 0.565score
tutor
jpenley
Use when helping someone else learn from their own work, such as a child's homework or schoolwork in any subject (maths, science, spelling, reading) or a…
SkillAFreshness: AClaude Code +9 - 0.565score
critique
jpenley
Use when reviewing or critiquing how a page, screen, or mockup looks and works, giving visual feedback (layout, how usable and accessible it is), scoring its…
SkillAFreshness: AClaude Code +9 - 0.565score
guards-dotnet
jpenley
Use when setting up or repairing guardrails in a .NET or C# repo (a .sln, .slnx, or .csproj): dotnet format and .editorconfig, analyzers, warnings as errors…
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 20, 2026 (9 days ago)
- Last release
- Oct 17, 2026 (11 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/jpenley/AITuning
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from jpenley
- 0.570score
understand
jpenley
Use when making sense of a body of material someone is new to (a folder of notes, papers, docs, reports, or a wiki), asking what a set of sources says, where…
SkillAFreshness: AClaude Code +9 - 0.570score
craft
jpenley
Use when writing or changing the markup, styles, or layout of a page, screen, or component (HTML, CSS, templates, email), or checking a page's accessibility…
SkillAFreshness: AClaude Code +9 - 0.570score
latest
jpenley
Use when catching up on what's new or interesting lately in a field, topic, technology, or research area, asking what people are working on, releasing…
SkillAFreshness: AClaude Code +9 - 0.570score
learn
jpenley
Use when someone wants to learn a subject, skill, language, or technology themselves over time, asks for a lesson, a study plan, practice questions, or a quiz…
SkillAFreshness: AClaude Code +9 - 0.570score
investigate
jpenley
Use when researching a question in depth, weighing evidence on a contested topic, checking whether a claim or article holds up, comparing what studies or…
SkillAFreshness: AClaude Code +9 - 0.570score
image-assets
jpenley
Use when generating or editing raster images, photos, illustrations, textures, sprites, transparent cutouts, or image assets for a project, or when imagegen…
SkillAFreshness: AClaude Code +9
Cite this page
diagram skill. Agent Mart. https://agentmart.dev/skills/jpenley-diagram (last updated 2026-10-24)