AI 编程综合合集
Personal Memory Bank:为 Claude Code 与 Cursor 提供持久化项目记忆与治理的框架
unyieldingclaw-dev/personal-memory-bank · AI session memory framework for Claude Code and Cursor. Five structured files, the mb CLI (13 commands, 24 health checks), versioned git hooks, CI guardrails, semantic drift detection, and slash commands for code review, security scanning, and test coverage. Drop-in install for any project.
ELI5:它是什么,解决什么问题
Personal Memory Bank 是面向 Claude Code 和 Cursor 等 AI 编程助手的会话记忆框架。它在项目中维护五个结构化 markdown 文件(项目简介、系统模式、技术上下文、活跃上下文、进度),让 AI 在每次会话开始时自动读取,减少重复说明技术栈与约束。项目提供 mb 命令行工具(init、status、doctor、query、clean、commit、upgrade 等命令与多项健康检查)、五个斜杠命令(/test-audit、/code-review、/security-review、/feature-dev、/health-check)、git 钩子、CI 治理流水线、语义漂移检测与记忆新鲜度跟踪。
核心能力与快速开始
★ 1 · Shell
- 能做什么
- 以五个 markdown 文件构成的项目记忆系统,供 AI 助手在会话开始时读取;带权威层级、新鲜度跟踪与来源 frontmatter。提供 mb CLI(README 首段称 13 条命令、正文称 12 条,含 init、status、doctor、query、clean、commit、upgrade、setup、verify-integrity、plan、preflight、change-check)与 24/25 项健康检查(含语义漂移、SHA-256 校验、启动上下文体积上限)。附带五个斜杠命令:/test-audit(测试覆盖缺口诊断,支持 Jest、Vitest、pytest、Go、RSpec、Rust)、/code-review(5 个常驻子代理加最多 2 个条件子代理及 Opposition 审计)、/security-review(9 类安全模式扫描)、/feature-dev(7 阶段开发工作流)、/health-check。另有 pre-commit 与 pre-push git 钩子、六项治理 CI 作业、标记检索、worktree 支持与 Handoff 上下文交接协议。
- 适用场景
- 用于在 Claude Code 或 Cursor 中进行长期项目开发时,让 AI 每次会话自动获得项目背景与约束;通过 /test-audit 发现测试缺失、用 /code-review 进行多领域代码审查、用 /security-review 扫描当前 diff 的安全问题;用 mb doctor 检查记忆文件新鲜度与启动上下文 token 开销;用 Handoff 在上下文接近上限时交接工作。
- 项目形态
- 开发框架
- 部署方式
- 未说明
- 主要依赖
- README 提供 Windows(install.bat、mb-setup.bat)与 Mac/Linux(install.sh)安装方式;其余运行环境与依赖未说明。
- 使用限制
- README 未说明模型调用成本或 API 限制;/code-review 明确不修改文件、不生成测试、不应用修复;mb 命令数量在文档中存在 11/12/13 的不一致表述。
- 许可证
- MIT
- 最近推送
- 2026-09-20 06:14
资料检查:2026-09-20 07:00 · 卡片整理:2026-09-20 09:00
卡片由 AI 根据仓库资料整理,未进行安装或运行验证 · 本次更新未完成,保留上次成功内容
职业应用
程序员
为程序员在 Claude Code 或 Cursor 会话中提供持久化项目记忆:五个结构化 markdown 文件(项目简介、系统模式、技术上下文、活跃上下文、进度)在每次会话开始时被 AI 自动读取,减少重复说明技术栈与约束;并提供 mb CLI 管理记忆、/test-audit 检测测试覆盖缺口、/code-review 多子代理代码审查、/security-review 扫描安全模式、/feature-dev 七阶段功能开发工作流,以及 git 钩子和 CI 治理流水线。
查看内容依据
Persistent project memory for AI coding assistants (Claude Code, Cursor). Five structured files your AI reads at session start. Includes the `mb` CLI (11 commands), a `/test-audit` coverage suite, 5-agent `/code-review`, `/security-review`, and governed automation hooks.
由 AI 根据来源材料整理,未进行安装或运行验证
讨论 0
登录后参与讨论,阅读资讯无需注册。
还没有评论,来分享第一个看法。