ПромптыOpenClaw
Hourly git sync that stops on a conflict
Сценарий
The code on the laptop is the other half of the backup. Every hour OpenClaw commits what changed and pushes it. If the remote has moved, you get a message instead of a forced merge. A hook keeps browser cookies and session files out of the commit.
Что подключить
A git remote you can push to with a key, not a password prompt. Telegram for conflicts and hook blocks.
Настройка
- Confirm git status works in [REPO PATH] and that the branch already tracks a remote.
- Install the pre-commit hook from this skill so it blocks .env, browser profile cookies, and session tokens.
- Schedule the sync hourly, a few minutes after db-backup so a bad hour is easier to read.
- Run it once on a clean tree and once with a harmless file change. Confirm the commit message is a timestamp, and that a cookie file is refused.
Отредактируйте перед отправкой: The repo path, the branch name, and which extra filenames the hook should block.
Промпт для вставки в OpenClaw
Save this as a skill named git-sync. Every hour, in [REPO PATH], commit workspace changes and push to the tracked remote. Commit message: "sync [UTC TIMESTAMP]". Do not invent a feature summary. If the push is rejected because the remote has new commits, stop. Do not merge, rebase, or force-push. Message me in the [CRON] topic with the branch name and the error. If there is nothing to commit, stay quiet. Pre-commit hook, installed in this repo: - Refuse the commit if the staged files include .env, a browser profile, cookies, or session tokens, or any path I add to [EXTRA BLOCK LIST]. - Print the blocked path and exit non-zero. - If the hook blocks a commit, tell me the path and leave the files unstaged. Do not skip the hook. Do not commit secrets to get the sync to pass.
Работает вместе с этими промптами
Эти промпты OpenClaw вызывают этот промпт или вызываются им. Настройте их вместе.
- Hourly encrypted database backups
The CRM, the knowledge base, and the social snapshots all live on one machine. Once an hour, OpenClaw finds every SQLite file, packs them into an encrypted archive, and puts the archive on Google Drive. You keep a week of copies, and a restore script for the day the laptop does not turn on.
- Heartbeat that speaks only when something is wrong
You should not have to ask whether the assistant is healthy. A heartbeat checks the things that rot quietly: stale social data, a repo that swallowed a large file, repeating errors, a gateway that is suddenly public. If you hear nothing, the checks passed.
Другие промпты для OpenClaw
- A prompting guide for the model you actually run
OpenClaw is a pile of markdown instructions, and each model follows them differently. You keep one local guide for the model you use. Any time a skill or a prompt file changes, that edit is checked against the guide first.
- Humanizer for anything a person will read
Long replies start to sound like a model: the same hinges, the same rhythm, the same three-part lists. A humanizer pass rewrites user-facing prose before it goes out, and a small test file catches the phrases that keep coming back.
- Images on demand
Thumbnails and social images should not mean opening another app. You describe the image, or you hand over pictures to edit or combine, and the file comes back in Telegram with a timestamped name.
- Short clips on demand
A short visual is sometimes the whole asset. You describe the clip, or you start from a still, and a short video comes back in Telegram. The local download does not linger on the laptop.