brain-ingest-gate
Pre-write quality gate for content entering the brain. No raw copies: a bare cp/mv into the brain repo is a bug. Before any new page lands, resolve named…
Brain-augmented web research. Sends brain context about a topic to Perplexity, which searches the web with citations and returns what is NEW vs what the brain already knows. Use for entity enrichment, current-state checks, deal monitoring, and freshness deltas. NOT for simple
$ npx -y skills add garrytan/gbrain --skill perplexity-research --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/perplexity-researchContext preview
The summary Claude sees to decide when to auto-load this skill.
Brain-augmented web research. Sends brain context about a topic to Perplexity, which searches the web with citations and returns what is NEW vs what the brain already knows. Use for entity enrichment, current-state checks, deal monitoring, and freshness deltas. NOT for simple
name: perplexity-research version: 0.1.0 description: Brain-augmented web research. Sends brain context about a topic to Perplexity, which searches the web with citations and returns what is NEW vs what the brain already knows. Use for entity enrichment, current-state checks, deal monitoring, and freshness deltas. NOT for simple URL fetches (use web_fetch) or brain-only queries (use gbrain query). triggers: - "perplexity research" - "perplexity-research" - "what's new about" - "current state of" - "web research" - "what changed about" - "surface new developments" mutating: true writes_pages: true writes_to: - research/
> **Convention:** see [conventions/quality.md](../conventions/quality.md) for > citation rules; every claim from web research lands with a verifiable > citation, not a paraphrase. > > **Convention:** see [conventions/brain-first.md](../conventions/brain-first.md) > for the lookup chain. This skill ENFORCES brain-first by sending brain > context as part of the Perplexity prompt — the web search focuses on > the delta between brain knowledge and current web state.
Combines existing brain knowledge with Perplexity's web search. The agent sends brain context about a topic into a Perplexity query; Perplexity searches + reads + synthesizes multiple pages with citations, focused on what's NEW relative to the supplied context.
**The key insight:** Perplexity doesn't just search — it reads and synthesizes with citations. By sending brain context in the instructions, it knows what you already know, so it surfaces the delta instead of repeating settled fact.
| Need | Use | |------|-----| | Deep research with citations | **This skill** — Perplexity + Opus | | Quick URL content | `web_fetch` | | Brain-only lookup | `gbrain query` / `gbrain search` | | Real-time social monitoring | external X / social-media collectors | | Structured data lookup against a tracker | `skills/data-research/SKILL.md` |
The research output lands as a brain page under `research/<slug>.md` with this structure:
--- title: "[Topic] — Research [YYYY-MM-DD]" type: research date: YYYY-MM-DD brain_context_slugs: ["pages whose context was sent to Perplexity"] recency_filter: "[hour|day|week|month|none]" --- # [Topic] — Research [YYYY-MM-DD] > Executive summary: 2-3 sentences on the delta between brain knowledge > and current web state. ## Key New Developments What's changed since the brain was last updated on this topic. ## Confirming Signals Web evidence validating existing brain knowledge. ## Contradictions or Updates Things that conflict with the brain — these need a closer look. ## Recommended Brain Updates Specific page updates the user might want to make based on this research. Each item: which page, what to add or change, source URL. ## Citations - [Source title](URL) — accessed YYYY-MM-DD - [Source title](URL) — accessed YYYY-MM-DD - ...
The skill is markdown agent instructions; the agent uses Perplexity's API directly (or a host-provided `perplexity` CLI if installed):
# 1. Pull brain context
gbrain get <slug> # or
gbrain query "<topic keywords>"
# 2. Compose the Perplexity query with brain context inline:
# """
# Topic: <topic>
# Brain context (what we already know): <embedded gbrain content>
# Find: what's NEW since 2026-MM-DD that the brain doesn't reflect.
# Cite every claim.
# """
# 3. Call Perplexity API or the host's perplexity binary:
# curl https://api.perplexity.ai/chat/completions \
# -H "Authorization: Bearer $PERPLEXITY_API_KEY" \
# -H "Content-Type: application/json" \
# -d '{"model": "sonar-pro", "messages": [{"role":"user","content":"..."}]}'
# 4. Write the structured research page via put_page:
gbrain put research/<slug> # via the put_page operation
# 5. Cross-link entities mentioned (people, companies) per Iron Law.| Model | Cost / query | Use when | |-------|-------------|----------| | Perplexity sonar-pro | ~\$0.04 | Deep analysis, entity enrichment, deal research | | Perplexity sonar | ~\$0.007 | Quick lookups, bulk monitoring, briefing pipelines |
Default to sonar-pro. Drop to sonar for bulk / cron contexts where cost matters more than depth.
Called by `skills/enrich/SKILL.md` when an entity page (person, company) needs current web context:
BRAIN=$(gbrain get people/<slug> 2>/dev/null) # Send <slug>'s page content as brain_context to Perplexity, get current # news / role / context, then update the brain page with what's new.
For each active item under `deals/` or `companies/`:
# Weekly: pull recent news per company; flag changes for review.
Replace raw `web_fetch` calls in briefing pipelines with this skill so the agent doesn't re-narrate already-known facts.
Pass `recency_filter` to Perplexity: `hour | day | week | month`. Useful for news-cycle topics; omit for evergreen research.
instead.
know." Send dense context.
`~/.gbrain/.env`).
citation-verified academic claim checking
entity-enrichment loop
Give the agent you already use a memory you control. GBrain stores explicit facts with their sources, supports corrections and withdrawal, and makes the same memory available across your agents.
Repo: garrytan/gbrain
Pre-write quality gate for content entering the brain. No raw copies: a bare cp/mv into the brain repo is a bug. Before any new page lands, resolve named…
When you report a brain page to the user — created, edited, committed, or relayed from a subagent — a working link is part of the deliverable, in the SAME…
Brain knowledge base operations. The core read/write cycle: brain-first lookup, read-enrich-write loop, source attribution, ambient enrichment, back-linking.…
Deduplicate and synthesize raw concept stubs into a tiered intellectual map (T1 Canon to T4 Riff), tracing idea evolution across sources over time. Transforms…
Token-hygiene audit of the always-loaded context stack — CLAUDE.md, AGENTS.md, auto-memory MEMORY.md, and the bootstrap-rendered identity files (SOUL.md,…
When the user corrects a factual error, root-cause it immediately. Don't just note the correction — trace the error to its source, fix the source, and prevent…