JohnWangggg

Memory Collider — Security skill for Claude Code

Security community

Local-first lifecycle control plane for agent skills: collides upstream changes, local edits, real session friction, and audit evidence into reviewable, rollback-able patches.

How to install Memory Collider

This entry records only its repository, not the path inside it, so there is no exact command to give. Open JohnWangggg/memory-collider and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Memory Collider does

Local-first lifecycle control plane for agent skills: collides upstream changes, local edits, real session friction, and audit evidence into reviewable, rollback-able patches.

Alternatives in Security

  • Bridge Guard — Audit a v1.4.0-style upstream bridge merge for the regression patterns that bit us last time 817 ★
  • Maestro Knowledge — Intent-driven knowledge-store and Run knowledge lifecycle management — audit/prune, stage candidates (with sig 530 ★
  • Memory Self Review — Mine recent agent history (claude-mem + usage stats) for recurring failures and repeated patterns, audit MEMOR 297 ★

README

Memory Collider

[![CI](https://github.com/JohnWangggg/memory-collider/actions/workflows/ci.yml/badge.svg)](https://github.com/JohnWangggg/memory-collider/actions/workflows/ci.yml) [![release](https://img.shields.io/github/v/release/JohnWangggg/memory-collider)](https://github.com/JohnWangggg/memory-collider/releases) [![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

[English README](README.en.md) · [参考手册](docs/reference.zh.md) · [变更日志](CHANGELOG.md)

让上游 skill 生态里的新护栏在踩坑之后**自动、可审、可回滚**地落到你的本地 skill 上。

定位

Memory Collider 不是又一个 skill 安装器、模板生成器或 Hook 规则器。它是一个 **local-first 的 skill 生命周期控制面**:订阅上游技能包,把 canonical 副本编译到多个 agent 目标端,再把「上游变化 + 本地手写改动 + 真实会话摩擦 + 规则审计证据」四方碰撞成**可审、可验证、可回滚**的小补丁。

相邻工具 它主要回答 Memory Collider 的边界
vercel-labs/skills / skill installers 「怎么发现、安装、分发 skill?」 Memory Collider 从安装之后开始:同步、维护、审计、修复、回滚
backpass 「怎样从会话证据改进 AGENTS.md / skills?」 核心证据理念相邻;Memory Collider 额外覆盖上游订阅与基线、多端编译、事务回滚、规则审计、patrol 与团队分发
skilldrift / drift scanners 「上游 skill 变了吗?」 Memory Collider 不只提醒 drift,还把 drift 与真实摩擦一起变成 gated patch
hook guardrails 「如何在动作发生前拦截?」 Memory Collider 不替代实时 hook;它维护那些规则/知识的长期生命周期

能力一览

  • 四种上游:git(浅克隆 + 稀疏检出)、local_dir、raw_url(ETag)、okf 知识包;同步时对隐藏 Unicode、管道执行、密钥外泄、提示注入直接阻断。
  • 六源轨迹:Nowledge Mem、Claude Code、opencode、Cursor、Devin CLI、omp 的本地会话,按 Session UUID 去重合并;opencode/devin/omp 的工具失败是结构化事实,不是从散文里推断。
  • 结构化补丁:模型只许输出 patch_ops 白名单原语,从不生成行号 diff;gatekeeper 校验引用必须逐字出现在所引线程里,幻觉证据直接丢弃。
  • 事务写入:canonical 与全部目标端共用一个 history//manifest.json,原子写 + 双重乐观锁,collider rollback 一次撤干净。
  • 规则审计闭环:collider audit 裁决每条规则 compliant / violated / unobserved,violated 证据自动喂回碰撞管道触发重写提案,长期 unobserved 成为 rule_bloat_prune 的合法证据。
  • patrol 自动化:sync → collide → 轮换 audit 定时执行,只在有已校验碰撞或复发时打扰你;同步失败降级用旧快照碰撞而不是整周缺席。
  • 隐私 fail-closed:privacy_spaces 锁死本地、新项目首检、L1/L2 脱敏、配置里永不存明文密钥。
  • 团队协作:collider contribute 把已复核碰撞变成上游 PR(证据永不出境),`c