trace-mcp-codemod
Use trace-mcp apply_codemod for any bulk mechanical change instead of repeated Edit calls. Activate whenever the same edit…
Use trace-mcp tools for code navigation, impact analysis, and framework-aware queries instead of Read/Grep/Glob/Bash. Activate whenever the agent needs to explore, understand, or modify a codebase that has trace-mcp indexed.
Claude Code
$ npx -y skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp --agent claude-code
Codex
$ npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp -a codex -y
Cursor
$ npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp -a cursor -y
Gemini CLI
$ npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp -a gemini-cli -y
GitHub Copilot
$ npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp -a github-copilot -y
OpenCode
$ npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp -a opencode -y
Windsurf
$ npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp -a windsurf -y
name: trace-mcp description: Use trace-mcp tools for code navigation, impact analysis, and framework-aware queries instead of Read/Grep/Glob/Bash. Activate whenever the agent needs to explore, understand, or modify a codebase that has trace-mcp indexed.
trace-mcp is a framework-aware code intelligence MCP server. It exposes 182 tools that return semantic, structured results over a cross-language dependency graph. When trace-mcp is available, it is almost always cheaper and more accurate than native file tools.
Activate this skill whenever you need to:
**Do not use** `Read`, `Grep`, `Glob`, or shell `ls`/`find`/`cat`/`head`/`tail` for exploring source code (`.ts`, `.js`, `.py`, `.php`, `.go`, `.rb`, `.java`, etc.). Use trace-mcp tools instead. Native tools stay allowed only for non-code files (`.md`, `.json`, `.yaml`, configs) or immediately before an `Edit` on a known file.
1. `get_project_map` with `summary_only=true` — orient yourself to the project structure 2. `get_task_context` with `task: "<natural-language description>"` — gather all relevant code in a single call instead of chaining `search` → `get_symbol` → `Read`
| Task | trace-mcp tool | Instead of | |---|---|---| | Find a symbol by name | `search` | Grep | | Understand a file before editing | `get_outline` | Read (full file) | | Read one symbol's source | `get_symbol` | Read (full file) | | Multiple symbols + shared imports | `get_context_bundle` | chained `get_symbol` | | What breaks if I change X | `get_change_impact` | guessing | | Who calls this / what does it call | `get_call_graph` | Grep | | All usages of a symbol | `find_usages` | Grep | | Implementations of an interface | `get_implementations` | Grep / ls | | Classes implementing X | `search` with `implements` filter | Grep | | Tests for a symbol or file | `get_tests_for` | Glob + Grep | | Project overview | `get_project_map` (summary_only) | Bash ls/find | | Context for a task | `get_task_context` / `get_feature_context` | reading many files | | HTTP request flow | `get_request_flow` | reading route + controller files | | DB model relationships | `get_model_context` | reading model + migrations | | Component tree | `get_component_tree` | reading component files | | Circular dependencies | `get_circular_imports` | manual tracing | | Dead code / dead exports | `get_dead_code` (`mode: "exports_only"`) | Grep for unused | | Project health / coverage gaps | `self_audit` | manual inspection | | Complexity / hotspots | `get_complexity_report` / `get_risk_hotspots` | guessing | | List env keys / what config exists | `get_env_vars` (keys + types/formats only, never values) | `os.environ` dump, `cat` of a `.env` file |
inferred types/formats only — never values, so it is safe for secrets.
`get_env_vars { "file": ".env", "redacted": true }` gives a line-by-line redacted per-file view (keys + type hints, no values, preserves order/comments; requires `file`).
`get_task_context` — never by importing a module to see what it touches.
> **FORBIDDEN — never use these for env/config discovery (values leak into model context):** > > - never dump the environment: `python -c "import os; print(os.environ)"` or any > `os.environ` / `process.env` printout > - never import-diff the environment: `before = dict(os.environ)`, import a module, > then diff `os.environ` to see what it touched > - never `print(module.__file__)` for file discovery > - never `cat` or directly Read a `.env` file for discovery
1. **Batch independent queries.** Use `batch` when you need 2+ independent tool calls:
batch({ calls: [
{ tool: "get_outline", args: { path: "src/foo.ts" } },
{ tool: "get_outline", args: { path: "src/bar.ts" } },
{ tool: "search", args: { query: "handleRequest", kind: "function" } }
]})2. **Never read the same file twice.** Use `get_outline` once, then `get_symbol` for specific pieces. 3. **Prefer `get_context_bundle`** over chained `get_symbol` calls — it deduplicates shared imports. 4. **Read-before-Edit optimization.** When you must `Read` a file to edit it:
5. **Do not delegate code exploration to subagents.** Agent subprocesses carry ~50k tokens of overhead before doing anything. Use trace-mcp tools in the main conversation instead.
Framework-aware code intelligence MCP server — 91 framework integrations, 81 languages, 72.7% fewer input tokens to review a pull request, comprehension at parity
Use trace-mcp apply_codemod for any bulk mechanical change instead of repeated Edit calls. Activate whenever the same edit…
Run trace-mcp security, quality-gate, and antipattern checks before committing or opening a PR. Activate when the agent is about…
Safe refactoring workflow using trace-mcp — assess risk, find candidates, check impact, and rename symbols across all files…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.