Agent skill

Hindsight

by EfficientStreet in EfficientStreet/hindsight

Reviews everything accomplished in the current session end-to-end, distills genuine process lessons (not one-off content specifics), and saves the durable ones as persistent memory — updating an…

MITAuto-check passedAgent Workflows

Install Hindsight

skills CLI
$ npx skills add EfficientStreet/hindsight --skill hindsight -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install EfficientStreet/hindsight hindsight --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
hindsight
GitHub stars
170
Token cost
~2.1k tokens
SKILL.md length
1,186 words
Files
6
Skills in repo
1
Repo updated
First seen
Licence
MIT

At a glance

Reviews everything accomplished in the current session end-to-end, distills genuine process lessons (not one-off content specifics), and saves the durable ones as persistent memory — updating an…

  • Works in 7 steps: Identify genuine process failures, not… → Separate durable lessons from one-off… → Verify claims before writing them down.… → …
  • Get some hindsight
  • SKILL.md covers When this fires, Process, In this environment and Definition of done, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Hindsight is an agent skill from EfficientStreet/hindsight. Reviews everything accomplished in the current session end-to-end, distills genuine process lessons (not one-off content specifics), and saves the durable ones as persistent memory — updating an existing related memory in place rather than duplicating it. Trigger on "get some hindsight," "run a hindsight pass," "what should we improve," "review today and notate lessons," "what did you learn today," "save what's worth remembering from this session." Does not redo or re-open any of the session's actual work, and…

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files (for example `GUIDE.md` and `README.md`).

It sits in Agent Workflows, covering Agent memory and End-to-end testing. The repository describes itself as: A self-improvement skill for AI coding assistants — reviews a session end-to-end and saves only the durable process lessons as persistent memory. The licence is MIT.

When your agent uses it

  • Get some hindsight
  • Run a hindsight pass
  • What should we improve
  • Review today and notate lessons

Example prompts

  • “get some hindsight,”
  • “run a hindsight pass,”
  • “what should we improve,”
  • “/hindsight”

Requirements

  • Pre-approved tools (allowed-tools): Read, Write, Edit, Glob, Grep

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Identify genuine process failures, not just outcomes. For each
  2. Separate durable lessons from one-off noise. A lesson is worth
  3. Verify claims before writing them down. If a lesson references
  4. **Before saving any lesson, ask explicitly: did this session prove it,
  5. Persist the lessons, don't just narrate them. If a persistent memory
  6. Keep the scope honest. A handful of well-reasoned, specific lessons
  7. Report back concisely. After persisting or writing up the hindsight

What it can do on your machine

Read from SKILL.md and the folder at commit d43d728. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Write
    • Edit
    • Glob
    • Grep

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Hindsight loads about 2.1k tokens when it runs. Until then it costs about 146 tokens; SKILL.md has 1,186 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~146
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from EfficientStreet/hindsight at commit d43d728, republished under its MIT licence (© EfficientStreet). 1,186 words, ~2,146 tokens.

Download SKILL.mdSave it as .claude/skills/hindsight/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
hindsight
description
Reviews everything accomplished in the current session end-to-end, distills genuine process lessons (not one-off content specifics), and saves the durable ones as persistent memory — updating an existing related memory in place rather than duplicating it. Trigger on "get some hindsight," "run a hindsight pass," "what should we improve," "review today and notate lessons," "what did you learn today," "save what's worth remembering from this session." Does not redo or re-open any of the session's actual work, and never fabricates a lesson just to have something to report.
allowed-tools
Read, Write, Edit, Glob, Grep
disable-model-invocation
true

Hindsight

A session-end self-improvement pass. Read-only against the session's actual work — it never redoes or re-opens a task — and write-only against memory. User-triggered only: a hindsight pass writes persistent memory, so timing stays the user's call, never something run on a hunch.

When this fires

On-demand only: "get some hindsight," "run a hindsight pass," "what should we improve," "review today and notate lessons," "what did you learn today," "save what's worth remembering from this session."

Process

