Communitygithub.com

Lovable — AI全栈应用生成器

Lovable(前身为GPT Engineer)是一款基于浏览器的AI应用构建工具,可将自然语言描述转化为可运行的全栈Web应用,内置后端、身份验证、数据库和一键发布。

Lovable — AI全栈应用生成器 是什么?

Lovable(lovable.dev)是一款AI驱动的全栈Web应用生成器,适用于浏览器环境。用户通过聊天提示即可生成和编辑Web应用,项目默认使用Tailwind CSS和shadcn/ui,并基于TanStack Start(服务器渲染)或React + Vite运行。后端可选择Lovable Cloud(内置数据库、认证、存储、实时功能和函数,基于Supabase开源堆栈)或用户自己的Supabase项目。Lovable支持双向GitHub同步、一键发布至自定义域名,无需安装任何CLI。此技能帮助AI代理编写高质量提示、审查生成结果、管理GitHub同步,并确保安全性(如行级安全策略)。对于希望快速原型化或交付全栈Web应用的用户,Lovable是理想选择。

兼容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/TerminalSkills/skills/tree/HEAD/skills/lovable

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

Lovable — AI全栈应用生成器 是做什么的?

概述

Lovable (lovable.dev) 通过浏览器中的聊天提示生成并编辑Web应用。项目使用Tailwind CSS和shadcn/ui;自2026年5月起创建的应用使用TanStack Start(服务器渲染),较早的应用则为React + Vite。后台你可以选择Lovable Cloud(内置数据库、认证、存储、实时和函数,基于Supabase的开源堆栈)或你自己的Supabase项目。代码可通过GitHub双向同步,应用可发布至lovable URL或自定义域名。无需安装任何软件,也没有CLI;AI代理通过编写良好的提示、审查输出以及在同步的仓库上工作来提供帮助。

使用说明

1. 在第一次提示前做好规划

回答四个问题:它是什么、谁使用它、为什么使用以及关键操作是什么。使用真实的文案逐节描述应用,不要使用占位符。Lovable的指导原则:一页式的提示会带来噪音,逐节的提示则能提供有效信号。指定一种设计方向(“极简”、“高级”、“活泼”),以指导排版和间距。

2. 选择后端

  • 新项目:Lovable Cloud(默认)或Supabase,在首次启用后端时选择。
  • 已连接Supabase的项目继续正常工作。没有从Supabase迁移到Cloud的选项,也没有从Cloud一键迁移到你自己的Supabase项目的选项,因此请尽早决策。

3. 在模式中工作

Lovable具有Agent模式(构建和修改内容)和Chat模式(讨论、规划,不进行编辑)。计划模式每条消息消耗1个积分;正常编辑根据复杂度大约消耗0.5-1.7个积分。添加“在构建之前,请提出你需要的任何问题”以获得澄清性问题。将持久的规则(技术栈、命名、语气)放入项目或工作空间知识中,以便在不同聊天之间持续生效。

4. 审查安全性

生成的表应具有行级安全策略。阅读每条策略,运行内置的安全扫描,并在发布前使用两个不同的用户进行测试。

5. 同步并拥有代码

从项目设置中连接GitHub。每次只对一个分支进行双向同步(除非切换,否则为默认分支);新分支从活动分支开始。你只能将Lovable项目导出到GitHub,不能导入现有仓库,且超过10 MB的文件无法由Lovable编辑。断开连接会保留两份副本,但重新连接会创建一个新的仓库。

6. 套餐

免费版、专业版、商业版和企业版;定价按积分计算,而非按席位。免费版包含每天5个构建积分(每月最多30个)以及少量Cloud积分。请查看 lovable.dev/pricing 了解当前价格。

示例

示例1:带推荐功能的候补名单应用

请求: “使用Lovable构建一个SaaS候补名单:带有计数器的注册表单、推荐链接、排行榜和管理页面。”

要粘贴的提示:

