[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CCZTF7WF8K6EXQ7DQHGZ66":3,"skill-same:01M6CCZTF7WF8K6EXQ7DQHGZ66":91},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":14,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":48,"install":49,"resources":62},"01M6CCZTF7WF8K6EXQ7DQHGZ66","chestertons-fence",null,"Investigate historical context of existing code, patterns, or constraints before proposing changes. Automates git archaeology, PR\u002FADR search, and dependency analysis to prevent removing structures without understanding their purpose.","loriensleafs\u002Fbrain","loriensleafs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F315385?v=4","01M6CCYZETMCJPTHNS258YRCBC","Peter Kloss","01M6CCYZK25T8516A39S9PCJT7",0,"MIT","https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Fchestertons-fence\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31],"chestertons fence","pr","code","git","search","constraints","analysis","investigate","architect","critic","adr","context","dependency","2026-11-10 10:12:30",false,"---\nname: chestertons-fence\ndescription: Investigate historical context of existing code, patterns, or constraints before proposing changes. Automates git archaeology, PR\u002FADR search, and dependency analysis to prevent removing structures without understanding their purpose.\nlicense: MIT\nagents:\n  - analyst\n  - architect\n  - critic\nmodel: claude-sonnet-4-6\nmetadata:\n  version: 1.1.0\n  timelessness: 9\u002F10\n---\n\n# Chesterton's Fence Investigation\n\nEnforce epistemic humility before changing existing systems. Understand original purpose before proposing changes.\n\n## Quick Start\n\n```text\n# Investigate why code exists before changing it\n\u002Fchestertons-fence \"path\u002Fto\u002Ffile.py\" \"remove unused validation\"\n\n# Investigate an ADR before deprecating it\n\u002Fchestertons-fence \".agents\u002Farchitecture\u002FADR-005.md\" \"allow bash scripts\"\n```\n\n## Triggers\n\n| Phrase | Context |\n|--------|---------|\n| `why does this exist` | Investigating existing code or patterns |\n| `chestertons fence` | Explicit investigation request |\n| `before removing` | Planning deletion or replacement |\n| `investigate history` | Researching original rationale |\n| `prior art investigation` | ADR-required investigation |\n\n## Quick Reference\n\n| Input | Output | Destination |\n|-------|--------|-------------|\n| File path or ADR number | Investigation report | `analysis\u002F` folder in Brain memory |\n| Component description | Historical context summary | stdout (JSON) |\n\n## When to Use\n\nUse this skill BEFORE proposing changes to existing:\n\n- Code patterns or architectural decisions\n- ADRs, constraints, or protocol rules\n- Workflow configurations or CI pipelines\n- Skills, hooks, or agent prompts\n\n## Process\n\n```text\n1. Identify Structure       What exists? Where is it defined?\n       |\n       v\n2. Git Archaeology          git log, git blame to find origin commit\n       |\n       v\n3. PR\u002FADR Search            Find the PR or ADR with original rationale\n       |\n       v\n4. Dependency Analysis      What references or depends on this?\n       |\n       v\n5. Generate Report          Fill the investigation template\n       |\n       v\n6. Decision                 REMOVE | MODIFY | PRESERVE | REPLACE\n```\n\n### Step Details\n\n**Step 1: Identify Structure.** Locate the exact file, function, pattern, or constraint under investigation. Record its current form.\n\n**Step 2: Git Archaeology.** Run `git log --follow` and `git blame` on the target. Identify the commit that introduced it, the author, and the date.\n\n**Step 3: PR\u002FADR Search.** Search for the originating PR using `gh pr list --search`. Check `.agents\u002Farchitecture\u002F` for related ADRs. Look for comments explaining intent.\n\n**Step 4: Dependency Analysis.** Use `grep` or `Grep` tool to find all references. Map upstream and downstream dependencies. Identify what breaks if the structure is removed.\n\n**Step 5: Generate Report.** Use the template at `.agents\u002Ftemplates\u002Fchestertons-fence-investigation.md`. Fill all sections with evidence from steps 1 through 4.\n\n**Step 6: Decision.** Based on evidence, recommend one action:\n\n| Decision | When to Use |\n|----------|-------------|\n| PRESERVE | Original rationale still applies |\n| MODIFY | Purpose valid but implementation needs updating |\n| REPLACE | Better approach exists, original concern addressed |\n| REMOVE | Original rationale no longer applies, with evidence |\n\n## Usage\n\n```bash\n# Investigate a file or pattern\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Finvestigate.ts --target path\u002Fto\u002Ffile.py --change \"remove unused validation\"\n\n# Investigate an ADR\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Finvestigate.ts --target .agents\u002Farchitecture\u002FADR-005.md --change \"allow bash scripts\"\n\n# Output as JSON (for automation)\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Finvestigate.ts --target path\u002Fto\u002Ffile.py --change \"description\" --format json\n```\n\n## Integration with Agent Workflows\n\n| Agent | How to Integrate |\n|-------|------------------|\n| **Analyst** | Run this skill first when investigating changes. The report is a prerequisite for any change proposal. |\n| **Architect** | ADRs that deprecate or replace existing patterns MUST include a \"Prior Art Investigation\" section. Use this skill to generate it. |\n| **Implementer** | Before implementing deletions or major refactoring, verify an investigation report exists. If missing, route to analyst. |\n| **Critic** | When validating plans that remove or replace existing systems, check for investigation evidence. Auto-reject proposals without historical context. |\n\n## Anti-Patterns\n\n| Avoid | Why | Instead |\n|-------|-----|---------|\n| Removing code you do not understand | May break hidden invariants | Investigate first, then decide |\n| Assuming dead code is unused | Hyrum's Law: someone depends on it | Run dependency analysis |\n| Skipping PR\u002FADR search | Loses original design rationale | Always check git history and PRs |\n| Proposing replacement without evidence | Cannot compare tradeoffs | Document original constraints first |\n\n## Template\n\nInvestigation reports use the template at `.agents\u002Ftemplates\u002Fchestertons-fence-investigation.md`.\n","# Chesterton's Fence Investigation\n\nEnforce epistemic humility before changing existing systems. Understand original purpose before proposing changes.\n\n## Quick Start\n\n```text\n# Investigate why code exists before changing it\n\u002Fchestertons-fence \"path\u002Fto\u002Ffile.py\" \"remove unused validation\"\n\n# Investigate an ADR before deprecating it\n\u002Fchestertons-fence \".agents\u002Farchitecture\u002FADR-005.md\" \"allow bash scripts\"\n```\n\n## Triggers\n\n| Phrase | Context |\n|--------|---------|\n| `why does this exist` | Investigating existing code or patterns |\n| `chestertons fence` | Explicit investigation request |\n| `before removing` | Planning deletion or replacement |\n| `investigate history` | Researching original rationale |\n| `prior art investigation` | ADR-required investigation |\n\n## Quick Reference\n\n| Input | Output | Destination |\n|-------|--------|-------------|\n| File path or ADR number | Investigation report | `analysis\u002F` folder in Brain memory |\n| Component description | Historical context summary | stdout (JSON) |\n\n## When to Use\n\nUse this skill BEFORE proposing changes to existing:\n\n- Code patterns or architectural decisions\n- ADRs, constraints, or protocol rules\n- Workflow configurations or CI pipelines\n- Skills, hooks, or agent prompts\n\n## Process\n\n```text\n1. Identify Structure       What exists? Where is it defined?\n       |\n       v\n2. Git Archaeology          git log, git blame to find origin commit\n       |\n       v\n3. PR\u002FADR Search            Find the PR or ADR with original rationale\n       |\n       v\n4. Dependency Analysis      What references or depends on this?\n       |\n       v\n5. Generate Report          Fill the investigation template\n       |\n       v\n6. Decision                 REMOVE | MODIFY | PRESERVE | REPLACE\n```\n\n### Step Details\n\n**Step 1: Identify Structure.** Locate the exact file, function, pattern, or constraint under investigation. Record its current form.\n\n**Step 2: Git Archaeology.** Run `git log --follow` and `git blame` on the target. Identify the commit that introduced it, the author, and the date.\n\n**Step 3: PR\u002FADR Search.** Search for the originating PR using `gh pr list --search`. Check `.agents\u002Farchitecture\u002F` for related ADRs. Look for comments explaining intent.\n\n**Step 4: Dependency Analysis.** Use `grep` or `Grep` tool to find all references. Map upstream and downstream dependencies. Identify what breaks if the structure is removed.\n\n**Step 5: Generate Report.** Use the template at `.agents\u002Ftemplates\u002Fchestertons-fence-investigation.md`. Fill all sections with evidence from steps 1 through 4.\n\n**Step 6: Decision.** Based on evidence, recommend one action:\n\n| Decision | When to Use |\n|----------|-------------|\n| PRESERVE | Original rationale still applies |\n| MODIFY | Purpose valid but implementation needs updating |\n| REPLACE | Better approach exists, original concern addressed |\n| REMOVE | Original rationale no longer applies, with evidence |\n\n## Usage\n\n```bash\n# Investigate a file or pattern\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Finvestigate.ts --target path\u002Fto\u002Ffile.py --change \"remove unused validation\"\n\n# Investigate an ADR\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Finvestigate.ts --target .agents\u002Farchitecture\u002FADR-005.md --change \"allow bash scripts\"\n\n# Output as JSON (for automation)\nbun run ${CLAUDE_SKILL_DIR}\u002Fscripts\u002Finvestigate.ts --target path\u002Fto\u002Ffile.py --change \"description\" --format json\n```\n\n## Integration with Agent Workflows\n\n| Agent | How to Integrate |\n|-------|------------------|\n| **Analyst** | Run this skill first when investigating changes. The report is a prerequisite for any change proposal. |\n| **Architect** | ADRs that deprecate or replace existing patterns MUST include a \"Prior Art Investigation\" section. Use this skill to generate it. |\n| **Implementer** | Before implementing deletions or major refactoring, verify an investigation report exists. If missing, route to analyst. |\n| **Critic** | When validating plans that remove or replace existing systems, check for investigation evidence. Auto-reject proposals without historical context. |\n\n## Anti-Patterns\n\n| Avoid | Why | Instead |\n|-------|-----|---------|\n| Removing code you do not understand | May break hidden invariants | Investigate first, then decide |\n| Assuming dead code is unused | Hyrum's Law: someone depends on it | Run dependency analysis |\n| Skipping PR\u002FADR search | Loses original design rationale | Always check git history and PRs |\n| Proposing replacement without evidence | Cannot compare tradeoffs | Document original constraints first |\n\n## Template\n\nInvestigation reports use the template at `.agents\u002Ftemplates\u002Fchestertons-fence-investigation.md`.\n",{"name":5,"model":37,"agents":38,"license":15,"metadata":40,"description":7},"claude-sonnet-4-6",[39,27,28],"analyst",{"version":41,"timelessness":42},"1.1.0","9\u002F10","main","2bd10cb7ca989f88dbf338b57957763718eda59b","templates\u002Fskills\u002Fchestertons-fence","https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain","https:\u002F\u002Fgithub.com\u002Floriensleafs","2026-03-11 23:51:59",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add loriensleafs\u002Fbrain --skill chestertons-fence",{"tool":55,"command":56},"bunx","bunx skills add loriensleafs\u002Fbrain --skill chestertons-fence",{"tool":58,"command":59},"pnpm","pnpm dlx skills add loriensleafs\u002Fbrain --skill chestertons-fence","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Fchestertons-fence\u002FSKILL.md",true,[63,68,74,80,84,87],{"path":64,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"LICENSE","许可证",1063,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdev-tools\u002F1sh1ro-coinfeeds-api\u002FLICENSE",{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Faccess.md","REFERENCE","参考文档",346,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdev-tools\u002F1sh1ro-coinfeeds-api\u002Freferences\u002Faccess.md",{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"scripts\u002Fcoinfeeds_request.py","SCRIPT","脚本",2689,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdev-tools\u002F1sh1ro-coinfeeds-api\u002Fscripts\u002Fcoinfeeds_request.py",{"path":81,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Finvestigate.ts",6916,"https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Fchestertons-fence\u002Fscripts\u002Finvestigate.ts",{"path":85,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":86},"SOURCE.md","https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdev-tools\u002F1sh1ro-coinfeeds-api\u002FSOURCE.md",{"path":88,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":89,"sourceHtmlUrl":90},"TRUST.auto.yaml",2186,"https:\u002F\u002Fgithub.com\u002Fjiayaoqijia\u002Fcryptoskill\u002Fblob\u002Fmain\u002Fskills\u002Fdev-tools\u002F1sh1ro-coinfeeds-api\u002FTRUST.auto.yaml",[92,107,123,145,166,190],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":32},"01M6CD3KHDHPR633RVP95G4XWN","validation-authority","Treat upstream validators as authoritative. Align local config to them. Use when validation fails unexpectedly, before modifying validator behavior, or when tempted to change upstream tool code.","https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Fvalidation-authority\u002FSKILL.md",[],[99,100,101,102,103,104,105,27,21,106],"validation authority","validation","config","use","implementer","behavior","tool","change",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":32},"01M6CD3H29Q8FWN9YETT8YVQTS","using-brain-memory","Guidance for using Brain semantic memory effectively. Applies Zettelkasten atomic note principles with observations and relations. Use when deciding whether to query or create notes, structuring note content, or understanding the semantic knowledge graph.","https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Fusing-forgetful-memory\u002FSKILL.md",[],[114,115,116,117,118,119,120,102,30,121,122],"using brain memory","memory","content","create","notes","graph","guidance","knowledge","knowledge graph",{"skillNo":124,"name":125,"nameZh":6,"description":126,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":127,"categories":128,"keywords":129,"publishedAt":32},"01M6CD3E2KTTMNSWXRJAAZA7D1","threat-modeling","Structured security analysis using OWASP Four-Question Framework and STRIDE methodology. Generates threat matrices with risk ratings, mitigations, and prioritization. Use for attack surface analysis, security architecture review, or when asking what can go wrong.","https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Fthreat-modeling\u002FSKILL.md",[],[130,131,132,102,133,27,134,135,25,136,137,138,139,140,141,142,143,144],"threat","threat modeling","prioritization","question","architecture review","stride","risk","owasp","methodology","framework","security analysis","architecture","security","go","review",{"skillNo":146,"name":147,"nameZh":6,"description":148,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":149,"categories":150,"keywords":156,"publishedAt":32},"01M6CD3BC6G0Q2MDNW6X51XHBQ","taste-lints","Custom lints with agent-readable remediation instructions. Enforces taste invariants (file size, naming conventions, structured logging, complexity) and surfaces errors that agents can act on directly. Use when writing or reviewing code to catch style violations early.","https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Ftaste-lints\u002FSKILL.md",[151],{"categoryNo":152,"categoryName":153,"taxonomyType":154,"taxonomyTypeDesc":155},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[157,103,158,159,102,160,161,162,163,164,21,165],"taste lints","surfaces","complexity","instructions","remediation","file","logging","qa","writing",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":32},"01M6CD37Z7VD22BH42TG0GM66V","style-enforcement","Validate code against style rules from .editorconfig, StyleCop.json, and Directory.Build.props. Detects line ending violations, naming convention issues, indentation problems, and charset mismatches across C#, Python, TypeScript, and JavaScript. Produces JSON reports for pre-commit hooks and CI pipelines.","https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Fstyle-enforcement\u002FSKILL.md",[],[173,174,175,176,177,178,103,179,180,181,182,183,164,184,21,185,186,187,188,189],"style enforcement","enforcement","ci","pipelines","directory","hooks","Rules","json","pre-commit","editorconfig","reports","issues","validate","commit","javascript","python","typescript",{"skillNo":191,"name":192,"nameZh":6,"description":193,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":194,"categories":195,"keywords":196,"publishedAt":32},"01M6CD35JW73TPMCZBF9DTDEE8","steering-matcher","Match file paths against steering file glob patterns to determine applicable steering guidance. Use when orchestrator needs to inject context-aware guidance based on files being modified.","https:\u002F\u002Fgithub.com\u002Floriensleafs\u002Fbrain\u002Fblob\u002Fmain\u002Ftemplates\u002Fskills\u002Fsteering-matcher\u002FSKILL.md",[],[197,102,198,199,30,200,120,162],"steering matcher","files","haiku","orchestrator"]