Trace

Trace

fntune a46a732 994 B Updated

File contents

/trace

Map codebase from entry points to leaves. Output dependency tree + numbered reading order.

Args

  • --entry-point - Start file (default: auto-detect main.py/app.py/index.ts)
  • --filter - Limit to directory
  • --depth - Max levels (default: unlimited)

Process

  1. Find entry points via Glob
  2. Extract imports via Grep (^from|^import)
  3. Build dependency graph
  4. Order: leaves first, entry points last

Output

Tree:

main.py
├── app.py
│   ├── handlers/api.py
│   │   └── agents/orchestrator.py
│   └── slack/events.py
└── config.py

Reading Order:

 1. config.py              settings
 2. core/logging.py        infrastructure
 3. clients/bq.py          external client
 4. agents/base.py         core logic
 5. agents/bq/tools.py     implementation
 6. agents/orchestrator.py main agent
 7. handlers/api.py        HTTP layer
 8. app.py                 entry point

fntune/skills/tree/main/trace/skills/trace commit a46a7320d7

Frequently asked questions

npx skillmds@latest add fntune/trace