PromptsOpenClaw

Specific purposeHourly · git push

Hourly git sync that stops on a conflict

Use case

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.

What to connect

A git remote you can push to with a key, not a password prompt. Telegram for conflicts and hook blocks.

Setup

  1. Confirm git status works in [REPO PATH] and that the branch already tracks a remote.
  2. Install the pre-commit hook from this skill so it blocks .env, browser profile cookies, and session tokens.
  3. Schedule the sync hourly, a few minutes after db-backup so a bad hour is easier to read.
  4. 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.

Edit before you send: The repo path, the branch name, and which extra filenames the hook should block.

Prompt to paste into 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.

More OpenClaw prompts

  • Personal CRM from mail and calendar

    A year of email and meetings is a pile of names you cannot search. OpenClaw reads Gmail and Google Calendar, drops newsletters and cold pitches, and keeps a local profile for each person worth remembering. You ask in plain language who you know at a company, or who has gone quiet.

  • Meeting action items with an approval queue

    Meetings end and the promises disappear. OpenClaw waits until a meeting is over, pulls the Fathom transcript, matches the room to your CRM, and sends you each action item to approve. Approved items become Todoist tasks. Things other people owe you stay on a waiting-on list, except people on your own team.

  • Urgent email, only when it can wait no longer

    You do not live in the inbox, including on weekends. OpenClaw checks mail on a timer, ignores senders you have already marked as noise, and pings a Telegram topic only when something needs you now. When you say an alert was wrong, the next check is stricter.

  • Knowledge base you fill from a Telegram topic

    Links you meant to remember are scattered across chats. You drop a URL into one Telegram topic. OpenClaw saves the article, the video transcript, the full post thread, or the PDF, then you ask later in plain language. A new save can point at something you already kept.