Установка
SKILL.md
Basic Memory setup
Run a short, adaptive interview (~2-3 minutes) and then write the configuration.
Be conversational and skip questions whose answer is already obvious from
context (e.g. if list_memory_projects shows a single local project and no cloud
workspaces, don't ask about cloud/teams — just confirm). Suggest a sensible default
for every question so the user can accept with one word. Don't do any writes until
the interview is done and you've confirmed the plan.
Prerequisite check
First confirm the Basic Memory MCP server is connected — call
list_memory_projects. If that tool isn't available or errors, Basic Memory isn't
wired into Claude Code yet. Stop and walk the user through it first (everything
below depends on it):
- Install it:
uv tool install basic-memory(orpip install basic-memory), version>= 0.19.0. - Connect it:
claude mcp add basic-memory -- uvx basic-memory mcp, then restart the session so the MCP server loads.
Re-check list_memory_projects before continuing — don't start the interview until
it succeeds.
Interview
Ask only what you can't infer. Cover:
-
Focus / how you'll use it. "What will this project mostly be — code/dev, research, writing, knowledge capture, planning, or a mix?" This answer is load-bearing, not small talk: it drives the folder structure you suggest (step 4) and is stored so the SessionStart brief can surface it, keeping capture matched to the use-case. Don't let it evaporate — if you infer it from context instead of asking, still say the use-case you assumed and the structure it implies, and let the user correct it in one word.
A code/dev answer makes this a coding setup (
sessionProfile: "coding"): verify the directory is inside a Git repository, resolve a stablerepositoryidentifier such asowner/namefrom the origin remote or GitHub CLI, show it to the user, and ask for confirmation. Do not guess when the remote is missing or ambiguous, and do not infercodingmerely because the current directory is a Git checkout — for mixed use, ask whether this repository should capture Git and pull-request context. The coding profile seeds the Coding Session schema so deliberate checkpoints carry required, queryable Git identity (repository, branch, SHA, and working directory), plus typed pull-request fields when a PR exists. -
Project mapping. "Do you already have a Basic Memory project for this, or should I create one?"
- Existing → show
list_memory_projects()and let them pick. That name becomesprimaryProject. - New → propose a name (default: this repo's directory name) and create it with
create_memory_project.<!-- -->- Local project (default): path defaults to
~/basic-memory/<name>/; any connected Basic Memory server can create it. - Cloud project (the user wants capture in a cloud workspace): pass the
workspaceselector (a slug fromlist_workspaces) and a cloud-style path like/<name>, and create it with a cloud-connected MCP server. A purely local server (uvx basic-memory mcp) treats the path as a local directory and fails to create it (e.g. read-only/). When both a local and a cloud server are connected, route creation and the schema seeding through the cloud one, and pinprimaryProjectto the new project'sexternal_idUUID (collision-proof across workspaces).
- Local project (default): path defaults to
- Existing → show
-
Cloud / teams (skip if there are no extra workspaces). Run
list_workspaces. If the user belongs to more than one workspace, they likely have a team workspace alongside their personal/default one. Uselist_memory_projectsto see the projects in each (note: project names collide across workspaces, so always use the workspace-qualified name, e.g.my-team-2/notes, or theexternal_idUUID — never a bare name).- Read from the team (recommended): ask which team projects to pull into the
session brief for recall. Store their qualified names in
secondaryProjects. These are read-only — recall reads across them; nothing is written to them. Cap: the SessionStart brief reads only the first 6 shared projects per session (a latency/output bound), in list order. If the user wants more than six, order the most relevant first and tell them the rest are configured but not read each session. - Share target (optional): if the user wants a place to publish notes to the
team via
/basic-memory:bm-share, add it toteamProjectsas"<qualified-name>": { "promoteFolder": "shared" }. Sharing is always a manual gesture — auto-capture never writes to a team project.
Keep
primaryProjecta project the user owns for their own capture; team projects are for reading and deliberate sharing only. - Read from the team (recommended): ask which team projects to pull into the
session brief for recall. Store their qualified names in
-
Placement — learn or suggest (depends on the project's state). The goal is a short
placementConventionsstring (3-6 lines) telling you where new notes go. How you get it depends on whether the project already has notes:- Existing project with notes → learn. Inspect it:
list_directoryfor the folder layout, sample a few notes per folder (and, where a folder holds recurring typed notes, you may runschema_inferto see their shape). Summarize the real conventions — folder-by-topic layout, naming style, the observation categories they favor. Infer from their actual notes; don't impose. - New or empty project → suggest (there's nothing to learn yet). Propose a
light structure that fits the focus from step 1 — 3-5 optional top-level
folders, no deep taxonomy — and be explicit that it's a starting point, not a
scaffold: notes work fine without it and structure can stay emergent. Don't
create empty folders; folders appear as notes land in them. Let the user edit
or decline in one word.
Either way, keep it short and store the result as
placementConventions. The SessionStart brief surfaces it (alongsidecaptureFolder), so this is what makes your captures land where the user expects — without it, placement is guesswork.
- Existing project with notes → learn. Inspect it:
-
Schemas. "I'll add the session schema for this profile, plus decision and task schemas, so I can find them precisely later — okay?" (See "Seed the schemas" below.)
-
Lifecycle-event capture. "Should I also keep a local, redacted trail of SessionStart and PreCompact events for diagnostics?" Default to off. Explain that the normal session brief and PreCompact checkpoint work either way; enabling this adds envelopes to a local inbox until
bm hook flusharchives them locally. It never creates knowledge-graph notes. Only the JSON booleantrueenables capture.- If enabled, optionally ask for repo-specific
redactKeys(additional payload keys) andredactPaths(working directories or path-bearing content). The built-in redaction floor still applies when these lists are empty. - Capture stays local and personal. It never writes directly to team projects.
- If enabled, optionally ask for repo-specific
-
How active should I be? (output style) "Want me to proactively capture — search the graph before recalling, write material decisions as typed notes, and cite permalinks? Or keep it quiet (just the session brief, the PreCompact checkpoint, and
/basic-memory:bm-rememberon demand)?" Enabling it setsoutputStyle: "basic-memory". Default to enabled; leave it off for a recall-only, low-noise setup. (This is the single knob for how proactive the assistant is — the hooks always run regardless.) -
Shared skills (optional, default yes). "Want the full Basic Memory toolkit — the shared
memory-*skills (memory-notes,memory-tasks,memory-research,memory-schema,memory-defrag, …)? I can install them alongside this plugin." These are the canonical, framework-agnostic skills (the same set OpenClaw bundles). This plugin ships only the Claude-Code-specific glue and pulls the shared set on demand — it doesn't vendor its own copies. (See "Install the shared skills" below.)
Apply (after confirming the plan)
1. Seed the schemas
The plugin ships seed schemas at <plugin>/schemas/ — that's two directories up
from this skill's directory, then schemas/ (this skill is at
<plugin>/skills/bm-setup/). Read coding-session.md for a coding profile or
session.md for a general profile, then read decision.md and task.md.
These schemas cover notes the Claude integration writes directly. Lifecycle
envelopes are not notes: bm hook flush archives that operational trace locally,
so there is no projected session or tool-ledger schema to seed.
For each one:
- Check whether the chosen project already has a schema for that type
(
search_noteswithmetadata_filters={"type": "schema"}, or tryread_note("schemas/<name>")). If it exists, skip it — never overwrite a schema the user may have customized. - Otherwise write it with
write_note, routed toprimaryProject(pass it asproject, or asproject_idif it's anexternal_idUUID):<!-- -->directory="schemas",note_type="schema",title= the schema's title (Session / Decision / Task).content= the markdown body only — everything after the---frontmatter block (the# Sessionheading and the prose).metadata= the schema's structured frontmatter as a nested dict:entity,version, the fullschemamap, andsettings(keep its nestedfrontmatter, and pass enum values as JSON arrays, e.g.["open","resumed","closed"]).- Do not put the schema's
---frontmatter insidecontent. On the cloud write path that nested YAML is silently coerced to the string'[object Object]'(basic-memory-cloud#1000), corruptingschema/settings. Themetadataparam round-trips correctly on both local and cloud. After seeding, verify one note withread_note(..., output_format="json", include_frontmatter=true)—schema/settingsmust come back as nested objects, not strings.
- Coding setup: the selected
coding-session.mdschema's Git identity fields (repository,repo_root,cwd,branch,git_sha) are required by design. Required-and-proven fields are what make coding checkpoints queryable, so seed the schema unmodified instead of also seeding the general Session schema.
2. Install the shared skills (if the user opted in)
First, guard against clobbering a source checkout. If ./skills already exists,
is tracked in git, and holds memory-* directories, you're inside the skills' own
source repo (e.g. basic-memory itself) — the install would overwrite the working
copy with published versions. In that case skip the install and tell the user
the skills are already present as source; don't run the command. Quick check:
git ls-files skills/ | grep -q memory- && echo "source repo - skip install"
Otherwise, run from the project root:
npx skills add basicmachines-co/basic-memory/skills
This installs the canonical memory-* skills into the user's skills directory — the
single source of truth, shared with OpenClaw. The plugin does not vendor copies;
it relies on this shared set. If npx / the skills CLI isn't available, point the
user at the manual install in the top-level skills/README.md.
3. Write settings
Build the basicMemory block from the interview:
{
"basicMemory": {
"primaryProject": "<chosen>",
"secondaryProjects": [],
"captureFolder": "sessions",
"rememberFolder": "bm-remember",
"recallTimeframe": "3d",
"preCompactCapture": "extractive",
"sessionProfile": "coding",
"repository": "owner/name",
"captureEvents": false,
"redactKeys": [],
"redactPaths": [],
"placementConventions": "<learned or suggested summary, or null>",
"teamProjects": {}
},
"outputStyle": "basic-memory"
}
Persist sessionProfile explicitly. Persist repository only for the coding
profile, after the user confirms it — a coding setup is incomplete without a
repository identifier because the coding_session schema requires queryable
Git identity fields. Omit both keys' example values for a general setup
("sessionProfile": "general", no repository).
Only include outputStyle if the user opted in. Ask whether this is a team
default (write/merge into .claude/settings.json, suggest committing it) or
personal (.claude/settings.local.json). Merge into any existing file —
read it, add/replace only the keys above, preserve everything else. Use compact,
valid JSON. Always persist captureEvents as a JSON boolean. Empty redactKeys
and redactPaths lists may be omitted; when present, they must be JSON arrays of
strings.
Writing the basicMemory block is also what stops the SessionStart hook's first-run
nudge — the config's presence is the signal that setup has run.
4. Smoke-test the wiring
Before you close, prove recall actually resolves — this catches a misnamed project,
missing cloud credentials, or a ref that doesn't route, while the user is still here
to fix it. Run the same structured query the SessionStart hook runs, via the CLI it
uses (basic-memory / bm / uvx basic-memory):
- Primary:
… tool search-notes --type schema --page-size 10againstprimaryProject— use--project-id <uuid>for a UUID,--project <ref>otherwise. It should return the schemas you just seeded. For a coding setup, confirm theCoding Sessionschema is present. - One shared project (only if
secondaryProjectsis non-empty): a--type decision --status openquery against the first ref. It just needs to return cleanly —0 resultsis fine; an error means the ref doesn't route. - Hook health: run
basic-memory hook status --harness claude --project-dir <project-root>with the first availablebasic-memory,bm, oruvx basic-memorylauncher. It must find the intended settings and report the selected project and capture state. Record the shared inbox depth and last-flush state in the setup summary; the counts include envelopes from every supported harness.
Если запрос завершается ошибкой или первичная система ничего не возвращает, сообщите об этом и исправьте ссылку на проект перед закрытием — не допускайте, чтобы брифинг следующей сессии оказался пустым.
Закрыть
Кратко в несколько строк подтвердите, что вы сделали: сопоставление проекта, профиль сессии (и подтверждённый репозиторий для конфигурации программирования), какие схемы были заполнены, а какие уже присутствовали, было ли размещение изучено или предложено, результат smoke-теста, включён ли захват событий жизненного цикла, любые дополнительные средства редактирования, состояние общего хука inbox/flush и включён ли стиль вывода.
Затем обработайте активацию в зависимости от стиля вывода:
- Стиль вывода включён → он фиксируется при запуске сессии, поэтому полные рефлексы захвата вступят в силу только в следующей сессии. Предложите пользователю перезапустить сессию (начать новую сессию Claude Code), чтобы активировать их. Будьте точны, чтобы это не читалось как «пока ничего не работает»: recall уже активен в этой сессии (запрос хука SessionStart выполнился), и контрольная точка PreCompact тоже работает сейчас — только рефлексы проактивного захвата ждут перезапуска.
- Стиль вывода выключен → перезапуск не нужен; хуки уже работают.
Завершите словами: «Готово — я буду использовать это со следующего сообщения. Запустите /basic-memory:bm-status
в любой момент, чтобы увидеть, что я отслеживаю.»
Вставить в README
Ссылка на карточку для вашего README — без картинок и счётчиков.
[DarkPlay: bm-setup](https://darkplay.ru/ai/skills/basicmachines-co-basic-memory-bm-setup)
Из того же репозитория
Похожие скиллы и другие разделы каталога
Самые востребованные скиллов раздела по установкам и звёздам.
find-skillsvercel-labs · Помогает находить и устанавливать навыки агентов по запросам вроде «как сделать X»…
grill-memattpocock · Настойчивое интервью для доработки плана или дизайна.
hyperframesheygen-com · Обязательная точка входа для любых задач по видео, анимации и motion-графике в…
hyperframes-cliheygen-com · Цикл разработки HyperFrames CLI: init, add, render, preview, publish и другие команды.
agent-browservercel-labs · CLI для автоматизации браузера для ИИ-агентов: навигация по страницам, заполнение форм…
media-useheygen-com · Agent Media OS: единый навык для медиа в HyperFrames — BGM, SFX, изображения, голос, LUT.
hyperframes-registryheygen-com · Установка и подключение блоков реестра в композиции HyperFrames через add и catalog.
grill-with-docsmattpocock · Настойчивое интервью для доработки плана или дизайна, попутно создающее документацию (ADR…
improve-codebase-architecturemattpocock · Поиск в кодовой базе возможностей для углубления, визуальный HTML-отчёт о них и детальный…
tddmattpocock · Разработка через тестирование (TDD): red-green-refactor и интеграционные тесты.Соседние разделы каталога: возможно, нужный инструмент живёт там.
Django Build Resolveraffaan-m · Специалист по ошибкам Django: pip/Poetry, миграции, импорты, collectstatic.
Docs Lookupaffaan-m · Получает актуальную документацию и примеры кода через Context7 MCP для вопросов по API и…
Opensource Packageraffaan-m · Готовит open-source упаковку: CLAUDE.md, README, LICENSE, CONTRIBUTING и шаблоны.
hyperframesheygen-com · Все навыки HyperFrames в одном статическом наборе. В большинстве случаев лучше…
amazon-location-serviceanthropics · Помогает разработчикам добавлять карты, поиск мест, геокодирование, маршрутизацию и…
aws-startup-advisoranthropics · Персонализированные рекомендации по архитектуре, затратам, безопасности и миграции для…
claude-code-setupanthropics · Анализирует кодовые базы и рекомендует подходящие автоматизации Claude Code: хуки…
cwc-makersanthropics · Настройка Code-with-Claude Makers Cardputer одной командой /maker-setup: клонирует…
datahub-skillsanthropics · Инструментарий разработки и работы с DataHub: планирование коннекторов, ревью PR, поиск…
expoanthropics · Официальные навыки Expo для создания, развёртывания, обновления и отладки приложений…Лучшие ИИ-инструменты для генерации видео
Подборка нейросетей для генерации и монтажа видео. Инструменты, которые превращают текст в готовые ролики, экономят часы на съемках и постпродакшне. Подходит для SMM-специалистов,
VEED.IOVeed
MootionMootion
Sora (OpenAI)OpenAI
viralpulse.appViralpulse
Viral Maker AIViral-makerЛучшие ИИ-инструменты для генерации текста и копирайтинга
Подборка нейросетей для генерации текстов и копирайтинга. Сервисы, которые помогают создавать статьи, посты и рекламные объявления с нуля или по черновику, экономя часы рутинной ра
NeuroscribeNeuroscribe
GoGPTGogpt
НейроТекстерNeuro-texter
ChatGPTOpenAI
Cosmo ScribeCosmoscribe
Memo HelperCopilot33
LibraChatLibrachatЛучшие ИИ-инструменты для генерации изображений
Подборка нейросетей для генерации изображений от фотореализма до концепт-арта. Сервисы, которые экономят часы ручной работы, создавая визуал для блогов, рекламы и дизайна за минуты
MagviMagvi
DALL-E 3OpenAI
SupaLabSupalab
Freestyling.aiFreestyling
ArtGeneration.meArtgeneration
BigjpgBigjpg
Художник от VKVK
Avato AI12ai
Virton AIVirton