drift_check
Checks if embedded ERD diagrams in documentation align with the actual database schema, reporting added or removed tables, columns, or relations to prevent outdated docs.
Instructions
Check whether an ERD embedded in a doc (a .mmd file or a markdown file with a ```mermaid erDiagram block) still matches the current schema. Reports tables/columns/relations added or removed since the diagram was written. Use this in CI or before shipping docs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc_path | Yes | The .mmd or .md file that contains the current diagram. | |
| schema_path | Yes | The current schema source to compare against. | |
| schema_type | No |