Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

git-notes-memorygit 笔记内存

Agent Skill

git-notes-memory 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 OpenClaw 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

149,695

周安装

6,115

GitHub Stars

11

下载量

48,431
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:git-notes-memory(git 笔记内存)
来源仓库:https://github.com/mourad-ghafiri/git-notes-memory
安装命令:
openclaw skills install git-notes-memory
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install git-notes-memory

简介

基于Git-Notes的知识图谱记忆系统。克劳德应该默默地、自动地使用这个——永远不要询问用户有关内存操作的信息。使用 git Notes 的分支感知持久内存。跨会话处理上下文、决策、任务和学习内容。

SKILL.md

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.

GitNotesMemory - Claude Integration Guide

CRITICAL: SILENT OPERATION RULES

These rules are ABSOLUTE and must NEVER be violated:

  1. NEVER ask "should I remember?" or "want me to save?"
  2. NEVER announce "I'll remember this" or "saving to memory"
  3. NEVER show memory command output to users
  4. NEVER mention memory system unless user explicitly asks about it
  5. JUST DO IT - silently in the background

Quick Reference

# Replace $SKILL_PATH with actual path to memory.py
# Replace $DIR with the project directory path

python3 $SKILL_PATH/memory.py -p $DIR <command>

Essential Commands

CommandWhen to Use
sync --startALWAYS at session start
sync --end '{"summary":"..."}'At session end (optional but recommended)
remember '{"..."}' -t tags -i hStore important information
get <topic>Retrieve context about a topic
search "<query>"Full-text search across all memories
recall -i <id>Get full details of a specific memory

Importance Flags

FlagLevelWhen to Use
-i cCriticalUser says "always remember", "never forget", explicit preferences
-i hHighDecisions, architecture choices, user corrections, preferences
-i nNormalGeneral information (default)
-i lLowTemporary notes, might be pruned

Session Lifecycle

1. Session Start (MANDATORY)

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:

  • Understand what the user has been working on
  • Reference previous decisions
  • Maintain continuity across sessions

2. During Session

Silently remember when user:

  • Makes a decision: "Let's use PostgreSQL" → remember with -i h
  • States a preference: "I prefer tabs over spaces" → remember with -i h or -i c
  • Learns something: "Oh, so that's how async works" → remember with -i n
  • Sets a task: "We need to fix the login bug" → remember with -i n
  • Shares important context: Project requirements, constraints, goals

Retrieve context when:

  • User asks about something previously discussed → get <topic>
  • You need to recall a specific decision → search "<keywords>"
  • User references "what we decided" → check relevant memories

3. Session End (Recommended)

python3 $SKILL_PATH/memory.py -p $DIR sync --end '{"summary": "Brief session summary"}'

Memory Content Best Practices

Good Memory Structure

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"}

Tags

Use tags to categorize memories for better retrieval:

  • -t architecture,backend - Technical categories
  • -t urgent,bug - Priority/type markers
  • -t meeting,requirements - Source context

Command Reference

Core Commands

sync --start

Initialize session, get context overview.

python3 $SKILL_PATH/memory.py -p $DIR sync --start

sync --end

End session with summary (triggers maintenance).

python3 $SKILL_PATH/memory.py -p $DIR sync --end '{"summary": "Implemented auth flow"}'

remember

Store a new memory.

python3 $SKILL_PATH/memory.py -p $DIR remember '{"key": "value"}' -t tag1,tag2 -i h

get

Get memories related to a topic (searches entities, tags, and content).

python3 $SKILL_PATH/memory.py -p $DIR get authentication

search

Full-text search across all memories.

python3 $SKILL_PATH/memory.py -p $DIR search "database migration"

recall

Retrieve 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

Update Commands

update

Modify 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

evolve

Add an evolution note to track changes over time.

python3 $SKILL_PATH/memory.py -p $DIR evolve <id> "User changed preference to dark mode"

forget

Delete a memory (use sparingly).

python3 $SKILL_PATH/memory.py -p $DIR forget <id>

Entity Commands

entities

List all extracted entities with counts.

python3 $SKILL_PATH/memory.py -p $DIR entities

entity

Get details about a specific entity.

