agentleFS
mphaxisemphaxise/gstack-port-for-codex/skills/sync-gbrain/SKILL.md

sync-gbrain

Skill4 starsChanged 4 months agoMITView on GitHub

Re-index this repo into the local GBrain-style substrate and refresh the Codex port's memory/search guidance.

14 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 6 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 12 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user asks to sync, refresh, re-index, or update GBrain for this repo.

    line 8
  2. Very specific:

    run python3 scripts/brain_doctor.py if present

    line 18
  3. Very specific:

    run python3 scripts/brain_search.py "gstack" and python3 scripts/brain_search.py "gbrain" to verify search still sees the corpus

    line 19
  4. Distinctive:

    update tracked docs or skill registries only when the task explicitly requires it

    line 21
  5. Very specific:

    leave untracked brain/ pages alone unless the user asked to capture new knowledge

    line 22
  6. Very specific:

    If the upstream gbrain CLI exists, use read-only status commands first, then summarize any stronger sync path it offers.

    line 23
  7. Distinctive:

    If the machine is a configured remote MCP thin client, skip local indexing stages by design and report that remote reachability remains …

    line 24
  8. Very specific:

    If schema cleanup is requested, route to schema-unify before any bulk retyping or migration.

    line 27
  9. Very specific:

    Do not bulk rewrite the brain/ corpus during a sync.

    line 36
  10. Distinctive:

    Do not silently convert file-backed pages into a different store.

    line 37
  11. Distinctive:

    Do not treat upstream GBrain availability as required for the local Codex port to work.

    line 38
  12. Distinctive:

    Do not treat a configured remote thin client as a broken local engine.

    line 39
  13. Very specific:

    Do not treat generated brain/.raw or brain/sources pages as publishable repo changes unless the user explicitly promotes them.

    line 40

“Common” is measured: kept by at least 6 in 10 of the 12 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Sync GBrain

Use this skill when the user asks to sync, refresh, re-index, or update GBrain for this repo.

This is the Codex adaptation of upstream GStack's sync-gbrain. It prefers the local brain/ helpers in this repo and uses the real gbrain CLI only when it is already installed.

Workflow

  1. Preserve local changes:
    • run git status --short
    • identify untracked or modified brain/ files before any write
  2. Refresh repo knowledge:
    • run python3 scripts/brain_doctor.py if present
    • run python3 scripts/brain_search.py "gstack" and python3 scripts/brain_search.py "gbrain" to verify search still sees the corpus
  3. Sync new repo guidance:
    • update tracked docs or skill registries only when the task explicitly requires it
    • leave untracked brain/ pages alone unless the user asked to capture new knowledge
  4. If the upstream gbrain CLI exists, use read-only status commands first, then summarize any stronger sync path it offers.
  5. If the machine is a configured remote MCP thin client, skip local indexing stages by design and report that remote reachability remains query-time evidence; do not route the missing local engine into repair steps.
  6. If schema cleanup is requested, route to schema-unify before any bulk retyping or migration.
  7. End with a verdict:
    • local brain active
    • upstream gbrain available or upstream gbrain absent
    • actions taken
    • remaining gaps

Guardrails

  • Do not bulk rewrite the brain/ corpus during a sync.
  • Do not silently convert file-backed pages into a different store.
  • Do not treat upstream GBrain availability as required for the local Codex port to work.
  • Do not treat a configured remote thin client as a broken local engine.
  • Do not treat generated brain/.raw or brain/sources pages as publishable repo changes unless the user explicitly promotes them.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.