Skip to content
Skill

Lovable drafts

Lets a coding agent create, build in, review and accept Lovable drafts safely

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

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.

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 (3 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-drafts:

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.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/lovable-drafts 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-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.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/lovable-drafts 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-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.

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

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

Gemini CLI docs on skills

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

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.

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-drafts into your agent's skills folder as lovable-drafts. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

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

Lovable drafts 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.

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. Gives agents project context for Lovable.dev repos: Vite SPA vs TanStack Start, config

    • Open source
    • 23 GitHub stars
    • Developer tools
  5. Guides safe two-way sync between a Lovable project and its GitHub main branch

    • 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