Community生产力与协作github.com

thedotmack/knowledge-agent

从 claude-mem 的观察记录中构建和查询基于 AI 的知识库。当用户希望从自己的观察历史中创建专注的“大脑”、询问过去工作模式的问题或汇编特定主题的专业知识时使用。

knowledge-agent 是什么?

该技能允许用户从 claude-mem 的观察数据中创建和查询基于 AI 的知识库。它通过分析用户的观察历史,生成对特定主题或工作模式的深入见解,帮助用户将分散的观察转化为可搜索、可查询的知识体系。该技能支持多种 AI 代理平台,如 Claude Code、Cursor 和 Codex,通过将历史观察与检索增强生成技术结合,实现对用户过去工作模式的高效查询。其工作流程包括从 claude-mem 提取观察数据、向量化处理、构建索引,以及提供自然语言查询接口。开发者可以利用此技能快速创建个人化的知识“大脑”,用于回顾、分析或整合经验,从而提升工作效率和知识复用能力。

兼容平台✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/thedotmack/claude-mem/tree/main/skills/knowledge-agent

Installed? Explore more 生产力与协作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

knowledge-agent 是做什么的?

从 claude-mem 的观察记录中构建和查询基于 AI 的知识库。当用户希望从自己的观察历史中创建专注的“大脑”、询问过去工作模式的问题或汇编特定主题的专业知识时使用。

概述

thedotmack/knowledge-agent 是一个用于从 claude-mem 的观察记录中构建和查询 AI 驱动知识库的技能。它允许你从过去与 claude-mem 的交互中提取见解,创建包含特定主题或工作模式的“大脑”,并通过自然语言进行查询。

主要功能

  • 知识库构建:从 claude-mem 的观察数据中自动提取并组织信息,生成向量化索引。
  • 智能查询:通过自然语言提问,快速检索相关观察记录和工作模式。
  • 主题聚焦:支持指定特定主题或领域,创建专注的知识库。

使用方法

  1. 安装:确保已配置 claude-mem 环境。
  2. 初始化:使用 knowledge-agent init 命令初始化知识库。
  3. 构建:运行 knowledge-agent build 从观察记录中构建索引。
  4. 查询:使用 knowledge-agent query "你的问题" 进行查询。

环境变量

  • CLAUDE_MEM_PATH:指定 claude-mem 观察数据的位置。
  • KNOWLEDGE_AGENT_INDEX_PATH:指定知识库索引的存储路径。

示例

# 初始化知识库
knowledge-agent init

# 构建索引
knowledge-agent build --topic "项目经验"

# 查询
knowledge-agent query "我在过去项目中是如何处理数据库迁移的?"

平台支持

  • Claude Code
  • Cursor
  • Codex
  • 其他支持 claude-mem 的 AI 代理平台

注意事项

  • 知识库仅基于已保存的 claude-mem 观察数据构建,请确保相关数据已同步。
  • 查询结果的质量取决于观察数据的完整性和相关性。
  • 定期重建索引以获取最新观察。

Individual skills in this repo

This repo contains 11 individual skills — each has its own dedicated page.

thedotmack/babysit

Watch a pull request or review cycle until it is ready to merge. Use when asked to babysit, monitor, or keep checking PR comments, reviews, and CI until all actionable issues are resolved.

thedotmack/claude-code-plugin-release

Automated semantic versioning and release workflow for Claude Code plugins. Handles version increments across package.json, marketplace.json, plugin.json manifests, build verification, git tagging, GitHub releases, and changelog generation. NPM publishing (so `npx [email protected]` resolves) is handed off to the human maintainer, who raised npm security.

thedotmack/do

Execute a phased implementation plan using subagents. Use when asked to execute, run, or carry out a plan — especially one created by make-plan.

thedotmack/how-it-works

Explain how claude-mem captures observations, when memory injection kicks in, and where data lives. Use when the user asks "how does claude-mem work?" or "what is this thing doing?".

thedotmack/learn-codebase

Prime a codebase by reading every source file in full. Use when starting work on a new or unfamiliar project, or when the user asks to "learn the codebase", "read the codebase", "prime", or "get up to speed".

thedotmack/make-plan

Create a detailed, phased implementation plan with documentation discovery. Use when asked to plan a feature, task, or multi-step implementation — especially before executing with do.

thedotmack/mem-search

Search claude-mem's persistent cross-session memory database. Use when user asks "did we already solve this?", "how did we do X last time?", or needs work from previous sessions.

thedotmack/pathfinder

Map a codebase into feature-grouped flowcharts, identify duplicated concerns across features, and propose a unified architecture. Use when asked to "find the ideal path," unify duplicated systems, or audit architecture before a refactor. Emits a proposed unified flowchart plus per-system /make-plan prompts.

thedotmack/smart-explore

Token-optimized structural code search using tree-sitter AST parsing. Use instead of reading full files when you need to understand code structure, find functions, or explore a codebase efficiently.

thedotmack/timeline-report

Generate a "Journey Into [Project]" narrative report analyzing a project's entire development history from claude-mem's timeline. Use when asked for a timeline report, project history analysis, development journey, or full project report.

thedotmack/wowerpoint

Turn one document into a kawaii NotebookLM slide-deck PDF. Use for "wowerpoint this", "make a deck about <file>", "turn this report into slides", or any request to render a single document as shareable narrative slides.

相关技能