gstack-sync-gbrain

Run the gstack-gbrain-sync orchestrator to refresh gbrain indexing and search alignment.

Updated May 19, 2026
One-click install
npx skills add https://github.com/anilveersingh1308/copilot-skills --skill gstack-sync-gbrain
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gstack-sync-gbrain
Source: https://github.com/anilveersingh1308/copilot-skills/tree/main/.github/skills/gstack-sync-gbrain
Command: npx skills add https://github.com/anilveersingh1308/copilot-skills --skill gstack-sync-gbrain

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It keeps your gbrain artifact and search index aligned with the current repo state, so code and guidance show up correctly during “gbrain search” and related retrieval tasks.

Core Features & Use Cases

  • Idempotent gbrain refresh: Re-runs safely to re-index and refresh artifact-driven search without needing manual cleanup.
  • State probing and verdict gating: Performs checks for environment readiness, capability availability, and routing prerequisites, then proceeds or stops based on a clear outcome.
  • Native code-surface registration: Ensures the underlying code surface and capabilities are properly registered so semantic queries land on the right material.

Quick Start

Ask the agent to run: “sync gbrain” to refresh indexing and update search guidance for the current repo.

Frequently Asked Questions about gstack-sync-gbrain

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

FAQPage Schema
Why does repository search indexing return missing results for my current code base?

Repository search indexing returns missing results when the artifact index is out of sync with the current repository state. Running a gbrain refresh re-indexes the code surface and updates retrieval guidance to fix missing search results.

How do I refresh search indexing for my repository without manual cleanup?

You refresh search indexing by running an idempotent orchestrator that safely re-indexes the repository and updates artifact-driven search. This deterministic workflow can be re-run repeatedly without needing manual cleanup or state resets.

How does state probing and capability checking work before re-indexing a repository?

State probing and capability checking evaluate environment readiness, capability availability, and routing prerequisites before re-indexing. The workflow then issues a verdict gate, proceeding with the artifact sync only if all checks pass or stopping safely if conditions are unmet.

Can I use gstack-sync-gbrain to register native code surfaces for better semantic retrieval?

Yes, you can use it to register native code surfaces and capabilities so semantic queries land on the correct material. This ensures the underlying code surface is properly indexed for accurate artifact-driven search retrieval.

What are the limitations of using an idempotent workflow for repository artifact synchronization?

An idempotent workflow for repository artifact synchronization relies on local artifacts and environment readiness checks. It is limited by routing prerequisites and capability availability, stopping the sync process if state probing fails to verify required conditions.