pact-memory
БесплатноЗапускает вложенные скриптыНе проверенPersistent memory for PACT agents. Save context, goals, lessons learned, decisions, and entities. Semantic search across sessions. Use when: saving session…
Об этом скилле
PACT Memory Skill
Persistent memory system for PACT framework agents. Store and retrieve context, goals, lessons learned, decisions, and entities across sessions with semantic search.
Overview
The PACT Memory skill provides:
- Rich Memory Objects: Store context, goals, tasks, lessons, decisions, and entities
- Semantic Search: Find relevant memories using natural language queries
- Graph-Enhanced Retrieval: Memories linked to files are boosted when working on related files
- Session Tracking: Automatic file tracking and session context
- Cross-Session Learning: Memories persist across sessions for cumulative knowledge
Store access: the two routes
STORE ACCESS. A memory operation (save, search, get, list, update or
delete a record) goes through the pact-memory CLI. YOU DO NOT SELECT A
STORE. Do not name a store by --db-path, by an environment variable, or by
one more route somebody adds later. Let the CLI resolve it. A store you
select is not the store the memory of the team lives in, so a save there is
lost rather than shared. STORE INSPECTION is different: a row count, a
column audit, or a schema check on the file. To inspect, do not run a CLI
verb, do not import a module below skills/pact-memory/scripts/, and do not
open the store read-write. In ONE command, against ONE resolved path, check
that memory.db-wal and memory.db-shm are both absent by their full
names, then open with mode=ro and immutable=1. Without immutable=1 the
open fails. If a sidecar is present, stop and report. The read does not load
the vector extension, so it cannot answer a question about vec_memories.
Stop and report rather than take a barred route.
The sections below give the detail behind each sentence above.
MORE ON THE BRIGHT LINE, because an agent will look for an exception. THE RULE
IS A POLICY, AND IT IS NOT A CLAIM ABOUT WHAT THE TOOL DOES. An agent does not
select a store. The CLI can tell you to run setup --db-path <path>. That
message is correct for the tool and it does not apply to you. You reach it
only after you pass --db-path, which this rule forbids. Do not run it.
Report it and ask the user. The danger is NOT that the flag reaches the live
store. The flag binds the store you name, so the danger is that your save
lands in a store nobody reads. For a memory system, a write that goes nowhere
costs as much as a write that goes incorrectly.
To inspect the store
- Check that
memory.db-walandmemory.db-shmare both absent. Name the two files in full. Do not use a glob. - If one of the two files is present, stop. Report it. Do not read the store.
- If neither file is present, open the store read-only:
sqlite3.connect("file:<path>?mode=ro&immutable=1", uri=True)
What you must not do, and why
- Do not run a pact-memory CLI verb to inspect the store. The CLI opens a
read-write connection and runs
PRAGMA journal_mode=WALon it, which createsmemory.db-walandmemory.db-shm. A CLI read is thus a write to the store directory. A CLI run also reaches the same functions an import reaches, so it defeats the next rule. - Do not import a module below
skills/pact-memory/scripts/. In that package, functions create the live store directory as a side result of a path resolution, so an import puts each of them one call away. Do not read an absent import as a guarantee, because a subprocess reaches those functions with no import at all. - Do not open the store with a plain
sqlite3.connect. A read-write open creates the two sidecar files. That is a write to the store directory, even when no SQL runs. - Do not copy the store with
cp. A copy taken while commits sit in an uncheckpointed WAL is silently short of data, and it passesPRAGMA integrity_check. If you must have a copy, useVACUUM INTO.
Why the two flags, and why the check comes first
mode=ro alone cannot open this store. sqlite must create memory.db-shm to
read a WAL database, and mode=ro forbids that creation, so the open fails
with unable to open database file. immutable=1 tells sqlite to skip the
WAL and read the main file directly, so the open succeeds and creates nothing.
immutable=1 is not extra hardening. It is the only flag that opens the file.
The sidecar check is not a writer detector. It is a state selector. When the
two sidecar files are absent, no WAL data is pending, so the main file is the
whole database. That is the state in which immutable=1 is correct. If a
sidecar is present, committed data can sit outside the main file, and
immutable=1 then returns an older image and raises no error. One flag makes
the read possible. The check makes the read corr
Установить pact-memory в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл pact-memory?
Persistent memory for PACT agents. Save context, goals, lessons learned, decisions, and entities. Semantic search across sessions. Use when: saving session context, recalling past decisions, searching lessons. Triggers: memory, save memory, search memory, lessons learned, remember, recall
Как установить скилл pact-memory?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pact-memory запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub