danievanzyl/code-skills/update-docs-ai-diagrams

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Update Mermaid diagrams in documentation to reflect recent codebase changes.

Install

npx vskill@latest install danievanzyl/code-skills/update-docs-ai-diagrams

SKILL.md

Update Mermaid Diagrams Skill

Analyze recent code changes and update any Mermaid diagrams in the project documentation so they stay accurate and current.

Instructions

1. Identify Recent Changes
  • Run git diff main...HEAD --name-status (or git diff HEAD~5 --name-status if on main) to list recently added, modified, or deleted files.
  • Run git log --oneline -10 for context on what changed.
  • Focus on structural changes: new modules, services, endpoints, components, data models, workflows, or dependency changes.
2. Find Existing Mermaid Diagrams
  • Search for Mermaid code blocks across the repo:
  • Glob for **/*.md and Grep for `mermaid in those files.
  • Also check for .mmd or .mermaid files via Glob **/*.{mmd,mermaid}.
  • Read each file containing a diagram to understand what it documents.
3. Determine What Needs Updating

For each diagram, classify its type and check relevance to the recent changes:

Diagram TypeUpdate When
graph / flowchartNew modules, services, or control flow paths added/removed
sequenceDiagramAPI interactions, message flows, or service calls changed
classDiagramClasses, interfaces, or inheritance hierarchies modified
erDiagramDatabase models, entities, or relationships changed
stateDiagramState machines or lifecycle transitions modified
C4Context / C4ContainerSystem architecture or container boundaries changed

Skip diagrams that are unaffected by the recent changes.

4. Update the Diagrams
  • Read the relevant source code to understand the new structure accurately.
  • Edit diagrams in place — preserve the existing style, direction, and formatting conventions.
  • Add new nodes/edges for additions. Remove nodes/edges for deletions. Rename for refactors.
  • Keep labels concise and consistent with the codebase naming.
  • Do NOT rewrite diagrams from scratch unless the existing one is fundamentally wrong.
5. Validate
  • Ensure every Mermaid block has matching opening and closing fences.
  • Confirm node/edge names don't contain unescaped special characters that break Mermaid syntax.
  • Verify no orphan nodes exist (every node should connect to at least one other).
6. Report

Provide a summary of changes made:

## Diagram Updates
- **<file>**: <what changed and why>
- **<file>**: No changes needed (not affected)

Rules

  • Only update diagrams that exist — do not create new diagram files unless explicitly asked.
  • If no diagrams exist in the repo, report that and suggest where one could be added.
  • Never fabricate components — every node in a diagram must correspond to real code.
  • Preserve any custom styling (style, classDef, linkStyle) already in the diagram.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1
Repository forks
1
7-day trend score
8

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/danievanzyl/code-skills/update-docs-ai-diagrams/badge)](https://verified-skill.com/skills/danievanzyl/code-skills/update-docs-ai-diagrams)

Something wrong with this skill or its page? Tell us.