{"skill":{"slug":"auto-updater-windows","displayName":"Auto-Updater (Windows Compatible)","summary":"Set up and maintain automatic OpenClaw + skill updates on Windows/macOS/Linux. Use when a user asks for scheduled updates, manual update runs, update health...","description":"---\nname: auto-updater\ndescription: \"Set up and maintain automatic OpenClaw + skill updates on Windows/macOS/Linux. Use when a user asks for scheduled updates, manual update runs, update health checks, or update summaries. On Windows, enforce native Windows/Git Bash flow and avoid WSL bash paths.\"\n---\n\n# Auto-Updater Skill (Windows-first, cross-platform)\n\nConfigure safe recurring updates for OpenClaw and installed skills.\n\n## Core Rules\n\n1. Prefer OpenClaw-native actions and `npx clawhub`.\n2. On **Windows**, run updates in **native Windows shell**.\n3. On Windows, ensure `bash` resolves to **Git Bash / MSYS**, not `C:\\Windows\\System32\\bash.exe` (WSL launcher).\n4. Never include user-specific local paths/usernames in public docs or published skill content.\n5. Always output a concise summary: updated, unchanged, failed.\n\n## Windows-Only Guardrails (Important)\n\n- Do **NOT** use WSL for update execution.\n- If build steps require `bash`, prepend Git Bash path in PATH for the current shell session.\n- Verify active bash:\n\n```powershell\nwhere.exe bash\nbash --version\n```\n\nExpected on Windows: GNU bash from MSYS/Git, **not** WSL launcher path first.\n\n## Path Placeholders (Use These)\n\n- `<openclaw-repo>`: source repo root (example: `%USERPROFILE%\\\\dev\\\\openclaw`)\n- `<openclaw-home>`: runtime home (example: `%USERPROFILE%\\\\.openclaw`)\n\n## Manual Update Flow\n\n### 1) Update OpenClaw (source install)\n\n```powershell\ngit -C <openclaw-repo> pull --ff-only\npnpm -C <openclaw-repo> install\npnpm -C <openclaw-repo> build\n```\n\n### 2) Restart gateway\n\nUse OpenClaw gateway restart tool/action after successful build.\n\n### 3) Update skills\n\n```powershell\nnpx clawhub update --all --workdir <openclaw-home> --no-input\n```\n\nIf local edits exist and user confirms overwrite:\n\n```powershell\nnpx clawhub update <slug> --force --workdir <openclaw-home> --no-input\n```\n\n## Successful Windows Command Template (Sanitized)\n\n```powershell\ngit -C <openclaw-repo> pull --ff-only\npnpm -C <openclaw-repo> install\npnpm -C <openclaw-repo> build\nopenclaw gateway restart\nopenclaw --version\n```\n\n## Scheduling (Optional)\n\nWhen user asks for automation, create cron jobs with isolated `agentTurn` runs and summary delivery. Keep schedule conservative (e.g., daily 04:00 local) unless user asks otherwise.\n\n## References\n\n- `references/agent-guide.md`\n- `references/summary-examples.md`\n","topics":["Git"],"tags":{"latest":"1.0.3"},"stats":{"comments":0,"downloads":891,"installsAllTime":33,"installsCurrent":4,"stars":0,"versions":3},"createdAt":1773415563737,"updatedAt":1778491890041},"latestVersion":{"version":"1.0.3","createdAt":1773416569365,"changelog":"Privacy fix: remove host/user-specific paths; replace with sanitized placeholders; keep explicit Windows-native non-WSL guidance.","license":"MIT-0"},"metadata":null,"owner":{"handle":"leo220yuyaodog","userId":"s17dzm1cx9k51mvmsdr42fc4js83te00","displayName":"Yaodong Yu","image":"https://avatars.githubusercontent.com/u/71440988?v=4"},"moderation":null}