r/ClaudeCode • • 13h ago

Help/Question Is there any tool to visualize how the PRD is translated in the different taxonomies in the codebase?

I'm interested in seeing the overall architecture of my project represented as taxonomies in an interactive knowledge graph. So for example I'd be able to see that the invoice extraction module I defined in the PRD has this job to extract the details of the invoices trough this external API and all of it is hosted in this docker container...

So far all the tools I see are deeply focused in the code itself but I rather trust that part to the agent and me being focused in the PRD's sort of "digital twin" at a more arquitectural and infrastructure level

1 Upvotes

7 comments sorted by

•

u/AutoModerator 13h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/aaronsuns 13h ago

One approach that avoids code-level tools is to keep the architecture as a small machine-readable manifest, such as a YAML file where each PRD module lists its responsibilities, external APIs, data stores, and the container or host it runs in. You can then have the agent regenerate a Graphviz or Mermaid diagram from that file whenever the PRD changes, so the graph stays a view of the spec rather than of the code. Mermaid renders directly in many Markdown viewers, and Graphviz gives you more control over layout for an interactive-style view. If you want true interactivity, importing the same manifest into a graph database or a tool like Obsidian's canvas lets you click through the relationships.

1

u/Ok_Freedom2074 12h ago

Yes! Something like that is a good approach, I wonder if someone has tried to define a pipeline to go from the PRD to the YAML, I'd like to get something that is reproducible in completely different repos. And not sure how easy is to go from those YAML files to something that is visually appealing...

1

u/who_you_are 12h ago

I'm trying to create some toolings (not like yours) and I end up using yaml as well. Claude has no issues suggesting me a structure for my need, nor to migrate the data, nor to use it, nor to update it, nor applying structure changes when you have new cases.

You may need to help it with some decisions (like when you code) but otherwise it is easy.

That yaml, you may want to use it as the technical data cache. To keep code vs business roles record. To help generation your final output.

1

u/Ok_Freedom2074 12h ago

have you tried that approach in different projects? Is the result consistent? I don't like to overengineer things but in this case I'm afraid of ending up with a completely different diagram for each project. If I ask my colleagues for their code repo graphs I'd like to see something like I have in mine to quickly identify the part I'm interested in. Not sure if this can be guaranteed only with claude or if it needs a dedicated skill or something else...

1

u/Random_username_53 12h ago

Hey, I am creating a tool for the architecture visualisation. It creates diagrams from the sourcecode. Maybe it will be useful for you. It is in the alpha version though. https://maciejwagner.github.io/architecture-explorer-releases/

1

u/Ok_Freedom2074 12h ago

code repo? bad times to install things from websites 😅