From 7414f45e228cf38e9afc64391bd41faac8d6eac3 Mon Sep 17 00:00:00 2001 From: Garry Tan Date: Sun, 3 May 2026 20:42:50 -0700 Subject: [PATCH] docs: register /sync-gbrain in AGENTS.md and docs/skills.md Co-Authored-By: Claude Opus 4.7 (1M context) --- AGENTS.md | 1 + docs/skills.md | 1 + 2 files changed, 2 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index bea9c7fd..c1e5595f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -63,6 +63,7 @@ Invoke them by name (e.g., `/office-hours`). | `/benchmark-models` | Cross-model benchmark for skills (Claude, GPT, Gemini side-by-side). | | `/cso` | OWASP Top 10 + STRIDE security audit. | | `/setup-gbrain` | Set up gbrain for cross-machine session memory sync. | +| `/sync-gbrain` | Keep gbrain current with this repo's code; refresh agent search guidance in CLAUDE.md. | ### Browser + agent integration diff --git a/docs/skills.md b/docs/skills.md index 05c2209c..b20bf665 100644 --- a/docs/skills.md +++ b/docs/skills.md @@ -42,6 +42,7 @@ Detailed guides for every gstack skill — philosophy, workflow, and examples. | [`/codex`](#codex) | **Second Opinion** | Independent review from OpenAI Codex CLI. Three modes: code review (pass/fail gate), adversarial challenge, and open consultation with session continuity. Cross-model analysis when both `/review` and `/codex` have run. | | [`/pair-agent`](#pair-agent) | **Remote Agent Bridge** | Pair a remote AI agent (OpenClaw, Codex, Cursor, Hermes) with your browser. Scoped tunnel, locked allowlist, session token. | | [`/setup-gbrain`](#setup-gbrain) | **Memory Sync** | Set up gbrain for cross-machine session memory sync. One command from zero to live. | +| [`/sync-gbrain`](#sync-gbrain) | **Keep Brain Current** | Refresh gbrain against this repo's code; teach the agent when to use `gbrain search`/`code-def` over Grep. Idempotent; safe to re-run. | | | | | | **Safety & Utility** | | | | [`/careful`](#safety--guardrails) | **Safety Guardrails** | Warns before destructive commands (rm -rf, DROP TABLE, force-push, git reset --hard). Override any warning. Common build cleanups whitelisted. |