agentleFS
pobstetapobsteta/aigora/.claude/skills/memory/SKILL.md

memory

Skill0 starsChanged 43 days agoMITView on GitHub

Query and manage the AIGORA long-term memory (mem0 + local Qdrant + Ollama, optional) and the daily logs. Layer 1 is owned by Claude Code natively.

99 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ecosystem-reference, fractal-delegation and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • naman10parikhSkill

    ecosystem-reference

    Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.

    Also in 5 projects that use this

  • naman10parikhSkill

    fractal-delegation

    Also in 5 projects that use this

  • Maliot100XSkill

    send-user-message

    Send a proactive message to a paired user via their channel (Discord, Telegram, or WhatsApp). Use when the agent needs to notify, alert, or send an unsolicited message to a user — especially during heartbeat invocations, scheduled tasks, or when the agent wants to reach out without a prior user message in the current conversation. Triggers: 'send message to user', 'notify user', 'alert user', 'message the user on discord/telegram/whatsapp', or any need to proactively communicate with a paired sender.

    Also in 4 projects that use this

  • jh941213Skill

    docs-ci

    문서 CI(링크·OpenAPI lint·breaking 게이트·mermaid 검증)나 문서 드리프트 감지(docs.yaml 신선도 검사)를 설치하거나 돌릴 때 사용. 문서 내용 작성은 docs-architecture·docs-interfaces·docs-manuals.

    Also in 3 projects that use this

  • jh941213Skill

    docs-interfaces

    API·이벤트 인터페이스 문서(OpenAPI·swagger·AsyncAPI 명세, 엔드포인트 레퍼런스, API 구성도·시퀀스, API CHANGELOG)를 만들거나 코드와 맞출 때 사용. 시스템 구성도는 docs-architecture, API 설계 원칙은 api-design-principles.

    Also in 3 projects that use this

  • +6 more from naman10parikh
  • +1 more from jh941213

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 82 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Stop hook auto_capture.py runs after every response cycle.

    line 67
  2. Very specific:

    Default (100% local, open source): LLM qwen3:4b and embeddings nomic-embed-text served by

    line 72
  3. Distinctive:

    If you switch the LLM to Infomaniak AI Tools, conversation snippets are sent to Infomaniak (Switzerland).

    line 83

“Common” is measured: kept by at least 6 in 10 of the 82 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Memory Skill

Operates on layers 2 and 3 of the AIGORA memory stack. Layer 1 (native auto-memory) is managed by Claude Code itself; see .claude/rules/memory-protocol.md for the full architecture.

When to use this skill

  • The user references something from a past session that is not in the native auto-memory topic files → search layer 3.
  • The user asks "what have you got on me?" or wants an export → list layer 3.
  • You want to manually add a fact you judge important enough → add to layer 3.
  • You want to append a chronological event to today's log → write to layer 2.
  • A skill (weekly-review, meeting-prep, business-setup) needs to persist project facts → use the Write tool against layer 1 topic files directly. Do NOT use this skill for layer 1 writes.

Layer 3 operations (mem0 + Qdrant, optional)

Search (recommended: smart_search)

python3 .claude/skills/memory/scripts/smart_search.py --query "topic" --limit 5

Hybrid retrieval: BM25 keyword (30%) + vector similarity (70%) + temporal decay + MMR diversity. First run on a fresh install requires --rebuild-index to populate the FTS5 keyword index.

Search (basic vector only)

python3 .claude/skills/memory/scripts/mem0_search.py --query "topic" --limit 10

Rebuild keyword index

python3 .claude/skills/memory/scripts/smart_search.py --rebuild-index

Repopulates FTS5 from the history DB. Run after installation or to fix drift.

Add a fact manually

python3 .claude/skills/memory/scripts/mem0_add.py --content "User prefers kSuite over Google Workspace"

Add from conversation messages

python3 .claude/skills/memory/scripts/mem0_add.py --messages '[{"role":"user","content":"I switched to ClickUp"}]'

List all memories

python3 .claude/skills/memory/scripts/mem0_list.py --limit 50

Delete a memory

python3 .claude/skills/memory/scripts/mem0_delete.py --memory-id "abc123"
python3 .claude/skills/memory/scripts/mem0_delete.py --all --confirm

Layer 2 operation (daily logs)

Append to today's session log

python3 .claude/skills/memory/scripts/daily_log.py --content "Completed memory system overhaul" --type event

Auto-capture (background, no action needed)

Stop hook auto_capture.py runs after every response cycle. It reads new transcript messages, feeds them to mem0 for fact extraction and dedup against the vector store, and appends a session summary to today's daily log. Logs at data/auto_capture.log.

Config

  • mem0 config: .claude/skills/memory/references/mem0_config.yaml
  • Default (100% local, open source): LLM qwen3:4b and embeddings nomic-embed-text served by Ollama on this computer; vectors in Qdrant embedded mode (data/qdrant/, no server).
  • Alternative LLM: Infomaniak AI Tools (OpenAI-compatible, open-source models hosted in Switzerland), see the commented block at the bottom of the config.
  • History DB: data/mem0_history.db (SQLite, auto-managed)
  • Capture markers: data/capture_markers/ (tracks transcript position per session)

Security

  • sanitize_text() in mem0_client.py strips secrets (API keys, tokens, JWTs, connection strings) before any processing.
  • With the default local stack, nothing leaves the computer: extraction, embeddings and storage are local.
  • If you switch the LLM to Infomaniak AI Tools, conversation snippets are sent to Infomaniak (Switzerland).
  • Local files (SQLite history DB, Qdrant folder, daily logs) are plaintext on disk; .gitignore excludes them.

Known issues

  1. Small local models can occasionally return invalid JSON on heavy markdown. prepare_messages() strips most of it; failed batches are skipped, the transcript is preserved. A larger model (qwen3:8b) is more reliable if the machine allows.
  2. First run on a long conversation is slow on CPU. Incremental runs (2-4 messages) are fast.
  3. Layer 3 is off by default. Layers 1 and 2 (native memory + daily logs) always work with no install.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.