/lovable:fix-and-shipfrom Lovable
Finds root causes of bugs in Lovable apps, proposes fixes with evidence, applies them through Lovable's plan/approval flow, and publishes with rollback commit naming.
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.
Read when SKILL.md points to them.
Rules (apply to every step of this skill):
create_project, send_message, an approved respond_to_approval and import-claude-design-from-url. Before any of them, say what will be built or changed, quote an estimate (about 1 credit for a plan or a small change, about 2 for a static page, 7 to 11 for an app with a database and sign-in) and wait for a yes. One yes covers one call. Afterwards, report cost_credits. Only call a step free of credits when it uses reading tools alone. Paid lookups in other connected tools (enrichment and data providers) cost the person money too: say how many and ask first./mcp in Claude Code), and stop before the first step that needs a Lovable tool. In the same reply, still ask the skill's questions and do its written steps, and say what it will make in Lovable and that steps that spend credits wait for a yes.get_me first; with several workspaces, list them and ask. Read get_workspace_knowledge for the business profile that know-my-business writes, and do not ask again for what it already says. A 403 means the person is a member, not an admin: ask once and keep the answers in this conversation.Sign-in domain, or ask once) can sign up, and every table's policies check the signed-in email. Any check that the email is verified runs at sign-in.references/lovable.md, Access checks). If something falls short, offer one fix message with its own yes. Tell the person who can sign up and who can read and change what, as found, never as requested, and never call an app safe to share. Describe a team app as "only people with an email at can sign up, and the database refuses everyone else", never as "only your team can sign in" or "sign-in limited to your domain". Ask for the domain as "which email domain may sign up".create_project and send_message with wait: false, keep the project id, the top-level message id and the thread id when one is returned, and follow the build with get_message (wait_seconds up to 55, repeated) until response.status is completed, awaiting_input, stopped or error. Never wait on get_project.agentFinished: it stays false while a build waits for an approval. Read the result (which fields, in references/lovable.md), then:
respond_to_approval. A new message would replace the pending proposal. Approvals for keys and payments happen in the Lovable editor; give the editor_url.references/lovable.md).get_workspace), and warn when the profile's Never public line or the app's data says it must stay private. The audience is set in the editor's Publish menu. Afterwards, report the audience. Rolling back is done from the editor's version history: note the commit before a change and name the version to restore.references/lovable.md says where things live in each kind of Lovable project and how to read the database (allowed values, safe writes, recent edits). Cite paths and table names as read; say "not found" rather than guess.editor_url to change the work and the preview or live URL to use it. Promise no schedules; recurring runs are a Claude feature the person sets up.Investigation comes first and only reads. The fix is one plan and one change, each with its own yes. Shipping is a third yes. The person always knows which version to restore.
| Tool | Used for | Required? |
|---|---|---|
get_me, list_projects, get_project | resolve the app | yes |
list_edits, get_diff | what changed around the time it broke | yes |
list_files, read_file | the code behind the symptom | yes |
get_database_status, query_database | data-side causes (SELECT); a data fix only after its own yes | no |
send_message with plan_mode, then respond_to_approval | the plan, then the approval that applies it (credits, two yeses) | yes |
get_message, get_diff | follow the change and verify it matches the plan | yes |
deploy_project | put it live | after a yes |
Resolve the project (list_projects by name, confirm). Pin down: what the person sees, when it started, who is affected, the exact error text if any. Note latest_commit_sha from get_project: the code as it stood before the fix. If the project has unpublished edits, the live app may be older than this; say so.
list_edits (the first page is the newest; follow pagination.next_cursor back to the pages around the start date) and find the edits around the start date. get_diff on the suspects. Quote the lines.read_file on the files those diffs touched and on the page or function the symptom points at.query_database SELECT on pg_total_relation_size per table, row counts now versus the app's age, columns storing large text or base64, and edge functions that write on every request. Check storage buckets through the files that reference them.pg_indexes), large payloads on first load.
Write the root cause in three lines with the evidence: file and line, or table and number, plus the commit that introduced it.What will change, why that removes the cause, what it could break, and how to undo it (restore the version from Step 1 in the editor's version history; this plugin has no rollback tool). If the cause is data rather than code, propose the SQL and treat it as a write that needs its own yes.
For a one-file change: one send_message (wait: false) describing the fix, after a yes that quotes its cost (about one credit), names the version to restore from Step 1, and says the result will be "fixed in the code, not tested" until the person tries it; poll and read its status per the Rules, then check the diff as below. For anything bigger: send_message with plan_mode: true and wait: false, describing the fix in plain language and asking which files it would touch, whether the database changes, and what could break. Wait on get_message until it settles (see the Rules), then read it once: plan mode ends with response.status = awaiting_input and a pending plan--show approval. That is the normal end of a plan, not a stall. Lovable committed the plan to .lovable/plan/ (01-overview.md, 02-layout.html, 03-details.md); read_file them and show the person the files, the database change and the risks; a plan costs about one credit. On a yes, call respond_to_approval with the project_id, awaiting_input.event_id, the top-level message_id returned by the plan send_message, decision: "approved" and wait: false; that applies the plan. Never apply with a new send_message: it rejects the pending plan. On a no, respond_to_approval with decision: "rejected" and the person's reason in user_input. Poll, then get_diff with the same message_id and check the diff against the plan file by file. A small apply costs about one credit. Anything extra: say so before going on.
preview_url for the person to try. Re-run the read from Step 2 that showed the problem and compare. That shows the code or data changed, not that the problem is gone: say "fixed in the code, not tested" until the person confirms it in the preview.
Ask for the yes with the publishing facts from the Rules (every unpublished edit goes live, now). Then deploy_project, confirm the new version is live (references/lovable.md, Visibility and publishing), read publish_audience. Return the live URL, who can open it, and the version to restore from the editor's history if needed.
Root cause with evidence, the diff summary, the live URL, the version to restore if needed, whether the person has tested the fix, and anything noticed on the way that was left alone.
document-my-app to record what changed and why, review-my-workspace when the fix touched access.
tiers:
reads-only: investigation reads (edits, diffs, files, SELECT queries) and the proposal; nothing goes to Lovable's agent before the first yes
spends-credits: one direct send_message for a one-file fix, or one plan_mode message and one approved respond_to_approval; each with its own yes
ships-live: deploy_project after a yes; a data write only after its own yes
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
13 skills in this plugin
/ask-my-app-dataAnswers questions from a Lovable app's live database in plain language, with the SQL shown: signups this week, revenue by plan, the numbers for an investor update. Read-only. Use when the person asks "how many signed up", "what's in my app's data", "weekly numbers", "investor update numbers", "query my Lovable app", or any question a table in one of their Lovable apps can answer. For data in a warehouse, a spreadsheet or another tool, a data skill fits better./build-from-this-conversationTurns the idea already worked out in this Claude conversation into a live Lovable app with a database, access the database limits to the right people, and a URL. Use when the person says "make this real", "build this", "turn this into an app", "build what we just discussed", "put this on Lovable", or "ship it" about an idea in the conversation. When the starting point is a spreadsheet or a Claude Design, spreadsheet-to-app or claude-design-to-app fits better./claude-design-to-appTurns a Claude Design that was sent to Lovable into a working app that keeps the design and adds the data, sign-in and actions behind it. Use when the person says "I just sent a design to Lovable", pastes an Open in Lovable link or project id from Claude Design, or says "make the imported design work", "build this design", "turn this design into an app", or "Claude Design to Lovable". For design critique or edits to the design itself, stay in Claude Design./document-my-appWrites a brief, spec, README or handover doc for an app built on Lovable, grounded in that project's actual code, schema and change log, and keeps the project knowledge that Lovable's agent reads up to date. Use whenever the person asks for documentation about a Lovable app or project: "write the brief for my Lovable app", "handover doc for my Lovable app", "document this Lovable project", "what does my Lovable app do", "update the project knowledge", or a spec from a Lovable project's code. For docs about code in a local repository or a codebase outside Lovable, a documentation skill fits better./find-what-to-buildReads the person's real week (calendar, inbox, the sheets they keep editing) or asks five questions, proposes the three tools worth building first with the evidence for each, and builds one on Lovable only when they pick it. Use when the person says "what should I build", "where would an app help", "I don't know where to start with Lovable", "look at what I do every week", or "find the repeatable work". For general brainstorming with no intent to build, a brainstorming skill fits better./first-customersBuilds a CRM the person owns on Lovable and loads it with companies that match their best customer, found through the tools connected in Claude, each row with its source. Use when the person says "find companies like our best customer", "first customers", "build me a CRM", "a place to track outreach", "200 companies like X", or wants their own place to track early sales. Use it when the outcome is an app they keep using. For a one-off lead list in chat, contact enrichment, or loading leads into an existing CRM, a sales or prospecting skill fits better.npx claudepluginhub lovablelabs/mcp --plugin lovableOther plugins' skills for the same job