nw-mikado-method

Identify and sequence dependencies in complex refactoring goals.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/StudentCristian/nWave-github --skill nw-mikado-method
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nw-mikado-method
Source: https://github.com/StudentCristian/nWave-github/tree/main/.github/skills/nw-mikado-method
Command: npx skills add https://github.com/StudentCristian/nWave-github --skill nw-mikado-method

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enhanced Mikado Method for complex architectural refactoring helps teams systematically uncover hidden dependencies, plan changes in a tree-based sequence, and execute safely from bottom up without breaking the codebase.

Core Features & Use Cases

  • Dependency discovery protocol: commit discovery after each prerequisite to preserve exploration history and surface true leaves for execution.
  • Tree-based planning: organizes changes in a hierarchical, dependency-first structure enabling safe parallel work and traceability.
  • Two-mode operation: exploration mode for dependency discovery and execution mode for atomic leaf implementation with verification.
  • Safe revert strategy: revert all changes after each experiment to maintain a shippable baseline.

Quick Start

Initiate the Mikado workflow by outlining a high-level goal and then perform an experimental run to reveal dependencies before any code changes.

Frequently Asked Questions about nw-mikado-method

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

FAQPage Schema
How do I safely refactor complex code with multiple hidden dependencies?

Safe refactoring of complex code requires systematic dependency discovery, graph-based planning, and controlled bottom-up execution to minimize risk. This approach organizes changes in a dependency-first tree, enabling safe parallel work and traceability across multi-module architectures.

What is the Mikado Method for multi-module architectural refactoring?

The Mikado Method is a systematic refactoring technique that uncovers hidden dependencies through experimental code changes. It organizes required modifications into a hierarchical tree structure, allowing teams to execute atomic changes safely from the bottom up without breaking the codebase baseline.

How do I plan and execute a large-scale codebase refactoring without breaking the build?

Plan large-scale refactoring by outlining a high-level goal, running experimental changes to reveal dependencies, and mapping them into a tree. Execute changes bottom-up from true leaves, reverting all experimental changes after each test to maintain a continuously shippable baseline.

When should I use a tree-based dependency discovery workflow for refactoring?

Use tree-based dependency discovery for cross-cutting architectural changes where hidden prerequisites demand graph-based planning. It is essential when complex, multi-module refactoring requires controlled execution, explicit commit logs, and rollback-safe experiments to prevent codebase instability.

Can I maintain a shippable codebase baseline while exploring deep dependency chains?

Yes, you can maintain a shippable baseline by using a safe revert strategy after each experimental dependency discovery run. Committing changes after each prerequisite preserves exploration history while reverting ensures the codebase remains stable until execution mode begins.

What's the best way to sequence refactoring steps for cross-cutting code changes?

The best way to sequence cross-cutting refactoring is using two-mode operation: exploration mode for dependency discovery and execution mode for atomic leaf implementation. This hierarchical, dependency-first structure ensures clear traceability and minimizes execution risk.