Mermaid Scout
Build a scoped list of files and types to map. Output is always scoutmap.md in the workflow output directory when used as part of the mermaid-mapper workflow, or at a path the user specifies for standalone runs.
When to use
- You need a file-to-type inventory for a feature area, naming family (for example
*ViewModel), or named type. - You are running the discovery step before parallel mermaid mapping.
- You want "all relevant view models under X" without drawing the graph yet.
Inputs
- Target query: type name, feature keywords, folder hint, or pattern (for example types ending in
ViewModel). - Repository root: the project whose code you are mapping.
- Optional: folder constraints, glob hints, maximum row count (if the user caps scope).
Instructions
- Translate the query into search tactics:
Globfor paths,Grepfor symbols and class declarations. - Open candidate
.cs(or other supported) files and list declared types that are in scope. - Include classes that match the query: naming patterns, explicit names, or clear semantic fit (for example feature-specific view models).
- Exclude unless explicitly targeted:
struct,record, static-only helpers, constants-only types, generic noise, unrelated DTOs or persistence types, and declarations that are clearly out of scope. - Group types by file: one row per file in the output format.
- Write
scoutmap.mdusing references/scoutmap-format.md. New rows use the unassigned state marker in the first column.
Output contract
- Destination (workflow):
documentation/workflows/mermaid_mapper/scoutmap.mdunder the target repository root (always rooted at repo root). - Format: see references/scoutmap-format.md.
Standalone examples
- Find all view model classes under
src/UI/Resourcesand write scoutmap. - Build a scout map for types matching
*Resource*ViewModelin an RTS UI folder. - Given "UnitViewModel", locate its file and related unit view models in the same feature area.