garrytan/gbrain

Garry's Opinionated OpenClaw/Hermes Agent Brain

29kStars on the repository
59Mods indexed here, across every type
todayLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

gbrain

01

garrytan/gbrain

Skill Claude CodeCodex

Search and write the company knowledge brain. Use for any question about the org, people, projects, decisions, or history, and to persist durable knowledge beyond this scope's notebook.

29k +124 today A 39 tokens original MIT

reference-pack

02

garrytan/gbrain

Skill Claude CodeCodex

Reference skill demonstrating the 10/10 skillpack contract. Adds a "what does this skillpack do" answer to the user's agent.

29k +124 today A 31 tokens original MIT

brain-ingest-gate

03

garrytan/gbrain

Skill Claude CodeCodex

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 entities registry-first (a vector score is a floor for prose, never a gate for named things), then run the read-the-top-hit dedup decision tree (clear-dup /…

29k +124 today A 106 tokens original MIT

garrytan/gbrain

Skill Claude CodeCodex

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 message. Derive the path mechanically (git ls-files --full-name), push BEFORE linking, verify the link resolves when a hosted remote exists, and degrade through a…

29k +124 today C 115 tokens original MIT

brain-ops

05

garrytan/gbrain

Skill Claude CodeCodex

Brain knowledge base operations. The core read/write cycle: brain-first lookup, read-enrich-write loop, source attribution, ambient enrichment, back-linking. Read this before any brain interaction.

29k +124 changed today A 42 tokens original MIT

concept-synthesis

06

garrytan/gbrain

Skill Claude CodeCodex

Deduplicate and synthesize raw concept stubs into a tiered intellectual map (T1 Canon to T4 Riff), tracing idea evolution across sources over time. Transforms thousands of raw concept pages into a curated intellectual fingerprint. Includes a reversible curation cull pass (Phase 5) with hard keep/delete/merge verdicts…

29k +124 today A 90 tokens original MIT

context-audit

07

garrytan/gbrain

Skill Claude CodeCodex

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, USER.md, ACCESSPOLICY.md, HEARTBEAT.md) or their harness equivalents. Finds redundancy, contradictions, stale content, compression candidates, and skill-extraction…

29k +124 today A 161 tokens original MIT

correction-pipeline

08

garrytan/gbrain

Skill Claude CodeCodex

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 recurrence. Every factual error is either a data error (bad brain page, bad memory file, bad rendered SOUL/USER identity, bad facts row) or a hallucination (LLM…

29k +124 today A 87 tokens original MIT

data-loss-gate

09

garrytan/gbrain

Skill Claude CodeCodex

Confirmation gate before any bulk delete, cleanup, or destructive operation that could result in data loss — shell-level (rm -rf, git rm, bulk sed) or brain-level (bulk forget, delete sweeps, purge-deleted, source removal, raw-SQL truncation). Presents a recoverability card and requires an explicit "yes" from the user…

29k +124 today C 89 tokens original MIT

db-repair

10

garrytan/gbrain

Skill Claude CodeCodex

Auto-fix gbrain's Postgres access so the brain stays available. When any gbrain command or MCP tool result carries a GBRAINDBACCESS marker (or an operator reports the brain database is down), run the hardcoded gbrain db-repair ladder: diagnose, apply the safe tier, verify. The action is ALWAYS the hardcoded command …

29k +124 today A 96 tokens original MIT

enrich

11

garrytan/gbrain

Skill Claude CodeCodex

Enrich brain pages with tiered enrichment protocol. Creates and updates person/company pages with compiled truth, timeline, and cross-links. Use when a new entity is mentioned or an existing page needs updating.

29k +124 today A 44 tokens original MIT

garrytan/gbrain

Skill Claude CodeCodex

Compress an agent's routing file (RESOLVER.md or AGENTS.md) by converting granular skill-per-row tables into functional-area dispatchers. Each area lists sub-skills in a "(dispatcher for: ...)" clause. The LLM reads one area entry and routes to the correct sub-skill. Proven via held-out A/B eval: dispatcher pattern…

29k +124 today A 89 tokens original MIT

idea-ingest

13

garrytan/gbrain

Skill Claude CodeCodex

Ingest links, articles, tweets, and ideas into the brain. Fetch content, save to brain with analysis, create author people page, and cross-link. Use when the user shares a link or says "read this", "save this", "think about this".

29k +124 today A 60 tokens original MIT

idea-lineage

14

garrytan/gbrain

Skill Claude CodeCodex

Trace one idea's evolution through the brain: first mention, best articulation, related concepts, reversals, contradictions, abandoned branches, and the current live version. Use for single-idea conceptual lineage, not broad concept-map synthesis or structured entity metrics.

29k +124 today A 60 tokens original MIT

ingest

15

garrytan/gbrain

Skill Claude CodeCodex

Route content to specialized ingestion skills. Detects input type and delegates.

29k +124 today A 17 tokens original MIT

maintain

16

garrytan/gbrain

Skill Claude CodeCodex

Brain health checks: back-link enforcement, citation audit, filing validation, stale info detection, orphan pages, and benchmarks. Use when asked to check brain health, run maintenance, or audit quality.

29k +124 changed today A 44 tokens original MIT

garrytan/gbrain

Skill Claude CodeCodex

Before fixing a slow/stale/timeout alert, measure the step yourself. Kill the theory with a stopwatch, not a code change. Measure-first ops triage for temporal alerts (stale, timeout, freshness, wedged, N hours behind) from gbrain doctor, autopilot, sync, and cron monitors — runs BEFORE any timeout raise, threshold…

29k +124 today A 87 tokens original MIT

postgres-adopt

18

garrytan/gbrain

Skill Claude CodeCodex

Detect which gbrain engine is in use (PGLite vs Postgres), prefer Postgres for agent-harness installs, install/provision Postgres (Supabase discovery via SUPABASEACCESSTOKEN, local Postgres, opt-in Docker), and move an existing PGLite brain with the guarded engine migration. Detection is one engine-free command; the…

29k +124 today A 85 tokens original MIT

query

19

garrytan/gbrain

Skill Claude CodeCodex

Answer questions using the brain's knowledge with 3-layer search, synthesis, and citation propagation. Use when the user asks a question, wants a lookup, or needs information from the brain.

29k +124 today A 40 tokens original MIT

repo-architecture

20

garrytan/gbrain

Skill Claude CodeCodex

Where new brain files go. Decision protocol for filing brain pages by primary subject, not by format or source. Reference for all brain-writing skills.

29k +124 today A 34 tokens original MIT

garrytan/gbrain

Skill Claude CodeCodex

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…

29k +124 today A 99 tokens original MIT

signal-detector

22

garrytan/gbrain

Skill Claude CodeCodex

Always-on ambient signal capture. Applies on every substantive inbound message to detect original thinking and entity mentions. Spawn as a cheap sub-agent where the harness supports it; otherwise run detection inline. Aim to never block the main response.

29k +124 changed today A 51 tokens original MIT

blog-ingest

23

garrytan/gbrain

Skill Claude CodeCodex

Feed and whole-publication ingestion: turn an entire blog, newsletter, or RSS/Atom archive into brain source pages. Covers feed discovery, pagination walking, normalization to a common article shape, canonical-URL dedup, idempotent re-runs, 429 pacing, and empty-husk repair. This is the PUBLICATION-scope skill — a…

29k +124 today B 118 tokens original MIT

briefing

24

garrytan/gbrain

Skill Claude CodeCodex

Compile daily briefing with meeting context, active deals, and citation tracking.

29k +124 today A 16 tokens original MIT