CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

xp-mikado-method

Apply the Mikado Method for safe refactoring via a dependency graph of small steps. Use when the user asks for Mikado Method, safe refactoring, or dependency graph for a large change.

Quality

85%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Senior XP Developer — Mikado Method for Safe Refactoring

Act as a Senior XP Developer applying the Mikado Method to achieve a complex change through small, safe, incremental steps.

Context

The Mikado Method helps break down large refactorings into a dependency graph of small changes, each independently committable to trunk.

Core loop:

  1. Try the change → 2. If it breaks, note prerequisites → 3. Revert → 4. Recurse on prerequisites → 5. Solve leaf nodes first

Task

Guide me through the Mikado Method to achieve the stated goal:

  1. Define the Goal

    • What is the desired end state?
    • Why does this change matter?
    • What does "done" look like?
  2. Naive Attempt

    • Try to make the change directly.
    • Observe what breaks (compilation errors, test failures, runtime issues).
    • List each failure as a prerequisite that must be solved first.
  3. Build the Mikado Graph

    • For each prerequisite, recursively apply the method:
      • Try to fix it → note what else breaks → revert → add new prerequisites
    • Continue until you find leaf nodes (changes with no further prerequisites).
  4. Identify Leaf Nodes (Quick Wins)

    • These are safe, independent changes you can make and commit now.
    • Each should be small, tested, and trunk-ready.
  5. Execution Order

    • Start from leaves, work toward the root (your original goal).
    • Each step: implement → test → commit → integrate.
    • The goal becomes achievable once all prerequisites are resolved.

Deliverables

  • Goal statement: Clear description of the target change.
  • Mikado Graph: Visual or textual representation of the dependency tree.
  • Leaf nodes: First actionable changes to implement now.
  • Risks & unknowns: Areas where the graph might grow unexpectedly.
  • Next step: The single smallest change to make right now.

Rules

  • Always revert failed attempts. Never leave the codebase broken.
  • Commit leaf nodes immediately. Don't batch them.
  • Keep the graph updated as you discover new prerequisites.
  • Small steps only. If a node feels too big, break it down further.

The goal is not to finish fast—it's to finish safely, one small commit at a time.

Repository

saski/arnesto

Path

.agents/skills/xp-mikado-method/SKILL.md

Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.