sync-gbrain

Syncs project state with master and rebases the current Git branch.

Updated Apr 24, 2026
One-click install
npx skills add https://github.com/SakshamKandel/Salt-Route-Consulting- --skill sync-gbrain-sakshamkandel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sync-gbrain
Source: https://github.com/SakshamKandel/Salt-Route-Consulting-/tree/main/.agents/skills/sync-gbrain
Command: npx skills add https://github.com/SakshamKandel/Salt-Route-Consulting- --skill sync-gbrain-sakshamkandel

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Keeps the gbrain index current by syncing this repository's code and refreshing agent search guidance in AGENTS.md. It ensures the brain's contextual surface stays aligned with the latest repo structure and skill routing guidance.

Core Features & Use Cases

  • Code and knowledge refresh: Synchronizes changes in the repository to gbrain's index and updates AGENTS.md with routing guidance to reflect new/updated skills.
  • Plan-mode aware execution: Handles gating, telemetry prompts, and routing checks to ensure safe, guided updates across worktrees.
  • Operational preparedness: Maintains state, analytics, and configuration integration for seamless, repeatable re-indexing.

Quick Start

Run the skill to sync gbrain with this repository and refresh agent routing in AGENTS.md.

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 index fresh and searchable after code changes?

To keep your repository index fresh and searchable, you need to sync your code changes into the gbrain index and update AGENTS.md routing rules. This ensures the knowledge surface aligns with the latest repo structure for accurate agent search guidance.

How do I update AGENTS.md routing rules to reflect new skills?

Updating AGENTS.md routing rules involves refreshing the agent search guidance within the file to reflect new or updated skills. The gstack-gbrain-sync orchestrator handles this by synchronizing repository changes and applying current routing checks across worktrees.

What is the best way to reindex a repository for agent search guidance?

The best way to reindex a repository for agent search guidance is running an automated sync orchestrator with state management. This refreshes the gbrain knowledge surface and ensures AGENTS.md routing rules remain current without manual file edits.

Does gbrain sync work with gstack configuration for state management?

Yes, gbrain sync integrates directly with gstack configuration to load context and drive subsequent actions. It relies on the gstack-gbrain-sync orchestrator for state management, ensuring repeatable re-indexing across worktrees with telemetry and gating checks.

Can I run gbrain reindexing across multiple worktrees safely?

You can run gbrain reindexing across multiple worktrees safely because the sync process is plan-mode aware. It handles gating, telemetry prompts, and routing checks to ensure guided updates without disrupting operational state or analytics.

Why does my AGENTS.md search routing not reflect recent repository updates?

Your AGENTS.md search routing lacks recent updates because the gbrain index is out of sync with your repository. Running a sync operation refreshes the knowledge surface and updates routing rules to match the latest code structure.