/thinking-tools:chestertons-fencefrom thinking-tools
Investigates code, config, or processes before removing or refactoring them. Triggers when purpose is unclear or someone invokes Chesterton's Fence. Reconstructs why something was built using git history, tests, and memory tools.
Ships in thinking-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
"If you don't see the use of it, I certainly won't let you clear it away. Go away and think." — G.K. Chesterton, The Thing (1929)
Not understanding why something exists is the worst possible reason to remove it. The inability to see a purpose signals missing context, not absence of purpose. Every fence was erected by someone who saw a reason for it. Before tearing it down, reconstruct that reason.
Before removing, changing, or simplifying anything whose purpose is not fully understood, complete this investigation. Do not skip steps.
State clearly what is being considered for removal or change, and why it seems unnecessary. Name the assumption: "I believe this exists because..." or "I don't know why this exists."
Investigate why the fence was built. Use every available source:
These tools are optional, so gate on each before using it:
command -v mempalace >/dev/null 2>&1 && mempalace search "<the file, function, config key, or error it guards against>". Narrow a noisy result with --wing/--room (mempalace status lists what exists; --wing claude_history restricts the search to past conversations).command -v qmd >/dev/null 2>&1 && qmd query "<why the fence exists>" (qmd status shows which collections are indexed).Neither tool is the point. Search whatever other memory the session has in place too — Claude's own memory directory, a compounding-conventions doc, a claude-mem-style plugin, a team notes vault. When a source isn't installed, skip it without comment and rely on the rest. Quote what you do find, and say plainly when recall comes back empty or weak — a thin hit is not a rationale.
If the investigation leaves gaps — unclear commit messages, missing context, ambiguous purpose — ask the user directly. They may have institutional knowledge, historical context, or a relationship with the original author that code archaeology cannot surface. Example questions:
Exhaust the searchable sources first — including the memory search above, which may already hold the answer in the user's own words — then ask about what's left. Skip this step when the investigation in Step 2 produced a clear, confident answer. Use it when the picture is incomplete — half a story is more dangerous than no story at all.
With the history reconstructed (or honestly acknowledging gaps), answer:
Only after completing steps 1-3, choose one of:
| What it sounds like | What's really happening |
|---|---|
| "This is dead code, I'll just delete it" | Possibly alive in a path not yet explored |
| "This seems overly complex, let me simplify" | Complexity may encode hard-won edge case handling |
| "Nobody uses this anymore" | Verify with data, not assumption |
| "The tests pass without it" | Tests may not cover the scenario it protects |
| "I'll clean this up while I'm in here" | Scope creep into territory not yet understood |
What SKILL.md sets; muted values are Claude Code's defaults
Triggers on concerns about unintended side-effects, confusion about why something exists, or requests to delete or simplify 'unnecessary' code.
Three short reads, in order
npx claudepluginhub jtsternberg/claude-plugins --plugin thinking-tools5 skills in this plugin
/dont-lead-the-witnessUse when the user says 'don't lead the witness', or whenever you want someone's genuine, unprompted response: testing an agent or skill, asking a reviewer for a verdict, questioning the user, probing a real-world scenario. Ask the way the real situation would, with no hint of the answer you expect./interview-modeUse when the user says 'interview me', 'interview mode', or 'stop guessing' — or when a second attempt at the same artifact (email, doc, plan, naming, UI copy, design) gets rejected or rewritten. Stop generating variants; interview the user and build from their own words./no-meat-proxyOther plugins' skills for the same job