verify-diag

Verify architecture diagrams against actual codebase structure and data flows.

1|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/Trecek/useful-claude-skills --skill verify-diag-trecek
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: verify-diag
Source: https://github.com/Trecek/useful-claude-skills/tree/main/.claude/skills/verify-diag
Command: npx skills add https://github.com/Trecek/useful-claude-skills --skill verify-diag-trecek

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Verifies an architecture diagram against the actual codebase to ensure components exist, connections are accurate, and read/write directions are correct.

Core Features & Use Cases

  • Validate mermaid diagrams for syntax correctness and renderability.
  • Cross-check that all named components exist in the repository and that the indicated connections reflect real data flow.
  • Provide structured findings and actionable fixes to improve diagram accuracy during architecture reviews.

Quick Start

Run verify-diag on a diagram to compare it against the repository and generate a discrepancy report.

Frequently Asked Questions about verify-diag

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I verify that a mermaid architecture diagram matches the actual codebase?

To verify an architecture diagram against a codebase, cross-check that all named components exist in the repository and that indicated connections reflect real data flows. This process identifies missing components and incorrect read/write directions to ensure diagram accuracy.

What is architecture diagram verification and when do I need it?

Architecture diagram verification is the process of identifying discrepancies between a named diagram and the actual codebase, including missing components and incorrect data flows. You need it during architecture reviews to ensure documentation accurately reflects repository structures.

How do I check if read/write directions in my codebase diagram are correct?

To check read/write directions in a codebase diagram, analyze the actual data flow between connected components in the repository. This directionality analysis classifies whether each connection accurately represents read or write operations.

Can I validate mermaid diagrams for large codebases with varying architectures?

Yes, diagram verification applies to codebases of varying sizes and architectures. It performs component existence checks, connection verification, and directionality analysis to validate mermaid diagrams regardless of the underlying architectural complexity.

What is the best way to find missing components in an architecture diagram?

The best way to find missing components is to run a discrepancy report comparing the named architecture diagram against the actual codebase. This structured reporting identifies missing components, verifies connections, and provides actionable fixes to improve accuracy.

Why does my mermaid architecture diagram show incorrect data flows?

Your mermaid architecture diagram shows incorrect data flows when indicated connections fail to reflect real read/write directions in the repository. Connection verification identifies these discrepancies and provides structured findings to correct the data flow representation.