Skip to content

Commit 1eb4cd1

Browse files
phernandezclaude
andcommitted
fix(plugins): route UUID project refs consistently across all skills
Codex flagged /basic-memory:remember passing a UUID primaryProject as `project` (review 4397206729) — the same routing bug already fixed in the hooks and the share skill. Rather than fix only the flagged spot, audited every project-ref site and made them all consistent: - remember: route primaryProject as project_id when it's a UUID (was the flag) - status: same for the primaryProject-scoped search_notes queries - setup: same for the schema-seed write to primaryProject share/SKILL.md and both hooks (session-start, pre-compact) already handle it. That's now every place the plugin routes to a project ref — a project ref may be a workspace-qualified name (-> project) or an external_id UUID (-> project_id), and all six sites detect and route accordingly. Plugin validates. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: phernandez <paul@basicmachines.co>
1 parent bfee895 commit 1eb4cd1

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ Capture `$ARGUMENTS` into Basic Memory as a quick note, keeping the user's words
3232
- `directory` = the resolved `rememberFolder`
3333
- `content` = the text
3434
- `tags` = `["manual-capture"]`
35-
- `project` = `primaryProject` if set; otherwise omit it
35+
- Route to `primaryProject` if set: pass it as `project`, or as `project_id` if
36+
it's an `external_id` UUID (a bare UUID in `project` won't route). Omit both if
37+
`primaryProject` isn't set.
3638
Don't overwrite an existing note unless the user explicitly asks.
3739

3840
4. **Confirm** in one line: what was saved and its permalink —

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ For each one:
103103
`title` = the schema's title (Session / Decision / Task), `content` = the file's
104104
full contents (including its `---` frontmatter — Basic Memory merges that into the
105105
note's frontmatter, so the `type: schema` + `entity` + `schema` definition land
106-
intact and become resolvable by `schema_validate`), `project` = `primaryProject`.
106+
intact and become resolvable by `schema_validate`), routed to `primaryProject`
107+
(pass it as `project`, or as `project_id` if it's an `external_id` UUID).
107108

108109
### 2. Install the shared skills (if the user opted in)
109110
Run, from the project root:

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ This is a quick diagnostic — gather the facts and lay them out; don't over-inv
3232
4. **Active tasks.** `search_notes` with
3333
`metadata_filters={"type": "task", "status": "active"}` — report just the count.
3434

35+
When scoping these queries to `primaryProject`, pass it as `project`, or as
36+
`project_id` if it's an `external_id` UUID (a bare UUID in `project` won't route).
37+
3538
## Present
3639

3740
Lay it out like this (fill in real values; write "—" or a short note for anything

0 commit comments

Comments
 (0)