cdk-dia is a CLI tool that automatically generates architecture diagrams from AWS CDK synthesized tree.json files. It parses the CDK construct tree, identifies CloudFormation resources and their references (Ref, Fn::GetAtt, Fn::ImportValue), builds a hierarchical diagram model, and renders it via Graphviz (PNG) or Cytoscape (interactive HTML). The tool supports collapsing groups, ignoring resources, cross-stack edge resolution, and custom diagram styling through construct attributes. It is a well-architected Node.js library with a clean separation of parsing, diagram generation, and rendering layers. The codebase demonstrates strong engineering practices with abstract component trees, customizable attributes, and extensive snapshot testing against real-world CDK app fixtures.