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/renefatuaki-diagrams
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: 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
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/diagrams
What's inside
- Skill name
diagrams- Description
- diagrams, the rules for every Mermaid diagram. Use whenever you explain in chat how code, a set of files or a feature works, even when the user only asks what the files do. Also use when a flow, a process, a lifecycle, a data model, a type hierarchy or an architecture is explained in documentation, when the user plans a change to one, when an issue or a pull request changes one, when a code change touches a file a diagram links, or when the user names the diagrams skill.
- License
- MIT
- Instructions
- 142 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
Rules for every diagram you draw or touch. A diagram answers one question about a flow or a structure faster than the code or a page of prose does. It is a `mermaid` code block in Markdown. The text is the only source, so a person reads the picture and an agent reads the block. GitHub, VS Code and JetBrains render it without a build step.
## Steps
1. **Decide whether a diagram helps.** A flow or a structure you explain is a diagram. A single step or a single relation, such as one function that calls another, has nothing to connect and stays a sentence. The steps a reader follows in a how-to stay a numbered list. Values the reader looks up stay a table. When you explain a flow or a structure in chat, draw it without being asked.
2. **Name the question.** One diagram answers one question, written as one sentence in the language of the surrounding document, or of the conversation in chat. A second question is a second diagram.
3. **Pick the type.** Take it from [Types](#types) by the question. Another type only when the user asks for it.
4. **Read the code.** Every element of a diagram of the current state exists in the code. Every edge is a call, a transition or a relation you read there. What you did not read is left out, never guessed. A diagram of something that is not built yet is a [planned state](#planned-state).
5. **Draw.** Every line follows [Form](#form). A diagram the reader cannot take in at a glance is split. The overview keeps the main path and folds each group of steps into one element. Every folded group gets a diagram of its own.
6. **Explain and link.** Add the [terms and the example](#terms-and-example) and the table of [Sources](#sources).
7. **Place it.** The file follows the `project-docs` skill. An existing structure of the project wins.
- A diagram of the whole project, such as its architecture, its data model or a process across features, lives in `docs/<topic>.md`.
- A diagram of one flow or one feature lives in the `README.md` of the folder that holds its code, such as `src/orders/README.md`. GitHub shows that file when the reader opens the folder.
- Code that has no folder of its own sends the diagram to `docs/<topic>.md`.
- A detail diagram lives in the `README.md` of the subfolder it describes. The overview links it from its table.
- A folder that needs more than one diagram keeps the overview in its `README.md`. Every detail diagram without a subfolder of its own gets a file in the `docs/` folder next to the code, one diagram per file and named after what it shows, such as `src/extraction/pdf/docs/byte-checks.md`. The overview links each file from its table.
8. **Show it.** A terminal prints a `mermaid` block as text. Write every diagram you show in chat into `$TMPDIR/diagrams/<topic>.md` as well, outside the repository, and name the path. The user opens it in the Markdown preview of the IDE.
Done when every diagram names its one question, takes the type of that question, shows only what the code holds, links each element to its source, sits where the reader looks for it, parses without an error, and a reader understands it without opening the code.
## Types
| The reader asks | Type | Instead |
| --- | --- | --- |
| What happens in which order, and where does it branch? | `flowchart` | |
| Who is responsible for which step? | `flowchart` with one `subgraph` per role | `sequenceDiagram` when the messages matter more than the work |
| Who talks to whom, and when? | `sequenceDiagram` | |
| Which states does it pass through? | `stateDiagram-v2` | `flowchart` when the nodes are actions |
| How does the data relate? | `erDiagram` | `classDiagram` when behaviour or inheritance matters |
| How do the types relate? | `classDiagram` | `flowchart` for plain dependencies between modules |
| What is the system made of? | `architecture-beta` | |
| When does what happen? | `timeline`, `gantt` for durations, `gitGraph` for branches | A list, unless time is the question |
| How is it divided? | `mindmap` | `flowchart` once the parts link across |
The same question takes the same type inside the code, around it and in the domain. A control flow, a CI pipeline and an order process are all a `flowchart`.
`architecture-beta` is a beta type of Mermaid. Its icons are `cloud`, `database`, `disk`, `internet` and `server`, and it takes no `classDef`.
## Form
- The first line after the keyword is `accTitle`, followed by the question of step 2. A type that knows no `accTitle`, such as `mindmap`, `sankey-beta` and `block-beta`, takes the question as `title` in its front matter.
- An ID is the name the element has in the code, in lowerCamelCase, such as `checkOrder`. Never a single letter and never `end`.
- A label says what happens in the words of the domain, a step with its verb first, such as `"Charge the payment"`, never the operator or the call in the code, such as `"amount > limit"`. It stands in double quotes and in the language of the surrounding document.
- Every branch of a decision carries its condition as the label of its edge. An edge that ends the flow early also names the reason, unless the condition already explains it. An error or a log code follows in parentheses, such as `-->|"over 20 MB, the parser holds the whole file in memory (file_too_large)"|`.
- A `flowchart` runs `TD`. A pipeline without a branch runs `LR`.
- Declare the elements in reading order, so the edges cross as little as possible.
- A comment is `%%` on a line of its own.
- Meaning stands in the text. A colour or a shape alone never carries it.
- Only the syntax of the Mermaid version that [Mermaid](#mermaid) names. No `click`, no icon, no `%%{init}%%`, no `config` in the front matter and no ELK layout. Every renderer applies its own theme and layout, so nothing depends on where an element lands.
## Sources
The table stands right under the diagram, with only a blank line between them. It has one row per element that exists in the code, a node, a participant, a state, an entity, a class or a service. The first cell is the ID as the diagram writes it. The second cell is a relative link to the file, with the symbol as its text. An element that folds a group links the file that holds its detail diagram, a `README.md` or a file under `docs/`.
````markdown
```mermaid
flowchart TD
accTitle: How does an order get from the cart to the warehouse?
checkOrder["Check the order"] --> chargePayment{"Charge the payment"}
chargePayment -->|paid| shipOrder["Ship the order"]
chargePayment -->|declined| rejectOrder["Reject the order"]
```
| Element | Source |
| --- | --- |
| `checkOrder` | [`checkOrder`](checkout.ts) |
| `chargePayment` | [`chargePayment`](payment.ts) |
| `shipOrder` | [`shipOrder`](checkout.ts) |
| `rejectOrder` | [`rejectOrder`](checkout.ts) |
````
`timeline`, `gantt`, `gitGraph`, `journey` and `mindmap` take no table, because no file stands behind their elements.
## Terms and example
- Every term the reader needs, of the domain or of the code, is explained once, in a table with the columns `Term` and `Meaning` above the diagram. The diagrams of one folder share the table in its `README.md`.
- A flow that computes a value or checks a limit gets a worked example under the table of sources. It runs one input through the flow with real values from the repository, such as the limit its configuration sets, and names the edge each step takes.
## Planned state
A planned state is a sketch of something that is not built yet, or the effect of a change the user considers. It helps the user decide before the code changes.
- It goes into the chat, as step 8 shows it, and into the issue or the pull request that carries the change, as the `issue` and `pull-request` skills place it. The documentation shows what exists. A planned state enters it only on the user's word, under a `> [!NOTE]` that calls it a draft.
- It takes no table of sources, because its new elements have no file yet.
- A change is one diagram of the future state. Every element the change touches takes one of the classes `added`, `changed` and `removed`. A removed element stays in the diagram, and the edges to it are dotted. The three `classDef` lines close the diagram as written below.
- Under the diagram stands the legend as one sentence, then one bullet per consequence, such as a caller, a table, a test or a document the change also touches.
- Only the four types of the table below take a `classDef`. In every other type, such as `sequenceDiagram` and `architecture-beta`, the change is two diagrams, the current state under **Before** and the future state under **After**.
````markdown
```mermaid
flowchart TD
accTitle: How does an order run once the fraud check exists?
checkOrder["Check the order"] --> chargePayment{"Charge the payment"}
chargePayment -->|paid| checkFraud["Check for fraud"]:::added
checkFraud --> shipOrder["Ship the order"]:::changed
chargePayment -.->|paid| shipDirectly["Ship without a check"]:::removed
chargePayment -->|declined| rejectOrder["Reject the order"]
classDef added fill:#d1f0d9,stroke:#1a7f37,color:#000,stroke-width:3px
classDef changed fill:#fff3c4,stroke:#9a6700,color:#000,stroke-dasharray:6 3
classDef removed fill:#eee,stroke:#888,color:#555,stroke-dasharray:2 2
```
A thick border is added, a dashed border is changed, a dotted grey border is removed.
- `shipOrder` waits for the fraud check, so an order ships later.
- The tests of `checkout.ts` cover the direct path and need the new one.
````
| Type | An element takes a class as |
| --- | --- |
| `flowchart` | `checkFraud["Check for fraud"]:::added` |
| `stateDiagram-v2` | `class Checked added` |
| `classDiagram` | `class FraudCheck:::added` |
| `erDiagram` | `FRAUD_CHECK:::added` |
## Update
A diagram in the repository is true for the current code. Bring it up to date when the user asks, when the hook reports `path:line linked` at the end of a turn, and when the `pull-request` skill asks for the files of a branch.From renefatuaki/skills, MIT.
More from renefatuaki/skills
- 0.570score
project
renefatuaki
project, the rules for every GitHub Project.
SkillAFreshness: AClaude Code +9 - 0.570score
clean-code
renefatuaki
clean-code, the rules for readable code.
SkillAFreshness: AClaude Code +9 - 0.570score
pull-request-review
renefatuaki
pull-request-review, the rules for testing a pull request in the running application.
SkillAFreshness: AClaude Code +9 - 0.570score
issue
renefatuaki
issue, the rules for every GitHub issue.
SkillAFreshness: AClaude Code +9 - 0.570score
pull-request
renefatuaki
pull-request, the rules for every GitHub pull request.
SkillAFreshness: AClaude Code +9 - 0.567score
today-issues
renefatuaki
today-issues, the plan for today's tickets of a GitHub Project.
SkillAFreshness: AClaude Code +9 - 0.565score
project-docs
renefatuaki
project-docs, the rules for every Markdown file that documents a project.
SkillAFreshness: AClaude Code +9 - 0.565score
commit
renefatuaki
commit, the rules for every git commit.
SkillAFreshness: AClaude Code +9 - 0.565score
code-comments
renefatuaki
code-comments, the rules for every code comment.
SkillAFreshness: AClaude Code +9 - 0.561score
next-steps
renefatuaki
next-steps, what is still open and in which order to do it, as a short numbered list.
SkillAFreshness: AClaude Code +9 - 0.561score
tidy-history
renefatuaki
tidy-history, folds the commits of the current branch into one commit per change.
SkillAFreshness: AClaude Code +9 - 0.561score
review-queue
renefatuaki
review-queue, the open pull requests of a repository as a table in the order to review them.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Oct 18, 2026 (10 days ago)
- Last release
- Oct 24, 2026 (4 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/renefatuaki/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from renefatuaki
- 0.570score
project
renefatuaki
project, the rules for every GitHub Project.
SkillAFreshness: AClaude Code +9 - 0.570score
clean-code
renefatuaki
clean-code, the rules for readable code.
SkillAFreshness: AClaude Code +9 - 0.570score
pull-request-review
renefatuaki
pull-request-review, the rules for testing a pull request in the running application.
SkillAFreshness: AClaude Code +9 - 0.570score
issue
renefatuaki
issue, the rules for every GitHub issue.
SkillAFreshness: AClaude Code +9 - 0.570score
pull-request
renefatuaki
pull-request, the rules for every GitHub pull request.
SkillAFreshness: AClaude Code +9 - 0.567score
today-issues
renefatuaki
today-issues, the plan for today's tickets of a GitHub Project.
SkillAFreshness: AClaude Code +9
Cite this page
diagrams skill. Agent Mart. https://agentmart.dev/skills/renefatuaki-diagrams (last updated 2026-10-24)