sync-gbrain

Synchronize gbrain with repository code and update CLAUDE.md guidance.

1|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/zhu637882-stack/jiaoyi --skill sync-gbrain-zhu637882-stack
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync-gbrain
Source: https://github.com/zhu637882-stack/jiaoyi/tree/main/qoder-config-backup/skills/gstack-sync-gbrain
Command: npx skills add https://github.com/zhu637882-stack/jiaoyi --skill sync-gbrain-zhu637882-stack

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Keeps gbrain up to date with this repository's code and refreshes agent search guidance in CLAUDE.md. It wraps the gstack-gbrain-sync orchestrator with state probing, native code-surface registration, capability checks, and a verdict block. It is re-runnable and idempotent for reliable repeated runs when you trigger "sync gbrain", "refresh gbrain", "reindex repo", or "update gbrain".

Core Features & Use Cases

  • Orchestrates the gstack-gbrain-sync workflow, performing state probing and capability checks to ensure safe, repeatable runs.
  • Registers native surfaces and emits a verdict block that guides whether to execute or skip steps, enabling deterministic behavior.
  • Supports common triggers like sync gbrain, refresh gbrain, reindex repo, and update gbrain to keep the brain index aligned with the codebase.

Quick Start

Run the gstack sync job to refresh gbrain data and re-index the repository.

Frequently Asked Questions about sync-gbrain

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

FAQPage Schema
How do I reindex a repository and update search guidance in CLAUDE.md?

To reindex a repository and update CLAUDE.md, run a gbrain sync workflow. This orchestrator probes repository state, updates the brain index to reflect codebase changes, and refreshes agent search guidance.

What can I do when gbrain search can't find items in my codebase?

When gbrain search can't find items, trigger a sync to reindex the repository. The workflow updates the brain index with current code surfaces and refreshes CLAUDE.md search guidance to improve results.

How does gbrain sync handle repeated runs without duplicating data?

gbrain sync handles repeated runs safely through its idempotent design. It uses state probing and capability checks to decide whether to execute or skip steps, ensuring deterministic behavior across multiple invocations.

Do I need any dependencies installed to run the gbrain refresh workflow?

No external dependencies are required to run the gbrain refresh workflow. The orchestrator performs native code-surface registration and capability checks internally to validate the environment before executing sync steps.

Why does gbrain sync use a verdict block during the refresh process?

gbrain sync uses a verdict block to emit decisions on whether to execute or skip steps. This mechanism provides deterministic behavior by validating state and capabilities before applying indexing changes to the repository.