重要前提
安装AI Skills的关键前提是:必须科学上网,且开启TUN模式,这一点至关重要,直接决定安装能否顺利完成,在此郑重提醒三遍:科学上网,科学上网,科学上网。查看完整安装教程 →
hindsight-cloud by vectorize-io/hindsight
npx skills add https://github.com/vectorize-io/hindsight --skill hindsight-cloud您可以通过 Hindsight Cloud 拥有持久记忆。此记忆库与团队共享,因此存储在此的知识将使处理此代码库的每个人受益。
主动存储团队知识并回忆上下文,以提供更好的协助。
在使用记忆命令之前,请验证 Hindsight CLI 是否已配置:
cat ~/.hindsight/config
如果文件不存在或缺少凭据,请帮助用户进行设置:
安装 CLI(如果找不到 hindsight 命令):
curl -fsSL https://hindsight.vectorize.io/get-cli | bash
创建配置文件 - 向用户询问其 API 密钥(从 https://ui.hindsight.vectorize.io 获取):
mkdir -p ~/.hindsight cat > ~/.hindsight/config << 'EOF' api_url = "https://api.hindsight.vectorize.io" api_key = "<user's API key>" EOF chmod 600 ~/.hindsight/config
获取库 ID - 向用户询问其团队的库 ID(例如,team-myproject)
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
设置完成后,请在以下所有命令中使用该库 ID。
当您调用 retain 时,Hindsight 不会按原样存储字符串。服务器会运行一个内部流程,该流程会:
这意味着您应该传递丰富的、完整上下文的内容——服务器在提取重要内容方面比预先总结的字符串更擅长。您的工作是决定何时存储,而不是提取什么。
将 <bank-id> 替换为用户的实际库 ID(例如,team-frontend)。
使用 memory retain 来存储您学到的内容。传递完整的上下文——原始观察、会话笔记或详细描述:
hindsight memory retain <bank-id> "The project uses ESLint configured with the Airbnb rule set and Prettier for formatting. Auto-fix on save is enabled in the editor config."
hindsight memory retain <bank-id> "Ran the test suite with NODE_ENV=test. Tests pass. Without NODE_ENV=test, the suite fails with a missing config error." --context procedures
hindsight memory retain <bank-id> "Build failed on Node 18 with error 'ERR_UNSUPPORTED_ESM_URL_SCHEME'. Switched to Node 20 and build succeeded." --context learnings
hindsight memory retain <bank-id> "Alice reviewed the PR and asked for verbose commit messages that explain the motivation, not just what changed." --context preferences
您也可以传递带有时间戳的原始对话记录:
hindsight memory retain <bank-id> "[2026-03-16T10:12:03] User: The auth tests keep failing on CI but pass locally. Any idea?
[2026-03-16T10:12:45] Assistant: Let me check the CI logs. Looks like the tests are running without the TEST_DATABASE_URL env var set — they fall back to the production DB URL and hit a connection timeout.
[2026-03-16T10:13:20] User: Ah right, I never added that to the CI secrets. Adding it now.
[2026-03-16T10:15:02] User: That fixed it. All green now." --context learnings
在开始任务之前使用 memory recall 来获取相关上下文:
hindsight memory recall <bank-id> "project conventions and coding standards"
hindsight memory recall <bank-id> "Alice preferences for this project"
hindsight memory recall <bank-id> "what issues have we encountered before"
hindsight memory recall <bank-id> "how does the auth module work"
使用 memory reflect 来综合上下文:
hindsight memory reflect <bank-id> "How should I approach this task based on past experience?"
这是一个共享的团队库。存储对团队有益的知识。对于个人偏好,请包含人员姓名。
在以下情况之前始终回忆:
--context 作为元数据:--context 标志用于标记记忆的类型(例如,procedures、learnings、preferences),而不是完整内容的替代品每周安装量
55
代码仓库
GitHub 星标数
7.7K
首次出现
2026 年 1 月 24 日
安全审计
安装于
codex53
gemini-cli53
opencode53
cursor52
cline52
github-copilot52
You have persistent memory via Hindsight Cloud. This memory bank is shared with the team , so knowledge stored here benefits everyone working on this codebase.
Proactively store team knowledge and recall context to provide better assistance.
Before using memory commands, verify the Hindsight CLI is configured:
cat ~/.hindsight/config
If the file doesn't exist or is missing credentials , help the user set it up:
Install the CLI (if hindsight command not found):
curl -fsSL https://hindsight.vectorize.io/get-cli | bash
Create the config file - ask the user for their API Key (get it from https://ui.hindsight.vectorize.io):
mkdir -p ~/.hindsight cat > ~/.hindsight/config << 'EOF' api_url = "https://api.hindsight.vectorize.io" api_key = "<user's API key>" EOF chmod 600 ~/.hindsight/config
Get the bank ID - ask the user for their team's bank ID (e.g., team-myproject)
After setup, use the bank ID in all commands below.
When you call retain, Hindsight does not store the string as-is. The server runs an internal pipeline that:
This means you should pass rich, full-context content — the server is better at extracting what matters than a pre-summarized string. Your job is to decide when to store, not what to extract.
Replace <bank-id> with the user's actual bank ID (e.g., team-frontend).
Use memory retain to store what you learn. Pass full context — raw observations, session notes, or detailed descriptions:
hindsight memory retain <bank-id> "The project uses ESLint configured with the Airbnb rule set and Prettier for formatting. Auto-fix on save is enabled in the editor config."
hindsight memory retain <bank-id> "Ran the test suite with NODE_ENV=test. Tests pass. Without NODE_ENV=test, the suite fails with a missing config error." --context procedures
hindsight memory retain <bank-id> "Build failed on Node 18 with error 'ERR_UNSUPPORTED_ESM_URL_SCHEME'. Switched to Node 20 and build succeeded." --context learnings
hindsight memory retain <bank-id> "Alice reviewed the PR and asked for verbose commit messages that explain the motivation, not just what changed." --context preferences
You can also pass a raw conversation transcript with timestamps:
hindsight memory retain <bank-id> "[2026-03-16T10:12:03] User: The auth tests keep failing on CI but pass locally. Any idea?
[2026-03-16T10:12:45] Assistant: Let me check the CI logs. Looks like the tests are running without the TEST_DATABASE_URL env var set — they fall back to the production DB URL and hit a connection timeout.
[2026-03-16T10:13:20] User: Ah right, I never added that to the CI secrets. Adding it now.
[2026-03-16T10:15:02] User: That fixed it. All green now." --context learnings
Use memory recall BEFORE starting tasks to get relevant context:
hindsight memory recall <bank-id> "project conventions and coding standards"
hindsight memory recall <bank-id> "Alice preferences for this project"
hindsight memory recall <bank-id> "what issues have we encountered before"
hindsight memory recall <bank-id> "how does the auth module work"
Use memory reflect to synthesize context:
hindsight memory reflect <bank-id> "How should I approach this task based on past experience?"
This is a shared team bank. Store knowledge that benefits the team. For individual preferences, include the person's name.
Always recall before:
--context for metadata: The --context flag labels the type of memory (e.g., procedures, learnings, preferences), not a replacement for full contentWeekly Installs
55
Repository
GitHub Stars
7.7K
First Seen
Jan 24, 2026
Security Audits
Gen Agent Trust HubFailSocketPassSnykFail
Installed on
codex53
gemini-cli53
opencode53
cursor52
cline52
github-copilot52
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
125,600 周安装
Google Workspace CLI People API 命令指南 - 联系人管理与批量操作
9,000 周安装
Google Workspace CLI 站会报告工具:自动汇总今日会议与待办任务
9,000 周安装
Google Workspace CLI 每周工作摘要:自动生成本周会议与未读邮件统计报告
9,000 周安装
Google Workspace CLI 会议准备工具 - 自动生成议程、与会者和文档清单
9,100 周安装
Google Workspace CLI gws-chat 命令:管理 Google Chat 空间、表情符号与媒体文件
9,200 周安装
工业粗野主义UI设计指南:战术遥测界面与瑞士印刷风格网页构建
10,200 周安装