sync-gbrain

Synchronize the gbrain search index with repository state and refresh CLAUDE.md routing rules.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/smarmen86/claude-code-kit --skill sync-gbrain-smarmen86
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync-gbrain
Source: https://github.com/smarmen86/claude-code-kit/tree/main/skills/sync-gbrain
Command: npx skills add https://github.com/smarmen86/claude-code-kit --skill sync-gbrain-smarmen86

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill resolves synchronization issues between your local repository and the gbrain search index, ensuring that agent guidance and code-surface registration remain accurate and up-to-date.

Core Features & Use Cases

  • Repository Reindexing: Forces a refresh of the gbrain search index to ensure semantic queries return the latest code definitions.
  • Routing Orchestration: Automatically injects or updates skill routing rules in your CLAUDE.md file to optimize agent behavior.
  • State Management: Synchronizes session data and configuration settings across your gstack environment.

Quick Start

Invoke the sync-gbrain skill to refresh the repository index and update your agent routing configuration.

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 repository search index and agent routing rules synchronized?

To keep your repository search index and agent routing synchronized, you need a tool that refreshes the semantic search index against your current codebase and automatically updates CLAUDE.md routing rules. This ensures queries return accurate definitions and specialist agents are orchestrated correctly.

Why does my semantic search return outdated code definitions after pulling new commits?

Semantic search returns outdated code definitions because the local repository state has diverged from the search index. Forcing a repository reindex synchronizes the gbrain index with the latest code, ensuring all semantic queries reflect newly pulled commits.

How do I automate the configuration of CLAUDE.md routing rules for specialist agents?

Automating CLAUDE.md routing rule configuration involves injecting or updating project-level directives that orchestrate specialist agents. This synchronizes session data and optimizes agent behavior without requiring manual rule edits.

Does idempotent state management work when refreshing the search index and routing configurations?

Idempotent state management works for refreshing the search index and routing configurations by ensuring repeated sync operations produce the same result. This guarantees consistent session data and configuration settings without duplicating or corrupting existing repository state.

What's the best way to update code-surface registration for an automated agent orchestration environment?

The best way to update code-surface registration for automated agent orchestration is to run a synchronization process that aligns the gbrain search index with the repository and refreshes routing logic. This keeps agent guidance accurate and up-to-date.

When do I need to reindex my repository for semantic search to work correctly?

You need to reindex your repository for semantic search whenever structural code changes occur or when agent guidance becomes inaccurate. Synchronizing the index ensures code-surface registration remains current and routing rules match the repository state.