memory-gate

Solid

Memory-First Gate (BLOCKING) and the Chesterton's Fence investigation protocol, split out of the memory router per ADR-063. Forces a memory search before you change existing code, constraints, or protocol, so the "why" is recovered before the fence comes down. Use when you say `memory-first gate`, `search memory before changing`, or `chesterton fence check`. Do NOT use for plain Tier 1 lookups (use memory-search) or recording a session (use memory-reflexion).

AI & Automation 38 stars 13 forks Updated today MIT

Install

View on GitHub

Quality Score: 80/100

Stars 20%
53
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Memory Gate The Memory-First Gate and its investigation protocol, extracted from the `memory` router per ADR-063 (memory-skill decomposition). `memory` still routes here; an agent about to change an existing system loads this sub-skill instead of the full memory surface. The gate is one operation with a single rule: before you change something that already exists, search memory for why it exists. The search uses the canonical Tier 1 script; this sub-skill owns the enforcement semantics (ADR-070) and the Chesterton's Fence framing, not the search implementation. ## Triggers Use this skill when the user says: - `memory-first gate` to apply the BLOCKING pre-change check - `search memory before changing` to recover historical context first - `chesterton fence check` to investigate why a system exists before removing it ## Memory-First Gate (BLOCKING) Before changing existing systems, you MUST: 1. Search memory for the topic you are about to change. 2. Review results for historical context. 3. If Tier 1 is insufficient, escalate to Tier 2 (episodes) or Tier 3 (causal). 4. Document findings in your decision rationale. 5. Only then proceed with the change. ```bash # Recover the "why" before you change the "what" SCRIPTS_DIR="${COPILOT_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT:-.claude}}/skills/memory/scripts" python3 "$SCRIPTS_DIR/search_memory.py" "[topic]" ``` **Why BLOCKING**: under 50% compliance with "check memory first" guidance when it is advisory. Making it BLOCKING achi...

Details

Author
rjmurillo
Repository
rjmurillo/ai-agents
Created
7 months ago
Last Updated
today
Language
Markdown
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category