hindsight-local
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHindsight Memory Skill (Local)
Hindsight本地记忆技能(Local)
You have persistent memory via the CLI. Proactively store learnings and recall context to provide better assistance.
hindsight-embed你可以通过 CLI拥有持久化记忆。主动存储经验并调取上下文,以提供更优质的协助。
hindsight-embedSetup Check (First-Time Only)
首次设置检查(仅首次操作)
Before using memory commands, verify Hindsight is configured:
bash
uvx hindsight-embed daemon statusIf this fails or shows "not configured", run the interactive setup:
bash
uvx hindsight-embed configureThis will prompt for an LLM provider and API key. After setup, the commands below will work.
使用记忆命令前,请确认Hindsight已配置完成:
bash
uvx hindsight-embed daemon status如果命令执行失败或显示“未配置”,请运行交互式设置:
bash
uvx hindsight-embed configure这将提示你选择LLM提供商并输入API密钥。设置完成后,以下命令即可正常使用。
Commands
命令说明
Store a memory
存储记忆
Use to store what you learn:
memory retainbash
uvx hindsight-embed memory retain default "User prefers TypeScript with strict mode"
uvx hindsight-embed memory retain default "Running tests requires NODE_ENV=test" --context procedures
uvx hindsight-embed memory retain default "Build failed when using Node 18, works with Node 20" --context learnings使用命令存储你获取的经验:
memory retainbash
uvx hindsight-embed memory retain default "User prefers TypeScript with strict mode"
uvx hindsight-embed memory retain default "Running tests requires NODE_ENV=test" --context procedures
uvx hindsight-embed memory retain default "Build failed when using Node 18, works with Node 20" --context learningsRecall memories
调取记忆
Use BEFORE starting tasks to get relevant context:
memory recallbash
uvx hindsight-embed memory recall default "user preferences for this project"
uvx hindsight-embed memory recall default "what issues have we encountered before"在开始任务之前,使用命令获取相关上下文:
memory recallbash
uvx hindsight-embed memory recall default "user preferences for this project"
uvx hindsight-embed memory recall default "what issues have we encountered before"Reflect on memories
复盘记忆
Use to synthesize context:
memory reflectbash
uvx hindsight-embed memory reflect default "How should I approach this task based on past experience?"使用命令整合上下文信息:
memory reflectbash
uvx hindsight-embed memory reflect default "How should I approach this task based on past experience?"IMPORTANT: When to Store Memories
重要提示:何时存储记忆
Always store after you learn something valuable:
当你获取到有价值的信息时,务必及时存储:
User Preferences
用户偏好
- Coding style (indentation, naming conventions, language preferences)
- Tool preferences (editors, linters, formatters)
- Communication preferences
- Project conventions
- 编码风格(缩进、命名规范、语言偏好)
- 工具偏好(编辑器、代码检查工具、格式化工具)
- 沟通偏好
- 项目规范
Procedure Outcomes
流程结果
- Steps that successfully completed a task
- Commands that worked (or failed) and why
- Workarounds discovered
- Configuration that resolved issues
- 成功完成任务的步骤
- 有效(或无效)的命令及其原因
- 发现的临时解决方案
- 解决问题的配置信息
Learnings from Tasks
任务经验
- Bugs encountered and their solutions
- Performance optimizations that worked
- Architecture decisions and rationale
- Dependencies or version requirements
- 遇到的Bug及其解决方案
- 有效的性能优化手段
- 架构决策及其依据
- 依赖或版本要求
IMPORTANT: When to Recall Memories
重要提示:何时调取记忆
Always recall before:
- Starting any non-trivial task
- Making decisions about implementation
- Suggesting tools, libraries, or approaches
- Writing code in a new area of the project
在以下场景之前,务必调取记忆:
- 开始任何非琐碎任务时
- 做实现决策时
- 推荐工具、库或方案时
- 在项目新领域编写代码时
Best Practices
最佳实践
- Store immediately: When you discover something, store it right away
- Be specific: Store "npm test requires --experimental-vm-modules flag" not "tests need a flag"
- Include outcomes: Store what worked AND what did not work
- Recall first: Always check for relevant context before starting work
- 即时存储:当你发现有价值的信息时,立即存储
- 具体明确:存储“npm test需要--experimental-vm-modules参数”而非“测试需要参数”
- 包含结果:同时存储有效的方法和无效的尝试
- 先调后做:开始工作前,务必先检查相关上下文