用途:remember 用于把调试会话、工作流发现、反复犯的错误和来之不易的经验,转化为按领域组织的可复用记忆指令,帮助 AI 助手找到最佳模式并避免常见错误。
主要能力:自动发现已有记忆领域(通过 glob 匹配 *-memory.instructions.md 文件),把新经验匹配到领域或按需创建新领域文件,并按上下文组织知识,形成随经验增长的自组织知识库。
使用方式:语法为 /remember [>domain-name [scope]] lesson content。>domain-name 可选,用于指定领域(如 >clojure、>git-workflow);scope 可选,取 global、user(均指全局)、workspace 或 ws,默认全局;lesson content 必填。示例:/remember >shell-scripting now we've forgotten about using fish syntax too many times;/remember >clojure prefer passing maps over parameter lists;/remember avoid over-escaping;/remember >clojure workspace prefer threading macros for readability;/remember >testing ws use setup/teardown functions。
存储范围:全局存于 <global-prompts>(vscode-userdata:/User/prompts/),适用于所有 VS Code 项目;工作区存于 <workspace-instructions>(<workspace-root>/.github/instructions/),仅适用于当前项目。
文件结构:领域文件包含 description 前置元数据(保持通用,聚焦领域职责)、applyTo 前置元数据(用 glob 定位相关文件模式与位置)、一级标题 # <Domain Name> Memory、简短标语,以及每条经验一个二级标题。
限制:领域分类不确定时会请求人工输入;添加记忆前需读取现有文件以避免冗余;具体收费、价格、平台支持等信息暂未提供。