nw-mikado-method

Orchestrate end-to-end refactoring workflows with Mikado method dependency mapping.

Updated Mar 18, 2024
One-click install
npx skills add https://github.com/v1bh0r/precise-ledger-pro --skill nw-mikado-method-v1bh0r
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nw-mikado-method
Source: https://github.com/v1bh0r/precise-ledger-pro/tree/main/nWave/skills/nw-mikado-method
Command: npx skills add https://github.com/v1bh0r/precise-ledger-pro --skill nw-mikado-method-v1bh0r

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides teams through safe, incremental refactoring when changes affect multiple classes or modules, reducing risk and preserving working software at every step.

Core Features & Use Cases

  • Structured exploration protocol for dependency discovery, cycle-based goal management, and explicit commit formats to preserve history.
  • Tree-based prerequisite mapping and bottom-up execution to minimize risk during large-scale architectural changes.
  • Use cases include refactoring across multiple classes/modules, decoupling dependencies, and migrating cross-cutting concerns while maintaining a shippable state.

Quick Start

Set a concrete refactoring goal, attempt a naive implementation, then log dependencies and revert to a clean baseline.

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 across multiple classes without breaking the codebase?

Safe refactoring across multiple classes requires mapping dependencies and executing changes bottom-up. This approach uses tree-based prerequisite graphs and deterministic rollback to maintain a shippable state throughout the architectural transformation.

What is the Mikado method for complex software refactoring?

The Mikado method is a structured exploration protocol for complex refactoring. It works by attempting a naive implementation, discovering dependencies, logging them into a prerequisite graph, and then reverting to a clean baseline before executing changes bottom-up.

How do I map dependencies before starting a large-scale architectural change?

To map dependencies for large-scale architectural changes, you attempt a naive implementation of your goal, log the resulting dependencies, and construct a tree-based prerequisite graph to guide safe, bottom-up execution.

When should I use a bottom-up execution strategy for codebase refactoring?

Bottom-up execution is ideal for codebase refactoring when changes span multiple modules and risk is high. It minimizes breakage by resolving prerequisite dependencies first, preserving working software at every step with deterministic rollback.

Does this refactoring approach require a specific testing framework or environment setup?

No specific testing framework is required, but a clean baseline state is essential. You must be able to revert naive implementation attempts and track explicit commits to preserve history and ensure deterministic rollback during dependency discovery.

What's the best way to decouple cross-cutting concerns while maintaining a shippable state?

The best way to decouple cross-cutting concerns while maintaining a shippable state is using structured dependency discovery and tree-based task management. This ensures incremental, explicit commits that keep the codebase working throughout the migration.