What problem does it solve? Code search indexes drift out of date as a repository changes, causing semantic search tools like gbrain to return stale or missing results. This Skill re-indexes the repo against gbrain and updates the agent-facing search guidance in CLAUDE.md so AI agents know when and how to use gbrain search instead of plain grep. ## Core Features & Use Cases - Repo re-indexing: Wraps the gstack-gbrain-sync orchestrator to probe, register native code surfaces, run capability checks, and emit a verdict block; re-runnable and idempotent. - CLAUDE.md guidance refresh: Updates the GBrain Search Guidance section so agents prefer gbrain search/gbrain query for semantic questions and code-def/code-refs/code-callers for symbol-aware lookup. - Worktree pinning: Uses a per-worktree .gbrain-source pin at the git toplevel to scope queries, detecting unpinned worktrees and falling back to Grep until pinned. - Use Case: After a large refactor, an agent's semantic search stops finding new symbols. Invoke the skill to re-index the repo, pin the worktree, and restore accurate gbrain-powered code lookup. ## Quick Start Ask the agent to sync gbrain and re-index this repository so semantic code search reflects the latest changes.