为“Parcelly”构建一个候补名单网站,Parcelly是一款面向Etsy卖家的运单标签工具。
分区:英雄区(“10秒内打印标签”)带有邮箱表单和实时注册计数器;
前10名推荐者的排行榜;/admin页面(需邮箱登录)列出注册信息并支持导出CSV。
每个注册用户获得一个唯一的推荐链接(?ref=code),推荐者将获得积分。
风格:极简、深色模式。使用Lovable Cloud进行数据和认证。
在开始构建前,请提出你需要的任何问题。

结果:Lovable会询问邀请邮件相关事宜,然后创建页面、一个signups表及其策略,以及一个预览URL。一个合理的表及策略集,可与生成的版本进行比对:

create table public.signups (
  id uuid primary key default gen_random_uuid(),
  email text not null unique,
  referral_code text not null unique default encode(gen_random_bytes(6), 'hex'),
  referred_by uuid references public.signups(id),
  created_at timestamptz not null default now()
);
alter table public.signups enable row level security;
create policy "anyone can join" on public.signups for insert to anon with check (true);
-- 读取所有行必须限制为管理员,例如通过 user_roles 表

示例2:迭代并同步到GitHub

请求: “添加一个注册量随时间变化的图表,然后将代码放入我的仓库,以便我可以在Cursor中继续工作。”

聊天提示:“使用现有数据,在/admin页面添加一个按天统计注册量的折线图;当没有注册时显示空状态。”然后:项目设置,GitHub,连接,选择账户并创建仓库。之后:

git clone [email protected]:parcelly-dev/parcelly-waitlist.git
cd parcelly-waitlist && npm install && npm run dev

推送至同步分支的内容会出现在Lovable中;将本地编辑保留在该分支上(或在项目设置中切换分支)。

指南

  • 将每个核心功能放在第一次提示中,然后在后续每次只修改一件事,以便版本历史保持有用;对工作版本进行书签标记。
  • 不要在聊天中粘贴API密钥;使用秘密/集成对话框。服务器端密钥属于后端函数,绝不应出现在客户端代码中。
  • 永远不要盲目信任生成的RLS:对于公开表单,insert ... with check (true) 策略是可以的,但 select 策略则不行。
  • 积分用于构建、托管和AI功能,且不可退还;对于问题,请优先使用Chat/计划模式。
  • 不适用于原生移动应用、重度自定义后端或复杂的现有单体仓库:请改用仓库中的编码代理。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

TerminalSkills/skills

>- Run GitHub Actions locally with act. Use when a user asks to test GitHub Actions workflows locally, debug CI pipelines without pushing, or run workflows offline.

TerminalSkills/skills

>- You are an expert in AG2 (formerly AutoGen), the open-source multi-agent conversation framework. You help developers build systems where multiple AI agents collaborate through structured conversations — with tool use, human-in-the-loop, code execution, group chat orchestration, and nested conversations — for complex tasks like software development, research, and data analysis.

TerminalSkills/skills

>- Generate short-form videos with AI — script writing, text-to-speech narration, stock footage selection, subtitle generation, and video assembly. Use when: creating TikTok/YouTube Shorts/Reels content, automating video production, building content pipelines.

TerminalSkills/skills

>- Animate 3D objects and characters in Blender with Python. Use when the user wants to keyframe properties, create armatures and rigs, set up IK/FK chains, animate shape keys for facial animation, edit F-Curves, use the NLA editor to blend actions, add drivers for expression-based animation, or script any animation workflow in Blender.

TerminalSkills/skills

>- Automate motion capture and tracking workflows in Blender with Python. Use when the user wants to import BVH or FBX mocap data, retarget motion to armatures, track camera or object motion from video, solve camera motion, clean up motion capture data, or script any tracking pipeline in Blender.

TerminalSkills/skills

>- You are an expert in Bolt.new by StackBlitz, the AI-powered full-stack development environment that runs entirely in the browser. You help developers go from idea to deployed app in minutes using natural language prompts — Bolt generates complete applications with frontend, backend, database, and deployment, all running in a WebContainer without local setup.

TerminalSkills/skills

