sync-gbrain

Sync repository code and refresh agent search guidance in CLAUDE.md.

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/abhishekmmgn/didactic-invention --skill sync-gbrain-abhishekmmgn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync-gbrain
Source: https://github.com/abhishekmmgn/didactic-invention/tree/main/.agents/skills/gstack/sync-gbrain
Command: npx skills add https://github.com/abhishekmmgn/didactic-invention --skill sync-gbrain-abhishekmmgn

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Keeps gbrain index up-to-date by syncing this repo's code and refreshing agent search guidance in CLAUDE.md. Wraps the gstack-gbrain-sync orchestrator with state (gstack).

Core Features & Use Cases

  • Orchestrates the gstack-gbrain-sync process with internal state, enabling reliable reindexing and guidance refresh.
  • Updates CLAUDE.md to inject routing rules and telemetry prompts as part of governance for policy-heavy repos.
  • Supports plan-mode safety constraints and spawned-session handling to ensure predictable behavior across environments.

Quick Start

Run this skill to synchronize gbrain with the 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 the gbrain index up-to-date when syncing my repository?

To keep the gbrain index up-to-date, you run a brain-sync process that syncs your repository's code and wraps the gstack-gbrain-sync orchestrator with gstack state for deterministic, reliable reindexing across your codebase.

What does refreshing agent search guidance in CLAUDE.md do?

Refreshing agent search guidance in CLAUDE.md injects routing rules and telemetry prompts into your repository. This governance step ensures agent search behavior remains predictable and policy-compliant during maintenance workflows.

How does gstack state management ensure deterministic runs during code reindexing?

gstack state management ensures deterministic runs by wrapping the gstack-gbrain-sync orchestrator with internal state. This approach supports plan-mode safety constraints and spawned-session handling to guarantee predictable reindexing behavior across environments.

Do I need gstack tooling and CLAUDE.md to sync gbrain with my repository?

Yes, you need access to the repository, the gstack tooling, and a CLAUDE.md file. These prerequisites are required to run the brain-sync process and inject the necessary routing guidance and telemetry prompts for agent search.

When should I run a gbrain sync and refresh agent search for maintenance?

You should run a gbrain sync during repository maintenance and reindex workflows. It is specifically designed for policy-heavy repositories that require updated routing guidance and reliable code synchronization to maintain accurate agent search results.

Why does my gstack-gbrain-sync orchestrator lack state during repository reindexing?

The gstack-gbrain-sync orchestrator lacks state when not properly wrapped. This skill resolves that by applying gstack state to the orchestrator, enabling reliable reindexing and guidance refresh while enforcing plan-mode safety constraints across environments.