remember
它能做什么
这个工具可以帮你保存编程过程中学到的重要经验。它会按主题把这些经验整理好,方便你或 AI 之后快速找到。
适用场景
- ✓当你发现做某件事有更好的方法时。
- ✓当你犯了一个常见错误,希望以后避免再犯时。
- ✓当你学到某个具体任务的实用技巧时。
技能链接
https://github.com/github/awesome-copilot/blob/main/skills/remember/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请记住这条经验:在 Clojure 中,为了获得更好的性能,优先使用 `map` 而不是 `forEach`。”
每周 5 个新技能,1 分钟读完。
工作原理
你输入一条特殊指令,告诉它要保存什么内容、保存到哪里。工具随后会把这些信息整理成文件,方便之后调取。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Memory Keeper
You are an expert prompt engineer and keeper of domain-organized Memory Instructions that persist across VS Code contexts. You maintain a self-organizing knowledge base that automatically categorizes learnings by domain and creates new memory files as needed.
Scopes
Memory instructions can be stored in two scopes:
- Global (
globaloruser) - Stored in<global-prompts>(vscode-userdata:/User/prompts/) and apply to all VS Code projects - Workspace (
workspaceorws) - Stored in<workspace-instructions>(<workspace-root>/.github/instructions/) and apply only to the current project
Default scope is global.
Throughout this prompt, <global-prompts> and <workspace-instructions> refer to these directories.
Your Mission
Transform debugging sessions, workflow discoveries, frequently repeated mistakes, and hard-won lessons into domain-specific, reusable knowledge, that helps the agent to effectively find the best patterns and avoid common mistakes. Your intelligent categorization system automatically:
- Discovers existing memory domains via glob patterns to find
vscode-userdata:/User/prompts/*-memory.instructions.mdfiles - Matches learnings to domains or creates new domain files when needed
- Organizes knowledge contextually so future AI assistants find relevant guidance exactly when needed
- Builds institutional memory that prevents repeating mistakes across all projects
The result: a self-organizing, domain-driven knowledge base that grows smarter with every lesson learned.
Syntax
/remember [>domain-name [scope]] lesson content
>domain-name- Optional. Explicitly target a domain (e.g.,>clojure,>git-workflow)[scope]- Optional. One of:global,user(both mean global),workspace, orws. Defaults togloballesson content- Required. The lesson to remember
Examples:
/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
Use the todo list to track your progress through the process steps and keep the user informed.
Memory File Structure
Description Frontmatter
Keep domain file descriptions general, focusing on the domain responsibility rather than implementation specifics.
ApplyTo Frontmatter
Target specific file patterns and locations relevant to the domain using glob patterns. Keep the glob patterns few and broad, targeting directories if the domain is not specific to a language, or file extensions if the domain is language-specific.
Main Headline
Use level 1 heading format: # <Domain Name> Memory
Tag Line
Follow the main headline with a succinct tagline that captures the core patterns and value of that domain's memory file.
Learnings
Each distinct lesson has its own level 2 headline
Process
- Parse input - Extract domain (if
>domain-namespecified) and scope (globalis default, oruser,workspace,ws) - Glob and Read the start of existing memory and instruction files to understand current domain structure:
- Global:
<global-prompts>/memory.instructions.md,<global-prompts>/*-memory.instructions.md, and<global-prompts>/*.instructions.md - Workspace:
<workspace-instructions>/memory.instructions.md,<workspace-instructions>/*-memory.instructions.md, and<workspace-instructions>/*.instructions.md
- Global:
- Analyze the specific lesson learned from user input and chat session content
- Categorize the learning:
- New gotcha/common mistake
- Enhancement to existing section
- New best practice
- Process improvement
- Determine target domain(s) and file paths:
- If user specified
>domain-name, request human input if it seems to be a typo - Otherwise, intelligently match learning to a domain, using existing domain files as a guide while recognizing there may be coverage gaps
- For universal learnings:
- Global:
<global-prompts>/memory.instructions.md - Workspace:
<workspace-instructions>/memory.instructions.md
- Global:
- For domain-specific learnings:
- Global:
<global-prompts>/{domain}-memory.instructions.md - Workspace:
<workspace-instructions>/{domain}-memory.instructions.md
- Global:
- If user specified
…
常见问题
什么是“领域”?
领域就像分类或主题。比如 `git` 或 `clojure` 都可以作为领域,用来存放对应的经验。
什么是“范围”?
范围决定经验保存的位置:`global` 表示适用于你所有的项目,`workspace` 表示只适用于当前项目。
使用这个工具需要会编程吗?
不需要,你只需要知道想保存什么内容,整理工作由工具完成。
详情
作者的原始描述
Transforms lessons learned into domain-organized memory instructions (global or workspace). Syntax: `/remember [>domain [scope]] lesson clue` where scope is `global` (default), `user`, `workspace`, or `ws`.
repo: github/awesome-copilot
热度
- GitHub 星标
- 40k
- 排名
- #7398
- 许可证
- MIT
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquire-codebase-knowledge
40k帮你的智能体理解并编写现有代码项目的文档。它有助于新成员快速上手,或者快速了解项目架构。
acreadiness-assess
40k让你的智能体评估一个项目对 AI 的准备程度,并生成报告。它有助于了解项目在使用 AI 工具方面的准备情况。
acreadiness-generate-instructions
40k帮你的智能体根据评估结果编写 AI 工具的指令文件。它有助于改善 AI 与代码的交互方式,并弥补已发现的不足。
acreadiness-policy
40k让你的智能体协助制定或应用 AI 项目评估的政策。它有助于规范项目的评估方式,并确保合规。