resolve-before-asking
What it does
This skill stops your agent from asking you questions it could answer from your own notes. It checks your brain and connected sources first.
When to use it
- βWhen your agent is about to ask you who a person is or what their role is.
- βWhen your agent finds a name in a note and is unsure which person it refers to.
- βWhen you want your agent to avoid asking about things already recorded in your notes.
Skill link
https://github.com/garrytan/gbrain/blob/master/plugin-variants/gbrain-coding/skills/resolve-before-asking/SKILL.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βBefore you ask me who Dana is, check my brain for her, and only ask if you cannot find anything.β
5 new skills a week. 1 minute to read.
How it works
The agent searches your notes and past records in a fixed order, then tries outside sources. If it still has no answer, it asks you one question and includes its best guess.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Resolve Before Asking β Exhaust the Brain Before Bothering the User
Convention: see conventions/brain-first.md for the base lookup chain (search β query β get_page β external APIs). This skill extends that chain one hop further, to the human boundary: asking the user is the LAST resort, after the brain AND external escalation, not a shortcut around them.
Convention: see _brain-filing-rules.md β pages touched by the ingest-resolution section file by primary subject (
people/,companies/).
Purpose
Never ask the user "who is X?" when the answer already exists in the brain.
The memory answers before the human is bothered β that is the product promise. This skill defines the lookup chain that runs before any entity-identification question is sent to the user, and the escalation format when asking really is justified.
The Bug This Kills
The pattern: the agent encounters an entity with a rich brain page β timeline entries, meeting history, an imported message archive β and instead of reading them, asks the user "who is X?". This is lazy escalation. It spends the user's attention on questions the system can answer itself.
Examples of the bug (anonymized):
- alice-example β her brain page already carried a role line ("Chief of Staff at acme-example") and a long meeting history β the agent still asked.
- charlie-example β a thick imported email thread whose subject lines all pointed at one shared project β the agent still asked.
When This Fires
This is a harness-routing convention, not a mechanical guarantee: route here whenever ANY of these are true β
- A reply draft contains "who is [name]?" or equivalent.
- A draft asks about someone's role, relationship, or identity.
- You are about to present an entity as "unknown" or "unidentified".
- A brain page has
[To be filled by content analysis]or similar placeholder text. - You are composing a list of people and leaving any as "unknown relationship".
The Lookup Chain (run in order; STOP at the first clear answer)
Step 1: think β cross-brain synthesis (solves most cases)
gbrain think "Who is {entity}? What is their relationship to the user? What role do they play? Use all available context β meetings, timeline, imported archives, facts."
think synthesizes across ALL brain data. If the entity has a page with
imported-activity stats, timeline entries, and meeting history, think will
connect the dots. Over MCP, entity("{entity}") first gives a zero-LLM card
(aliases, last-touched, top edges); synthesize is the heavy cross-page
answer when the card isn't enough.
If this returns a clear answer β STOP. Use the answer. Do not ask the user.
Step 2: search + full page read
gbrain search "{entity}" --limit 5
gbrain get {entity-slug}
What to look for:
relationshipfield in frontmatter β filled means resolved.- Role signals repeated in timeline entries ("advisor", "colleague at acme-example", "chief of staff").
- Facts table β any role/relationship facts.
- Meeting history β what did they attend? With whom?
If timeline entries repeat a consistent role β STOP. The role is obvious. Do not ask the user.
Step 3: Query each mounted source the brain actually has
Don't hardcode channels. Check what the brain holds, then query it:
gbrain sources list
gbrain query "emails with {entity}" --limit 10
gbrain query "meetings with {entity}" --limit 5
Whatever is mounted β an email archive, calendar imports, chat transcripts, meeting notes β a handful of subject lines or meeting titles usually reveals the relationship:
- Invoice / scheduling / billing subjects β professional services.
- Recurring 1:1 titles with consistent co-attendees β colleague.
- Dinner / weekend-plan messages β personal friend.
Step 4: Timeline + graph walk
gbrain timeline {entity-slug} --limit 20
gbrain backlinks {entity-slug}
gbrain graph {entity-slug} --depth 2
Dated events, who references this entity, and what it connects to. A person who back-links from a company page and three meeting pages is not an unknown.
Step 5: Web search (external escalation, per brain-first)
Only after steps 1β4 return nothing useful. Run a generic web search on
"{entity name} {company/domain hints accumulated in steps 1-4}". Fold
anything found back into the brain page before using it (the brain-op
FAQ
What happens if the answer is still unclear?
The agent asks you once and includes a likely answer, so you only need to confirm or correct it.
Does it create placeholder pages during bulk imports?
No. Its rules avoid empty placeholder pages during bulk ingestion.
Is asking you ever allowed?
Yes, but only after the brain and outside lookups have been tried.
Details
Original description by the author
Gate on identity questions to the user. Before any "who is X?" (or role / relationship question) reaches the user, exhaust the brain's lookup chain: think β search + page read β mounted sources β timeline/graph β web. If escalation survives the chain, ask WITH a hypothesis, never a bare unknown. Also owns the no-placeholders-at-ingest rule: pages created during bulk ingestion get their relationship/role resolved immediately.
repo: garrytan/gbrain
Popularity
- GitHub stars
- 31k
- Ranking position
- #9267
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
gbrain
31kLets your agent search a shared company knowledge brain for facts about people, projects and decisions, and save durable notes to it.
brain-ingest-gate
31kChecks new content against an existing knowledge brain before it is added, to avoid duplicates and resolve named entities first.
brain-link-discipline
31kMakes sure your agent includes a working link to each brain page it reports, in the same message, so you can open it right away.
brain-ops
31kGives your agent the core routine for a knowledge brain: check existing context first, save explicit notes with their source, and link related pages.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.