# Lovable drafts

> Lovable drafts is an open-source agent skill for developer tools. Lets a coding agent create, build in, review and accept Lovable drafts safely. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/10K-Digital/lovable-agent-skills/tree/main/plugins/lovable/skills/lovable-drafts
- **Repository:** https://github.com/10k-digital/lovable-agent-skills
- **GitHub stars:** 23
- **License:** MIT
- **Skill name:** lovable-drafts
- **Collection:** https://github.com/10K-Digital/lovable-agent-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill teaches an agent how to use Lovable drafts, which are hosted, branch-like copies of a Lovable project. Drafts let a change be tried without touching the main version, and comparing approaches or reviewing work before it is accepted are common uses. The skill is explicit that a draft is not a Git branch and does not sync to GitHub, so ordinary code changes stay local and are pushed to main, while draft work reaches main only when accepted.

The workflow centers on the Lovable MCP draft tools. The agent builds inside a draft with a single consolidated message, reviews the result through the diff and draft preview, and only accepts after the user explicitly approves that specific draft, even when auto-approval is on. The skill also tells the agent to check whether a draft has its own backend or shares the live one before any data-writing test, and to report the draft name, backend type, diff summary, preview link and outcome.

The skill references companion guidance on drafts, prompt authorization, credit efficiency and instruction boundaries within the same plugin. It is a Markdown instruction file with no bundled scripts, and it expects a Lovable project connected through MCP and a coding agent that can load skills.

## When your agent uses it

> Work with Lovable drafts from any coding agent. Use when the user mentions drafts, wants to try a Lovable change without touching the main version, compare approaches, review or accept a draft, or when `deploy.use_drafts` is `prefer`. Covers the MCP draft tools, Git sync limits, data isolation checks, and acceptance gates.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/10K-Digital/lovable-agent-skills/tree/HEAD/plugins/lovable/skills/lovable-drafts)
- [License: MIT](https://github.com/10K-Digital/lovable-agent-skills/tree/HEAD/plugins/lovable/skills/lovable-drafts)

## Features

- **Draft creation and building:** Covers creating a draft and building in it with one consolidated message tied to the draft ID.
- **Review before accepting:** Explains reviewing changes through the draft diff and preview link before any acceptance.
- **Backend isolation checks:** Describes checking whether a draft has its own backend or shares the live one before data tests.
- **Acceptance gates:** Requires explicit user approval for each draft and handles pending, merged and failed outcomes.
- **Main-branch boundaries:** Separates draft work from secrets, publishing, payments and edge-function deployment on main.
- **Draft limits and expiry:** Notes the open-draft cap, 24-hour inactivity removal and preview link behavior.

## Good for

- Try a Lovable change in a draft without affecting the live version
- Compare two approaches to a feature as separate drafts
- Review and accept a draft built by Lovable's hosted agent
- Check whether a draft uses its own backend before testing data writes
- Reject a draft and report its outcome

## Install

### Claude Code

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

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

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

```sh
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-drafts &&
cp -R "$tmp/plugins/lovable/skills/lovable-drafts" ~/.claude/skills/lovable-drafts &&
rm -rf "$tmp"
```

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

### Codex

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

```sh
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-drafts &&
cp -R "$tmp/plugins/lovable/skills/lovable-drafts" ~/.agents/skills/lovable-drafts &&
rm -rf "$tmp"
```

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

### Cursor

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

```sh
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-drafts &&
cp -R "$tmp/plugins/lovable/skills/lovable-drafts" ~/.cursor/skills/lovable-drafts &&
rm -rf "$tmp"
```

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

### Gemini CLI

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

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

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

### VS Code

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

```sh
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-drafts &&
cp -R "$tmp/plugins/lovable/skills/lovable-drafts" ~/.copilot/skills/lovable-drafts &&
rm -rf "$tmp"
```

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

### Other agents

Get the folder:

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

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

## FAQ

### Does Lovable drafts work with a regular Git branch workflow?

No. The skill states that a Lovable draft is not a Git branch and does not sync to GitHub; its code reaches main only when the draft is accepted.

### Will the agent accept a draft automatically?

Only after the user explicitly accepts that draft, even when YOLO mode is on. Accepting does not publish the app.

### What should be checked before testing data writes in a draft?

The agent should read backend_kind from create_draft or get_draft. Unless it clearly shows an isolated draft backend, draft writes are treated as production writes.

### Does accepting a draft publish the app?

No. Publishing and edge-function deployment are separate steps on the main version under normal authorization rules.

### How do I install Lovable drafts in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/lovable-drafts to use it in all your projects, or to .claude/skills/lovable-drafts 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 drafts 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 drafts?

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 drafts?

The closest alternatives to Lovable drafts are Lovable, Lovable deploy, Yolo, Lovable sync and Lovable testing.

## Where this comes from

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

## Alternatives

- [Lovable](https://ai-powered.com/skills/lovable-10k-digital): Lovable is an open-source agent skill for developer tools.
- [Lovable deploy](https://ai-powered.com/skills/lovable-deploy): Lovable deploy is an open-source agent skill for cloud and infrastructure.
- [Yolo](https://ai-powered.com/skills/yolo): Yolo is an open-source agent skill for developer tools.
- [Lovable sync](https://ai-powered.com/skills/lovable-sync): Lovable sync is an open-source agent skill for developer tools.
- [Lovable testing](https://ai-powered.com/skills/lovable-testing): Lovable testing is an open-source agent skill for developer tools.
- [Japanese writing drafter](https://ai-powered.com/skills/japanese-writing-drafter-chachamaru127): Japanese writing drafter is an open-source agent skill for developer tools.
- [Write](https://ai-powered.com/skills/write): Write is an open-source agent skill for developer tools.
- [Manage patterns and rules](https://ai-powered.com/skills/manage-patterns-and-rules): Manage patterns and rules is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/lovable-drafts
