Codehealth MCP
affaan-m/ECC
Real-time structural Code Health via CodeScene MCP — review before edits, verify score deltas after changes, gate commits and PRs.
Refactors code safely in projects indexed by trace-mcp: assess risk, find candidates, check impact and rename symbols across every file without missing a reference.
$ npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp-refactoring -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install nikolai-vysotskyi/trace-mcp trace-mcp-refactoring --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/nikolai-vysotskyi/trace-mcp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/trace-mcp-refactoring .claude/skills/trace-mcp-refactoring && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "trace-mcp-refactoring" agent skill from https://github.com/nikolai-vysotskyi/trace-mcp/tree/master/skills/trace-mcp-refactoring into .claude/skills/trace-mcp-refactoring/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trace-mcp-refactoring", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/nikolai-vysotskyi/trace-mcp/tree/master/skills/trace-mcp-refactoringType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp-refactoring -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install nikolai-vysotskyi/trace-mcp trace-mcp-refactoring --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nikolai-vysotskyi/trace-mcp.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/trace-mcp-refactoring .agents/skills/trace-mcp-refactoring && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "trace-mcp-refactoring" agent skill from https://github.com/nikolai-vysotskyi/trace-mcp/tree/master/skills/trace-mcp-refactoring into .agents/skills/trace-mcp-refactoring/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trace-mcp-refactoring", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp-refactoring -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install nikolai-vysotskyi/trace-mcp trace-mcp-refactoring --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nikolai-vysotskyi/trace-mcp.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/trace-mcp-refactoring .cursor/skills/trace-mcp-refactoring && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "trace-mcp-refactoring" agent skill from https://github.com/nikolai-vysotskyi/trace-mcp/tree/master/skills/trace-mcp-refactoring into .cursor/skills/trace-mcp-refactoring/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trace-mcp-refactoring", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/nikolai-vysotskyi/trace-mcp.git --path skills/trace-mcp-refactoring--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp-refactoring -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install nikolai-vysotskyi/trace-mcp trace-mcp-refactoring --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nikolai-vysotskyi/trace-mcp.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/trace-mcp-refactoring .gemini/skills/trace-mcp-refactoring && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "trace-mcp-refactoring" agent skill from https://github.com/nikolai-vysotskyi/trace-mcp/tree/master/skills/trace-mcp-refactoring into .gemini/skills/trace-mcp-refactoring/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trace-mcp-refactoring", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install nikolai-vysotskyi/trace-mcp trace-mcp-refactoringInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp-refactoring -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/nikolai-vysotskyi/trace-mcp.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/trace-mcp-refactoring .github/skills/trace-mcp-refactoring && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "trace-mcp-refactoring" agent skill from https://github.com/nikolai-vysotskyi/trace-mcp/tree/master/skills/trace-mcp-refactoring into .github/skills/trace-mcp-refactoring/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trace-mcp-refactoring", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp-refactoring -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install nikolai-vysotskyi/trace-mcp trace-mcp-refactoring --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nikolai-vysotskyi/trace-mcp.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/trace-mcp-refactoring .opencode/skills/trace-mcp-refactoring && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "trace-mcp-refactoring" agent skill from https://github.com/nikolai-vysotskyi/trace-mcp/tree/master/skills/trace-mcp-refactoring into .opencode/skills/trace-mcp-refactoring/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "trace-mcp-refactoring", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
trace-mcp-refactoringRefactors code safely in projects indexed by trace-mcp: assess risk, find candidates, check impact and rename symbols across every file without missing a reference.
The skill sets an order of work for renaming, extracting, restructuring or changing signatures in a project indexed by trace-mcp. It starts with assess_change_risk, which rates a file or symbol by churn, complexity, fan-in and fan-out, and test coverage. Then get_refactor_candidates finds real targets instead of guesses, get_change_impact returns the reverse-dependency graph of files, symbols and tests, and get_complexity_report records a baseline.
Renames follow a mandatory flow: check_rename detects collisions first, and apply_rename updates the definition, imports, re-exports, call sites, JSX usages and tests in one atomic operation. Editing with replace_all is ruled out because it misses import sites and cross-file usages. Function extraction goes through extract_function so closure variables are handled. Afterward the agent reindexes with register_edit, re-checks complexity, finds and runs the affected tests with get_tests_for, and runs check_quality_gates scoped to the changed files.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit a577015. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Trace-MCP Refactoring loads about 672 tokens when it runs. Until then it costs about 50 tokens; SKILL.md has 263 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from nikolai-vysotskyi/trace-mcp at commit a577015, republished under its MIT licence (© nikolai-vysotskyi). 263 words, ~672 tokens.
.claude/skills/trace-mcp-refactoring/SKILL.md (or your agent's skills folder).Use this skill whenever you are about to rename, restructure, extract, or otherwise refactor code in a project indexed by trace-mcp. The goal is to never break cross-file references and never guess at what is affected.
assess_change_risk({ file_path: "src/foo.ts" })
# or
assess_change_risk({ symbol_id: "<id>" })This returns the risk level of the target change based on churn, complexity, fan-in/fan-out, and test coverage. Use it to decide whether to proceed, add tests first, or split the change.
get_refactor_candidates()Do not guess. This surfaces high-complexity, high-churn, and anti-pattern-laden symbols that are the real refactor targets.
get_change_impact({ symbol_id: "<id>" })Returns the reverse-dependency graph: every file, symbol, and test that depends on the target. Review this list before editing.
get_complexity_report({ file_path: "src/foo.ts" })Gives you a baseline so you can verify the refactor actually reduced complexity.
Never rename with Edit and replace_all. It silently misses import sites, re-exports, type references, and cross-file usages.
# 1. Collision detection first
check_rename({ symbol_id: "<id>", target_name: "newName" })
# 2. Apply rename across ALL files (definition + every reference)
apply_rename({ symbol_id: "<id>", new_name: "newName" })apply_rename updates the definition, imports, re-exports, call sites, JSX usages, and tests in one atomic operation.
extract_function({
file_path: "src/foo.ts",
start_line: 42,
end_line: 67,
new_name: "computeTotals"
})Let trace-mcp handle the variable capture analysis — manual extraction routinely misses closure variables.
register_edit on each edited file to reindexget_complexity_report again to confirm the reductionget_tests_for the changed symbols — run themcheck_quality_gates with scope: "changed" to verify no regressions© nikolai-vysotskyi, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/trace-mcp-refactoring of nikolai-vysotskyi/trace-mcp.
Open the folder on GitHubat commit a577015
Trace-MCP Refactoring next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Trace-MCP Refactoring this skillnikolai-vysotskyi/trace-mcp | 189 | — | ~672 | Automated safety check: Pass | MIT | |
| Codehealth MCPaffaan-m/ECC | 277k | 1 repos | ~1.8k | Automated safety check: Pass | MIT | |
| Graph-Guided Safe Refactoringtirth8205/code-review-graph | 32k | 1 repos | ~332 | Automated safety check: Pass | MIT | |
| Roslynkmrpmorris/Roslynk | 136 | 1 repos | ~3.8k | Automated safety check: Pass | MIT | |
| Refactortermide/termide | 171 | — | ~2.8k | Automated safety check: Pass | MIT | |
| Idea MCPdtprj/dongting | 208 | — | ~698 | Automated safety check: Pass | Apache-2.0 |
affaan-m/ECC
Real-time structural Code Health via CodeScene MCP — review before edits, verify score deltas after changes, gate commits and PRs.
tirth8205/code-review-graph
Plans a refactor from a code dependency graph, previews renames before applying them and checks that the final impact matches the plan.
mrpmorris/Roslynk
How to use the Roslynk MCP tools (mcproslynk) effectively for .NET work.
termide/termide
Full-workspace code quality analysis and refactoring with validation
dtprj/dongting
IntelliJ IDEA MCP for Java code analysis, testing, refactoring, and project navigation.
adeze/raindrop-mcp
Refactoring MCP Tools for Better LLM Integration and Usability
nikolai-vysotskyi/trace-mcp
Use trace-mcp tools for code navigation, impact analysis, and framework-aware queries instead of Read/Grep/Glob/Bash.
nikolai-vysotskyi/trace-mcp
Replaces repeated hand edits with the trace-mcp apply_codemod tool, previewing matches in a dry run before bulk mechanical changes across one file or many.
nikolai-vysotskyi/trace-mcp
Runs trace-mcp security, quality-gate and antipattern checks before a commit or pull request, and builds a symbol-level diff for the PR description.
nikolai-vysotskyi/trace-mcp
Routes code exploration through trace-mcp's indexed dependency graph, using symbol search, outlines, call graphs and change-impact tools instead of Read, Grep and Glob.
Works with
Categories
Refactors code safely in projects indexed by trace-mcp: assess risk, find candidates, check impact and rename symbols across every file without missing a reference. The skill sets an order of work for renaming, extracting, restructuring or changing signatures in a project indexed by trace-mcp. It starts with assess_change_risk, which rates a file or symbol by churn, complexity, fan-in and fan-out, and test coverage.
Trace-MCP Refactoring fits situations like: renaming a class, function, method, variable or file across a codebase; extracting a function or splitting a module; changing a signature that has more than one call site; judging how risky a change is before touching it.
Run `npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp-refactoring -a claude-code`. Or copy the skill folder (skills/trace-mcp-refactoring in nikolai-vysotskyi/trace-mcp) into .claude/skills/trace-mcp-refactoring in your project. Claude Code loads it when a task matches its description.
Run `npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp-refactoring -a codex`. Or copy the skill folder (skills/trace-mcp-refactoring in nikolai-vysotskyi/trace-mcp) into .agents/skills/trace-mcp-refactoring in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nikolai-vysotskyi/trace-mcp --skill trace-mcp-refactoring -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/trace-mcp-refactoring, .gemini/skills/trace-mcp-refactoring, .github/skills/trace-mcp-refactoring and .opencode/skills/trace-mcp-refactoring in your project.
SKILL.md names no scripts, command-line tools or credentials: Trace-MCP Refactoring is instructions for the agent only. Our summary lists: A project indexed by the trace-mcp MCP server.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Trace-MCP Refactoring is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 672 tokens (SKILL.md is roughly 2.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Trace-MCP Refactoring: Codehealth MCP (affaan-m/ECC, 277k stars), Graph-Guided Safe Refactoring (tirth8205/code-review-graph, 32k stars), Roslynk (mrpmorris/Roslynk, 136 stars) and Refactor (termide/termide, 171 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
nikolai-vysotskyi (a GitHub user) maintains it in nikolai-vysotskyi/trace-mcp, which has 189 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 11, 2026.
Source: nikolai-vysotskyi/trace-mcp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.