sync-gbrain
“Keep gbrain current with this repo's code and refresh agent search guidance in CLAUDE.md. Wraps the gstack-gbrain-sync orchestrator with state (gstack)”
aipkg.jsonLICENSE.txtREADME.mdSKILL.mdSKILL.md.tmpl- 01SQP-285%MEDIUM
SKILL.md.tmpl:216
detailhide
The skill modifies CLAUDE.md without explicit user confirmation. This file guides agent behavior across the repository and is committed to version control. Unwarned modifications could alter agent instructions unexpectedly, potentially causing the agent to make different decisions about which tools to use. The atomic write pattern mitigates corruption risk but not the consent issue.
214Then update CLAUDE.md based on capability state:215216**If `CAPABILITY_OK=1`** — write or update the block. Idempotent: find the217HTML-comment-delimited block; replace its body if it exists; append at the218end of CLAUDE.md if it doesn't. NEVER duplicate. Block is machine-AGNOSTICfix Before writing CLAUDE.md in Step 4, explicitly ask the user: 'Update CLAUDE.md with GBrain search guidance?' with clear diff preview. Log exactly what will change. Only proceed on explicit confirmation or if user passed a --auto-update flag at invocation time.