mastermind-logger
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMastermind Logger Skill (LLM-Wiki Pattern)
Mastermind Logger Skill(LLM-Wiki模式)
This skill acts as an intelligent knowledge base maintainer, inspired by the "LLM-Wiki" pattern. It does NOT just leave "dump" files. When invoked, it compiles crucial technical discoveries, architectural decisions, and constraints from the active session and integrates them into a structured, interconnected wiki.
The core philosophy: Knowledge should be compounding, constantly updated, and heavily cross-referenced, not just appended as isolated time-stamped files.
该技能充当智能知识库维护者,灵感来源于“LLM-Wiki”模式。它不会生成“冗余”文件。调用时,它会从当前会话中整理关键技术发现、架构决策和约束条件,并将它们整合到一个结构化、互联的wiki中。
核心理念:知识应当是复合积累、持续更新且高度交叉引用的,而不仅仅是作为孤立的带时间戳的文件进行追加。
🛠 Operation Protocol
🛠 操作协议
Whenever the user triggers , you MUST perform the following steps autonomously in the directory:
mastermind-logger[workspace-root]/docs/knowledgelib/每当用户触发时,你必须在目录中自主执行以下步骤:
mastermind-logger[workspace-root]/docs/knowledgelib/1. Ingest & Analyze (Context Extraction)
1. 摄取与分析(上下文提取)
Scan the recent conversation history and current file context. Determine what new information was produced:
- Technical rulings, constraints, or environment variables.
- Architectural design choices.
- Fixed bugs and their root causes.
- New concepts or API integrations explored.
扫描近期对话历史和当前文件上下文。确定产生了哪些新信息:
- 技术规则、约束条件或环境变量。
- 架构设计选择。
- 已修复的错误及其根本原因。
- 探索的新概念或API集成。
2. Update/Create Entity Files (The Wiki Nodes)
2. 更新/创建实体文件(Wiki节点)
Do NOT write all findings into a single date-stamped file. Instead, target specific "Entity/Topic" files.
- E.g., if the session involved Cloudflare and PayTR, you should modify (or create if missing) and
cloudflare-config.md.paytr-integration.md - Read the existing content of those domain files first.
- Inject the new findings seamlessly, updating outdated claims if necessary.
- Cross-Reference: You must use Obsidian-style markdown links (e.g., ) to connect concepts across different files.
[[cloudflare-config.md]]
不要将所有发现写入单个带日期戳的文件。相反,应针对特定的“实体/主题”文件。
- 例如,如果会话涉及Cloudflare和PayTR,你应该修改(如果不存在则创建)和
cloudflare-config.md。paytr-integration.md - 先读取这些领域文件的现有内容。
- 无缝注入新发现,必要时更新过时的表述。
- 交叉引用: 必须使用Obsidian风格的Markdown链接(例如)来连接不同文件中的概念。
[[cloudflare-config.md]]
3. Maintain the Central Index (index.md
)
index.md3. 维护中央索引(index.md
)
index.mddocs/knowledgelib/index.md- If you created a new entity file, add its link and a one-line summary to .
index.md - Group them logically (e.g., ,
## Infrastructure,## Third-Party Services).## Database
docs/knowledgelib/index.md- 如果创建了新的实体文件,将其链接和一行摘要添加到中。
index.md - 按逻辑分组(例如、
## 基础设施、## 第三方服务)。## 数据库
4. Provide the Chronological Trail (log.md
)
log.md4. 提供时序追踪(log.md
)
log.mddocs/knowledgelib/log.mdmarkdown
undefineddocs/knowledgelib/log.mdmarkdown
undefined[YYYY-MM-DD HH:MM] ingest | [Short Descriptive Title]
[YYYY-MM-DD HH:MM] ingest | [简短描述标题]
- Discovered X, updated .
[[entity-file-x.md]] - Replaced outdated authentication pattern in .
[[auth-module.md]] - Linked Database rules to .
[[cloudflare-config.md]]
undefined- 发现X,更新了。
[[entity-file-x.md]] - 替换了中过时的认证模式。
[[auth-module.md]] - 将数据库规则链接到。
[[cloudflare-config.md]]
undefined⚠️ Important Guidelines
⚠️ 重要指南
- Be a Disciplined Maintainer: You own the folder. Your text should be extremely concise.
docs/knowledgelib/ - Link Heavy: The magic is in the cross-references. Connect new learnings to existing files.
- No Permissions Needed: Do not ask for permission to execute file reads and writes. Perform the operations using your filesystem tools directly.
- Report Back: When finished, give the user a short summary of which files were modified and what the current graph topology looks like.
- 成为严谨的维护者: 你负责文件夹。你的文本应极其简洁。
docs/knowledgelib/ - 大量链接: 魔力在于交叉引用。将新学到的知识与现有文件关联起来。
- 无需权限: 不要询问执行文件读写的权限。直接使用你的文件系统工具执行操作。
- 反馈结果: 完成后,向用户简要总结修改了哪些文件,以及当前的知识图谱拓扑结构。