memforge-setup — скилл для Claude Code: настройка MemForge
Скилл memforge-setup для Claude Code настраивает привязку проекта к рабочему пространству MemForge. Он запускается по просьбе привязать или отвязать проект либо разобраться с выбором пространства.
Apache-2.0 ★ 104 обновлён 2026-11-17
/plugin marketplace add dodo-labs-ai/mem-forge
/plugin install memory@memforgeЧто делает memforge-setup
Скилл проверяет и меняет маршрутизацию рабочих пространств MemForge для Git-репозиториев и обычных каталогов. Git-привязка использует нормализованный адрес origin, а каталог привязывается по абсолютному пути; более точная привязка каталога имеет приоритет. Явный workspace_id для вызова MCP-инструмента перекрывает эти привязки.
Для работы нужны Python 3.12+ и доступ к настроенному каталогу рабочего пространства MemForge. Скрипт scripts/workspace_config.py сначала показывает предварительный план изменений; применять его можно после отдельного подтверждения. Команды настройки принимают codex или claude-code. Скилл не меняет регистрацию MCP и не читает и не записывает учётные данные.
Какие задачи решает
- привязать Git-репозиторий к рабочему пространству MemForge
- назначить рабочее пространство обычному каталогу
- проверить, какое пространство выбрано для проекта
- удалить старые ключи привязки
Примеры запросов агенту
- Привяжи этот Git-репозиторий к выбранному рабочему пространству MemForge.
- Проверь, какое рабочее пространство MemForge выбрано для текущего каталога.
- Удали устаревшие ключи привязки после показа плана и моего подтверждения.
Как установить memforge-setup
1Через маркетплейс плагинов
/plugin marketplace add dodo-labs-ai/mem-forge/plugin install memory@memforgeКоманда ставит плагин memory целиком, со всеми его скиллами
2Через Skills CLI (Vercel)
npx skills add dodo-labs-ai/mem-forge --skill memforge-setup -a claude-code3Вручную: положить файлы
~/.claude/skills/memforge-setup/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/memforge-setup/
1Через Skills CLI (Vercel)
npx skills add dodo-labs-ai/mem-forge --skill memforge-setup -a codex2Вручную: положить файлы
.agents/skills/memforge-setup/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add dodo-labs-ai/mem-forge --skill memforge-setup -a cursor2Вручную: положить файлы
.cursor/skills/memforge-setup/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install dodo-labs-ai/mem-forge integrations/claude-code/memforge-memory/skills/memforge-setup2Вручную: положить файлы
.github/skills/memforge-setup/SKILL.md1Через Skills CLI (Vercel)
npx skills add dodo-labs-ai/mem-forge --skill memforge-setup -a gemini-cli2Командой платформы
gemini skills install https://github.com/dodo-labs-ai/mem-forge --path integrations/claude-code/memforge-memory/skills/memforge-setupВручную: положить файлы
.devin/skills/memforge-setup/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Claude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о memforge-setup
Как установить memforge-setup в Claude Code?
Добавь маркетплейс командой /plugin marketplace add dodo-labs-ai/mem-forge, затем установи плагин командой /plugin install memory@memforge.
Что делает memforge-setup?
Скилл проверяет и настраивает выбор рабочего пространства MemForge для Git-репозитория или обычного каталога. Изменения сначала показываются как предварительный план.
Что нужно для работы memforge-setup?
Нужны Python 3.12+ и доступ к настроенному каталогу рабочего пространства MemForge.
Исходный текст
SKILL.md · Apache-2.0
--- name: memforge-setup description: Inspect and configure MemForge workspace routing for Git repositories and ordinary directories. Use when the user asks to bind a local project to a workspace, change or remove that binding, or diagnose workspace selection. compatibility: Requires Python 3.12+ and access to the configured MemForge workspace directory. --- # MemForge Workspace Setup Use the bundled `scripts/workspace_config.py` helper. It owns only `~/.memforge/workspace-bindings.json`; never ask the user to edit the file by hand. ## Routing model - A Git checkout with an `origin` is stored in `repository_bindings` using the normalized origin, so its worktrees and moved checkouts share a binding. - Any ordinary non-Git directory is stored in `directory_bindings` by absolute path. Descendants inherit it and the most-specific directory wins. - An explicit tool `workspace_id` overrides either binding for that call. - Bindings select the workspace for the MemForge MCP tools. Hooks select no workspace: the plugin's only hook adds static usage guidance. - API URL and credentials remain in the client's existing configuration. This skill never writes or displays credentials and never edits MCP registration. ## Commands Resolve the helper relative to this skill, then use: ```bash python3 "<skill-dir>/scripts/workspace_config.py" --client CLIENT inspect --path "$PWD" python3 "<skill-dir>/scripts/workspace_config.py" --client CLIENT bind --path "$PWD" --workspace WORKSPACE python3 "<skill-dir>/scripts/workspace_config.py" --client CLIENT unbind --path "$PWD" python3 "<skill-dir>/scripts/workspace_config.py" --client CLIENT remove-obsolete-keys ``` `CLIENT` is `codex` or `claude-code`. Binding commands validate the workspace against the live configured target. Mutations are previews unless `--apply` is present. ## Obsolete keys `inspect` lists `obsolete_keys`: entries that earlier plugin releases wrote and nothing reads, such as `hook_workspace_id`. They are ignored and do not change routing. When the list is not empty, tell the user and offer to remove them with `remove-obsolete-keys`, following the confirmation workflow below. Never remove them without that confirmation. ## Required confirmation workflow 1. Use `list_workspaces` when available and let the user choose the workspace; never infer it from the server default. 2. Run the selected command without `--apply`. 3. Show the operation, binding kind/key, workspace, target origin, exact file, and planned document. Do not show credentials. 4. Ask for explicit confirmation of that preview. 5. After confirmation, repeat with `--apply --expect-digest DIGEST`, using the exact `document_digest` from the preview. 6. If the digest changed, preview and confirm again. Do not bypass the guard. An initial request to set up routing is not confirmation of the generated preview. Inspection is read-only and needs no confirmation. ## Completion report Report the local path or repository identity, workspace, binding source, file changed, and that the next MCP call will use it. State that no credentials or MCP registration changed. A restart is not required.
© MemForge Team · Apache-2.0 · dodo-labs-ai/mem-forge