一键导入
add-memory
Scaffold a new memory storage backend for spaceduck
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold a new memory storage backend for spaceduck
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Research any topic using web search and browsing, then store a concise summary to memory. Use for scheduled research tasks or one-off deep dives.
Summarize the day's conversations and store key takeaways to long-term memory. Use when running as a scheduled end-of-day review.
Categorize and prioritize incoming messages across channels. Use when triggered by a new message event to decide urgency and routing.
Identify contradictory, stale, or duplicate memories and propose cleanup. Use when running as a scheduled weekly maintenance task.
Scaffold a new messaging channel package for spaceduck
Scaffold a new LLM provider package for spaceduck
| name | add-memory |
| description | Scaffold a new memory storage backend for spaceduck |
Scaffolds a new memory storage backend under packages/memory/<name>/.
EmbeddingProvider (vector DBs do, text-search backends don't)packages/memory/<name>/
package.json # @spaceduck/memory-<name>, depends on @spaceduck/core
src/
store.ts # <Name>ConversationStore implements ConversationStore
long-term.ts # <Name>LongTermMemory implements LongTermMemory
index.ts # barrel export
__tests__/
store.test.ts
long-term.test.ts
ConversationStore interface:import type { ConversationStore, Conversation, Message, Result, MemoryError, Lifecycle } from "@spaceduck/core";
export class <Name>ConversationStore implements ConversationStore, Lifecycle {
// CRUD for conversations and messages
}
LongTermMemory interface:import type { LongTermMemory, Fact, Lifecycle } from "@spaceduck/core";
export class <Name>LongTermMemory implements LongTermMemory, Lifecycle {
// For vector backends: accept EmbeddingProvider via constructor
// recall(query) internally embeds the query and does similarity search
}
@spaceduck/gateway as an alternative to the default SQLite backend