chestertons-fence

chestertons-fence is a skill for Claude Code, Codex from deciqAI/knowledge-skills. It costs 124 tokens per session (1,862 once invoked), scanned A, original, MIT.

A rule for understanding why an existing rule, process, code path, or safeguard was created before removing it. The name comes from the idea that you should understand a fence before deciding it is unnecessary.

In plain words
What is it for?
Use it before removing code, validation, manual reviews, organisational processes, regulations, or other safeguards whose original purpose is unclear.
Why use it?
Unfamiliar code or procedures can look useless while protecting against an old problem or edge case. This reduces the risk of deleting something whose purpose has been forgotten.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before removing code, validation, manual reviews, organisational processes, regulations, or other safeguards whose original purpose is unclear.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/deciqai/knowledge-skills/chestertons-fence
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add deciqAI/knowledge-skills --skill chestertons-fence
Clone the repo
git clone --depth 1 https://github.com/deciqAI/knowledge-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for chestertons-fence

README.md
[![agentmods](https://agentmods.dev/badge/skills/deciqai/knowledge-skills/chestertons-fence/github.svg)](https://agentmods.dev/skills/deciqai/knowledge-skills/chestertons-fence)
Your own site
<a href="https://agentmods.dev/skills/deciqai/knowledge-skills/chestertons-fence"><img src="https://agentmods.dev/badge/skills/deciqai/knowledge-skills/chestertons-fence/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for chestertons-fence

Your own site · 80×15
<a href="https://agentmods.dev/skills/deciqai/knowledge-skills/chestertons-fence"><img src="https://agentmods.dev/badge/skills/deciqai/knowledge-skills/chestertons-fence.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 124 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,862 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00124 $0.01862
Opus 5.5 $0.00050 $0.00745
Sonnet 5.5 $0.00025 $0.00372
Haiku 4.5 $0.00012 $0.00186

Measured 1mo ago against content hash 48c8019a2acf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

chestertons-fence scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

chestertons-fence/SKILL.md · 125 lines

How it starts

The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Chesterton's Fence

Overview

Before removing a rule, process, code path, or institution — you must understand why it was put there. Only when you can articulate the original purpose are you qualified to decide whether it still applies. Three components: (1) "I can't see the purpose" is evidence about you, not the fence; (2) investigation is mandatory, not optional; (3) demonstrated understanding is the prerequisite for change.

Composes with survivorship-bias, second-order-thinking, feedback-loops, first-principles.

When to Use

  • A rule, process, code path, or practice is proposed for removal
  • New leadership restructuring an organization with unfamiliar practices
  • A developer "cleaning up" code whose purpose isn't documented
  • A regulator or legislator repealing existing protections
  • Someone says "why is this here?", "let's just remove this", "this seems useless"
  • An AI-assisted rewrite/refactor proposes deleting an "ugly" guardrail, edge-case branch, validation, or manual review gate the model calls redundant

Not when: fence history is fully documented and purpose is confirmed obsolete; reformer is the original builder with full rationale understood.

Coaching Novices (Adaptive Front Door)

  • Engine mode: user has a concrete fence-removal case → run The Process directly.
  • Coach mode: user is unfamiliar or has no concrete case → guide step by step.

In Coach mode, respond one step at a time. Each [WAIT] is a hard stop — output only that step's question, then stop.

  1. One-line: before removing a rule/code/process whose purpose you can't articulate, investigate — your inability to see the purpose is data about you, not the rule.
  2. Check fit: if the fence's history is fully documented and the purpose is clearly obsolete, the investigation is already done.
  3. Elicit the specific fence and proposed removal. What's being removed? Who proposes it? Why?

[WAIT — do not advance until user responds]

  1. One question at a time: when was the fence put there? by whom? what problem was it solving? does that problem still exist? are there other defenses?

[WAIT — do not advance until user responds]

  1. Close: investigation summary (purpose found / not found) + decision (remove / keep / modify) + documentation so the next reformer can read the history.

[WAIT — do not advance until user responds]

Read the full file on GitHub · 125 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed 48c8019a2acf
  2. 3mo ago First seen · 125 lines · 124 tokens per session scan A 8e95b962406d

Subscribe to this mod's changes

chestertons-fence is a skill published in the GitHub repository deciqAI/knowledge-skills (18 stars, last pushed 1mo ago), licensed MIT. It adds 124 tokens to every session and 1,862 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

chestertons-fence compared with skills from other repositories

chestertons-fence next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
chestertons-fencedeciqAI/knowledge-skillsSkill181mo agoMITA124Claude Code, Codex
ai-adoption-leadalebgl77/claude-incSkill233d agoMITA24Claude Code
compliance-checkalebgl77/claude-incSkill233d agoMITA21Claude Code
ui-ux-pro-maxalebgl77/claude-incSkill233d agoMITA23Claude Code
cto-advisoralebgl77/claude-incSkill233d agoMITA18Claude Code
growth-engineeringalebgl77/claude-incSkill233d agoMITA16Claude Code
ai-seoalebgl77/claude-incSkill233d agoMITA21Claude Code