gbrain-upgrade
Skill4 starsChanged 4 months agoMITView on GitHub
Check and apply upstream gbrain upgrades safely, while keeping the Codex port's local substrate honest.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- garrytan/gbraintheir own version, first seen Oct 17, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- garrytan/gbrain★ 34ksame name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository121 other files it gives its agents.
- AGENTS.mdAGENTS.md
- academic-verifySkill
- accessibility-reviewSkill
- archive-crawlerSkill
- article-enrichmentSkill
- ask-userSkill
- autoplanSkill
- benchmark-modelsSkill
- benchmarkSkill
- book-mirrorSkill
- brain-opsSkill
- brain-pdfSkill
- brain-taxonomistSkill
- briefingSkill
- browseSkill
- canarySkill
- captureSkill
- carefulSkill
- checkpointSkill
- citation-fixerSkill
- codexSkill
- cold-startSkill
- concept-synthesisSkill
- connect-chromeSkill
- context-restoreSkill
- context-saveSkill
- cron-schedulerSkill
- cross-modal-reviewSkill
- csoSkill
- daily-task-managerSkill
- daily-task-prepSkill
- data-researchSkill
- design-consultationSkill
- design-htmlSkill
- design-leadership-reviewSkill
- design-motionSkill
- design-qualitySkill
- design-reviewSkill
- design-shotgunSkill
- devex-reviewSkill
- diagramSkill
- document-generateSkill
- document-releaseSkill
- eiirpSkill
- enrichSkill
- eval-planSkill
- fact-checkSkill
- freezeSkill
- frontmatter-guardSkill
- functional-area-resolverSkill
- gbrain-advisorSkill
- gstackSkill
- gstack-upgradeSkill
- guardSkill
- healthSkill
- idea-ingestSkill
- idea-lineageSkill
- ingestSkill
- installSkill
- investigateSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 9 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill when the user asks to update, upgrade, or verify upstream GBrain availability.
- Distinctive: line 19
Check local state before mutation:
- Distinctive: line 27
If the upstream CLI exists, use read-only upgrade checks first:
- Distinctive: line 36
Use the configured release channel.
- Very specific: line 41
Check the new executable version and run gbrain doctor --only runtime_build_skew,serve_build_drift --json.
- Distinctive: line 56
If the upstream CLI is absent, continue with this repo's file-backed GBrain port and report the absence plainly.
- Distinctive: line 57
Prefer current documented Codex capabilities over older Claude Code compatibility fallbacks.
- Distinctive: line 61
Do not block unrelated work on an optional upstream CLI upgrade.
- Very specific: line 62
Do not convert this repo's local brain/ corpus into another storage backend during an upgrade.
- Distinctive: line 63
Do not claim full upstream parity after only updating the Codex skill port.
- Distinctive: line 64
Do not rely on stale memory for Codex host behavior when the official manual can be refreshed.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GBrain Upgrade
Use this skill when the user asks to update, upgrade, or verify upstream GBrain availability.
This port was reconciled against garrytan/gbrain at commit
a64fb58b9d407f4ee412249dbf4660b158f55f31.
Workflow
- Determine which layer is being updated:
- upstream
gbrainCLI - this Codex port's GBrain skill files
- this repo's local
brain/substrate
- upstream
- Check local state before mutation:
git status --shortcodex --versioncommand -v gbrainpython3 scripts/brain_doctor.py
- Refresh the current official Codex manual before judging whether a local fallback is still necessary:
node "${CODEX_HOME:-$HOME/.codex}/skills/.system/openai-docs/scripts/fetch-codex-manual.mjs"- review the relevant skills, MCP, plugins, memories, automations, sandboxing, and local environment sections
- If the upstream CLI exists, use read-only upgrade checks first:
gbrain self-upgrade --check-only --jsonwhen availablegbrain --versiongbrain doctor
- Apply upgrades only after the user approves, unless they explicitly requested the upgrade.
- Re-run local validation after any update.
Verify a live service upgrade
Use the configured release channel. On a host with active workers, record
whether autopilot was already paused. Pause intake for the upgrade and let
active jobs drain. Preview restarts with
gbrain upgrade --restart-only --dry-run --json when the installed CLI
supports it. A refused restart identifies a process that needs its owner.
Check the new executable version and run
gbrain doctor --only runtime_build_skew,serve_build_drift --json.
Resume intake only if it was running before and verification passed.
Upstream also offers Codex MCP setup, optional hooks and a plugin. Inspect
gbrain setup codex --dry-run when connection setup is in scope.
Connecting hosted storage, importing a corpus and enabling capture are
separate decisions.
Upstream operator workflow · Codex integration
Codex Adaptation
- This skill never runs a command parsed out of an
UPGRADE_AVAILABLEmarker. - The only allowed upstream self-upgrade commands are hardcoded
gbrain self-upgradeorgbrain upgrade. - If the upstream CLI is absent, continue with this repo's file-backed GBrain port and report the absence plainly.
- Prefer current documented Codex capabilities over older Claude Code compatibility fallbacks; keep the file-backed brain and CLI/MCP fallbacks only where current host state requires them.
Guardrails
- Do not block unrelated work on an optional upstream CLI upgrade.
- Do not convert this repo's local
brain/corpus into another storage backend during an upgrade. - Do not claim full upstream parity after only updating the Codex skill port.
- Do not rely on stale memory for Codex host behavior when the official manual can be refreshed.
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
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.

