# sync-gbrain

> Claude/Codex skill by [@garrytan](https://omgskills.com/library/garrytan/index.md) · 131k stars · Updated 2026-08-31

Keep gbrain current with this repo's code and refresh agent search guidance in CLAUDE.md. (gstack)

## Install

```sh
git clone https://github.com/garrytan/gstack /tmp/gstack && ln -s /tmp/gstack/sync-gbrain ~/.claude/skills/sync-gbrain
```

## From README

When to invoke this skill Wraps the gstack-gbrain-sync orchestrator with state probing, native code-surface registration, capability checks, and a verdict block. Re-runnable, idempotent. Use when: "sync gbrain", "refresh gbrain", "re-index this repo", "gbrain search isn't finding things". Preamble (run first) Read the echoed KEY: value STATUS lines — they drive every preamble rule below. Degraded mode: if SKILLSTARTPROTO: 1 is missing from the output (script absent, stale , or a different protocol number), apply safe defaults: treat SESSIONKIND as interactive, do NOT assume Conductor, skip onboarding/telemetry steps (their gates are marker-based, so consent and onboarding prompts are DEFERRED to the next healthy run — never lost), tell the user to run ./ or /gstack-upgrade, and proceed with their task. Note SESSIONID and TELSTART from the output — the Telemetry step needs them at skill end.

## Links

- HTML page: https://omgskills.com/skills/garrytan/gstack/sync-gbrain/
- GitHub: https://github.com/garrytan/gstack
- Author: [@garrytan](https://omgskills.com/library/garrytan/index.md)

## More from this repo

- [gstack](https://omgskills.com/skills/garrytan/gstack/index.md) — Router for the gstack skill suite.
   - [@garrytan](https://omgskills.com/library/garrytan/index.md) · 132k stars
- [autoplan](https://omgskills.com/skills/garrytan/gstack/autoplan/index.md) — Auto-review pipeline — reads the full CEO, design, eng, and DX review skills from disk and runs them sequentially with...
   - [@garrytan](https://omgskills.com/library/garrytan/index.md) · 132k stars
- [benchmark](https://omgskills.com/skills/garrytan/gstack/benchmark/index.md) — Performance regression detection.
   - [@garrytan](https://omgskills.com/library/garrytan/index.md) · 132k stars