>- Assists with using Bun as an all-in-one JavaScript/TypeScript runtime, package manager, bundler, and test runner. Use when building HTTP servers, managing packages, running tests, or migrating from Node.js. Trigger words: bun, bun serve, bun install, bun test, bun build, javascript runtime, bun runtime.

TerminalSkills/skills

>- Self-host customer support with Chatwoot. Use when a user asks to set up open-source customer support, add live chat without SaaS costs, build a multi-channel inbox, or deploy a free Intercom alternative.

TerminalSkills/skills

>- You are an expert in Chi, the lightweight, idiomatic Go HTTP router built on `net/http`. You help developers build composable HTTP services using Chi's middleware stack, route groups, URL parameters, sub-routers, and context-based request scoping — providing Express-like ergonomics while staying 100% compatible with Go's standard library.

TerminalSkills/skills

When the user wants to edit, review, or improve existing marketing copy. Also use when the user mentions 'edit this copy,' 'review my copy,' 'copy feedback,' 'proofread,' 'polish this,' 'make this better,' or 'copy sweep.' This skill provides a systematic approach to editing marketing copy through multiple focused passes.

TerminalSkills/skills

>- Add live chat and customer support with Crisp. Use when a user asks to add a chat widget, implement live customer support, set up a help desk, create a knowledge base, or add a chatbot to a website.

TerminalSkills/skills

>- Assists with building custom interactive data visualizations using D3.js. Use when creating charts, graphs, maps, force layouts, or hierarchical diagrams that require fine-grained control beyond what charting libraries provide. Trigger words: d3, data visualization, chart, svg, scales, force graph, treemap, choropleth.

TerminalSkills/skills

dbt (data build tool) transforms data in your warehouse using SQL SELECT statements. Learn project setup, models, tests, documentation, incremental materializations, and integration with data warehouses like PostgreSQL, BigQuery, and Snowflake.

TerminalSkills/skills

>- You are an expert in dlt, the open-source Python library for building data pipelines. You help developers load data from any API, file, or database into warehouses and lakes using simple Python decorators — with automatic schema inference, incremental loading, and built-in data contracts. dlt is the "requests library for data pipelines.

TerminalSkills/skills

Data Version Control for ML projects. Track large datasets and models alongside Git, build reproducible ML pipelines, and run experiments with metric comparison. Works with any storage backend including S3, GCS, Azure, and local filesystems.

TerminalSkills/skills

>- You are an expert in E2B, the cloud platform for running AI-generated code in secure sandboxes. You help developers give AI agents the ability to execute code, install packages, read/write files, and run long processes in isolated cloud environments — each sandbox is a lightweight VM that boots in ~150ms with full Linux, filesystem, and networking.

TerminalSkills/skills

>- Transcode, convert, edit, and process audio and video with FFmpeg. Use when a user asks to convert video formats (webm to mp4, mkv to mp4), extract audio from video, compress video files, trim or cut clips, concatenate videos, add subtitles, create thumbnails, apply filters, change resolution or bitrate, re-encode media, create GIFs from video, add watermarks, normalize audio, stream media, or build automated media processing pipelines.

TerminalSkills/skills

>- Create advanced animations with GSAP. Use when building complex timelines, scroll-driven animations, SVG morphing, text animations, or high-performance web animations beyond CSS capabilities.

TerminalSkills/skills

>- Generate deterministic MP4 videos from HTML, CSS, media, and seekable animations using HeyGen's HyperFrames framework. Use when someone asks to "render HTML to video", "make a video with HyperFrames", "create a programmatic video", "turn an animation into MP4", "build a launch/product video from HTML", "render GSAP/Lottie/Three.js to video", or set up an agent-driven video pipeline. Covers init/preview/render/add/lint/inspect commands, data-* timing attributes, animation adapters, and the component catalog.

TerminalSkills/skills

When the user wants to perform load testing, stress testing, or performance testing of APIs and websites using k6. Also use when the user mentions "k6," "load test," "performance test," "stress test," "spike test," "soak test," "thresholds," "virtual users," or "VUs." For browser-based testing, see selenium.

相关技能