rmc-refactor-plan

Plan Rust refactors by orchestrating MCP tool calls and producing evidence-backed verdicts.

29|5|Updated Nov 24, 2025
One-click install
npx skills add https://github.com/molaco/rust-code-mcp --skill rmc-refactor-plan
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: rmc-refactor-plan
Source: https://github.com/molaco/rust-code-mcp/tree/main/skills/rmc-refactor-plan
Command: npx skills add https://github.com/molaco/rust-code-mcp --skill rmc-refactor-plan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you decide how to refactor a Rust symbol by turning uncertain API and code-structure questions into an evidence-backed plan you can act on.

Core Features & Use Cases

  • Evidence-first refactor recipes: Uses tool compositions to answer common refactor questions like downgrade pub to pub(crate), delete dead items, or assess whether to move code between crates.
  • Cross-crate impact analysis: Compares consumer/importer usage patterns to estimate blast radius and detect facade or API hygiene issues.
  • Semantic dedupe and complexity-aware targeting: Finds duplicate logic for extraction and prioritizes refactors using complexity and call-graph signals.

Quick Start

Ask for the refactor decision you want (for example, whether to delete a specific symbol) and follow the matching recipe to run the listed tool calls, review the evidence, then apply the verdict.

Frequently Asked Questions about rmc-refactor-plan

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I decide if a Rust pub item can be safely downgraded to pub(crate)?▼

To decide if a Rust pub item can be downgraded to pub(crate), you analyze cross-crate importer usage patterns to measure blast radius. This produces an evidence-backed verdict indicating whether the visibility downgrade is safe or blocked.

What's the best way to assess the blast radius before deleting dead Rust symbols?▼

Assess blast radius before deleting dead Rust symbols by selecting an evidence-gathering recipe that orchestrates call graph and semantic similarity tool calls. This generates summarized tool evidence to prioritize deletions by complexity.

How do I plan a Rust crate move or facade re-export without breaking consumers?▼

Plan a Rust crate move or facade re-export by comparing consumer and importer usage patterns across crates. This cross-crate impact analysis detects API hygiene issues and yields a go, block, or conditional verdict.

Can I use static analysis to find duplicate Rust logic for extraction and refactoring?▼

Yes, you can use static analysis to find duplicate Rust logic by applying semantic dedupe recipes. These recipes use semantic similarity and call-graph signals to target extraction opportunities and prioritize refactors.

Do I need a built and indexed hypergraph workspace to analyze Rust refactoring decisions?▼

Yes, a built and indexed hypergraph workspace is required. The refactoring plan orchestrates tool calls against this indexed environment to gather evidence for symbol-level and crate-level changes.