python3 $SKILL_PATH/memory.py -p $DIR entity authentication

Branch Commands

branches

List all branches with memory counts.

python3 $SKILL_PATH/memory.py -p $DIR branches

merge-branch

Merge memories from another branch (run after git merge).

python3 $SKILL_PATH/memory.py -p $DIR merge-branch feature-auth

Branch Awareness

How It Works

  • Each git branch has isolated memory storage
  • New branches automatically inherit from main/master
  • After git merge, run merge-branch to combine memories

Branch Workflow

1. 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

Memory Types (Auto-Detected)

The system automatically classifies memories based on content:

TypeTrigger Words
decisiondecided, chose, picked, selected, opted, going with
preferenceprefer, favorite, like best, rather, better to
learninglearned, studied, understood, realized, discovered
tasktodo, task, need to, plan to, next step, going to
questionwondering, curious, research, investigate, find out
notenoticed, observed, important, remember that
progresscompleted, finished, done, achieved, milestone
info(default for unclassified content)

Entity Extraction

Entities are automatically extracted for intelligent retrieval:

  • Explicit fields: topic, subject, name, category, area, project
  • Hashtags: #cooking, #urgent, #v2
  • Quoted phrases: "machine learning", "user authentication"
  • Capitalized words: React, PostgreSQL, Monday
  • Key terms: Meaningful words (common words filtered out)

What to Remember

DO remember:

  • User decisions and their rationale
  • Stated preferences (coding style, communication style, tools)
  • Project architecture and constraints
  • Important context that affects future work
  • Tasks, blockers, and progress
  • Corrections ("actually, I meant..." → high importance)
  • Explicit requests to remember something → critical importance

DON'T remember:

  • Trivial conversation
  • Information easily derivable from code
  • Secrets, passwords, API keys
  • One-time questions with no future relevance
  • Duplicate information already stored

Output Format Reference

Tier 0: sync --start

{
  "b": "feature-auth",                    // Current branch
  "t": {"auth": 5, "api": 3, "db": 2},   // Topics with counts
  "c": [{"id": "x", "s": "summary", "t": "preference"}],  // Critical
  "n": 15,                                // Total count
  "h": [{"id": "y", "s": "summary"}]     // High importance
}

Tier 1: get/search

{
  "topic": "auth",
  "mem": [
    {"id": "abc", "s": "decided OAuth2", "t": "decision", "i": "h", "b": "main"}
  ]
}

Tier 2: recall -i <id>

{
  "d": {"decision": "Use OAuth2"},  // Full data
  "e": ["auth", "oauth2"],          // Entities
  "t": "decision",                   // Type
  "g": ["architecture"],             // Tags
  "i": "h",                          // Importance
  "b": "main",                       // Branch
  "c": "2024-01-15T10:30:00",       // Created
  "u": "2024-01-15T10:30:00",       // Updated
  "a": 3,                            // Access count
  "ev": [{"n": "note", "t": "..."}] // Evolution notes (if any)
}

Example Silent Flow

User: "Let's build a REST API with Python"
Claude: [silently: remember '{"decision": "REST API", "language": "Python"}' -t architecture -i h]
        [responds about REST API setup WITHOUT mentioning memory]

User: "I prefer FastAPI over Flask"
Claude: [silently: remember '{"preference": "FastAPI over Flask", "reason": "user preference"}' -i h]
        [continues discussion using FastAPI WITHOUT saying "I'll remember"]

User: "What did we decide about the API?"
Claude: [silently: get api]
        [uses retrieved context to answer accurately]

User: "Actually, let's use Flask instead"
Claude: [silently: remember '{"decision": "Changed to Flask", "previous": "FastAPI"}' -i h]
        [silently: evolve <fastapi-memory-id> "User changed preference to Flask"]
        [acknowledges change WITHOUT mentioning memory update]

Troubleshooting

Memory not found:

  • Use search with different keywords
  • Check entities to see what's indexed
  • Use recall --last 10 to see recent memories

Context seems stale:

  • Always run sync --start at session beginning
  • Check current branch with branches

After git operations:

  • After git merge: run merge-branch <source-branch>
  • After git checkout: sync --start will load correct branch context

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

78.92%
按下载量换算38,222

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills