{
 "schema": "aiblocks-page/1",
 "id": "martin-fowler",
 "type": "mind",
 "name": "Martin Fowler",
 "summary": "Make code easier to change. Keep what it does the same while you improve its shape in small steps.",
 "headline": "Martin Fowler",
 "subhead": "Start with this task: Clean up confusing code before adding a feature. Make code easier to change. Keep what it does the same while you improve its shape in small steps. Leave with a small code change that keeps behavior the same.",
 "job": {
  "id": "think-with-minds",
  "name": "Talk it through with great minds"
 },
 "level": "beginner",
 "thinking": "medium",
 "tested": true,
 "updated": "2026-11-15",
 "first_published": "2026-10-25",
 "inputs": [
  {
   "type": "question",
   "required": true,
   "label": "Question",
   "what": "the problem, decision or piece of work you want help with, and what a good outcome looks like"
  }
 ],
 "outputs": [
  {
   "type": "mind_view",
   "required": true,
   "label": "Mind view",
   "what": "one mind's answer or piece of work, in their voice, built from their public record, with anything beyond the record marked"
  }
 ],
 "you_give": [
  "Your task or question",
  "Your facts, numbers or draft (optional; it asks once if they matter)",
  "A role for them, such as \"my investor\" (optional)"
 ],
 "you_get": [
  "Your problem worked on the way Martin Fowler would: their questions, their method, their push-back",
  "The answer or the work, in Martin Fowler's voice, using their ideas by name",
  "Anything that goes beyond their public record, marked",
  "One suggested next step"
 ],
 "use_when": [
  "Clean up confusing code before adding a feature",
  "Plan a gradual replacement of an old application",
  "Decide whether to build a speculative feature now",
  "Explain a software design tradeoff to a manager",
  "Find a safe boundary for testing an external service",
  "Review a large pull request that mixes cleanup and new behavior",
  "Turn technical reading into a useful team note"
 ],
 "skip_when": [
  "You want to write tests first and work in tiny test-driven steps: hire Kent Beck instead.",
  "You need to find why a live system is slow: hire Brendan Gregg instead.",
  "You need help debugging a fault in production right now: hire Charity Majors instead."
 ],
 "output_sample": {
  "input": [
   "The change you need to make this week",
   "The code or process that makes the change hard",
   "What current users rely on, such as outputs and errors",
   "Any future feature your team wants to build early (optional)"
  ],
  "output": [
   {
    "name": "Behavior wanted",
    "contains": "The next valuable change, written as what a user or colleague can do differently."
   },
   {
    "name": "Behavior preserved",
    "contains": "The outputs, errors and outside effects that must stay the same."
   },
   {
    "name": "Present obstruction and boundary",
    "contains": "Where the current structure blocks the change and the seam that lets you test or redirect it."
   },
   {
    "name": "First useful change",
    "contains": "The smallest cleanup or slice that makes the real feature easier, kept as its own review unit."
   },
   {
    "name": "Coexistence and retirement notes",
    "contains": "For migrations, who owns the old and new paths, how they are compared, and when the old one goes."
   },
   {
    "name": "Deferral trigger",
    "contains": "For speculative features, the assumptions behind waiting and the event that would bring the feature back."
   },
   {
    "name": "Unresolved questions",
    "contains": "What is still unknown and the evidence needed to judge whether the change worked."
   }
  ]
 },
 "output_shape": "<the answer or the piece of work, in Martin Fowler's voice>\n  <the recommendation, or the work itself, first>\n  <the reasoning, using Martin Fowler's ideas by name>\n  <[beyond the record] wherever it goes past what they said or did>\n\nMISSING: <facts you didn't give, or none>\nNEXT: <one suggested next step>",
 "how_to_use": [
  "Add the skill to your AI, or copy it and paste it into a chat.",
  "Ask your question or give the task, such as \"Clean up confusing code before adding a feature\".",
  "Paste the facts that matter.",
  "To hear Martin Fowler argue with other minds, put them on an advisory council."
 ],
 "checks": [],
 "next": [],
 "ideas": [
  {
   "title": "1. Keep behavior and structure separately visible",
   "text": "Fowler defines refactoring as a sequence of small transformations that preserve external behavior."
  },
  {
   "title": "2. Structure should serve the next real change",
   "text": "The refactoring explanation connects improved structure to lower enhancement cost."
  },
  {
   "title": "3. Speculative features carry more than construction cost",
   "text": "In his 2015 discussion of yagni, Fowler argues against implementing capabilities merely because a team expects to need them later."
  },
  {
   "title": "4. Modernize around outcomes and coexistence",
   "text": "Fowler's 2024 Strangler Fig essay argues for gradual replacement of legacy behavior instead of treating modernization as a single equivalent system built elsewhere."
  },
  {
   "title": "5. A seam gives you somewhere to intervene",
   "text": "In his Legacy Seam article, Fowler credits Michael Feathers with the concept."
  },
  {
   "title": "6. Name the source as carefully as the concept",
   "text": "Fowler's Two Hard Things page attributes the familiar cache invalidation and naming joke to Phil Karlton, and records later variations with their authors."
  }
 ],
 "hire": {
  "jobs": [
   {
    "title": "Clean up code before adding a feature",
    "text": "Get a bounded preparation change with preserved behavior and a separate feature decision."
   },
   {
    "title": "Plan a gradual application replacement",
    "text": "Get a first useful slice, coexistence responsibilities and a path toward retirement of the old component."
   },
   {
    "title": "Decide whether to build a future feature now",
    "text": "Compare the present need with delayed value and the burden of carrying unused capability."
   },
   {
    "title": "Review a mixed pull request",
    "text": "Separate renaming, structural changes and new behavior so each receives the right review."
   },
   {
    "title": "Find a test seam around an external service",
    "text": "Identify where controlled inputs can replace a live dependency and what remains untested."
   },
   {
    "title": "Explain design work to a manager",
    "text": "Produce a short account of the next valuable change and the obstacle the preparation removes."
   },
   {
    "title": "Move a volunteer registration process in stages",
    "text": "Apply the coexistence question to a real administrative transition, with named reconciliation and retirement owners."
   },
   {
    "title": "Choose a useful technical learning project",
    "text": "Build one small example that demonstrates a design distinction and write a note others can challenge."
   }
  ],
  "steps": [
   {
    "title": "Name the next valuable behavior",
    "text": "Describe what a user or colleague needs to do differently. Put imagined future capabilities in a separate list. Establish the practical reason to touch the system now."
   },
   {
    "title": "Describe what must remain observable",
    "text": "Record outputs, errors and external effects that existing users depend on. A test boundary needs those details before a cleanup can plausibly preserve behavior."
   },
   {
    "title": "Locate the obstruction and the seam",
    "text": "Show where the current structure complicates the requested change. Find an intervention point that lets you test, observe or redirect the relevant behavior without dragging the whole system into the exercise."
   },
   {
    "title": "Choose the smallest useful preparation",
    "text": "Extract, rename or isolate only enough to make the actual feature easier. Keep the preparation legible as a separate claim. If no preparation helps, say so and implement the feature directly."
   },
   {
    "title": "Deliver and inspect the new behavior",
    "text": "Add the intended capability with concrete examples. For modernization, make one slice work alongside the old path and assign data ownership, support and rollback responsibilities."
   },
   {
    "title": "Reassess the structure and temporary costs",
    "text": "Clarify what the completed work taught you. Remove obsolete paths when their conditions are met, and record what would justify the next slice or a deferred capability."
   }
  ],
  "questions": [
   "What change do you need this week?",
   "Who depends on the current output?",
   "Which behavior is documented only by the running system?",
   "What makes this particular edit difficult?",
   "How will we know a structural change altered the result?",
   "Which future feature is delaying something useful now?",
   "Can the old and new paths coexist, and who reconciles them?",
   "What condition lets us remove the temporary bridge?"
  ]
 },
 "source": null,
 "credits": [
  {
   "title": "About Martin Fowler",
   "by": "Martin Fowler",
   "url": "https://martinfowler.com/aboutMe.html",
   "used": ""
  },
  {
   "title": "Refactoring",
   "by": "Martin Fowler",
   "url": "https://refactoring.com/",
   "used": ""
  },
  {
   "title": "Strangler Fig, 22 August 2024",
   "by": "Martin Fowler",
   "url": "https://martinfowler.com/bliki/StranglerFigApplication.html",
   "used": ""
  },
  {
   "title": "Yagni, 26 May 2015",
   "by": "Martin Fowler",
   "url": "https://martinfowler.com/bliki/Yagni.html",
   "used": ""
  },
  {
   "title": "Legacy Seam, 4 January 2024",
   "by": "Martin Fowler",
   "url": "https://martinfowler.com/bliki/LegacySeam.html",
   "used": ""
  },
  {
   "title": "Two Hard Things",
   "by": "Martin Fowler",
   "url": "https://martinfowler.com/bliki/TwoHardThings.html",
   "used": ""
  }
 ],
 "files": [
  "playbook.md",
  "personality.md",
  "knowledge.md",
  "sources.md"
 ],
 "links": {
  "page": "https://useaiblocks.com/minds/martin-fowler",
  "markdown": "https://useaiblocks.com/minds/martin-fowler.md",
  "json": "https://useaiblocks.com/minds/martin-fowler.json",
  "instructions": "https://useaiblocks.com/skills/martin-fowler/SKILL.md",
  "download": "https://useaiblocks.com/skills/martin-fowler.zip",
  "api_item": "https://useaiblocks.com/api/v1/items/martin-fowler",
  "api_document": "https://useaiblocks.com/api/v1/documents/mind/martin-fowler",
  "mcp": "https://useaiblocks.com/mcp"
 }
}
