Skip to content
Skill

Lovable sync

Guides safe two-way sync between a Lovable project and its GitHub main branch

Lovable sync is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
23
Last commit
License
MIT
Listing updated

Similar skills

About Lovable sync

This skill tells the agent how to keep a Lovable-built project in step with its GitHub main branch. It covers pulling the latest changes, spotting drift between GitHub and Lovable, and committing and pushing work back so Lovable picks it up. Before touching the repository it has the agent read a project config file, with a fallback to older Claude-era settings, and it requires a clean worktree before pulling. When branches have diverged, the agent is told to stop and report the conflict rather than overwrite anything.

The workflow also covers the safety steps around publishing. The agent inspects the diff before pushing, keeps secrets out of commits, and only auto-pushes on the configured branch. Frontend changes are described as syncing automatically, while edge functions and migrations may need a separate Lovable deployment step handled by another skill. If sync fails, the agent is asked to give the user manual Git commands and leave the worktree in a recoverable state.

The skill includes a migration script for projects that still have a legacy Claude test workspace; the migration is described as idempotent and keeps token paths ignored. It expects a Git repository with a GitHub remote and the Lovable project connected to it. Claude Code hook adapters are referenced for use under Claude Code.

When your agent uses it

Synchronize Lovable projects with GitHub safely. Use when pulling the latest main branch, checking GitHub/Lovable drift, initializing `.lovable-agent`, migrating the legacy Claude test workspace, or committing and pushing changes for Lovable two-way sync.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (2 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the lovable plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add 10K-Digital/lovable-agent-skills
/plugin install lovable@10k-digital

Or copy only this skill to ~/.claude/skills/lovable-sync:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/10K-Digital/lovable-agent-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/lovable-sync &&
cp -R "$tmp/plugins/lovable/skills/lovable-sync" ~/.claude/skills/lovable-sync &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/lovable-sync inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/lovable-sync to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/10K-Digital/lovable-agent-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/lovable-sync &&
cp -R "$tmp/plugins/lovable/skills/lovable-sync" ~/.agents/skills/lovable-sync &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/lovable-sync inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/lovable-sync to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/10K-Digital/lovable-agent-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/lovable-sync &&
cp -R "$tmp/plugins/lovable/skills/lovable-sync" ~/.cursor/skills/lovable-sync &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/lovable-sync inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/10K-Digital/lovable-agent-skills.git --path plugins/lovable/skills/lovable-sync

Or copy the folder to ~/.gemini/skills/lovable-sync yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/lovable-sync:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/10K-Digital/lovable-agent-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/lovable-sync &&
cp -R "$tmp/plugins/lovable/skills/lovable-sync" ~/.copilot/skills/lovable-sync &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/lovable-sync inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/10K-Digital/lovable-agent-skills.git

Then copy lovable-agent-skills/plugins/lovable/skills/lovable-sync into your agent's skills folder as lovable-sync. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Safe pull workflow
Requires a clean worktree, fetches first, and stops on diverged branches instead of discarding changes.
Drift checking
Compares local, remote and base states to show how GitHub and Lovable have drifted apart.
Guarded commit and push
Reviews the diff and keeps secrets out of commits before pushing to the configured branch.
Config-driven behavior
Reads sync settings from a neutral config file and falls back to legacy Claude settings.
Workspace migration script
Moves a legacy Claude test workspace into the neutral layout without duplicating artifacts.
Recoverable failure handling
Gives manual Git commands and keeps the worktree recoverable when sync fails.

Good for

  • Pull the latest main branch into a Lovable project without losing local edits
  • Check whether GitHub and Lovable have drifted apart before making changes
  • Initialize the .lovable-agent config for a Lovable project
  • Migrate an old Claude test workspace to the new layout
  • Commit and push changes so Lovable picks them up

Lovable sync FAQ

What does the skill need to run?

It expects a Lovable project synced with a GitHub repository and a config at .lovable-agent/config.json, falling back to legacy CLAUDE.md settings when that file is absent.

Will Lovable sync overwrite my local changes when pulling?

No. It requires a clean worktree before pulling, and when branches diverge it stops with a conflict message instead of discarding user changes.

Does Lovable sync deploy edge functions or migrations?

Not directly. It notes that edge functions and migrations may need a Lovable deployment prompt and points to the lovable-deploy skill for that decision.

Which branch does Lovable sync push to?

Auto-push is only allowed on the configured branch, normally main.

How do I install Lovable sync in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/lovable-sync to use it in all your projects, or to .claude/skills/lovable-sync in one project. Or install the lovable plugin, which includes it: /plugin marketplace add 10K-Digital/lovable-agent-skills, then /plugin install lovable@10k-digital.

Does Lovable sync run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Lovable sync?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Lovable sync?

The closest alternatives to Lovable sync are Yolo, Lovable, Lovable deploy, Init and Ljg push.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from 10K-Digital/lovable-agent-skills

  1. Sets up or refreshes a Lovable project's local agent config, AGENTS.md and CLAUDE.md

    • Open source
    • 23 GitHub stars
    • Developer tools
  2. Guides a coding agent through Lovable.dev projects, edge function deploys and migrations

    • Open source
    • 23 GitHub stars
    • Developer tools
  3. Guides an agent through deploying Lovable backend changes and verifying the result

    • Open source
    • 23 GitHub stars
    • Cloud and infrastructure
  4. Lets a coding agent create, build in, review and accept Lovable drafts safely

    • Open source
    • 23 GitHub stars
    • Developer tools
  5. Gives agents project context for Lovable.dev repos: Vite SPA vs TanStack Start, config

    • Open source
    • 23 GitHub stars
    • Developer tools
  6. Lets an agent plan, run and maintain Lovable Preview test suites in your project

    • Open source
    • 23 GitHub stars
    • Developer tools