.claude/skills/savia-hub-sync/SKILL.md
Orquestación de sincronización del repositorio SaviaHub
npx skillsauth add gonzalezpazmonica/pm-workspace savia-hub-syncInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Gestiona la sincronización entre la instancia local de SaviaHub y el remote opcional. Incluye init, push, pull, flight mode y resolución de conflictos.
SAVIA_HUB_PATH="${SAVIA_HUB_PATH:-$HOME/.savia-hub}"
SAVIA_HUB_REMOTE="${SAVIA_HUB_REMOTE:-}" # vacío = solo local
SYNC_QUEUE="$SAVIA_HUB_PATH/.sync-queue.jsonl"
HUB_CONFIG="$SAVIA_HUB_PATH/.savia-hub-config.md"
Ejecutar bash scripts/savia-hub-init.sh [--remote URL] [--path PATH].
git init + crear estructura (company/, clients/, users/) + commit inicialgit clone $SAVIA_HUB_REMOTE + crear config local.savia-hub-config.md (local, gitignored) y .gitignoreremote_url no vacío)--force)1. cd $SAVIA_HUB_PATH
2. git add -A
3. git status --porcelain → listar cambios
4. Si no hay cambios → "Nada que sincronizar"
5. Mostrar resumen al PM:
"Se van a subir N ficheros: [lista]"
6. Confirmar con PM
7. git commit -m "[savia-hub] sync: {resumen}"
8. git push origin main
9. Actualizar last_sync en config
10. Drenar .sync-queue.jsonl si existe
1. cd $SAVIA_HUB_PATH
2. git fetch origin
3. Comparar HEAD vs origin/main
4. Si no hay cambios remotos → "Ya actualizado"
5. git pull --rebase
6. Si conflicto:
a. Listar ficheros en conflicto
b. Para cada uno: mostrar diff al PM
c. PM decide: [local] [remote] [manual]
d. git add fichero && git rebase --continue
7. Actualizar last_sync en config
1. Setear flight_mode: true en .savia-hub-config.md
2. Mostrar: "✈️ Modo vuelo activado"
1. Setear flight_mode: false
2. Si hay remote configurado:
a. Drenar cola → commit + push
b. Pull cambios remotos
c. Resolver conflictos si los hay
3. Mostrar: "✅ Online, sincronizado"
Cada escritura durante flight mode se registra en .sync-queue.jsonl:
{"ts":"2026-03-05T14:30:00Z","action":"write","path":"clients/acme/profile.md"}
Muestra: path, modo (local/remote), flight mode, remote URL, last sync, nº clientes/users, cambios pendientes. El fichero clients/.index.md se auto-regenera al crear/eliminar clientes.
.savia-hub-config.md SIEMPRE local (gitignored).gitignoretesting
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
tools
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
tools
Sistema proactivo de bienestar individual
development
Search the web to resolve context gaps — documentation, versions, CVEs, best practices. Auto-starts SearxNG Docker if available, falls back to WebSearch.