Skip to content

Commit a79703f

Browse files
phernandezclaude
andcommitted
docs(plugins): fold in setup debrief fixes — cloud-create, skills-source guard, shared-read cap
- Project mapping: document local vs cloud project creation — a cloud-workspace project needs a cloud-connected MCP server and a workspace selector; a purely local server fails to mkdir the cloud-style path. Pin cloud primaryProject to the external_id UUID. - Install shared skills: guard against clobbering a source checkout — if ./skills is git-tracked and holds memory-* dirs (the skills' own source repo), skip the npx install instead of overwriting the working copy with published versions. - Cloud/teams: warn that the SessionStart brief reads only the first 6 shared projects per session, so order the most relevant first when more are configured. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>
1 parent 3bbafb9 commit a79703f

1 file changed

Lines changed: 26 additions & 3 deletions

File tree

  • plugins/claude-code/skills/setup

plugins/claude-code/skills/setup/SKILL.md

Lines changed: 26 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,18 @@ Ask only what you can't infer. Cover:
4444
should I create one?"
4545
- Existing → show `list_memory_projects()` and let them pick. That name becomes
4646
`primaryProject`.
47-
- New → propose a name (default: this repo's directory name) and a path
48-
(default: `~/basic-memory/<name>/`), then create it with
47+
- New → propose a name (default: this repo's directory name) and create it with
4948
`create_memory_project`.
49+
- *Local project* (default): path defaults to `~/basic-memory/<name>/`; any
50+
connected Basic Memory server can create it.
51+
- *Cloud project* (the user wants capture in a cloud workspace): pass the
52+
`workspace` selector (a slug from `list_workspaces`) and a cloud-style path
53+
like `/<name>`, and create it with a **cloud-connected** MCP server. A purely
54+
local server (`uvx basic-memory mcp`) treats the path as a local directory and
55+
fails to create it (e.g. read-only `/`). When both a local and a cloud server
56+
are connected, route creation *and* the schema seeding through the cloud one,
57+
and pin `primaryProject` to the new project's `external_id` UUID
58+
(collision-proof across workspaces).
5059

5160
3. **Cloud / teams** (skip if there are no extra workspaces). Run
5261
`list_workspaces`. If the user belongs to more than one workspace, they likely
@@ -57,6 +66,10 @@ Ask only what you can't infer. Cover:
5766
- **Read from the team** (recommended): ask which team projects to pull into the
5867
session brief for recall. Store their qualified names in `secondaryProjects`.
5968
These are **read-only** — recall reads across them; nothing is written to them.
69+
**Cap:** the SessionStart brief reads only the first **6** shared projects per
70+
session (a latency/output bound), in list order. If the user wants more than
71+
six, order the most relevant first and tell them the rest are configured but
72+
not read each session.
6073
- **Share target** (optional): if the user wants a place to *publish* notes to the
6174
team via `/basic-memory:share`, add it to `teamProjects` as
6275
`"<qualified-name>": { "promoteFolder": "shared" }`. Sharing is always a manual
@@ -130,7 +143,17 @@ For each one:
130143
`schema`/`settings` must come back as nested objects, not strings.
131144

132145
### 2. Install the shared skills (if the user opted in)
133-
Run, from the project root:
146+
**First, guard against clobbering a source checkout.** If `./skills` already exists,
147+
is tracked in git, and holds `memory-*` directories, you're inside the skills' own
148+
source repo (e.g. `basic-memory` itself) — the install would overwrite the working
149+
copy with published versions. In that case **skip the install** and tell the user
150+
the skills are already present as source; don't run the command. Quick check:
151+
152+
```
153+
git ls-files skills/ | grep -q memory- && echo "source repo — skip install"
154+
```
155+
156+
Otherwise, run from the project root:
134157

135158
```
136159
npx skills add basicmachines-co/basic-memory --path skills

0 commit comments

Comments
 (0)