Skip to content
Skillpedia
Agents31k · #9322

retrieval-reflex

What it does

This skill tells your agent when to open a page from your brain before it answers. It is for conversations where a named person, company, or project matters to the answer.

When to use it

  • ✓When you mention a person, company, or project that your brain may have notes on.
  • ✓When your agent is about to state a detail about someone, such as a role or status.
  • ✓When a name comes up that the agent does not recognize and it seems important.

Skill link

https://github.com/garrytan/gbrain/blob/master/recipes/retrieval-reflex/skills/retrieval-reflex/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/garrytan/gbrain/blob/master/recipes/retrieval-reflex/skills/retrieval-reflex/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“Before you answer, check my notes on Dana, since I want to know where we left off.”

5 new skills a week. 1 minute to read.

How it works

The agent decides when a named entity is important to the reply, then opens its brain page. It escalates to deeper searches only as far as the task needs, and it checks details before stating them.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Retrieval Reflex — retrieve on demand, when an entity is salient

A person doesn't bulk-load their whole address book into working memory. They retrieve on demand, when an entity becomes salient, use it, and drop it. Encode that reflex. The brain probably has the data — if a name is salient and you haven't opened its page, open it before you answer.

Trigger policy — WHEN to retrieve

Retrieve when ANY of these holds AND the page isn't already loaded in context:

  • An entity (person / company / project / deal / place) is the subject of the message, or a decision/judgment about it is being made, or the exchange is substantive / relational / emotional about it.
  • A brain-page pointer appeared in context this turn (the deterministic layer told you the page exists) — open it before relying on details.
  • A name or term appears that you don't recognize and that looks notable → do a quick resolve (the human reflex).
  • You're about to assert a non-trivial detail about an entity (attribution, status, history) → verify against the brain first. Say "let me check", not a guess.

Skip trivial passing mentions, logistics pings, and anything already loaded. Judgment first — retrieve when it changes the quality of the reply, not reflexively.

Retrieval spec — WHAT to pull, and when to stop

Escalate only as far as the task needs:

  1. Pointer / metadata. If a pointer is already in context (slug + one-line summary), and the task only needs identity, stop there.
  2. Full page. When the entity is the subject or details matter, open it: get_page <slug> (MCP) — read the page before relying on specifics.
  3. Linked neighbors. Only when relationship context is needed, pull graph / backlinks for the slug.

Resolve only the name(s) the current task needs, use them, drop them. No bulk-loading the inner circle.

The failure this prevents

If you've discussed a named person for more than a message without opening their page, open it now. The write side captures everything; the read side only helps if you actually look.

See also: skills/query/SKILL.md (search the brain), skills/brain-ops/SKILL.md.

FAQ

Does the agent check every name?

No. Trivial mentions and logistics are skipped, so it only looks up names that change the reply.

What if the agent is not sure about a detail?

It says it will check the brain rather than guess.

Does it search beyond the named page?

Only when the task requires it. It stops once it has enough to answer.

Details

Original description by the author

When/what to retrieve — open the brain page for a salient entity before answering from memory.

repo: garrytan/gbrain

Popularity

GitHub stars
31k
Ranking position
#9322
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills