Use the open-source free `ArchUnitNET` library for architecture rules in .NET tests.
graphify-dotnet
Use `graphify-dotnet` to generate codebase knowledge graphs, architecture snapshots, and exportable repository maps from .NET or polyglot source trees, with optional AI-enriched semantic relationships.
Trigger On
graphify,graphify run,graphify watch,graphify benchmark, orgraphify config- generating
graph.json,graph.html,graph.svg,graph.cypher,GRAPH_REPORT.md,obsidian/, orwiki/ - building onboarding maps, architecture snapshots, or dependency-discovery artifacts from a repository
- choosing between AST-only extraction and AI-enriched semantic extraction
- pushing graph output into Neo4j, Obsidian, wiki docs, or CI artifacts
Workflow
- Confirm the problem is structural discovery, architecture review, onboarding, or graph export. If the user only needs one symbol lookup, one bug fix, or one dependency trace, normal repo search and tests are cheaper than a full graph run.
- Install and verify the tool before doing anything else:
``bash dotnet --version dotnet tool install -g graphify-dotnet graphify --version ``
- Start with a bounded AST-only run so the first output is fast and deterministic:
``bash graphify run ./src --format json,html,report --provider none --verbose ``
- Review outputs in this order:
- GRAPH_REPORT.md for quick signal - graph.html for visual exploration - graph.json for scripting and downstream tooling
- Add AI enrichment only when inferred relationships or conceptual grouping matter more than strict syntax-only structure.
- Expand export formats for the real consumer:
- svg for static docs and PRs - neo4j for graph queries - obsidian,wiki for knowledge-base or onboarding flows
- Use
watchfor iterative architecture work, but rerun a cleanrunperiodically because deletes and renames can leave stale references behind. - Run
benchmarkonly after you already trust the generatedgraph.json; its value is comparative token-reduction evidence, not billing-grade accounting.
Deliver
- a justified choice of AST-only vs AI-enriched extraction
- concrete
graphifycommands for the repo, folder, or output consumer - the right export-format set for humans, docs, scripts, or graph databases
- configuration guidance that fits the chosen provider and operating model
- a validation path for the produced graph artifacts
Validate
dotnet --versionshows a .NET 10 SDKgraphify --versionresolves after installationgraphify run <path> --format json,html,report -vcompletes without provider or path errors- the output folder contains the expected artifacts for the selected formats
graphify config showreflects the intended provider configuration when AI enrichment is enabledgraphify benchmark <graph.json>runs only after a real graph file exists
Load References
references/source-map.md- upstream repository and docs map with direct links to the README, CLI docs, provider setup guides, sample project, and export-format docsreferences/usage-and-operations.md- practical commands, provider setup patterns, export selection, watch-mode behavior, troubleshooting, and benchmark caveats
Related skills
Use the open-source free `NetArchTest.Rules` library for architecture rules in .NET unit tests.
Apply MCAF documentation guidance for docs structure, navigation, source-of-truth placement, and writing quality.