sync-gbrain

Synchronize the local gbrain search index with the current repository state.

Updated Jul 26, 2026
One-click install
npx skills add https://github.com/yocxy2/gstack3 --skill sync-gbrain-yocxy2
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync-gbrain
Source: https://github.com/yocxy2/gstack3/tree/main/sync-gbrain
Command: npx skills add https://github.com/yocxy2/gstack3 --skill sync-gbrain-yocxy2

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, jq, gbrain, and includes scripts (resource) components.

What problem does it solve?

This skill ensures that your local gbrain search index remains synchronized with the current state of your repository, preventing stale search results and ensuring the AI agent has the most accurate context for code-related queries.

Core Features & Use Cases

  • Repository Indexing: Automatically refreshes the gbrain search index to reflect recent code changes.
  • Context Management: Updates agent search guidance in CLAUDE.md to ensure semantic queries are correctly routed.
  • Use Case: After performing a large refactor or adding new features, run this skill to ensure that subsequent AI-assisted coding sessions can accurately find and reference the updated symbols and logic.

Quick Start

Invoke the sync-gbrain skill to reindex the current repository and refresh the agent search guidance.

Frequently Asked Questions about sync-gbrain

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I keep my code search index synchronized with recent git repository changes?

To keep your code search index synchronized, you can refresh the gbrain search index to reflect recent repository changes, preventing stale search results and ensuring accurate code-context retrieval for AI agents.

When should I reindex my repository for AI-assisted coding?

You should reindex your repository after performing a large refactor or adding new features, ensuring that subsequent AI-assisted coding sessions can accurately find and reference the updated symbols and logic.

How does semantic re-indexing update agent search guidance in CLAUDE.md?

Semantic re-indexing updates agent search guidance by modifying CLAUDE.md, ensuring that semantic code queries are correctly routed to the most relevant symbols and logic within the gstack ecosystem.

Do I need git and gbrain configured to maintain context indexing?

Yes, you need active gbrain configuration and git integration to perform semantic re-indexing and state updates for maintaining accurate code-context retrieval and worktree-specific indexing pins.

What is the best way to manage worktree-specific indexing pins in the gstack ecosystem?

The best way to manage worktree-specific indexing pins is by operating within the gstack ecosystem, synchronizing the local gbrain search index with the current repository state to maintain accurate agent search guidance.

Why does my AI agent return stale code context after a repository update?

Your AI agent returns stale code context because the local gbrain search index is not synchronized with the current repository state, requiring a semantic re-indexing update to reflect recent code changes.