帮助 AI 代理读写记忆与规则,并按环境自动选择可用存储方案
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "inbox-memory" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/vscode-team-kit/main/github-inbox/skills/inbox-memory/SKILL.md 2. 保存为 ~/.claude/skills/inbox-memory/SKILL.md 3. 装好后重载技能,告诉我可以用了
请把以下内容写入代理记忆:'默认用中文回复;输出先给结论再给步骤;遇到不确定信息时明确标注假设。' 然后读取并确认已保存。
返回写入成功信息,并展示已保存的记忆内容或读取结果。
为这个代理新增一条规则:'处理客户数据前先脱敏。' 如果已存在相似规则,请更新为最新版本,并列出当前规则清单。
返回规则新增或更新结果,并输出整理后的规则列表。
读取代理最近一次保存的项目上下文;如果当前环境无法访问主存储,请自动切换到可用的后备存储,并说明最终使用了哪个存储来源。
返回项目上下文内容,并说明是从主存储还是后备存储中读取的。
This skill reads and writes persistent memory and rules files for the Inbox agent. It abstracts storage so all agents use a single skill instead of calling #memory directly.
github-inbox-memory.md — session context, patterns, preferencesgithub-inbox-rules.md — user's rules and preferencesTry the #memory tool first (available in VS Code Chat). If #memory is not available (e.g. Copilot CLI), fall back to the file system under ~/.copilot/:
~/.copilot/github-inbox-memory.md~/.copilot/github-inbox-rules.md#memory with { "command": "view", "path": "/memories/github-inbox-memory.md" }.#memory is available. Use it for all reads and writes.Via #memory:
{ "command": "view", "path": "/memories/github-inbox-memory.md" }
{ "command": "view", "path": "/memories/github-inbox-rules.md" }
Via file system (fallback):
Read ~/.copilot/github-inbox-memory.md or ~/.copilot/github-inbox-rules.md using #read (VS Code) or #view (CLI). If the file doesn't exist, treat as empty / first-time user.
Via #memory:
{ "command": "delete", "path": "/memories/github-inbox-memory.md" }
{ "command": "create", "path": "/memories/github-inbox-memory.md", "file_text": "<content>" }
If the file doesn't exist yet, skip the delete and just use create.
Via file system (fallback):
~/.copilot/ exists: mkdir -p ~/.copilot#edit or via terminal: write full content to ~/.copilot/github-inbox-memory.md./memories/repo/) — only the files listed above帮助你快速检索 GitHub 中分配给你、待分诊或自定义条件的议题与 PR。
为 AI 代理提供离线可学习记忆,自动强化关键信息并遗忘无关内容。