Scaladiagrams
Generate class diagrams from scala source code
Install / Use
/learn @mikeyhu/ScaladiagramsREADME
Scala Diagrams
Scaladiagrams is a command line tool to generate DOT files representing a Scala projects class hierarchy. These DOT files can then be passed to a renderer such as GraphViz to draw the hierarchy.
Usage
First, compile and package with ./build
To run Scaladiagrams do the following:
scaladiagrams --source pathToScalaSourcefiles > dotFile
If you have Graphviz installed, you can generate an image like so:
scaladiagrams --source pathToScalaSourcefiles | dot -Tpng > file.png
Large class hierarchies are probably best rendered as an SVG file, just replace the -t target to svg.
Other options
./scaladiagrams --help
-e, --extension <arg> (default = .scala)
-l, --linked only output types that extend other types
-p, --parent <arg> only output parents of the named class
-s, --source <arg> location of source files (default = .)
Most useful of these are --linked and --parent; these both reduce the scope of the diagram to be produced.
Example diagram

Related Skills
node-connect
351.4kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.4kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.4kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
