KP

kingkongshot/pensieve

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

2516 stars 质量 55 趋势 0MIT

撕裂了你的决定和原则。克劳德阅读它们以做出更好的选择。

概览

Pensieve不仅存储文档——它让每次客服对话都更加精准: - ——“使用 pensieve 检查该计划的准确性” -> 自动交叉引用准则和决策;违反架构惯例的计划在执行前被截获 --- “使用 pensieve 定位支付模块的入口点” -> 知识包含先前的探索结果,直接重用而无需全局搜索,节省令牌和时间 - -- “使用 pensieve 分析此次重构将影响哪些工作流程”——> 四层知识通过语义链形成图,沿着关联链发现设计意图和依赖关系 —— ——“使用 pensieve 约定提交代码” -> 约定和决策已经积累,不再问“什么样式?”或“边界在哪里?”

概述(AI 翻译)

赋予你的AI代理一个不断增长的项目记忆。

中文 README

一句话总结:Pensieve是一个自我增长的 CLAUDE.md,作为一项技能运行——上下文使用极少,兼容所有支持技能的AI工具。

CLAUDE.md / agents.md 回忆盆
表单 单一静态文件 四层结构化知识
维护 手动编写,手动更新 自动累积,自动对齐
范围 项目惯例 约定 + 决策 + 事实 + 工作流程
链接 平面 构成知识图谱的语义链接
上下文使用 全文注入 基于技能的按需路由,最小使用量

为什么要用回忆盆

没有 有
每次都得重新解释项目规格 规格以格言形式存储,自动加载
代码审查标准依赖于氛围 审查标准已确定为可执行的流程
本周重复上周的错误 课程自动累积,下次跳过
三个月后忘了你为什么这样设计 决策记录上下文和替代方案

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

In one sentence: Pensieve is a self-growing CLAUDE.md that runs as a skill – minimal context usage, compatible with all AI tools that support skills.

CLAUDE.md / agents.md Pensieve
Form Single static file Four-layer structured knowledge
Maintenance Manual writing, manual updates Auto-accumulation, auto-alignment
Scope Project conventions Conventions + decisions + facts + workflows
Linking Flat Semantic links forming a knowledge graph
Context usage Full-text injection Skill-based on-demand routing, minimal usage

Why Use Pensieve

Without With
Have to re-explain project specs every time Specs stored as maxims, loaded automatically
Code review standards depend on mood Review standards solidified into executable pipelines
Repeat last week’s mistake this week Lessons auto-accumulated, skipped next time
Forget why you designed it this way three months later Decisions record context and alternatives
Have to re-read docs to locate module boundaries every time Knowledge caches exploration results, reuse directly

Self-Reinforcing Loop

Pensieve doesn’t just store documentation – it makes every agent conversation more precise:

  • Validate AI-generated plans – "Use pensieve to check the accuracy of this plan" -> Automatically cross-references maxims and decisions; plans that violate architectural conventions are intercepted before execution
  • Narrow the exploration scope – "Use pensieve to locate the entry point of the payment module" -> Knowledge contains previous exploration results, reuse directly without global search, saving tokens and time
  • Establish implicit connections – "Use pensieve to analyze which workflows this refactoring will affect" -> Four-layer knowledge forms a graph through semantic links, following association chains to discover design intent and dependencies
  • Reduce repeated confirmations – "Use pensieve conventions to commit code" -> Conventions and decisions are already accumulated, no more asking “what style?” or “where’s the boundary?”

You don’t need to manually maintain the knowledge base – daily development feeds it automatically:

    Develop --> Commit --> Review (pipeline)
     ^                      |
     |   <-- Auto-accumulate experience <--   |
     |                      v
     +-- maxim / decision / knowledge / pipeline
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add kingkongshot/pensieve
新手?先看 mcpskill.org 教程 →