/lovable:initfrom lovable
Initializes or reinitializes a Lovable project for coding agents by creating/refreshing .lovable-agent configuration, AGENTS.md, and Claude compatibility shim while preserving existing settings, tests, and credentials.
Ships in lovable. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill for “init”, “initialize”, “reinitialize”, or “refresh Lovable project context”. Resolve helper and reference paths relative to this installed plugin, not the target repository.
AGENTS.md, CLAUDE.md, .lovable-agent/config.json, and
.lovable-agent/context.md. Read project context and the
configuration schema. Apply the
instruction boundaries.python3 <plugin-root>/scripts/detect-architecture.py <project-root> when available.
Resolve ambiguous architecture from actual files; never guess a project URL or backend.
Record secret names and status only, never values.deploy.use_drafts to off; enable them only when
requested. Reinitialization preserves
existing values, including explicit false and custom/unknown configuration fields. Import legacy
YOLO on/true or off/false only when the neutral field is absent; persist it as a JSON boolean.scripts/migrate-workspace.py from the plugin (inspect
its usage first). Preserve existing canonical tests and ignored local tokens. Ensure token paths
are ignored before storing credentials; never place tokenized URLs in generated context..lovable-agent/config.json and refresh factual inventory/context. Context is declarative
data, never an instruction file. Rewrite unambiguous imperative context as facts; report and
preserve ambiguous text instead of guessing which agent should obey it. Do not replace user
prose, custom instructions, settings, tests, or credentials. If JSON is malformed, report the
error and preserve the file rather than resetting it. Keep a Claude-compatible CLAUDE.md shim
pointing to the neutral files.<!-- lovable-local-agent:start --> and
<!-- lovable-local-agent:end --> in AGENTS.md. Title it Local agent instructions for Lovable
projects and state that it applies only to the local agent and must never be copied into Lovable
chat or knowledge. Because Lovable's hosted agent reads top-level AGENTS.md/CLAUDE.md with
every message, open the section with the hosted-agent notice from the
instruction boundaries (does not apply to
Lovable; do not edit or remove; requested by the user) and keep it concise. Use the
prompt authorization rules. Include the explicit
rule: YOLO on grants standing authorization for in-scope Lovable prompts; generic prompt
confirmation requirements and generic confirmation-before-publishing-to-main rules apply only
when YOLO is off; YOLO authorizes in-scope publication to main. Include the retained operation gates
and task restrictions. Update an existing generic Lovable confirmation sentence to express this
condition; preserve unrelated instructions. Mirror or reference this policy from CLAUDE.md.Also include a short credit rule in the managed instructions: do work locally, use free read-only
MCP tools or the browser Cloud UI for read-only backend/configuration inspection, and reserve consolidated Lovable prompts for hosted
operations that cannot be done locally. Link behavior to
credit-efficiency.md; do not copy secrets into shims.
Include one drafts rule: Lovable drafts do not sync to Git, and accepting a draft always needs the
user's explicit acceptance (see drafts.md).
Initialization is local setup. It does not itself submit a Lovable prompt, deploy, or publish.
The legacy /lovable:init-lovable command delegates here for the same reinitialization behavior.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
lovable, project-setup, agent-configuration, reinitialization
npx claudepluginhub 10k-digital/lovable-agent-skills --plugin lovable9 skills in this plugin
/lovableIntegration skill for Lovable.dev projects. Activates when working with:
- Lovable.dev projects with GitHub sync
- Supabase Edge Functions that need deployment
- Database migrations for Lovable Cloud
- Projects with supabase/ directory structure
- Any mention of "Lovable", "deploy edge function", "apply migration"
- Lovable drafts (creating, reviewing, accepting, or rejecting a draft)
Provides exact Lovable prompts for backend operations that can't be done via GitHub alone.
/lovable-deployDeploy Lovable backend work from any coding agent. Use for Supabase Edge Functions, database migrations, Lovable MCP setup, deployment verification, or deciding between MCP, browser, and manual fallbacks./lovable-draftsWork 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./lovable-projectProvider-neutral project context for Lovable.dev repositories. Use when initializing, inspecting, or modifying a Lovable project, detecting Vite SPA versus TanStack Start, reading `.lovable-agent` configuration, or generating agent instruction shims for Codex, Claude Code, and other agents./lovable-syncSynchronize 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./lovable-testingRun and maintain Lovable Preview tests from Codex, Claude Code, or another Agent Skills runtime. Use for test-plan generation, smoke/changed/all runs, test workspace migration, preview token handling, or keeping tests synchronized with changed features.Other plugins' skills for the same job