Skip to content
Back to skills

Memforge Setup

ASecurity

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.

  • 105 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 23, 2026
ai-agentspythonbashgitapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned November 23, 2026

npx -y skills add dodo-labs-ai/mem-forge --skill memforge-setup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Memforge Setup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Memforge Setup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dodo-labs-ai-memforge-setup/badge)](https://www.skillsdirectory.com/skills/dodo-labs-ai-memforge-setup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Files in this skill

  • SKILL.md3.1 KB
  • scripts/workspace_config.py10.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.