Review the full body of work completed in this session — every task, decision, correction, and course-change from start to finish, not just the most recent exchange. Then produce a structured hindsight report covering the following:

  1. Identify genuine process failures, not just outcomes. For each meaningful mistake, inefficiency, or round of back-and-forth correction, name the root cause — not the surface symptom. If something took multiple attempts to get right, ask what specifically caused each failed attempt, and whether a single upstream fix (a question asked earlier, a check performed differently, a different verification method) would have prevented the whole chain. Distinguish between mistakes that were reasonable given the information available at the time, and mistakes that came from skipping a step, assuming instead of asking, or verifying the wrong thing.

  2. Separate durable lessons from one-off noise. A lesson is worth keeping only if it would change how a future task gets handled — not just this one. Discard anything that's purely specific to this session's content and has no bearing on method or process going forward. For each lesson that survives that filter, state it as a concrete, actionable rule — not a vague sentiment like "be more careful." Say precisely what should happen differently: what question should be asked, at what point, or what check should be performed, and why the check that was actually used wasn't sufficient.

  3. Verify claims before writing them down. If a lesson references specific behavior, a tool's output, a file, or a technical constraint, confirm it against what actually happened in this session rather than reconstructing it from memory. Don't generalize from a single data point into a universal rule — note when something might be a one-time fluke versus a confirmed, repeatable pattern (e.g., something that failed identically on a second attempt is a stronger signal than something that failed once).

  4. Before saving any lesson, ask explicitly: did this session prove it, or only suggest it? "Proved" means the same failure happened more than once, the root cause was actually confirmed against real evidence (a tool's output, a file's contents, a technical constraint you checked), or a fix was verified to work. "Suggested" means it happened once, reads as plausible, but wasn't independently confirmed — a reasonable guess, not a demonstrated fact. This is a distinct check from Step 3's fact-verification — a claim can be accurately quoted from this session and still only be suggestive of a broader rule, not proof of one.

    • A proved lesson gets persisted as a firm rule.
    • A merely-suggested lesson does not get persisted as settled fact. Either hold it out of memory and name it in the final report as a watch-item pending a second occurrence, or persist it with the uncertainty stated plainly in the entry itself (e.g. "seen once, not yet confirmed as a pattern") — never write a single-occurrence guess as an unqualified rule.
    • If it's genuinely unclear which bucket a lesson falls into and the user is available, ask them rather than deciding unilaterally.
  5. Persist the lessons, don't just narrate them. If a persistent memory or notes system is available, write each surviving lesson into it as a discrete, well-labeled entry — check first whether an existing note already covers the same topic and update it in place rather than creating a near-duplicate. If no persistent memory system exists, produce the hindsight report as a clearly organized, standalone document the user can save themselves, written so it remains useful without the original conversation as context.

  6. Keep the scope honest. A handful of well-reasoned, specific lessons is more useful than a long list of shallow ones. If a session genuinely went well with nothing worth changing, say so plainly rather than manufacturing findings to fill space. If real infrastructure or environment constraints were discovered (a tool that doesn't work as documented, a permission that's more restrictive than expected, a connector that failed to connect), record those as factual findings distinct from process lessons about how the work itself was approached.

  7. Report back concisely. After persisting or writing up the hindsight report, summarize for the user in a few short sections what was learned and what will change — not a restatement of the whole session, just the lessons and their practical effect on future work. Flag any watch-items held back per Step 4 explicitly, so they don't just silently disappear.

Show full SKILL.md (385 more words)Show less

In this environment

