What problem does it solve?
When your gbrain index falls out of sync with your repository's code, agent search returns outdated or missing results, and AGENTS.md guidance becomes stale, leading to incorrect context and routing for development tasks.
Core Features & Use Cases
- Idempotent gbrain sync: Re-run this skill anytime after code changes to refresh the gbrain index without creating duplicate or corrupted state.
- Agent search guidance refresh: Automatically updates routing rules and context guidance in your project's AGENTS.md file to match current codebase structure.
- State and capability checks: Verifies gbrain configuration, repo mode, and existing routing rules before performing sync operations to avoid unnecessary work.
- Use Case: After pushing a large refactor that adds new modules and updates existing APIs, run this skill to ensure gbrain search and agent routing immediately reflect the new codebase state.
Quick Start
Use the sync-gbrain skill to refresh your gbrain index and agent search guidance after making changes to your repository.