npx skills add https://github.com/johnlindquist/claude --skill memory使用语义搜索跨会话存储和检索知识。
安装 basic-memory:
pip install basic-memory
# 基础笔记
basic-memory tool write-note --title "Note Title" --content "Note content in markdown"
# 带标签
basic-memory tool write-note --title "React Patterns" --content "# Content here" --tags "react,patterns,frontend"
# 到特定文件夹
basic-memory tool write-note --title "Meeting Notes" --content "# Notes" --folder "meetings"
# 指定项目
basic-memory tool write-note --title "Project Notes" --content "# Notes" --project myproject
# 通过标识符/永久链接
basic-memory tool read-note "note-title"
# 从特定项目
basic-memory tool read-note "note-title" --project myproject
# 语义搜索(查询是位置参数)
basic-memory tool search-notes "your search query"
# 限制结果数量
basic-memory tool search-notes "react hooks" --page-size 10
# 通过永久链接搜索
basic-memory tool search-notes "pattern" --permalink
# 通过标题搜索
basic-memory tool search-notes "meeting" --title
# 按日期过滤
basic-memory tool search-notes "feature" --after_date "7d"
# 指定项目
basic-memory tool search-notes "authentication" --project myproject
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
# 获取与 URL/主题相关的笔记(URL 是位置参数)
basic-memory tool build-context "memory://topic/authentication"
# 指定深度和时间范围
basic-memory tool build-context "memory://note/my-note" --depth 2 --timeframe 30d
# 指定项目
basic-memory tool build-context "memory://topic/api" --project myproject
# 默认(深度 1,7 天)
basic-memory tool recent-activity
# 指定深度
basic-memory tool recent-activity --depth 3
# 指定时间范围
basic-memory tool recent-activity --timeframe 30d
# 组合使用
basic-memory tool recent-activity --depth 3 --timeframe 14d
# 获取提示以继续先前的工作
basic-memory tool continue-conversation "previous topic or context"
basic-memory sync
basic-memory status
笔记以带 YAML 前置元数据的 Markdown 格式存储:
---
title: My Note
tags: [tag1, tag2]
created: 2024-01-15
---
# My Note
Content here in markdown format.
## Sections
More content...
当你发现有用的东西时:
basic-memory tool write-note \
--title "TypeScript Utility Types" \
--content "# Utility Types\n\n- Partial<T> - Makes all properties optional\n- Required<T> - Makes all properties required\n- Pick<T, K> - Picks specific properties" \
--tags "typescript,types,reference"
当做出架构决策时:
basic-memory tool write-note \
--title "Auth Strategy Decision" \
--content "# Decision: Use JWT for API auth\n\n## Context\n...\n\n## Decision\n...\n\n## Consequences\n..." \
--tags "architecture,auth,decision" \
--folder "decisions"
在开始相关工作前:
# 搜索相关笔记
basic-memory tool search-notes "authentication jwt tokens"
# 或构建全面的上下文
basic-memory tool build-context "memory://topic/api-authentication"
basic-memory tool recent-activity --depth 5 --timeframe 7d
# 获取今天工作的上下文
basic-memory tool build-context "memory://topic/feature-youre-building"
# 保存发现
basic-memory tool write-note --title "Discovery Title" --content "What I learned"
# 同步以确保持久化
basic-memory sync
每周安装量
157
代码仓库
GitHub 星标数
21
首次出现
2026 年 1 月 24 日
安全审计
安装于
opencode146
gemini-cli143
codex142
github-copilot137
cursor134
amp132
Store and retrieve knowledge across sessions using semantic search.
Install basic-memory:
pip install basic-memory
# Basic note
basic-memory tool write-note --title "Note Title" --content "Note content in markdown"
# With tags
basic-memory tool write-note --title "React Patterns" --content "# Content here" --tags "react,patterns,frontend"
# To specific folder
basic-memory tool write-note --title "Meeting Notes" --content "# Notes" --folder "meetings"
# With specific project
basic-memory tool write-note --title "Project Notes" --content "# Notes" --project myproject
# By identifier/permalink
basic-memory tool read-note "note-title"
# From specific project
basic-memory tool read-note "note-title" --project myproject
# Semantic search (query is positional)
basic-memory tool search-notes "your search query"
# Limit results
basic-memory tool search-notes "react hooks" --page-size 10
# Search by permalink
basic-memory tool search-notes "pattern" --permalink
# Search by title
basic-memory tool search-notes "meeting" --title
# Filter by date
basic-memory tool search-notes "feature" --after_date "7d"
# With specific project
basic-memory tool search-notes "authentication" --project myproject
# Get related notes for a URL/topic (URL is positional)
basic-memory tool build-context "memory://topic/authentication"
# With depth and timeframe
basic-memory tool build-context "memory://note/my-note" --depth 2 --timeframe 30d
# With specific project
basic-memory tool build-context "memory://topic/api" --project myproject
# Default (depth 1, 7 days)
basic-memory tool recent-activity
# With depth
basic-memory tool recent-activity --depth 3
# With timeframe
basic-memory tool recent-activity --timeframe 30d
# Combined
basic-memory tool recent-activity --depth 3 --timeframe 14d
# Get prompt to continue previous work
basic-memory tool continue-conversation "previous topic or context"
basic-memory sync
basic-memory status
Notes are stored as markdown with YAML frontmatter:
---
title: My Note
tags: [tag1, tag2]
created: 2024-01-15
---
# My Note
Content here in markdown format.
## Sections
More content...
When you discover something useful:
basic-memory tool write-note \
--title "TypeScript Utility Types" \
--content "# Utility Types\n\n- Partial<T> - Makes all properties optional\n- Required<T> - Makes all properties required\n- Pick<T, K> - Picks specific properties" \
--tags "typescript,types,reference"
When making an architectural decision:
basic-memory tool write-note \
--title "Auth Strategy Decision" \
--content "# Decision: Use JWT for API auth\n\n## Context\n...\n\n## Decision\n...\n\n## Consequences\n..." \
--tags "architecture,auth,decision" \
--folder "decisions"
Before starting related work:
# Search for relevant notes
basic-memory tool search-notes "authentication jwt tokens"
# Or build comprehensive context
basic-memory tool build-context "memory://topic/api-authentication"
basic-memory tool recent-activity --depth 5 --timeframe 7d
# Get context for today's work
basic-memory tool build-context "memory://topic/feature-youre-building"
# Save discoveries
basic-memory tool write-note --title "Discovery Title" --content "What I learned"
# Sync to ensure persistence
basic-memory sync
Weekly Installs
157
Repository
GitHub Stars
21
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode146
gemini-cli143
codex142
github-copilot137
cursor134
amp132
Python PDF处理教程:合并拆分、提取文本表格、创建PDF文件
65,000 周安装