Check whether a persistent memory system is actually available before assuming Step 5's fallback — most agent harnesses that have one expose it distinctly from ordinary project files:

  • Claude Code keeps per-project memory under ~/.claude/projects/<project-slug>/memory/ (the slug is derived from the project's working-directory path — different per project, not a fixed path), one markdown file per fact, each with name/description/ metadata.type frontmatter. type: feedback fits nearly every hindsight lesson — it's guidance on how to work, with a why. That same folder's MEMORY.md is the index loaded into every session.
  • Whatever the mechanism, the same rule applies: read the index or browse existing entries first, to find one that already covers the lesson's topic. Existing topic → edit that file (append a dated addendum or finding, matching its existing structure) rather than creating a new one. New topic → new atomic file, one fact per file, cross-linked to related entries if the system supports it.
  • Every new or newly-relevant file needs a matching entry added to whatever serves as the index — a memory nothing points to is easy to miss next session.
  • If no such system exists in the current environment, fall back to Step 5's standalone-document path — write the hindsight report as one self-contained file the user can save wherever they keep notes.

Definition of done

  • Every persisted lesson traces to a real, specific event from this session — not a generic best practice restated.
  • Every persisted lesson was explicitly checked against Step 4: proved lessons are stated as firm rules; merely-suggested ones are either held as a reported watch-item or persisted with the uncertainty stated plainly — nothing single-occurrence is written as an unqualified rule.
  • Nothing written duplicates an existing memory's topic; existing entries were checked and updated in place where one already applied.
  • The memory index (or equivalent) reflects every new file.
  • The final report to the user is a few short sections, not a full session recap — lessons and their practical effect, nothing else.
  • If nothing genuinely durable came up, the report says so plainly instead of manufacturing filler.

Scope boundary

This skill does not redo, re-verify, or re-open any task from the session — it only reviews and reports on work already done. It does not edit project code or content as part of running; its only writes are to memory (and the memory index).

© EfficientStreet, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files in the repository root of EfficientStreet/hindsight.

  • SKILL.md
  • .gitignore
  • GUIDE.md
  • LICENSE
  • README.md
  • docs/hindsight-infographic.jpg

Open the folder on GitHubat commit d43d728

Compare with similar skills

Hindsight next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Hindsight compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Hindsight this skillEfficientStreet/hindsight170—~2.1kAutomated safety check: PassMIT
Playwright E2E Builderdavila7/claude-code-templates32k—~5.3kAutomated safety check: NotesMIT
Coding Agent Session Findercode-yeongyu/oh-my-openagent70k1 repos~2.8kAutomated safety check: PassCustom licence
Claude-Mem Cloud Syncthedotmack/claude-mem98k1 repos~1kAutomated safety check: NotesApache-2.0
Cognee CLI Memory Commandstopoteretes/cognee32k1 repos~2.2kAutomated safety check: NotesApache-2.0
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT

Similar skills

  • Playwright E2E Builder

    davila7/claude-code-templates

    Plan and build comprehensive Playwright E2E test suites with Page Object Model, authentication state persistence, custom fixtures, visual regression, and CI integration.

    32k GitHub stars~5.3k tokensUpdated today
    Testing & QAAuto-check: notes
  • Coding Agent Session Finder

    code-yeongyu/oh-my-openagent

    Finds, reads and reconstructs past coding-agent sessions across Codex, Claude, OpenCode, Senpi and many other local agent logs.

    70k GitHub starsUsed in 1 repo~2.8k tokens
    Agent WorkflowsAuto-check passed
  • Claude-Mem Cloud Sync

    thedotmack/claude-mem

    Checks claude-mem cloud sync status and guides you through connecting a cmem.ai Pro account without the sync token ever passing through the chat.

    98k GitHub starsUsed in 1 repo~1k tokens
    Agent WorkflowsAuto-check: notes
  • Cognee CLI Memory Commands

    topoteretes/cognee

    Drives cognee from the terminal with remember, recall, forget and improve memory commands, dataset and config management and database migrations.

    32k GitHub starsUsed in 1 repo~2.2k tokens
    Agent WorkflowsAuto-check: notes
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 6 days ago
    Agent WorkflowsAuto-check passed
  • Claude-Mem Search

    thedotmack/claude-mem

    Searches the user's persistent cross-session memory for timestamped observations synthesized from past agent sessions on cmem.ai.

    98k GitHub starsUsed in 1 repo~511 tokens
    Agent WorkflowsAuto-check passed

Categories

Questions about Hindsight

What does Hindsight do?

Reviews everything accomplished in the current session end-to-end, distills genuine process lessons (not one-off content specifics), and saves the durable ones as persistent memory — updating an…. Hindsight is an agent skill from EfficientStreet/hindsight. Reviews everything accomplished in the current session end-to-end, distills genuine process lessons (not one-off content specifics), and saves the durable ones as persistent memory — updating an existing related memory in place rather than duplicating it.

When should I use Hindsight?

Hindsight fits situations like: get some hindsight; run a hindsight pass; what should we improve; review today and notate lessons.

How do I install Hindsight in Claude Code?

Run `npx skills add EfficientStreet/hindsight --skill hindsight -a claude-code`. Or copy the skill folder (the EfficientStreet/hindsight repository) into .claude/skills/hindsight in your project. Claude Code loads it when a task matches its description.

How do I install Hindsight in Codex?

Run `npx skills add EfficientStreet/hindsight --skill hindsight -a codex`. Or copy the skill folder (the EfficientStreet/hindsight repository) into .agents/skills/hindsight in your project. Codex loads it when a task matches its description.

Can I use Hindsight in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add EfficientStreet/hindsight --skill hindsight -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/hindsight, .gemini/skills/hindsight, .github/skills/hindsight and .opencode/skills/hindsight in your project.

What does Hindsight need to run?

SKILL.md names no scripts, command-line tools or credentials: Hindsight is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Write, Edit, Glob, Grep.

Does Hindsight access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Hindsight safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Hindsight use?

Hindsight is published under the MIT licence (from the LICENSE file in the skill folder). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Hindsight use?

About 2.1k tokens (SKILL.md is roughly 8.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Hindsight?

Skills that share tags, products or a category with Hindsight: Playwright E2E Builder (davila7/claude-code-templates, 32k stars), Coding Agent Session Finder (code-yeongyu/oh-my-openagent, 70k stars), Claude-Mem Cloud Sync (thedotmack/claude-mem, 98k stars) and Cognee CLI Memory Commands (topoteretes/cognee, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Hindsight?

EfficientStreet (a GitHub user) maintains it in EfficientStreet/hindsight, which has 170 GitHub stars. The repository was last updated on August 20, 2026.

Source: EfficientStreet/hindsight on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.