Nw mikado

From nWave-ai/nWave · View interactive version

Nw mikado is an AI agent skill from the GitHub repository nWave-ai/nWave. [EXPERIMENTAL] Complex refactoring roadmaps with visual tracking

How to use this skill

Skill file

Code facts — resolve structural facts about code through code-fact CLI (vendor-neutral, bundled adapters: AST then TextSearch). Degrade LOUD. Never ad-hoc grep. Example: code-fact query.callers-of SYMBOL --root ROOT.

NW-MIKADO: Complex Refactoring with Mikado Method

EXPERIMENTAL: Under active development. Behavior and output format may change between versions.

Wave: CROSS_WAVE

Agent: Crafty (nw-software-crafter)

Command: *mikado

Overview

Plan and execute complex refactoring using the Mikado Method. Builds dependency {visualization} through iterative exploration|tracks discoveries via commits|executes leaf-to-goal bottom-up. For architectural changes spanning multiple classes where simple refactoring is insufficient.

Context Files Required

Agent Invocation

@nw-software-crafter

Execute \*mikado for {refactoring-goal}.

Context Files:

Configuration:

Success Criteria

Visualization labels: tree → "Tree", graph → "Graph". Use the selected visualization type in all output messages (e.g., "Wrote the Mikado tree" or "Wrote the Mikado graph").

Next Wave

Handoff To: {invoking-agent-returns-to-workflow}

Deliverables: Refactored codebase + Mikado {visualization} documentation

Examples

Example 1: Extract shared domain model

/nw-mikado "Extract shared domain model from monolithic service layer"

Crafty builds Mikado dependency {visualization} through iterative exploration, discovers 12 leaf nodes across 4 modules, executes bottom-up from leaves to goal with discovery commits at each step.

Expected Outputs

docs/mikado/{goal-name}.mikado.md
src/*                                (refactored implementation)
Discovery-tracking commits in git log
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.