SkillsReviewed · nikolai-vysotskyi

trace-mcp-codemod

trace-mcp-codemod is a skill for developers using AI coding assistants to make repeated code edits, but it requires trace-mcp tools that the skill file does not supply. It describes previewing regex replacements, narrowing affected files, applying changes and checking the results.

Researched 16 Nov 2026

In short.

trace-mcp-codemod is an instruction skill for developers who want AI assistants to make repeated code changes, but its usefulness depends on an available trace-mcp installation. It directs assistants to use apply_codemod whenever an edit pattern occurs at least twice, starting with a dry-run preview. The instructions cover file filtering, multiline matching, a flag for larger changes, reindexing and follow-up checks. Tool implementation, installation, compatibility, costs and measured benefits are not established by the supplied files. Nothing was executed.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is skills/trace-mcp-codemod in nikolai-vysotskyi/trace-mcp. The supplied manifest marks that scope complete and lists SKILL.md as its sole selected file, with repository-root LICENSE as the related notice outside the folder. Coverage includes those instruction and notice texts at revision 5d50afb586a6d7908c54f0eb6d8e4efdb42b8c66. It excludes the trace-mcp implementation, companion skills, installation documentation and repository-wide behavior. No transformations, reindexing, tests or quality gates were executed. Runtime correctness, compatibility, performance and operational cost remain unassessed.

The overview

Identity

The resource is the trace-mcp-codemod instruction skill in nikolai-vysotskyi/trace-mcp. Its selected file, skills/trace-mcp-codemod/SKILL.md, tells an AI coding assistant how to use existing trace-mcp tools for repeated mechanical edits. It contains instructions and examples rather than the codemod engine. The version-specific folder is [https://github.com/nikolai-vysotskyi/trace-mcp/tree/5d50afb586a6d7908c54f0eb6d8e4efdb42b8c66/skills/trace-mcp-codemod].

Assessment

The skill provides a concrete sequence for bulk edits: preview matches, narrow the scope, apply replacements and verify the result. Its main strength is making those review steps explicit. The claim that repeated Edit calls waste tokens or cause more errors has no supporting measurements here, and the two-occurrence trigger is the author's workflow rule rather than a demonstrated efficiency threshold.

Users

The intended users are developers working through AI coding assistants on repeated changes within one file or across a repository. Examples include import-path updates, repeated API replacements and adding keywords or decorators. Beginners will need enough familiarity with regular expressions and code review to assess the preview; experienced developers can use the documented controls to scope larger transformations.

Capabilities

The skill documents apply_codemod parameters for a search pattern, replacement text, file glob, additional content filter, multiline matching and dry-run mode. It says changes affecting more than 20 files need confirm_large: true. It also describes plan_batch_change as preparation for package-spanning or version-aware changes. These are documented tool behaviors; the selected file does not implement them.

Using it

Requirements

Following the workflow requires an assistant that can load the skill and call trace-mcp's apply_codemod tool, with access to the intended project files. Applying edits requires permission to change those files. Verification requires the project's tests or the referenced check_quality_gates tool. Supported assistant hosts, operating systems, runtimes, trace-mcp versions and authentication requirements are not specified.

Mechanism

The assistant supplies a pattern and replacement to apply_codemod. A dry run, described as the default, presents matched files and surrounding context for review. file_pattern restricts candidate paths, while filter_content further restricts files using another content pattern. The source says applying a codemod reindexes internally, so register_edit is unnecessary. Matching semantics, reindexing reliability and syntax awareness are not established.

Setup

The selected file supplies no installation commands, server connection settings or host-specific skill-loading instructions. Those details must be established before its examples can be used. Once compatible tools are available, the documented starting point is an explicitly scoped dry run, followed by inspection of matched files, context and replacement correctness before enabling writes.

Example

The first example previews replacing oldFunction( with newFunction( in files matching src/**/*.ts. Its pattern escapes the opening parenthesis so it is matched literally, and dry_run is true. After reviewing the matches, the documented application step changes dry_run to false; changes affecting more than 20 files also require confirm_large: true. This is a source example, with no demonstrated output or test result.

Assessment & evidence

Limitations

The skill explicitly calls for reviewing false positives, so a matching pattern should not be treated as proof that an edit is correct. The supplied evidence does not establish syntax-aware transformations, rollback, atomic writes, handling of partial failures or behavior preservation. A dry-run preview and the large-change flag support review, but their implementation and effectiveness were not assessed.

Fit reasoning

The strongest fit is a repeated transformation whose intended matches can be described precisely and checked in a preview. File globs and an additional content filter offer useful ways to reduce accidental matches. Changes requiring different treatment at each occurrence need more judgment than this mechanical workflow establishes. For those cases, the source provides no evidence that applying one replacement rule preserves program behavior.

Alternatives

For renames, the file directs users toward apply_rename and a separate trace-mcp-refactoring skill. It contrasts bulk codemods with repeated Edit calls and describes plan_batch_change as a planning companion for larger changes. The rename skill, tool implementations and comparative results are outside the supplied evidence, so relative correctness, speed and cost remain unknown.

Evidence

The available source consists of the complete selected SKILL.md and the repository-root LICENSE at one repository revision. The original skill text is available at [https://raw.githubusercontent.com/nikolai-vysotskyi/trace-mcp/5d50afb586a6d7908c54f0eb6d8e4efdb42b8c66/skills/trace-mcp-codemod/SKILL.md]. It supports statements about the prescribed workflow and example parameters. No server implementation, execution logs, benchmarks or test results are included; nothing was run.

Access & freshness

Costs

Operational cost is unknown. The files provide no provider pricing, subscription requirements, infrastructure estimates or measured token usage. The skill asserts that bulk codemods avoid waste from repeated edits, but no cost comparison supports that claim. The MIT permission to use the software free of charge does not establish the cost of an assistant or trace-mcp deployment.

Rights

The repository-root MIT License names Nikolai Vysotskyi as the 2026 copyright holder. It permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notices remain in copies or substantial portions. It supplies the software without warranty and disclaims liability. The full notice is available at [https://raw.githubusercontent.com/nikolai-vysotskyi/trace-mcp/5d50afb586a6d7908c54f0eb6d8e4efdb42b8c66/LICENSE].

Freshness

This description applies to revision 5d50afb586a6d7908c54f0eb6d8e4efdb42b8c66, supplied in a snapshot dated 16 November 2026. That date does not establish when the skill was last changed or released. No release number, supported trace-mcp version or later repository changes are established by the supplied files.

Next steps

Before adopting the skill, establish how your assistant loads it and whether the connected trace-mcp tools support the documented parameters. Start with a narrow dry-run pattern whose expected matches you understand. Inspect the preview, apply only the intended replacements, then review the resulting changes and run relevant tests or check_quality_gates with scope set to changed. These are recommended evaluation steps, with no execution results available here.

Evidence for this report

LICENSEnotice · checked 2026-11-16
skills/trace-mcp-codemod/SKILL.mdselected · checked 2026-11-16