pierre3/PlantUmlClassDiagramGenerator ? reverse-engineered prompt
Reverse engineered prompt
Build me a .NET tool that scans C# source files and generates PlantUML class diagrams from them.
I want to point it at a single file or a whole folder, and get back .puml files that show classes, interfaces, structs, enums, records, inheritance, methods, properties, fields, and accessibility in a clean PlantUML format. It should handle common C# details like generics, abstract, static, sealed, partial, readonly, override, virtual, events, and property get and set accessors. Please support options for including only public members, ignoring certain access levels, excluding paths like bin and obj, creating associations from fields and properties, and writing one combined include file when generating for a whole directory.
Make it work as a command line tool I can install globally with dotnet, and keep it compatible with .NET 8 or newer. If useful, look up current docs online while implementing. Also add a simple way to generate diagrams only for types marked with a specific attribute, and let me choose whether the output includes the PlantUML start and end tags.
Are you gonna build this?
make sure you review the code using coderabbit