Brain package manager — install, update, list skills from registries
Manages skill installation from remote registries into the brain.
/brain setup Fresh brain setup — fetch install promptone and run onboarding
/brain install <skill> Install a skill from registry
/brain install <repo>/<skill> Install from a specific repo
/brain update [skill] Update one or all installed skills
/brain list List installed skills
/brain list --available List skills available in registry
/brain uninstall <skill> Remove an installed skill
/brain info <skill> Show skill details and parameters
/brain doctor Health check: frontmatter, index.md, requires, .env
/brain doctor semantic Deep content analysis: duplicates, misplaced files, stubs, merge candidates
/brain diff [skill] Show differences between installed and upstream
Parse $ARGUMENTS with natural language before dispatching to the right flow:
args = "$ARGUMENTS".strip().lower()
if not args:
intent = "list_installed"
elif any(w in args for w in ["setup", "start", "init", "inizia", "onboarding", "installa brain", "nuovo brain"]):
intent = "setup"
elif any(w in args for w in ["nuove", "novità", "new", "aggiornam", "updates", "cosa c'è", "cosa ci sono", "cosa è uscito", "mancanti", "missing"]):
intent = "whats_new"
elif any(w in args for w in ["install", "installa", "aggiungi", "add"]):
intent = "install"
skill_name = args.split()[-1]
elif any(w in args for w in ["update", "aggiorna"]) and "--available" not in args:
intent = "update"
skill_name = args.replace("update","").replace("aggiorna","").strip() or None
elif any(w in args for w in ["list", "lista", "elenca", "--available", "disponibili", "tutte"]):
intent = "list_available" if "--available" in args or any(w in args for w in ["disponibili","tutte","registry"]) else "list_installed"
elif any(w in args for w in ["uninstall", "rimuovi", "disinstalla", "remove"]):
intent = "uninstall"
elif any(w in args for w in ["info", "dettaglio", "cos'è", "cose"]):
intent = "info"
elif any(w in args for w in ["doctor", "check", "salute", "stato"]):
if any(w in args for w in ["semantic", "semantico", "deep", "pulisci", "cleanup", "merge", "mergia", "riordina", "contenuto", "contenuti"]):
intent = "doctor_semantic"
else:
intent = "doctor"
elif any(w in args for w in ["diff", "differenze", "cambiamenti"]):
intent = "diff"