← Prompts
Task / Understand Official Claude Code Plugins
Dependency & topology mapping — call graphs, data lineage, batch flows, rendered as navigable diagrams
Dependency & topology mapping — call graphs, data lineage, batch flows, rendered as navigable diagrams
Build a **dependency and topology map** of `legacy/$1` and render it visually. The assessment gave us domains. Now go one level deeper: how do the *pieces* connect? This is the map an engineer needs before touching anything. ## What to produce Write a one-off analysis script (Python or shell — your choice) that parses the source under `legacy/$1` and extracts the four datasets below. Three principles apply across stacks; getting them wrong produces a misleading map: 1. **Edges live in two places** — direct calls in source, *and* dispatcher/ router calls whose targets are variables (config tables, route maps, dependency injection, dynamic dispatch). Resolve variables against config before declaring an edge unresolvable. 2. **The code↔storage join is usually external configuration**, not source — job/deployment descriptors map logical names to physical stores. 3. **Entry points usually live in deployment config**, not source — without parsing it, every top-level module looks unreachable. Extract: - **Program/module call graph** — direct calls (`CALL`, method invocations, `import`/`require`) *and* dispatcher calls (`EXEC CICS LINK/XCTL`, DI container wiring, framework routing, reflection/factory). Resolve variable
Sign in to view the full prompt.
Sign InClassification
Task Immediate work request to complete
Task Understand
Explain or analyzeScope Project
This codebase Invoked Called by name -- slash commands, named tools