trace-mcp
Use trace-mcp tools for code navigation, impact analysis, and framework-aware queries instead of Read/Grep/Glob/Bash. Activate…
Use trace-mcp apply_codemod for any bulk mechanical change instead of repeated Edit calls. Activate whenever the same edit pattern would be applied 2+ times, across one file or many.
Claude Code
$ npx -y skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp-codemod --agent claude-code
Codex
$ npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp-codemod -a codex -y
Cursor
$ npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp-codemod -a cursor -y
Gemini CLI
$ npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp-codemod -a gemini-cli -y
GitHub Copilot
$ npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp-codemod -a github-copilot -y
OpenCode
$ npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp-codemod -a opencode -y
Windsurf
$ npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp-codemod -a windsurf -y
name: trace-mcp-codemod description: Use trace-mcp apply_codemod for any bulk mechanical change instead of repeated Edit calls. Activate whenever the same edit pattern would be applied 2+ times, across one file or many.
`apply_codemod` is the correct tool for any repeated mechanical change. Using `Edit` for the same pattern twice or more is a waste of tokens and is error-prone.
If you are about to make the **same kind of change 2 or more times** — whether in one file or across many — stop and use `apply_codemod`. This includes:
No exceptions. "It's just three edits" is still a violation — use `apply_codemod`.
apply_codemod({
pattern: "oldFunction\\(",
replacement: "newFunction(",
file_pattern: "src/**/*.ts",
dry_run: true // default
})Review the preview: matched files, context lines, and replacement correctness. Look for false positives.
Use `filter_content` to only touch files that also contain a second marker:
apply_codemod({
pattern: "extractNodes\\(",
replacement: "extractNodes(ctx, ",
file_pattern: "src/**/*.ts",
filter_content: "import.*extractNodes",
dry_run: true
})For patterns that cross line boundaries, enable multiline mode:
apply_codemod({
pattern: "function\\s+foo\\([^)]*\\)\\s*\\{",
replacement: "async function foo() {",
multiline: true,
dry_run: true
})apply_codemod({ ..., dry_run: false })If more than 20 files are affected, add `confirm_large: true`.
For changes that span packages or require version awareness (e.g. upgrading a dependency), use `plan_batch_change` first:
plan_batch_change({
package: "lodash",
from_version: "4.17.0",
to_version: "5.0.0"
})This returns an impact report with all affected files and import references. Combine it with `apply_codemod` for the actual rewrite.
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 tools for code navigation, impact analysis, and framework-aware queries instead of Read/Grep/Glob/Bash. Activate…
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.