一键导入
explain-flow
Trace call graphs, dependencies, and execution flow of target code using GitNexus.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Trace call graphs, dependencies, and execution flow of target code using GitNexus.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | explain-flow |
| description | Trace call graphs, dependencies, and execution flow of target code using GitNexus. |
This skill traces the call graph, execution sequence, and module dependencies of a specific code target, creating a visual map to help agents and human developers understand the codebase architecture before modifying files.
gitnexus.context to inspect the target symbol's:
gitnexus.query to find all files and functions that call this target. This defines the blast radius of changes to this symbol.gitnexus.query to identify what this target calls internally. This defines the dependencies of the target.Analyze the gathered data and output a concise report containing:
Use this Mermaid diagram format when explaining flows:
graph TD
subgraph Callers (Incoming)
C1[Caller Module A] --> Target
C2[Caller Module B] --> Target
end
Target[Target Function/Class]
subgraph Dependencies (Outgoing)
Target --> D1[Dependency Module X]
Target --> D2[Dependency Module Y]
end
To ensure robust and maintainable code, always follow these four core principles inspired by Andrej Karpathy:
Don't assume. Don't hide confusion. Surface tradeoffs.
Minimum code that solves the problem. Nothing speculative.
Touch only what you must. Clean up only your own mess.
Define success criteria. Loop until verified.
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation, combined with GitNexus and AgentMemory.
Convert binary and formatted documents (PDF, DOCX, XLSX, PPTX, HTML, ZIP, etc.) to Markdown using MarkItDown and extract requirements.
Safe, structured refactoring of target code using GitNexus graph mapping, AgentMemory checks, and TDD workflows.
Run targeted unit/integration tests on changed components, run full regression suites, and log outcomes in memory.
Verify codebase modifications, execute test runners, detect file change scope using GitNexus, and persist session memory.
Master orchestrator skill for triaging, planning, and executing tasks, combined with GitNexus, AgentMemory, and superpowers subagent handoffs.