Skills Agentes

Perplexity Research

Investigación web aumentada con el brain: envía contexto a Perplexity, que busca con citas y devuelve qué es NUEVO frente a lo que el brain ya conoce.

Reemplaza a: web_fetch para contenido web crudo, gbrain query para lookups solo del brain

Estrellas
28.9k

en todo el repo

Actividad
58

0–100, la ruta de este skill

Actualizado
hace 21 días

último commit aquí

Commits
1

últimos 90 días

Contexto
1.7k tok

87 tok en reposo

Paquete
2 archivos

7 KB

Instalar

Funciona con cualquier agente que lea SKILL.md

npx -y skills add garrytan/gbrain --skill perplexity-research --agent claude-code

Se instala solo en este repositorio.

Este skill makes network requests, needs API credentials.

Qué hace

  • Envía contexto del brain sobre un tema a Perplexity para que busque en la web con citas
  • Devuelve lo que es NUEVO frente a lo que el brain ya sabe, no hechos ya asentados
  • Escribe una página de investigación estructurada en research/<slug>.md con citas
  • Enlaza entidades mencionadas (personas, empresas) siguiendo la Iron Law

Úsalo cuando

  • Enriquecimiento de entidades (personas, empresas) que necesitan contexto web actual
  • Chequeos de estado actual o monitoreo de deals/companies
  • Necesitas detectar qué cambió respecto a lo que ya sabe el brain
  • Briefings matutinos donde no quieres re-narrar hechos ya conocidos

No lo uses cuando

  • Para simples fetch de URL (usa web_fetch)
  • Para consultas solo contra el brain (usa gbrain query)
  • Para lookups de datos estructurados contra un tracker (usa data-research)

Qué lo activa

Di cualquiera de estas frases y el agente debería cargar este skill.

  • ¿Qué hay de nuevo sobre esta empresa desde la última vez que la investigamos?
  • Haz research de Perplexity sobre el estado actual de este deal
  • Surface new developments sobre esta persona
  • ¿Qué cambió en esta compañía esta semana?

SKILL.md

En inglés

perplexity-research — Brain-Augmented Web Research

Convention: see 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 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.

What this does

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.

When to use this vs other tools

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

Output structure

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
- ...

Invocation

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.

Models

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.

Integration patterns

Entity enrichment

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.

Deal / company monitoring (cron)

For each active item under deals/ or companies/:

# Weekly: pull recent news per company; flag changes for review.

Morning briefing

Replace raw web_fetch calls in briefing pipelines with this skill so the agent doesn't re-narrate already-known facts.

Recency filter

Pass recency_filter to Perplexity: hour | day | week | month. Useful for news-cycle topics; omit for evergreen research.

Anti-Patterns

  • ❌ Sending NO brain context. Then it's just a search — use web_fetch instead.
  • ❌ Truncating the brain context. The whole point is "knows what you know." Send dense context.
  • ❌ Discarding citations. Every claim in the output must have a URL.
  • ❌ Skipping the cross-link step when entities are mentioned. Iron Law.

Environment

  • PERPLEXITY_API_KEY set in the agent's environment (or in ~/.gbrain/.env).
  • Optional: install Perplexity's official CLI for richer streaming output.

Related skills

  • skills/academic-verify/SKILL.md — wraps perplexity-research for citation-verified academic claim checking
  • skills/enrich/SKILL.md — calls perplexity-research as part of the entity-enrichment loop
  • skills/data-research/SKILL.md — structured-data trackers (different shape: parameterized YAML recipes, not free-form research)

Contract

This skill guarantees:

  • Routing matches the canonical triggers in the frontmatter.
  • Output written under the directories listed in writes_to: (when applicable).
  • Conventions referenced (quality.md, brain-first.md, _brain-filing-rules.md) are followed.
  • Privacy contract preserved: no real names, no fork-specific filesystem path literals, no upstream-fork references.

The full behavior contract is documented in the body sections above; this section exists for the conformance test.

Output Format

The skill's output shape is documented inline in the body sections above (see "Output", "Brain page format", or equivalent). The literal section header here exists for the conformance test (test/skills-conformance.test.ts).

Reproducido de garrytan/gbrain bajo licencia MIT. Leer esta página en markdown.

Archivos

2 archivos en el paquete. Solo se lee SKILL.md al activarse — las referencias se cargan si el skill decide que las necesita.

Antes de instalar

Requiere PERPLEXITY_API_KEY configurada en el entorno del agente o en ~/.gbrain/.env.

Variables de entorno:PERPLEXITY_API_KEY

Detalles

Creador
garrytan
Categoría
Investigación
Licencia
MIT
Recursos incluidos
Incluye scripts o referencias
Repositorio
garrytan/gbrain
Código fuente
Ver SKILL.md

Etiquetas

Más de garrytan/gbrain

Este repo incluye 75 skills. Si instalas uno, normalmente ya tienes los demás.

Setup

28.9k

Configura GBrain con auto-aprovisionamiento de Supabase o PGLite, inyección en AGENTS.md y primera importación.

Costo de contexto al activarse
7.4k tok
Tamaño del paquete
1 archivo
Última actualización
hace 4 días
bases de datos

Chequeos de salud del brain: aplicación de back-links, auditoría de citas, validación de filing, detección de info obsoleta, páginas huérfanas y benchmarks.

Costo de contexto al activarse
5k tok
Tamaño del paquete
1 archivo
Última actualización
hace 4 días
productividad

Migra un brain de gbrain-base a la taxonomía de 14 tipos canónicos de gbrain-base-v2 usando gbrain onboard --check y el handler Minion unify-types.

Costo de contexto al activarse
3.2k tok
Tamaño del paquete
1 archivo
Última actualización
hace 5 días
bases de datos

Cuándo y qué recuperar: abre la página del brain de una entidad relevante antes de responder desde memoria.

Costo de contexto al activarse
740 tok
Tamaño del paquete
1 archivo
Última actualización
hace 1 hora
productividad

Operaciones del brain: búsqueda primero, ciclo leer-enriquecer-escribir, atribución de fuentes, enriquecimiento ambiental y back-linking. Leer antes de cualquier interacción con el brain.

Costo de contexto al activarse
2.6k tok
Tamaño del paquete
1 archivo
Última actualización
hace 3 días
productividad

Importa exports de ChatGPT, Claude y Perplexity y transcripciones de sesiones como páginas fechadas en conversations/, valida y extrae hechos, y mantiene el archivo sin huecos con detección y backfill.

Costo de contexto al activarse
5k tok
Tamaño del paquete
2 archivos
Última actualización
hace 4 días
productividad

Skills relacionados

Verifica una afirmación o cita académica rastreándola desde la publicación → metodología → datos crudos → replicación independiente, y genera una página cerebro con el veredicto.

Costo de contexto al activarse
2.3k tok
Tamaño del paquete
2 archivos
Última actualización
hace 3 meses
investigacion

Traza la evolución de una idea en el brain: primera mención, mejor articulación, conceptos relacionados, reversales, contradicciones, ramas abandonadas y versión vigente.

Costo de contexto al activarse
2.2k tok
Tamaño del paquete
2 archivos
Última actualización
hace 2 meses
investigacion

Query

28.9k

Responde preguntas usando el conocimiento del brain con búsqueda en 3 capas, síntesis y propagación de citas; úsalo cuando el usuario pregunte, busque o necesite información del brain.

Costo de contexto al activarse
1.8k tok
Tamaño del paquete
2 archivos
Última actualización
hace 9 días
investigacion