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

setup-gbrain

Skill4 starsChanged 4 months agoMITView on GitHub

Set up or verify the local GBrain-style brain substrate, Codex skill links, optional upstream gbrain CLI/MCP, and worktree/local-environment expectations for this port.

7 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

17 rules. 0 are common, 10 are distinctive, and 7 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 10

    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 set up, connect, install, or verify GBrain for this Codex port.

    line 8
  2. Very specific:

    run python3 scripts/brain_doctor.py when available

    line 17
  3. Distinctive:

    Check for upstream GBrain availability:

    line 18
  4. Very specific:

    if present, report gbrain --version or equivalent status

    line 20
  5. Distinctive:

    if absent, do not fake CLI support.

    line 21
  6. Distinctive:

    if configuration identifies a remote MCP thin client, treat the missing local engine as intentional.

    line 22
  7. Distinctive:

    Check the current Codex install surface:

    line 25
  8. Very specific:

    verify repo-owned skills are visible under the documented user surface at ~/.agents/skills

    line 26
  9. Distinctive:

    Check worktree/local-environment expectations when Codex app worktrees or automations are in scope:

    line 29
  10. Very specific:

    do not add private brain corpus paths to .worktreeinclude

    line 31
  11. Distinctive:

    use tracked setup docs or local environment actions for reproducible setup steps

    line 32
  12. Very specific:

    Do not overwrite existing brain/ pages.

    line 43
  13. Distinctive:

    Do not install global tools unless the user explicitly asked for installation.

    line 44
  14. Distinctive:

    Do not claim full upstream GBrain parity when only the local substrate is active.

    line 45
  15. Distinctive:

    Do not diagnose a configured remote thin client as a broken local database.

    line 46
  16. Very specific:

    Treat untracked brain/ content as user data.

    line 47
  17. Very specific:

    Use gbrain-advisor for read-only setup advice and gbrain-upgrade for upstream CLI upgrades.

    line 48

“Common” is measured: kept by at least 6 in 10 of the 4 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

Setup GBrain

Use this skill when the user asks to set up, connect, install, or verify GBrain for this Codex port.

This is a Codex-native adaptation of upstream GStack's setup-gbrain. Upstream can install the real gbrain CLI and MCP stack; this port first preserves the local file-backed brain/ substrate already used in this repo, then reports where true upstream GBrain integration is still needed.

Workflow

  1. Inspect the repo-local substrate:
    • confirm brain/README.md exists
    • confirm scripts/brain_init.py, scripts/brain_search.py, scripts/brain_put.py, scripts/brain_link.py, and scripts/brain_doctor.py exist
    • run python3 scripts/brain_doctor.py when available
  2. Check for upstream GBrain availability:
    • run command -v gbrain
    • if present, report gbrain --version or equivalent status
    • if absent, do not fake CLI support; state that the local file-backed substrate is active
    • if configuration identifies a remote MCP thin client, treat the missing local engine as intentional; verify configuration without claiming the remote service is reachable until a real query succeeds
  3. Check the current Codex install surface:
    • verify repo-owned skills are visible under the documented user surface at ~/.agents/skills
    • preserve shared symlinks and user-owned directories; install only missing skills or update copies with this package's ownership receipt
  4. Check worktree/local-environment expectations when Codex app worktrees or automations are in scope:
    • note that ignored private brain folders are not copied into worktrees unless intentionally included
    • do not add private brain corpus paths to .worktreeinclude
    • use tracked setup docs or local environment actions for reproducible setup steps
  5. Initialize missing local folders only when they are expected by the repo and safe to create.
  6. Summarize:
    • local substrate status
    • upstream CLI/MCP status
    • Codex skill install status
    • local-vs-worktree caveats when relevant
    • recommended next step, usually sync-gbrain or capture

Guardrails

  • Do not overwrite existing brain/ pages.
  • Do not install global tools unless the user explicitly asked for installation.
  • Do not claim full upstream GBrain parity when only the local substrate is active.
  • Do not diagnose a configured remote thin client as a broken local database.
  • Treat untracked brain/ content as user data.
  • Use gbrain-advisor for read-only setup advice and gbrain-upgrade for upstream CLI upgrades.

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.