hindsight

会话复盘与长期记忆保存。全面回顾当前会话中完成的工作,提炼出具有持续价值的流程经验(非一次性细节),并将这些经验保存为长期记忆;若已有相关记忆则在原有条目上更新,避免重复创建。不会重复执行或重新开启会话内的实际任务,也不会为汇报而编造经验。触发指令示例:“复盘一下”、“运行一次复盘”、“我们有哪些需要改进的地方”、“回顾今天的工作并记录经验”、“你今天学到了什么”、“保存本次会话中值得记住的内容”。

仓库最近推送
GitHub Stars
177
Forks
27
Issues / PRs
0

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "hindsight":https://skillpi.com/zh/skills/deepskill-bf99593f5e0f746b94baead6423c18e3097e2949228b08ef35fef86348021419。安装前核对上游来源和版本:https://github.com/EfficientStreet/hindsight。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

会话复盘与长期记忆保存。全面回顾当前会话中完成的工作,提炼出具有持续价值的流程经验(非一次性细节),并将这些经验保存为长期记忆;若已有相关记忆则在原有条目上更新,避免重复创建。不会重复执行或重新开启会话内的实际任务,也不会为汇报而编造经验。触发指令示例:“复盘一下”、“运行一次复盘”、“我们有哪些需要改进的地方”、“回顾今天的工作并记录经验”、“你今天学到了什么”、“保存本次会话中值得记住的内容”。

0 下载

介绍来源: third_party · EfficientStreet · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: hindsight
description: Selective, explicit cross-session memory through the configured Hindsight CLI. Use when a non-trivial task may depend on a past preference, decision, confirmed workaround, or earlier failure; when the user asks what was previously decided; or when the user explicitly asks to remember something. Retain only durable, non-sensitive, future-useful knowledge. Never automatically store conversations, source files, logs, secrets, or routine progress.

Hindsight Memory

Use the configured hindsight CLI for deliberate, agent-initiated memory calls. Do not install hooks, capture sessions automatically, or send every interaction to Hindsight.

Briefly tell the user before calling Hindsight and explain why. Do not include sensitive details in that notice.

Pass -o json to read commands so their output is clean and parseable.

Resolve the bank first

Every command takes a bank ID as its first positional argument. There is no implicit default bank, and default is not a real one: a fresh install has no banks at all. List them and use a real ID (shown below as <bank>):

hindsight -o json bank list

Both failure modes here are silent, so check rather than assume:

  • Recalling from a bank that does not exist returns {"results": []} and exit 0. That is indistinguishable from a bank with nothing relevant in it.
  • Retaining into a bank that does not exist creates it, so a typo silently produces a new empty bank instead of an error.

If the project or user fixes a bank ID and its configuration, use that one and do not invent another.

Recall selectively

Recall when a non-trivial task is likely to benefit from a past:

  • user preference or working convention;
  • project or architecture decision and its rationale;
  • confirmed workaround, bug cause, or fix;
  • failure or lesson that could prevent repeated work;
  • fact the user explicitly asks you to remember or retrieve.

Use a focused query:

hindsight -o json memory recall <bank> "user preferences relevant to this task"
hindsight -o json memory recall <bank> "previous decisions and confirmed problems in this area"

Use reflection only when synthesis across several memories would materially help:

hindsight -o json memory reflect <bank> "What past decisions or lessons should guide this task?"

Do not recall for trivial questions, or when the current repository, documentation, or live system is the authoritative source. Treat recalled information as fallible and potentially stale; verify it before relying on it.

Fetch exact source text when needed

Recall and reflection return extracted facts and can omit exact values. When a result points to a stored document and an exact literal is necessary, fetch that document:

hindsight -o json document get <bank> <document_id>

Only document get populates original_text; document list returns it empty, so use it to find a document ID, not to read one:

hindsight -o json document list <bank>

Read original_text, but expose or use only the part needed for the task. It is populated only when the bank stores document text, so treat an empty value as "not available" rather than "no such text".

Retain deliberately

Retain only when the user explicitly asks, or when you learn something durable, confirmed, non-sensitive, and likely to save future work:

  • a stable user preference;
  • a confirmed technical decision and its rationale;
  • a proven procedure or workaround;
  • a verified bug cause and fix;
  • a non-obvious constraint that will matter again.

Write a concise, self-contained memory containing the useful fact, why it matters, and the confirmed outcome. Include exact values only when they are necessary and safe to persist.

hindsight memory retain <bank> "The user prefers explicit Hindsight recall and retention calls; do not enable automatic transcript or Git ingestion." --context preferences
hindsight memory retain <bank> "The build requires Node 20 because Node 18 fails with the confirmed ESM loader incompatibility." --context learnings
hindsight memory retain <bank> "Run the integration suite with NODE_ENV=test; this selects the isolated test configuration." --context procedures

Retain is the slowest operation by a wide margin: extraction runs an LLM over the content, and a single call can take minutes. Queue it with --async when you do not need the result in-turn, and do not treat a long wait as a hang.

Never retain:

  • complete conversations, transcripts, or session dumps;
  • raw source files, patches, logs, command output, or tool results;
  • routine progress or facts that are easy to recover from an authoritative source;
  • speculation, unverified hypotheses, or transient state;
  • passwords, API keys, tokens, credentials, private keys, or .env contents;
  • personal or customer data unless the user explicitly approves that specific retention.

If sensitivity or future value is ambiguous, ask before retaining. Never send a broad payload merely because Hindsight can extract facts from it.

If Hindsight is unavailable

Do not start Hindsight, Docker, or another service solely for an optional memory call. Continue without memory and briefly report that Hindsight was unavailable. If memory is essential because the user explicitly requested it, explain the blocker.

Do not trust the CLI's error text on its own. It reports a client-side timeout as "Cannot connect to Hindsight API / the server is not running", and it reports an upstream provider error as "API endpoint not found (404)". Confirm with hindsight health before telling the user Hindsight is down, and read the server logs for the real cause when a call fails against a healthy server.

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值85/100

亮点

  • Provides valuable cross-session memory functionality that helps users avoid repeating mistakes
  • Enables retention of durable knowledge like preferences, decisions, and workarounds
  • Addresses a genuine productivity need for long-term session context
触发精准90/100

亮点

  • Multiple well-chosen trigger phrases in Chinese that accurately reflect intended usage
  • Clear boundary between what should and shouldn't be retained
结构规范75/100

待提升项

  • 缺少 When to Use 章节 原报告严重程度:轻微

    文档缺少明确的'何时使用'指导章节,用户可能不清楚具体使用场景

    改进建议:添加一个'When to Use'或'使用场景'章节,明确说明何时应该调用此Skill

  • 缺少端到端完整示例 原报告严重程度:轻微

    虽然有多个命令示例,但缺少一个完整的会话复盘流程示例

    改进建议:添加一个从触发到完成记忆保存的完整工作流示例

亮点

  • 文档结构清晰,分模块介绍不同功能
  • 提供了丰富的代码示例和使用模式
执行可靠70/100

待提升项

  • 依赖外部CLI工具 原报告严重程度:轻微

    完全依赖外部hindsight CLI工具,缺乏内置fallback机制

    改进建议:考虑添加基本的本地缓存机制作为fallback,或在工具不可用时提供更详细的配置指导

亮点

  • 详细说明了错误处理机制和边界情况
  • 对性能特点(如retention操作较慢)有明确说明和应对建议
证据可验 (前四项均值)80/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 账号、密钥或授权

    使用专用、最小权限账号,不把密钥粘贴到公开内容或命令日志;核对接收数据的服务与租户。

    主文档提及 · 第 106 行

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。