Git-Notes-Based knowledge graph memory system. Claude should use this SILENTLY and AUTOMATICALLY - never ask users about memory operations. Branch-aware persistent memory using git notes. Handles context, decisions, tasks, and learnings across sessions.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install git-notes-memory或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install git-notes-memory⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/git-notes-memory/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: git-notes-memory description: Git-Notes-Based knowledge graph memory system. Claude should use this SILENTLY and AUTOMATICALLY - never ask users about memory operations. Branch-aware persistent memory using git notes. Handles context, decisions, tasks, and learnings across sessions. ---
These rules are ABSOLUTE and must NEVER be violated:
# Replace $SKILL_PATH with actual path to memory.py
# Replace $DIR with the project directory path
python3 $SKILL_PATH/memory.py -p $DIR <command>
| Command | When to Use | |---------|-------------| | sync --start | ALWAYS at session start | | sync --end '{"summary":"..."}' | At session end (optional but recommended) | | remember '{"..."}' -t tags -i h | Store important information | | get | Retrieve context about a topic | | search " | Full-text search across all memories | | recall -i | Get full details of a specific memory |
| Flag | Level | When to Use | |------|-------|-------------| | -i c | Critical | User says "always remember", "never forget", explicit preferences | | -i h | High | Decisions, architecture choices, user corrections, preferences | | -i n | Normal | General information (default) | | -i l | Low | Temporary notes, might be pruned |
Always run sync --start at the beginning of every session:
python3 $SKILL_PATH/memory.py -p $DIR sync --start
Output explains:
{
"b": "main", // Current git branch
"t": {"api": 5, "auth": 3}, // Top topics with memory counts
"c": [...], // Critical memories (always review these)
"n": 42, // Total memory count
"h": [...] // High-importance recent memories
}
Use this context to:
Silently remember when user:
-i h-i h or -i c-i n-i nRetrieve context when:
get search "" python3 $SKILL_PATH/memory.py -p $DIR sync --end '{"summary": "Brief session summary"}'
For decisions:
{"decision": "Use React for frontend", "reason": "Team expertise", "alternatives": ["Vue", "Angular"]}
For preferences:
{"preference": "Detailed explanations", "context": "User prefers thorough explanations over brief answers"}
For learnings:
{"topic": "Authentication", "learned": "OAuth2 flow requires redirect URI configuration"}
For tasks:
{"task": "Implement user dashboard", "status": "in progress", "blockers": ["API not ready"]}
For notes:
{"subject": "Project Architecture", "note": "Microservices pattern with API gateway"}
Use tags to categorize memories for better retrieval:
-t architecture,backend - Technical categories-t urgent,bug - Priority/type markers-t meeting,requirements - Source contextsync --startInitialize session, get context overview.
python3 $SKILL_PATH/memory.py -p $DIR sync --start
sync --endEnd session with summary (triggers maintenance).
python3 $SKILL_PATH/memory.py -p $DIR sync --end '{"summary": "Implemented auth flow"}'
rememberStore a new memory.
python3 $SKILL_PATH/memory.py -p $DIR remember '{"key": "value"}' -t tag1,tag2 -i h
getGet memories related to a topic (searches entities, tags, and content).
python3 $SKILL_PATH/memory.py -p $DIR get authentication
searchFull-text search across all memories.
python3 $SKILL_PATH/memory.py -p $DIR search "database migration"
recallRetrieve memories by various criteria.
# Get full memory by ID
python3 $SKILL_PATH/memory.py -p $DIR recall -i abc123
# Get memories by tag
python3 $SKILL_PATH/memory.py -p $DIR recall -t architecture
# Get last N memories
python3 $SKILL_PATH/memory.py -p $DIR recall --last 5
# Overview of all memories
python3 $SKILL_PATH/memory.py -p $DIR recall
updateModify an existing memory.
# Replace content
python3 $SKILL_PATH/memory.py -p $DIR update <id> '{"new": "content"}'
# Merge content (add to existing)
python3 $SKILL_PATH/memory.py -p $DIR update <id> '{"extra": "field"}' -m
# Change importance
python3 $SKILL_PATH/memory.py -p $DIR update <id> -i c
# Update tags
python3 $SKILL_PATH/memory.py -p $DIR update <id> -t newtag1,newtag2
evolveAdd an evolution note to track changes over time.
python3 $SKILL_PATH/memory.py -p $DIR evolve <id> "User changed preference to dark mode"
forgetDelete a memory (use sparingly).
python3 $SKILL_PATH/memory.py -p $DIR forget <id>
entitiesList all extracted entities with counts.
python3 $SKILL_PATH/memory.py -p $DIR entities
entityGet details about a specific entity.
python3 $SKILL_PATH/memory.py -p $DIR entity authentication
branchesList all branches with memory counts.
python3 $SKILL_PATH/memory.py -p $DIR branches
merge-branchMerge memories from another branch (run after git merge).
python3 $SKILL_PATH/memory.py -p $DIR merge-branch feature-auth
merge-branch to combine memories1. User on main branch → memories stored in refs/notes/mem-main
2. User creates feature branch → auto-inherits main's memories
3. User works on feature → new memories stored in refs/notes/mem-feature-xxx
4. After git merge → run merge-branch to combine memories
The system automatically classifies memories based on content:
| Type | Trigger Words | |------|---------------| | decision | decided, chose, picked, selected, opted, going with | | preference | prefer, favorite, like best, rather, better to | | learning | learned, studied, understood, realized, discovered | | task | todo, task, need to, plan to, next step, going to | | question | wondering, curious, research, investigate, find out | | note | noticed, observed, important, remember that | | progress | completed, finished, done, achieved, milestone | | info | (default for unclassified content) |
Entities are automatically extracted for intelligent retrieval:
topic, subject, name, category, area, project#cooking, #urgent, #v2"machine learning", "user authentication"React, PostgreSQL, Monday...
安装 Git-Based Knowledge Graph Memory System for Claude Code 后,可以对 AI 说这些话来触发它
Help me get started with Git-Based Knowledge Graph Memory System for Claude Code
Explains what Git-Based Knowledge Graph Memory System for Claude Code does, walks through the setup, and runs a quick demo based on your current project
Use Git-Based Knowledge Graph Memory System for Claude Code to git-Notes-Based knowledge graph memory system
Invokes Git-Based Knowledge Graph Memory System for Claude Code with the right parameters and returns the result directly in the conversation
What can I do with Git-Based Knowledge Graph Memory System for Claude Code in my documents & notes workflow?
将技能文件夹放到 ~/.claude/skills/git-notes-memory/ 目录(个人级,所有项目可用),或 .claude/skills/git-notes-memory/(项目级)。重启 AI 客户端后,用 /git-notes-memory 主动调用,或让 AI 根据上下文自动发现并使用。
Git-Based Knowledge Graph Memory System for Claude Code 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Git-Based Knowledge Graph Memory System for Claude Code 可免费安装使用。请查阅仓库了解许可证信息。
Git-Notes-Based knowledge graph memory system. Claude should use this SILENTLY and AUTOMATICALLY - never ask users about memory operations. Branch-aware persistent memory using git notes. Handles context, decisions, tasks, and learnings across sessions.
Lists the top use cases for Git-Based Knowledge Graph Memory System for Claude Code, with example commands for each scenario
Automate my documents & notes tasks using Git-Based Knowledge Graph Memory System for Claude Code
Identifies repetitive steps in your workflow and sets up Git-Based Knowledge Graph Memory System for Claude Code to handle them automatically
Git-Based Knowledge Graph Memory System for Claude Code 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。