agent-comms
SendMessage recipient validation and worktreePath safety (CWE-59). TRIGGER when: validating a SendMessage `to:` recipient against…
Search, recall and store using the memory MCP tools (search_context, semantic_search, semantic_recall, semantic_store, notes). TRIGGER when: searching prior insights mid-task, or deciding whether and how to store an insight or note. SKIP: repo file tiers under .scaffolding/ (use
Claude Code
$ npx -y skills add komluk/scaffolding --skill semantic-memory-mcp --agent claude-code
Codex
$ npx skills add komluk/scaffolding --skill semantic-memory-mcp -a codex -y
Cursor
$ npx skills add komluk/scaffolding --skill semantic-memory-mcp -a cursor -y
Gemini CLI
$ npx skills add komluk/scaffolding --skill semantic-memory-mcp -a gemini-cli -y
GitHub Copilot
$ npx skills add komluk/scaffolding --skill semantic-memory-mcp -a github-copilot -y
OpenCode
$ npx skills add komluk/scaffolding --skill semantic-memory-mcp -a opencode -y
Windsurf
$ npx skills add komluk/scaffolding --skill semantic-memory-mcp -a windsurf -y
name: semantic-memory-mcp description: "Search, recall and store using the memory MCP tools (search_context, semantic_search, semantic_recall, semantic_store, notes). TRIGGER when: searching prior insights mid-task, or deciding whether and how to store an insight or note. SKIP: repo file tiers under .scaffolding/ (use agent-memory); scoring /learn candidates (use distill)."
You have access to a subset of the 13 memory MCP tools. Use the search/recall tools PROACTIVELY -- do not wait to be asked. Only call a tool your agent's `tools:` frontmatter actually grants; that frontmatter is authoritative. See the `mcp-tools` skill for the full 13-tool inventory and access table.
| Tool | Purpose | |------|---------| | `search_context` | Search ingested context chunks | | `semantic_search` | Find memories by similarity query | | `semantic_recall` | Get formatted memories for current context | | `semantic_store` | Store a new memory with embedding | | `store_note` / `read_note` / `list_notes` | Persist/read/list note documents | | `trigger_ingest` | Queue one just-written document (`corpus` + `relative_path`) for immediate indexing (~3s to become searchable) instead of waiting up to 15 minutes |
`trigger_ingest` is only useful paired with `store_note` (otherwise you are re-indexing a document you didn't write), and each call costs an LLM context-gen call. It is path-scoped to a single document -- it cannot trigger a full backfill -- and it is fire-and-forget: it returns once the document is queued, not once indexing completes. Don't expect a synchronous "done" result; the document becomes searchable a few seconds later.
> **Note**: If this skill is active in a repository without the `memory` MCP server, skip these instructions. An agent without `mcp__memory__*` tools should simply work without semantic memory -- the file-based fallback in `.scaffolding/agent-memory/` (see the `agent-memory` skill) keeps working. Never block on missing infrastructure.
Baseline recall and store already happen without you:
Manual calls are for *targeted* mid-task queries and explicit stores.
The `memory-project-id` SessionStart hook injects the value to use (a `scaffold:<hash>` derived from the git remote); pass that exact value to every `semantic_search` / `semantic_recall` / `semantic_store` call. If no `project_id` is provided in session context, the backend uses a shared `default` namespace. Note: `project_id` (this section's mem0 axis) is distinct from `corpus` (used by `search_context`/notes/`trigger_ingest`, one of three NFS share directories) — don't conflate the two.
semantic_recall(context="SQLAlchemy async session event loop issues", project_id="scaffold:ab12cd34ef56") semantic_search(query="deployment nginx proxy configuration gotchas", project_id="scaffold:ab12cd34ef56") semantic_search(query="Redis task queue timeout handling", project_id="scaffold:ab12cd34ef56", agent_name="debugger")
| Type | Use When | |------|----------| | `learning` | General knowledge, best practices, how-to (default) | | `error` |
Spec-driven multi-agent orchestration for Claude Code — pure markdown, zero backend, runs on the stock runtime. 13 agents, 39 skills, 21 commands, 20 hooks, per-phase model tiers, opt-in lifecycle hooks, optional cross-device semantic memory.
SendMessage recipient validation and worktreePath safety (CWE-59). TRIGGER when: validating a SendMessage `to:` recipient against…
Repo-local file memory under .scaffolding/ (shared/agent/conversation tiers). TRIGGER when: reading or writing .scaffolding/…
RESTful API design standards: resource naming, HTTP methods, status codes, pagination, versioning. TRIGGER when: designing new…
Optimize Claude Code context-window usage for accuracy and cost. TRIGGER when: hitting context limits, structuring prompts for an…
Schema design, index strategy, migration safety, and query analysis. TRIGGER when: designing tables or indexes, writing a…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.