sync-gbrain

Orchestrate gbrain index syncs with state probes and capability checks.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Keep gbrain current with this repo's code and refresh agent search guidance in CLAUDE.md. Wraps the gstack-gbrain-sync orchestrator with state probing, native code-surface registration, capability checks, and a verdict block. Re-runnable, idempotent. Use when: "sync gbrain", "refresh gbrain", "re-index this repo", "gbrain search isn't finding things". (gstack)

Core Features & Use Cases

  • Orchestrates the gstack-gbrain-sync workflow to keep local artifacts and agent search indices up to date.
  • Performs state probing, registers native code surfaces, and checks capabilities, producing a verdict block to summarize results.
  • Re-runnable and idempotent to ensure safe re-execution in CI or local development.

Quick Start

Run the gstack sync command to refresh gbrain indexing in the current repo.

Frequently Asked Questions about sync-gbrain

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

FAQPage Schema
How do I refresh code search indexes when gbrain search isn't finding things in my local worktree?

To refresh gbrain search indexes, you can run a sync orchestration workflow that probes local worktree state, registers native code surfaces, and updates search guidance in CLAUDE.md. This ensures the gbrain index accurately reflects your current repo code and remains searchable.

What is the best way to keep agent search guidance in CLAUDE.md current with my repository code?

Keeping agent search guidance current involves orchestrating a sync between local worktrees and CLAUDE.md. The process performs capability checks and surface registrations to produce a final verdict, ensuring agent search guidance aligns with the latest codebase changes.

Can I safely re-run a gbrain indexing sync in CI without causing duplicate or conflicting state?

Yes, the gbrain sync orchestration is fully idempotent and re-runnable. It safely re-executes in CI or local development environments without causing duplicate state, ensuring reproducible results across multiple sync operations.

Does the gbrain sync workflow require any special dependencies or component installations?

The gbrain sync workflow operates as a standalone orchestration script with no external dependencies or additional component installations required. It runs natively within the local development environment and per-repo worktrees to manage indexing.

Why does my gbrain search index return outdated results after pulling new code into my worktree?

Your gbrain search index returns outdated results because the index has not been refreshed to reflect new code changes. Running the sync orchestrator updates local artifacts and agent search indices, bringing the index back in sync with your current worktree state.

When should I trigger a gbrain re-indexing operation for my local development environment?

You should trigger a gbrain re-indexing operation when you modify code in local worktrees and need updated search accuracy. It is designed to keep local artifacts and agent search indices up to date, making it ideal after significant codebase changes.