Trace

Trace bugs and refactoring blast radius by chaining Codemap, LSP, and AST-grep. Short command alias for macro-to-micro.

shalomb 66ae549 764 B Updated

File contents

Macro-to-Micro Codebase Tracing (/trace)

When invoked, load and execute the macro-to-micro skill:

  1. Follow all instructions and guidelines in macro-to-micro.
  2. Follow the 3-tier articulation chain: Macro (Codemap file graph) -> Meso (LSP symbol graph) -> Micro (AST-grep syntax tree).
  3. Identify hub files and dependency blast radius with Codemap before editing.
  4. Trace call chains and data flow with LSP (lsp reference, lsp definition, lsp outline).
  5. Perform surgical syntax-aware transformations using AST-grep (sg run).

shalomb/agent-skills/tree/main/skills/trace commit 66ae549d7a

Frequently asked questions

npx skillmds@latest add shalomb/trace