blog-post-with-diagrams
Skill3 starsChanged 8 months agoCC0-1.0View on GitHub
Guides writing technical blog posts that embed Mermaid diagrams, ASCII art, and annotated code blocks to explain architecture, workflows, and decisions. Use when drafting engineering blog posts, developer tutorials, or technical deep-dives that benefit from visual explanations.
In this repository48 other files it gives its agents.
- 3d-printingSkill
- app-securitySkill
- architecture-designSkill
- aws-genai-lensSkill
- aws-well-architected-frameworkSkill
- aws-well-architectedSkill
- azure-well-architectedSkill
- clean-architectureSkill
- clean-codeSkill
- databricks-genie-spaces-best-practicesSkill
- data-visualization-guideSkill
- design-an-interfaceSkill
- design-patternsSkill
- domain-driven-designSkill
- dry-principleSkill
- edit-articleSkill
- event-driven-designSkill
- git-best-practicesSkill
- git-guardrails-claude-codeSkill
- grill-meSkill
- hexagonal-architectureSkill
- improve-codebase-architectureSkill
- language-conventions-source-en-docs-brSkill
- learn-electronicsSkill
- linked-dataSkill
- microservices-skillSkill
- object-oriented-programmingSkill
- oop-design-patternsSkill
- oreilly-design-referenceSkill
- organize-docs-from-zipSkill
- prd-to-issuesSkill
- prd-to-planSkill
- project-context-syncSkill
- request-refactor-planSkill
- rfc2119Skill
- scaffold-exercisesSkill
- semverSkill
- setup-pre-commitSkill
- solid-principlesSkill
- tddSkill
- todoSkill
- triage-issueSkill
- ts-otp-awsSkill
- ubiquitous-languageSkill
- ux-design-principlesSkill
- write-a-prdSkill
- write-a-skillSkill
- yagni-principleSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 11 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈11
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Write technical blog posts that combine narrative, code, and diagrams to explain complex topics visually.
- Distinctive: line 19
Follow this skeleton. Sections marked *optional* may be dropped when the post type does not need them.
- Distinctive: line 50
Caption every diagram: Use a heading or bold text immediately before the fenced block.
- Distinctive: line 58
Use ASCII art when:
- Very specific: line 68
Highlight the relevant part: If showing a large file, use // ...
- Distinctive: line 69
Specify the language tag: Always include the language in the fenced code block for syntax highlighting.
- Distinctive: line 70
Show input and output together: when demonstrating CLI commands or API calls.
- Distinctive: line 75
Lead with the diagram: Place the most important diagram early in the post, before readers lose context.
- Distinctive: line 76
Refer to diagrams explicitly: Use phrases like "as shown in the sequence diagram above" to connect prose and visuals.
- Distinctive: line 77
Use progressive disclosure: Start with a high-level overview diagram, then zoom into specifics in later sections.
- Distinctive: line 78
Avoid wall-of-text sections: If a section runs longer than three paragraphs without a visual element, consider adding a diagram, code …
- Distinctive: line 79
Write for skimmers: Use headings, bold key terms, and bullet lists so readers can scan for the section they need.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Blog Post with Diagrams
Write technical blog posts that combine narrative, code, and diagrams to explain complex topics visually.
When to Use
- Drafting a technical blog post that explains architecture or system design
- Writing a developer tutorial with step-by-step workflows
- Creating a deep-dive or postmortem that involves data flow or component interaction
- Any post where a diagram would clarify what prose alone cannot
Post Structure
Follow this skeleton. Sections marked optional may be dropped when the post type does not need them.
# Title ← concise, specific
## TL;DR ← 2-3 sentence summary
## Context / Problem ← why this matters
## Approach / Solution ← what you built or decided
### Diagram: <caption> ← at least one diagram here
### Code: <caption> ← annotated code block
## Results / Tradeoffs ← evidence or comparison
## Conclusion ← recap + call to action
## References ← optional, links and creditsDiagram Guidelines
When to Use Which Diagram Type
| Situation | Diagram type | Tool |
| Request/response flow between services | Sequence diagram | Mermaid |
| System components and their connections | C4 container or component | Mermaid |
| Decision tree or process steps | Flowchart | Mermaid |
| Database tables and relationships | Entity-Relationship diagram | Mermaid |
| State transitions | State diagram | Mermaid |
| Simple layout or structure that does not need interactivity | ASCII art | Plain text |
| Timeline or release plan | Gantt chart | Mermaid |
Mermaid Best Practices
- One concept per diagram. Split complex flows into multiple diagrams rather than cramming everything into one.
- Caption every diagram. Use a heading or bold text immediately before the fenced block.
- Use readable node IDs.
AuthServicenotA,UserDBnotDB1. - Avoid styling directives. Let the renderer handle colors; do not embed
styleorclassDefsince they break across themes. - Keep labels short. Edge labels over 5-6 words become unreadable; move detail into prose.
- Escape special characters. Wrap labels containing parentheses, colons, or commas in double quotes.
ASCII Art Best Practices
Use ASCII art when:
- The diagram is simple enough that Mermaid adds unnecessary complexity
- The target medium does not render Mermaid (e.g. terminal output, plain-text emails)
- You want to show a compact layout inline with code
Wrap ASCII art in a fenced code block with no language tag to preserve alignment.
Code Block Guidelines
- Annotate, do not narrate. Comments in code examples should explain why, not what.
- Highlight the relevant part. If showing a large file, use
// ...to truncate irrelevant sections. - Specify the language tag. Always include the language in the fenced code block for syntax highlighting.
- Show input and output together when demonstrating CLI commands or API calls.
- Keep examples runnable. A reader should be able to copy-paste and get the expected result.
Writing Style
- Lead with the diagram. Place the most important diagram early in the post, before readers lose context.
- Refer to diagrams explicitly. Use phrases like "as shown in the sequence diagram above" to connect prose and visuals.
- Use progressive disclosure. Start with a high-level overview diagram, then zoom into specifics in later sections.
- Avoid wall-of-text sections. If a section runs longer than three paragraphs without a visual element, consider adding a diagram, code block, or callout.
- Write for skimmers. Use headings, bold key terms, and bullet lists so readers can scan for the section they need.
Checklist
Before publishing, verify:
- Post has at least one Mermaid diagram or ASCII art illustration
- Every diagram has a caption (heading or bold text)
- Mermaid blocks render correctly (no styling directives, readable node IDs, escaped special chars)
- Code blocks specify a language tag and are copy-pasteable
- No section exceeds three paragraphs without a visual break
- TL;DR section is present and summarizes the post in 2-3 sentences
- Diagrams are referenced in the surrounding prose
- Progressive disclosure: overview diagram first, details later
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

